-
Notifications
You must be signed in to change notification settings - Fork 133
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
playing MKV VOD with multi Audio track #1388
Comments
Hi, I'm not sure I understand your use case:
If it's the (1), this is what we call const player = new RxPlayer({ videoElement: YOUR_VIDEO_ELEMENT_TAG });
player.loadVideo({
transport: "directfile",
url: URL_TO_YOUR_MKV_FILE,
});
// Let's just list audio and text tracks once loaded
player.addEventListener("playerStateChange", (state) => {
if (state === "LOADED") {
const audioTracks = player.getAvailableAudioTracks();
const textTracks = player.getAvailableTextTracks();
console.log("audio tracks:", audioTracks);
console.log("text tracks:", textTracks);
}
}); If it's the (2), we should, yet again the container format has to be understood by the browser. |
its a direct file but in xtream code iptv server, so from media source extension link is similar to this : http://server:port/movie/username/password/vod.mkv Any change for this ? |
I'm sorry, I'm unsure of what "media source extension link" means here. To me "Media Source Extensions" refers only to a browser-side API specification, and I thus don't understand how a remote resource could be qualified as "MSE". Does your link return an mkv file or a more complex response? Is it qualified as "MSE" because a player is expected to perform range requests on it (or perhaps setting up even more complex headers/url)? Does it work if you create a page with a video element pointing to that link: <video src="http://server:port/movie/username/password/vod.mkv"></video> If it does, you can just test by relying on the |
I've successfully implemented multi-audio track support using RxPlayer from the CDN at https://unpkg.com/[email protected]/dist/rx-player.min.js. However, I'm facing challenges with enabling subtitles. Could someone provide a comprehensive example that demonstrates using RxPlayer for direct file playback with both multiple audio tracks and subtitle support? Additionally, I'm interested in best practices for video optimization, including features like seeking, quick forward/backward (+10 seconds/-10 seconds), and automatic resumption after disconnection. |
Nice to hear! Did you play the corresponding mkv files (in which case does it work on WebOS?) or another file format?
Our track selection tutorial should have you covered: https://developers.canal-plus.com/rx-player/doc/Getting_Started/Tutorials/Selecting_a_Track.html
To seek in general, you can just rely on our
If you don't want to fail on error on disconnection, you can just update the rxPlayer.loadVideo({
// ...
requestConfig: {
// Retry both segment and manifest requests until they are reachable
segment: { maxRetry: Infinity },
manifest: { maxRetry: Infinity },
},
}); The RxPlayer has then an algorithm to determine whether a retry makes sense after a request error (e.g. it makes sense on disconnection but it makes less sense after an http 403) and will have retry mechanisms preventing a CDN from being too much solicited on consecutive retry (through what's called a "truncated exponential backoff"). |
I can confirm that playback works on WebOS without any issues. Additionally, when the Experimental Web Platform features are enabled in edge://flags/, MKV files with sound play well in Microsoft Edge. However, I've noticed that Chrome does not support this playback scenario for MKV files with sound, even with experimental features turned on. for subtitles , it does not show even in the adnaced demo page hosted for rxplayer |
any update ? |
Hi
Does RX-player support playing mkv link from MSE source with multi audio and subtitles ? consider using this in webos web based app
The text was updated successfully, but these errors were encountered: