Hi,
We are parsing the assetID from the SPC payload to identify the content on the server. However, we are getting different results for SPCs coming from iOS and from Safari.
We use the included reference clients for testing. Here's how we set the initData/create the requests:
iOS:
requestBytes = [loadingRequest streamingContentKeyRequestDataForApp:certificate
contentIdentifier:assetId
options:nil
error:&error];Safari:
initData = concatInitDataIdAndCertificate(initData, contentId, certificate);where concatInitDataIdAndCertificate is exactly as provided in the sample code.
In both cases, we use the sample streams with content/assetId "twelve".
For the SPC from iOS, we get the correct asset ID:
7477656c7665which translates to
twelveIf the request comes from Safari, we are seeing this:
e79db4e6b1a5e695b6000000Can you please advise?
is this also the reason why the Safari example includes the assetId as additional URL parameter which is not the case on iOS?
Thanks and best regards,
Tobias