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

Subtitle functionality missing. #46

Open
krishnadrivemail opened this issue Dec 22, 2016 · 4 comments
Open

Subtitle functionality missing. #46

krishnadrivemail opened this issue Dec 22, 2016 · 4 comments

Comments

@krishnadrivemail
Copy link

I am using this media player to play videos from url and i also need to show captions but I am unable to do so.
How can we show subtitles using this media player?

@protyposis
Copy link
Owner

This player doesn't support subtitles, and I currently have no plans on adding it.

@krishnadrivemail
Copy link
Author

krishnadrivemail commented Dec 22, 2016 via email

@protyposis
Copy link
Owner

I can't give you details but I'd take a subtitle parsing library (or parse them myself), put the VideoView in a FrameLayout, add a TextView overlaying the ViewView for the subtitle display, and sync the subtitles to the video by periodically querying videoView.getCurrentPosition().

@protyposis
Copy link
Owner

v4.4.0 adds a Cue API that can be used to set cue enter and exit points for subtitles and receive events instead of polling getCurrentPosition(). Subtitle parsing and rendering still needs to be implemented externally.

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

No branches or pull requests

2 participants