I develop app for samsung smart tv. Need to play dash and widevine video. I get from the server mpd and licenseUrl.
I tried use:
Shaka Player, dash.js, video-js - each of these players I was able to run videos in browser, but not on the smartTV app.
Shaka Player i use to start the video at tizen tv.
also i use
it works for video without widevine
function getESN() { var deviceId = null; try { var deviceId = document.getElementById("externalPlugin").GetESN("WIDEVINE"); if (!deviceId) { throw new Exception('GetESN is not supported. Please reboot the device and call to Samsung service center if the issue happens again.'); } if ((deviceId + '').substr(0, Math.min(deviceId.length, 2)) != 'SS') { throw new Exception('deviceId is not valid. Please reboot the device and call to Samsung service center if the issue happens again.'); } } catch (e) { alert("EXCEPTION(getESN):" + e); return null; } return deviceId; } var deviceId = getESN(); var url = 'urlToMpd|DEVICE_ID=' + deviceId + '|DEVICET_TYPE_ID=60|DRM_URL=licenseUrl|COMPONENT=HAS'; var player = document.getElementById('pluginPlayer'); player(url)
if you change in the url 'COMPONENT=WV' video will not work.
- samsung sent me an example AVPlay player and the video works there, but url not like I have
url: "http://***.wvm"
and I need
url: "http://***.mpd"
how do I enable video .mpd and widevine in samsung smart tv?