Skip to content

feat(ios): Support for external subtitles on HLS streaming #4577

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

danielbady
Copy link

Summary

Created a delegate to replace the m3u8 file and add in external subtitle url so that they can be played with the video.
Fixes #1511

Motivation

Allows the use of external subtitles. May also be extended to change the timings of subtitles

Copy link
Collaborator

@KrzysztofMoch KrzysztofMoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, Thank you for your PR!
"Logic" part of this is looking good to me. But I think it's too "intrusive" - I don't like creating PlayerItem just for this feature (as it does not follow convention of codebase). I would create new class for AVAssetResourceLoaderDelegate and some "Utils" class for rest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

External subtitle support for HLS video Streaming on ios (.m3u8 format)
2 participants