-
Notifications
You must be signed in to change notification settings - Fork 27
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
Audio tracks #16
Comments
@halibegic this should work https://jsfiddle.net/ohovkrbv/2/ but it's not I'm looking into to understand (but at least you can see how it can be done) |
@halibegic it works :P you just need to: First gather the tracks: player.on(Clappr.Events.PLAYER_PLAY, function(){
var clapprShaka = player.core.getCurrentContainer().playback
var options = clapprShaka.audioTracks;
console.log(options);
}) And then create an UI (binding onClick) to change it:
|
I will try :) Thank You |
I don't know why but when stream is played for the first time I need to click two times in order to change audio https://jsfiddle.net/halibegic/ohovkrbv/12/ |
I'll check it, I also would point you to this project https://github.com/clappr/clappr-level-selector-plugin it might inspire you. |
@halibegic can you test with the newer version? |
How to call audio API in order to list / set audio tracks. Example: https://jsfiddle.net/halibegic/ohovkrbv/
P.S stream "angel-one" contains the following tracks:
The text was updated successfully, but these errors were encountered: