Your Digital Media Has Never Looked So Good

 
gomad
Topic Author
Posts: 45
Joined: Wed Nov 29, 2017 4:07 am

video node setting header is not working

Mon Aug 06, 2018 4:31 am

Hi,
I have a stream with widevine drm, i am doing the following (pseudo code):
drmParams = {
"keySystem": "widevine",
"licenseServerURL": "https://mylicenseserver.net"
}
ContentNode_object.streamformat = "dash"
ContentNode_object.url = "https://mydashmanifest.mpd?asdas"

'setting header and drm params
ContentNode_object.HttpHeaders = ["mydata:licensekey"]
ContentNode_object.drmParams = drmParams
m.video.content = ContentNode_object


I get the following error:
inside video state: error
inside video errorCode: -6
inside video errorMsg: ignored

I see that the license server is not getting the headers.
Any ideas?
regards,
Gokul M
 
coldrain
Posts: 26
Joined: Mon May 08, 2017 7:52 pm

Re: video node setting header is not working

Tue Aug 07, 2018 6:14 pm

You need to call m.video.AddHeader("headername", "header value") instead
 
gomad
Topic Author
Posts: 45
Joined: Wed Nov 29, 2017 4:07 am

Re: video node setting header is not working

Sun Aug 12, 2018 9:56 pm

this is what worked for me:
hvideo = CreateObject("roHttpAgent")
vheaders = {"h1":"value"}
hvideo.SetHeaders(vheaders)

and before setting the content
m.video.setHttpAgent(hvideo) ' settting headers

Who is online

Users browsing this forum: No registered users and 2 guests