Hello and welcome to this new video and the last video we saw how to implement the search bar like this
thing?
And if you type something over your phone, for example, any type of A. And click Enter.
And in the developer, those console, you can see that you know this you are as returned by the API
we use.
YouTube API has written a five movie list of five movies, which contains the details of the snippet.
That means the publisher time the channel read the title of the video and everything the you know,
the thumbnails also.
You can see everything all the details regarding to that to those five videos will get in the search.
We are getting the information.
We are printing it.
So now what we'll do is instead of printing that.
Instead of preempting the response rate items, we've installed them, not you start.
And then when you know it's been condemned, it does produce and then said, use the react scared dogs
and then said produce.
It wouldn't be able to do that.
First thing you have to create that looks.
So let me clear took.
Almost.
Videos.
Set videos.
As equals calls, you stepped.
OK, so this should be instead of function not, said the written statement.
X.
That would be fine.
OK, if you could.
So what we are doing is we are creating a constant call videos that ensure the data of the video that
are fetched from the YouTube and then the set produces a function that will change these various values.
So first, initially, the videos so a of embedded.
Once we get the the response, then we have to store the response and set the videos.
So as you can see here, the getting the response of the second.
Your state is not different, we have to import the use to to cover it bought.
It was state.
Oh, and what you said?
From React.
Now, there won't be any errors.
Yeah.
So now I'll search for a movie.
Then you can see I got a result of five areas.
In fact, this video's we're having it kind and everything, so I basically want to start this this
thing inside the video site so that our lawyer.
And you're of concern logging.
First, I will do the object destruction and sort of getting response alert, get the video details,
how to do that.
So as you can see in the previous what we did, we printed responses, donated items.
So I want to store information in a constant medically the value of that items.
OK, that'll do not.
Interop response.
You have data.
Items.
Videos.
So this will basically have the videos, constant name and all the detail of the videos that we are
getting.
Basically, this is our objective starting.
We are structuring the data, not items, not videos, information from this app.
And then we are storing it inside this constant videos constant.
So once that is done, after getting the data, we can set videos using this variance.
So what is happening, you are getting immediate data from prior to this video's concern, and we are
doing the surveillance method and changing the value of this radius from imperial to the area of video
that we are updating that we are creating from the ARE.
And then.
Off the bat, we'll be using another caution set up terminal.
Selected media.
Six selected videos.
Self-Selected videos.
The constant use step.
And then he will be getting 90.
It will be the object.
Snippet.
It could be them dear.
So, yeah, there is one of them.
So basically, these are the selected videos like, as I said, we are giving them back results at five
p.m. only getting face after videos in their selected videos will select the main video so that are
here in this main bush and we'll have a video displaying its content and the full video.
Finally, does it serve as a list?
So the main video it should have.
I'd anticipate that being released audio so that we can display the main selected video using the video
detailed will be sending this as a proper the video to tell and then using that.
OK, so this is this is why we are using the selected video.
And then after that, various now the selected video should be.
Said selected.
Radio debate videos.
Zero.
So by default, if the user doesn't select anything by default, we want one video to be in the main
like of the main casting order as a box.
So that thing will give it before as the first item in the video itself.
Then we are getting five meters from the YouTube API.
We will give one API as the main rollout here in the video.
That's why I'm giving videos zero, the first item of that edit to this value selected window.
Now what we'll do here will color video data and then send this selected video as a prompt so that we
can display that in writing the code and gender.
So that thing, the digital and the rest of your list and video item will see in the next few.