April 2020
Intermediate to advanced
716 pages
18h 55m
English
When a user selects to set the Autoplay toggle to ON, the functionality desired here is that when a video ends, if autoPlay is set to true and the current related list of media is not empty, PlayMedia should load the media details of the first video in the related list.
In turn, the Media and MediaPlayer components should update with the new media details, start playing the new video, and render the controls on the player appropriately. The list in the RelatedMedia component should also update with the current media removed from the list, so only the remaining playlist items are visible.
In order to handle this autoplay behavior across the PlayMedia component and its child components, PlayMedia passes a ...
Read now
Unlock full access