Copy link to clipboard
Copied
This question was posted in response to the following article: http://help.adobe.com/en_US/as3/dev/WS5262178513756206-78d23af81315fed2b54-8000.html
Copy link to clipboard
Copied
I've been trying to get an AIR osmf offline player to play a drm signed file (which online works). I managed to save the voucher to a file in the hard drive, but when i try to play the video without an internet connection, and use the saved voucher using storevoucher method, i get an error message: ReferenceError: Error #1069: Property storeVoucher not found on flash.net.drm.DRMManager and there is no default value.
AIR version 3.5.0.1060
http://forums.adobe.com/message/5015855#5015855
Copy link to clipboard
Copied
Are you running it with file://// or http:// ? Flash Player has different sandboxing when you use the file protocol.
Let me know if that doesn't work and I'll drag in someone who knows what they're taking about. 🙂
Regards,
Randy Nielsen
Senior Content and Community Manager
Adobe
Copy link to clipboard
Copied
Randy, I'm working with offline content, I got the video file stored locally, the same fot the token bytes (in a file). I'm not getting a security error, it looks like that "DRMManager" class has no "storeVoucher" method defined, even though the documentation states it does since AIR 3.0.
Thanks for the quick response!
Martin
Copy link to clipboard
Copied
Hi Martin,
One more stab and then I'll e-mail some people:
The error says "Error #1069: Property...." so I'm wondering if your code might have it as a property, not a method. I know it's a long shot, but can you check?
Also, I checked the source code and the storeVoucher method is there.
Let me know how it goes.
-randy
Copy link to clipboard
Copied
Randy, I believe it is a method, but the error claims it is a property.. Also as you say the documentation shows it is a property. I got the stack for you:
ReferenceError: Error #1069: Property storeVoucher not found on flash.net.drm.DRMManager and there is no default value.
at Main/loadVoucher()
at Main/drmManagerStart()
at Main()
this is the line which makes the whole thing explode:
DRMManager.getDRMManager().storeVoucher(data);
data is a bytearray containing the voucher loaded from a file.
I hope this helps narrow down the issue
Thanks!
Martin
Copy link to clipboard
Copied
OK. I'll e-mail some people and ask them to look at this thread. Meanwhile, a few suggestions, although you've probably been through all this:
* I looked at Using the DRMManager class and it talked about Voucher management.
* Pre-loading vouchers for offline playback seemed to have some good info, too
HTH,
-Randy
Copy link to clipboard
Copied
Randy got any news on this one?
Thanks!
Copy link to clipboard
Copied
Hi Martin,
I asked someone to look at this thread and will ping him again.
Meanwhile, would it be possible for you to post the relevant code snippets?
Regards,
-Randy
Copy link to clipboard
Copied
Hi Martin,
Here is what the developer said:
"storeVoucher is a newer API (starting AIR 3.0 I think) so maybe when he compiled his swf he targeted an older AIR version. " I think that this means you should
Ensure your xmlns is set to http://ns.adobe.com/air/application/3.0 or higher (since you're using SDK 3.5, I recommend setting it to 3.5.
Maybe check to see if you're specifying swf-version in your compile. It should be set to 13 or higher (18 for AIR 3.5)
HTH,
-Randy
Copy link to clipboard
Copied
Randy, swf-version solved the issue! thanks!
But I'm now having problems with the saved voucher... Should a voucher saved in the fylesystem, and then loaded in a bytearray and stored using storevoucher work offline?
Perhaps i misunderstood the whole concept of storevoucher..
Thanks!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now