Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dugsinclair
Level 7

PlayReady w Dash

My video content is DRM protected via PlayReady. I am not able to get it to play. Can someone verify my code looks correct for PlayReady?

 

Im tried it on multiple versions of Roku. In most cases its just a black screen. 

 

  sub init()
    metrics = CreateObject("roDeviceInfo")
    print "test"
    print metrics.GetModel()
    print metrics.GetDrmInfo()
    m.top.setFocus(true)
    setVideo()
  end sub

  function setVideo() as void
    videoContent = createObject("RoSGNode", "ContentNode")
    videoContent.url = "https://movie.mpd"
    videoContent.title = "Test Video"
    videoContent.streamformat = "dash"
    videoContent.encodingType = "PlayReadyLicenseAcquisitionAndChallenge"
    videoContent.encodingKey = "https://pr-keyos.licensekeyserver.com/core/rightsmanager.asmx" + "%%%" + "PEtle...."



    m.video = m.top.findNode("musicvideos")
    m.video.content = videoContent
    m.video.control = "play"
  end function
  
  ]]>
0 Kudos
1 Reply
dugsinclair
Level 7

Re: PlayReady w Dash

Here is the error msg I am getting:

LOG - VideoView - ERROR - Code 9, Message: buffer:loop:drm.prdy.licag.http.errorSmiley Very HappyRM exception: Http error 500:extra:clip_id:0:source:buffer:loop:drm.prdy.licag.http.error

0 Kudos