-
Notifications
You must be signed in to change notification settings - Fork 46
audio/subtitles #187
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
Comments
As I think you did, I read apple article: I think we could work with ModernAVPlayer Plugin System (
In this case, I just have to provide in For information, add PlayerPlugin is done on ModernAVPlayer init what do you think ? |
As I understand I can cast PlayerMedia to PlayerMediaItem in this method, right? Not quite get why there are two separate, however, plugin system will work for me, I was just thinking that this feature could be useful for others potentially and worth implementing internally |
ok, I just created a new branch -> you can now use it to access AVPlayerItem and AVAsset when item is loaded and call all methods suggested by Apple I suggest you create a new GitHub open source repository to create a swift package for the plugin. (can be access by anybody, to use or update it)
If you have any question, please ask ! PS: do not pay attention to unit tests, I had to adjust them... |
HI @yaroslavlvov , can you share a url of a media with subtitle or alternative audio tracks ? I may try to help if I have some time |
@raphrel the one that you used for demo should have both |
Uh oh!
There was an error while loading. Please reload this page.
I want to simplify audiotracks/subtitles selection
Subtitles
var currentSelectedSubtitle: ModernSubtitle { get }
getAvailableSubtitles() -> [ModernSubtitle]
selectSubtitle(ModernSubtitle)
AudioTacks
var currentSelectedAudioTrack: ModernAudioTrack { get }
getAvailableAudioTracks() -> [ModernAudioTrack]
selectAudioTrack(ModernAudioTrack)
Where is the best place to implement this according to the current implementation
Guessing as part of
PlayerMediaItem
Protocol and cast it when gettingcurrentMedia
from ModerAVPlayer instanceThe text was updated successfully, but these errors were encountered: