Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while developing the VideoCard.jsx Component #9

Open
Madhannmady07 opened this issue Apr 20, 2024 · 14 comments
Open

Error while developing the VideoCard.jsx Component #9

Madhannmady07 opened this issue Apr 20, 2024 · 14 comments

Comments

@Madhannmady07
Copy link

Everything going pretty good with this application, But at the time stamp of 2:40:36 , When i gave the same code as same him , at while supplying the video as parameter to the component , mainly while at the creator: {username, avatar} I was getting this below mentioned error . . . .

When I remove that particular part , ie thaat creator code part , the code works pretty fine . . .
img

can some one give me the reason , for what causes this error ? and help me to solve this error ?

@HerbertNtim
Copy link

maybe it is a typo error

Let us see your code

@giannis198
Copy link

The "(creator: {username, avatar})" is not needed continue the code without it. This works fine const VideoCard = ({ title, creator, avatar, thumbnail, video })

@madhannmady
Copy link

madhannmady commented Apr 21, 2024

maybe it is a typo error

Let us see your code

Screenshot 2024-04-21 190454

This is my code brothers . . . and @giannis198 , yeah even checked the final code which he had deployed . . in which these code doesnt took place..but while at this phase he is using it currently . . so im little bit confused to move forward . . .

Should I continue to code ? excluding that particular line ? need ur suggestion brothers

@EvansRobbie
Copy link

EvansRobbie commented Apr 21, 2024

Go to appwrite check if you have set the relationship correctly on the videos attributes i.e. many-to-one. As the error suggest's username is 'undefined' so probably the issue is how you have set the attributes..

@madhannmady
Copy link

Go to appwrite check if you have set the relationship correctly on the videos attributes i.e. many-to-one. As the error suggest's username is 'undefined' so probably the issue is how you have set the attributes..

I checked that part too , everything was crct my frnd , I dont what to do now . .. .

@HerbertNtim
Copy link

maybe it is a typo error
Let us see your code

Screenshot 2024-04-21 190454

This is my code brothers . . . and @giannis198 , yeah even checked the final code which he had deployed . . in which these code doesnt took place..but while at this phase he is using it currently . . so im little bit confused to move forward . . .

Should I continue to code ? excluding that particular line ? need ur suggestion brothers

This what i did const VideoCard = ({ title, creator, avatar, thumbnail, video })
check it and do it accordingly

@HerbertNtim
Copy link

Go to appwrite check if you have set the relationship correctly on the videos attributes i.e. many-to-one. As the error suggest's username is 'undefined' so probably the issue is how you have set the attributes..

I checked that part too , everything was crct my frnd , I dont what to do now . .. .

Make sure the relationship between the video and the user is made well

@EvansRobbie
Copy link

Go to appwrite check if you have set the relationship correctly on the videos attributes i.e. many-to-one. As the error suggest's username is 'undefined' so probably the issue is how you have set the attributes..

I checked that part too , everything was crct my frnd , I dont what to do now . .. .

Have you confirmed if you have set it many-to-one or one-to-many..it should be many-to-one..

@AnjanaDhakal
Copy link

Are any of you using Android, as I'm experiencing a problem when I click on the search field. The buttomtab push up by the keyboard.I tried using keyboardavoiding view, but it still didn't work.
Thank You in advance!

@madhannmady
Copy link

maybe it is a typo error
Let us see your code

Screenshot 2024-04-21 190454
This is my code brothers . . . and @giannis198 , yeah even checked the final code which he had deployed . . in which these code doesnt took place..but while at this phase he is using it currently . . so im little bit confused to move forward . . .
Should I continue to code ? excluding that particular line ? need ur suggestion brothers

This what i did const VideoCard = ({ title, creator, avatar, thumbnail, video }) check it and do it accordingly

Ok let me try this for now and continue this, btw thank u for everyone , who had helped me throughout this process.

@madhannmady
Copy link

Go to appwrite check if you have set the relationship correctly on the videos attributes i.e. many-to-one. As the error suggest's username is 'undefined' so probably the issue is how you have set the attributes..

I checked that part too , everything was crct my frnd , I dont what to do now . .. .

Have you confirmed if you have set it many-to-one or one-to-many..it should be many-to-one..

Yeah I have made sure that it is "Many-to-one" , but still the error pops up,

@TajwarSaiyeed
Copy link

ERROR

Video playback error: db.w0: None of the available extractors (c, d, b, g, k, b, a0, d, h0, e, h, b, e, f, b, a) could read the stream.

Error on horizontal video playing

did anyone face the problem before?

@ImRkofficial
Copy link

ImRkofficial commented Aug 17, 2024

Everything going pretty good with this application, But at the time stamp of 2:40:36 , When i gave the same code as same him , at while supplying the video as parameter to the component , mainly while at the creator: {username, avatar} I was getting this below mentioned error . . . .

When I remove that particular part , ie thaat creator code part , the code works pretty fine . . . img

can some one give me the reason , for what causes this error ? and help me to solve this error ?

Screenshot 2024-08-17 173535
am also facing this issue but like this it works for me to send props like this and add a optional chaining

@sam-arth07
Copy link

Actually you need to replace creator with users as the item object contains users not creators. This worked for me:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants