-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The handleChapterChange function is added to handle the chapter change event and refresh the video player accordingly. The initializePlayer function sets the initial playback rate to 1X and initializes the video player with the specified attributes. The useEffect hook is used to trigger the initialization of the video player when the mpdUrl or subtitles prop changes.
- Loading branch information
Showing
1 changed file
with
70 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters