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

disable airplay when sideloaded captions #1304

Merged

Conversation

ashnfb
Copy link
Contributor

@ashnfb ashnfb commented Oct 25, 2018

For sideloaded captions on iOS, we have to use an AVMutableComposition. Unfortunately AVMutableComposition is not playable on Airplay. This code turns off video playback (sets external playback to false).

Additional check on textTracks also returns the default AVPlayerItem if textTracks is not null, but is empty.

@cobarx
Copy link
Contributor

cobarx commented Nov 5, 2018

Looks good. I would add a note in the textTracks docs covering this limitation so developers know to expect it.

@ashnfb
Copy link
Contributor Author

ashnfb commented Nov 26, 2018

@cobarx note for textTracks issue with airplay added to readme. PR ready for merge.

@cobarx
Copy link
Contributor

cobarx commented Dec 6, 2018

Thanks for making the change, I made a few slight tweaks to the wording to make it a bit more clear. Glad you got this fixed!

@cobarx cobarx merged commit 8119ced into TheWidlarzGroup:master Dec 6, 2018
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