Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update VideoPlayer.tsx #276

Closed
wants to merge 3 commits into from
Closed

Update VideoPlayer.tsx #276

wants to merge 3 commits into from

Conversation

Aryam2121
Copy link
Contributor

@Aryam2121 Aryam2121 commented Mar 26, 2024

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. problem solve of #267

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.
@Aryam2121
Copy link
Contributor Author

Sir check this also >

I've added type annotations where necessary to improve clarity and type safety.
@hkirat hkirat closed this Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants