Roku Developer Program

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

Problem with DRMPARAMS on ContentNode

Hi!, I'm having problems assigning the drm params to a content node, when I show the content node on console, says that "DRMPARAMS: invalid". Does anyone have the same problem? all the other fields are correct.
Thanks!


This is my code:
           item = createObject("RoSGNode","ContentNode")
            'commented for debugging
            'item.SetFields(itemAA)
            
            item.Actors = itemAA.Actors
            item.Categories = itemAA.Categories
            item.Description = itemAA.Description
            item.Directors = itemAA.Directors            
            item.HdBackgroundImageUrl = itemAA.HdBackgroundImageUrl
            item.HdPosterUrl = itemAA.HdPosterUrl
            item.ReleaseDate = itemAA.ReleaseDate
            item.StreamFormat = itemAA.StreamFormat
            item.Streams = itemAA.Streams
            item.Title = itemAA.Title
            item.Url = itemAA.Url
            item.EncodingKey = itemAA.EncodingKey
            item.EncodingType = itemAA.EncodingType
            
            if itemAA.doesExist("drmParams")
                'info only for demostration
                drmParams = createObject("roAssociativeArray")
                drmParams.name = "Verimatrix"
                drmParams.authDomain = "auth-value-from-streaming-provider"
                drmParams.serializationUrl = "hostname-url-from-streaming-provider"
                
               item.DRMPARAMS = drmParams
                ? "drm on parse"            
                ? item                
            end if         
0 Kudos
1 Reply
jmendoza
Level 7

Re: Problem with DRMPARAMS on ContentNode

Ok, it was firmware related, updated to 9.0 and I can see the array now.
0 Kudos