Video Player Project

Video Player Project Source Code

Hi everyone!

  • I realised that Codecademy has released the newer version of the source code recently for Video Player Project in the React Part II.
  • There is no solution and video walkthrough provided in the project assignment so here is the attached source codes for the project just in case anyone encounters any bugs.

Happy coding!

4 Likes

Thanks for that!

Any idea why the tutorial tells us to create a const called ‘name’?

" Inside the body of clickHandler() , declare a new constant named name . Set speed equal to event.target.value . This will equal the value of a clicked radio button."

1 Like

It looks like a typo in the step 6.

It should be the following:
" Inside the body of clickHandler() , declare a new constant named text . Set const text equal to event.target.value . This will equal the value of a clicked radio button."

1 Like

Ah ok that makes sense, thanks!

1 Like

Wanted to say thanks a ton m8. Was stuck on this one until I found this post with ya’ll discussing the typo on step 6 which had me really confused and I had figured it was a typo as well I just wasn’t sure. This helped me get past this part.

1 Like

please please please have someone review this whole react course and the updated version. I skipped a lot of the react section the first time bc it was buggy. Ive come back to try it again and have found numerous typos in the instructions that have cost me hours of valuable time. I’m about ready to ask for a second year subscription for free or for a refund because of the amount of time im wasting on silly typos. CodeCademy please get it together!

this is really disheartening as someone trying to learn thinking im not capable then coming to find out the course was just poorly written.

3 Likes

I agree but it is also understandable why the React modules in the syllabus is not really helpful for us. React is a tough subject to learn so maybe the curriculum developers had a tough time to design easy-to-understand modules for us.
I believe they are trying their best and they need some time.
It is helpful if we consider to look at React documentations and watch several YouTube videos about React so at least we get some better ideas.

Thank you so much :blush:

1 Like

I think this part of step 3 might be wrong:

In App.js , define a function called onSelectVideoHandler() with a single string parameter called newVideo . Use newVideo to get a new source from VIDEOS and use this as an argument to setSrc .

In the source code you are changing the videos’ speed, not switching to another video, which seems consistent with the radio buttons’ labels. I find the ‘newVideo’ parameter name a bit confusing.

1 Like

Yes I agree. The right step should be:

In App.js , define a function called onSelectVideoHandler() with a single string parameter called :point_right:newSpeed :point_left:.
Use :point_right:newSpeed :point_left: to get a new source from VIDEOS and use this as an argument to setSrc .

Thank you for noticing the error.