-
Notifications
You must be signed in to change notification settings - Fork 9
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
HLS on Tizen #18
Comments
I have this in my Player scene:
// ...
play(url, options) {
this._video.prepare(url, options);
}
// ...
_initVideo() {
this._video = app.device.createStatefulVideo();
// chrome "fix" - it won't autoplay anything anymore if it ain't muted...
if (app.isDevicePc()) {
this._video.setMuted(true);
}
this._video.once(this._video.EVENT_READY, () => this._video.play());
this._video.on(this._video.EVENT_ERROR, () => this._onError());
}
// ... and this in the main application.js: // ...
/**
* Plays the provided HLS m3u8 playlist
*/
loadPlayerScene(streamUrl) {
const player = this.getLayerManager().getLayer('player');
return this.getSceneOpener().open(player, () => {
player.play(streamUrl, {
[PrepareOption.TYPE]: MediaType.HLS
});
});
}
// ... and it works perfectly fine. Using the latest official All this is, of course, only helpful if you are trying to test it via emulatos. If it's about the real device, then it won't help much. The only thing that comes across my mind is if your device DUID is not linked to the distributor certificate or if you need to open Device Manager and right click the device > permit to install applications. P.S. maybe this issue should be moved to zombiebox-platform-tizen issues |
@l1bbcsg @reeFridge @nomean42
Hello, trying to play HLS on tyzen
this will work in HTML and Webos but not on Tyzen.
Could you please send me a working hls on tyzen sample ?
Thank you
The text was updated successfully, but these errors were encountered: