简体   繁体   English

如何在三星智能电视中启用视频.mpd和Widevine?

[英]how do I enable video .mpd and widevine in samsung smart tv?

I develop app for samsung smart tv. 我为三星智能电视开发应用程序。 Need to play dash and widevine video. 需要播放破折号和宽屏视频。 I get from the server mpd and licenseUrl. 我从服务器mpd和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,dash.js,video-js-这些播放器中的每一个我都可以在浏览器中运行视频,但不能在smartTV应用程序上运行。 Shaka Player i use to start the video at tizen tv. Shaka Player我用来在tizen电视上播放视频。

also i use 我也用

  1. it works for video without widevine 它适用于没有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. 如果您在网址中更改“ COMPONENT = WV”,则视频将无法运行。

  1. samsung sent me an example AVPlay player and the video works there, but url not like I have 三星给我发送了一个AVPlay播放器示例,该视频在那里播放,但网址不像我

url: "http://***.wvm" 网址:“ http://***.wvm”

and I need 我需要

url: "http://***.mpd" 网址:“ http://***.mpd”

how do I enable video .mpd and widevine in samsung smart tv? 如何在三星智能电视中启用视频.mpd和Widevine?

According to Specs you have to use real TV device to test/play widevine DRM, Emulator doesn't supports widevine. 根据规格,您必须使用真实的电视设备来测试/播放Widevine DRM,而Emulator不支持Widevine。

you may use AVPLay API to play widevine DRM. 您可以使用AVPLay API播放Widevine DRM。 Check out SamsungDForum , A sample widevine play application is is provided here: 查看SamsungDForum,这里提供了示例vinevine播放应用程序:

TizenSampleGuide PlayerAVPlayDRM TizenSampleGuide PlayerAVPlayDRM

github link of the sample application: github link 示例应用程序的github链接github链接

Playing DASH .mpd format requires Adaptive Streaming 播放DASH .mpd格式需要自适应流

You may follow the TVDemoAvPlayer app from this git repository 您可以从此git存储库关注TVDemoAvPlayer应用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM