onEnded property to automatically start playback of a second video after the first video completes.
Prerequisites
Set up your app to use the W3C Media Player. For more information, see Media Player Setup.Integrating the playlist
In App.tsx, modify as shown in the code examples. It converts the content to an array of contents and adds another media item entry. It then registers anonEnded prop, unloads the current content, and starts playback of next content when the onEnded event is triggered. The highlighted steps below are relevant to playing back a content playlist
Code examples
The following code examples show two ways to play non-adaptive content:- Using the
VideoPlayerAPI - Using the
Videocomponent

