Closed Eeel-12 closed 1 year ago
Hi,
Can anyone point me what i'm missing please ?
It's difficult to say what is happening here.
Can you show debug logs of the first few seconds of playbacks (can be enabled by doing RxPlayer.LogLevel = "DEBUG"
)? It will at least indicate why only 3 requests are linked to subtitles yet much more of them are linked to audio and video (which could also be a normal occurrence, for example due to lengthier text segments).
Another question how can i get the player buttons for caption and audio track selection to appear like in the demo ?
I'm not sure that I understand what you mean, as you already understood how to get the different available audio and text tracks.
If you mean how to display the exact same buttons, you will have to re-create them in your page sadly, as the RxPlayer does not provide a UI. It is only the core parts of the player (allowing to play a content, changing tracks and qualities, content decryption...), which will need to be integrated in an application that will provide the user interface itself. The demo is just an example implementation, to show how the RxPlayer works and what it can do, but it is not importable.
We thought about providing a default UI, but it necessitates a lot of work and most applications already define their own interface anyway, so for now we prefer to focus on core library features.
@peaBerberian thanks for your feedback, my apologies i missed the notification email. I'll will follow your advices as soon as possible and give the results here.
Hello,
I can't figure out how to show subtitle vtt text track.
my mpd file created with MP4Box/GPAC 2.0:
GPAC commands:
Html / javascript code:
Chrome console output:
The file play fine i'm able to change the audio track with player.setAudioTrack('audio-eng'); but text track don't show at all.
In Chrome network TAB i can see the test_track6__dashinit.mp4 file being read but very few times, around 3 occurences of this track appear there. Video and audio xhr requests appear constantly.
Can anyone point me what i'm missing please ? I'm able to play the same file with dash.js, audio video and text track works fine, caption and audio buttons are shown with ControlBar.js
Another question how can i get the player buttons for caption and audio track selection to appear like in the demo ?
Any feedback appreciated. Note that i'm not an expert in the subject of DASH streaming.
p.s: What i'm trying to achieve is play splited mp4 file with one video track two or more audio tracks, and multiple subtitles(fr full and fr forced and eng full and eng forced).