videojs-contrib-eme
videojs-contrib-eme copied to clipboard
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) - LG DEVICES
Hey Guys,
Anyone with experience on LG Devices (webos) using videojs, videojs-contrib-eme along with Dash and DRM (widevine and playready)?
I’m getting different results based on the videojs version I use. Worth to be mention that I have playback on chrome but no on the LG Device (Web engine Chromium 38).
If I use videojs 6.12.1 (I need to include videojs-contrib-eme, videojs-contrib-dash, dashjs) If I test on chrome I have playback but on the LG device I get this error:
VIDEOJS: ERROR: (CODE:5 MEDIA_ERR_ENCRYPTED) DRM: unable to create session! --Error generating key request -- InvalidAccessError
If I use videojs 7.6.5 (I just include videojs-contrib-eme since it already bundle VHS). If I test on chrome I have playback but on the LG device I get this error:
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported.
Any advice on this?
CODE: video.js 7.6.5 videojs-contrib-eme 3.5.0
import videojs from "video.js";
import "videojs-contrib-eme";
// docs says it include VHS it should support DASH, HLS etc
var configuration = {
src: 'https://server/file.mpd',
type: 'application/dash+xml',
keySystems: {
'com.widevine.alpha': 'https://server/licence.wv'
}
};
const videoTag = document.createElement('video');
container.appendChild(videoTag);
var player = videojs(videoTag);
player.ready(() => {
this.player.eme();
this.player.src(configuration);
this.player.play();
});
Did you end up finding a solution for this?
Did you end up finding a solution for this?
We are facing the same issue
It is worked by setting native options false
var player = videojs('videoTag', { html5: { nativeAudioTracks: false, nativeVideoTracks: false } });
@vinitgundeti that doesnt work. Probably this is related to old chrome version on which tizen/webos is built on.
Anybody found solution?