Samsung Smart TV streaming MPEG DASH with PlayRead
<p>I try to play stream (MPEG-DASH with PlayReady) on Orsay TV (Samsung TV before Tizen). Unencrypted DASH is working fine. I'm trying to acquire licence strictly according to DRM Today manual (that is my DRM provider), but the playback doesn't start, and after a while I get rendering error, or no stream at all. CustomData is generated due the DRM provider specification and it works on other platforms and devices. It's base64 hashed to customDataBase64 due to the DRM provider's manual. </p>

<pre><code>&lt;object id="pluginPlayerSef" classid="clsid:SAMSUNG-INFOLINK-SEF" style="border:none; width:0px;height:0px;"&gt;&lt;/object&gt;
&lt;object id="pluginDRM" classid="clsid:SAMSUNG-INFOLINK-SEF"&gt;&lt;/object&gt;

var playerPlugin = document.getElementById("pluginPlayerSef");
var streamUrl = '...' + '|COMPONENT=HAS';
var laUrl = 'https://.../RightsManager.asmx';
var customData = {'userId': '...', 'sessionId': '...', 'merchant': '...'};
var customDataBase64 = 'eyJ1c2...';

var xmlData = '&lt;?xml version='1.0' encoding='utf-8'?&gt;' +
'&lt;PlayReadyInitiator xmlns='http://schemas.microsoft.com/DRM/2007/03/protocols/'&gt;' +
    '&lt;LicenseServerUriOverride&gt;' +
        '&lt;LA_URL&gt;' + laUrl + '&lt;/LA_URL&gt;' +
    '&lt;/LicenseServerUriOverride&gt;' +
    '&lt;SetCustomData&gt;' +
        '&lt;CustomData&gt;' + customDataBase64 + '&lt;/CustomData&gt;' +
    '&lt;/SetCustomData&gt;' +
'&lt;/PlayReadyInitiator&gt;';

playerPlugin.Execute("InitPlayer", streamUrl);
playerPlugin.Execute("SetPlayerProperty", 3, customDataBase64, customDataBase64.length);
playerPlugin.Execute("SetPlayerProperty", 4, laUrl, laUrl.length);
playerPlugin.Execute('StartPlayback', 0);                  
</code></pre>

<p>And I tried also another way to implement it:</p>

<pre><code>var pluginDRM = document.getElementById("pluginDRM");
pluginDRM.Open("PlayReadyDrm", "1.000", "PlayReadyDrm");
pluginDRM.Execute("ProcessInitiatorsFromXml", xmlData, xmlData.length);
pluginDRM.Execute("Start", streamUrl);  
playerPlugin.Execute("InitPlayer", streamUrl);
playerPlugin.Execute('StartPlayback', 0);
</code></pre>

<p>I tried the code above with and without the line pluginDRM.Execute("Start", streamUrl)  </p>

<p>As for component part above at the top, I tried all of these:</p>

<pre><code>var streamUrl = '...' + '|COMPONENT=HAS';
var streamUrl = '...' + '|COMPONENT=WMDRM';
var streamUrl = '...' + '|COMPONENT=HAS|DRM_TYPE=PLAYREADY';
var streamUrl = '...' + '|COMPONENT=HAS|DRM_TYPE=WMDRM';    
</code></pre>

<p>What am I doing wrong? Please help.</p>