plyr
plyr copied to clipboard
Add control for audio tracks (for streaming libraries and possibly external audio files)
I've video with different translates. How can I choose between different vioce-overs, like I can do that with subtitles?
It's not supported in HTML5 video, but the streaming libraries can do it. https://github.com/sampotts/plyr/wiki/FAQ#1-does-plyr-work-with--
Changed to a feature since it would be nice with a control for it in cases where it's supported. This is not a high prio however, and it's a long way to go.
This feature would be greatly appreciated. I need to have a youtube live stream on my website with a different audio track/voiceover. I believe this would be the first player to support such feature. Thanks
This is most important hls setting in any player. For this reason most people have to use jwplayer. I want to use and support this player but our all items has mutl audio settings.
If ur ideas will change any time about multi audio menu support, i will be using and supporting this project in out systems.
Any update on this?
Good evening, are there any plans to implement the multi-track audio feature? Especially important in content with simultaneous translation. Thanks.
+1
Any update on this?
Any update on this?
Updates?
+1
+1
+1
If anyone is interested, I managed to implement a simple interface that will add the audio tracks to settings. I used @Ponywka 's PR and added support for basic HTML5 video. The changing track itself in settings does not change media that is played (until you are not using DASH) but you are able to add onChange function as with quality and implement changing media track yourself (for example with HLS.js).
Available as npm i @antik-web/plyr
All you need to do is add these to plyr's config:
new Plyr(videoHtmlElement, {
audioTrack: {
options: ['sk', 'en', 'us'] // array of strings,
selected: 'sk',
onChange: (e: any) => updateAudio(e), // e is value of the selected label (string)
showUnrecognizedLabel: true, // if you want to show 'Unrecognized (en)' (if not defined in i18n) instead of 'en'
},
i18n: {
'audioTrack': 'Language',
audioTrackLabel: {
'en': 'English'
}
}
});
@frankykubo Can you provide me the script please? I'm not familiar with npm or node.js. I'm using plyr in html only. So I need the script file. Thanks in Advance!
@frankykubo Can you provide me the script please? I'm not familiar with npm or node.js. I'm using plyr in html only. So I need the script file. Thanks in Advance!
You can download artifacts HERE. I tested it only in Vue using JS, but I hope you can make it work your way too! Good lock.
@frankykubo Is'nt The Provided Release is same as the Your Modified repo? Maybe I didn't make it clear. I want something like: <script src="https://cdn.plyr.io/3.7.8/plyr.polyfilled.js"></script> This. The Plyr.Plyfilled.js file which can be directly run in browser.
@flixadmin I don't have it on any CDN. You have to download build-artifacts.zip and then open the ZIP, get the file you need (in your case plyr.polyfilled.js and store it on your web's. Then, you can use it as <script src="your-web-location/plyr.polyfilled.js"></script>.
Thanks a lot! I found it. I'm putting a like to the file here for anyone who needs it: https://gist.github.com/flixadmin/8052ef992a44543596129886a89dbe9a
@flixadmin GitHub Pages may be better