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

Ability to move subtitle view #23

Closed
ghost opened this issue Jun 16, 2016 · 2 comments
Closed

Ability to move subtitle view #23

ghost opened this issue Jun 16, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 16, 2016

It would be great to have access to the subtitle view, in order to move it, e.g. when the video controls appears so that the controls don't block the subtitle view.

@imoreapps
Copy link
Owner

Great, got it.

@imoreapps
Copy link
Owner

imoreapps commented Nov 24, 2016

Now framework supports customization for subtitle render. How to do it?

  1. prepare yourself subtitle render view, such as UILabel or something else

  2. disable the built-in subtitle render component by setting property enableBuiltinSubtitleRender of FFAVPlayerController component to NO.

  3. load external subtitle by using openSubtitleFile of FFAVPlayerController component.

  4. render subtitle by yourself in FFAVPlayerControllerDidSubtitleChange:subtitleItem: delegate methods of FFAVPlayerController component.

That's it.

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

No branches or pull requests

1 participant