Skip to content

EdoTrotta/fx-video-player-challenge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FX Video Player Challenge

Live demo of completed full challenge

https://fx-video-player-challenge.surge.sh/

Starter Code

The initial code is basically the solution of what we did in the last video player training session.

We have a working video player with:

  • very basic custom controls, just play/pause button
  • ability to load/destroy player (simulating a normal playback session)
  • multiple subtitles support
  • custom subtitle displayer

Tasks

  1. Add the functionality to jump 5s with the ff/rewind buttons. The buttons and the handlers for the click events are already set up for you.

2. The UI has elements to show the current time and the duration of the video, but they don't get updated and just show 00:00. Fix it!
3. Add multiple audio tracks support. Do a very similar thing to what we did with the subtitle tracks, but this time with the audio tracks.
  • tips:
    • use the method getAudioLanguages() from Shaka Player in a very similar fashion to how we use Shaka's getTextTracks
    • You'll find some guidance in shaka.js on the steps you must follow to pull the audio tracks from Shaka Player and push them to the UI.
  • resources:

BONUS: The client wants to launch the product to a new device with very low specs called crapDevice. We start testing and we find that after a few seconds playing a video, the app becomes unresponsive. The only way to get the app running again is to reboot the device.

Your task is to test if capping the resolution of the video to low resolution (e.g. 180x144 available in the manifest) will fix the issue.

We only want this resolution cap when the url parameter deviceType=crapDevice.

low_res_segments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.1%
  • CSS 16.9%
  • HTML 16.0%