Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Out-of-band Licenses

Explorer ,
Jan 23, 2013 Jan 23, 2013

This question was posted in response to the following article: http://help.adobe.com/en_US/as3/dev/WS5262178513756206-78d23af81315fed2b54-8000.html

TOPICS
ActionScript
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 23, 2013 Jan 23, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 23, 2013 Jan 23, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 23, 2013 Jan 23, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 23, 2013 Jan 23, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 23, 2013 Jan 23, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 23, 2013 Jan 23, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 24, 2013 Jan 24, 2013

Randy got any news on this one?

Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 24, 2013 Jan 24, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 25, 2013 Jan 25, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 25, 2013 Jan 25, 2013
LATEST

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines