I am using AVPlay to play DRM contents. I need to set a HTTP header for the license URL. How can I do it?
webapis.avplay.setDrm('PLAYREADY', 'SetProperties', angular.toJson({
LicenseServer:entitlementData.LicenseURL,
'X-AxDRM-Message':entitlementData.DRMToken
}));
I need to set X-AxDRM-Message in the HTTP header
As you may already know, angular.toJson() and JSON.stringify() have some significant difference.
Difference between toJSON() and JSON.Stringify()
By Checking out the Code example on this API reference, it seems JSON.stringify() should be Used.
http://developer.samsung.com/tv/develop/api-references/samsung-product-api-references/avplay-api
You may try this format on your source code.
In addition, This document contains some discussion on HTTP header, though its about Apple tvOS but may of your use I guess.
Sending and Receiving AVPlayer HTTP Headers