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

Problem with DRMContentData in ActionScript3

New Here ,
Jan 29, 2014 Jan 29, 2014

Hello,

I'm trying to create web video player to play DRM protected content. However, I have a problem reading DRM metadata from video file, or .metadata file as well. I've tried to do the same thing in AIR with same file, I've got example from help.adobe.com and it works well - it authenticates, gets voucher and plays video.

Here is my code:

var metaLoader: URLLoader = new URLLoader();

var metadata: DRMContentData;

var metaUrl: String = "url_to_my_file";

var metaRequest: URLRequest = new URLRequest(metaUrl);

metaLoader.dataFormat = URLLoaderDataFormat.BINARY;

metaLoader.addEventListener(Event.COMPLETE, onMetaLoad);

metaLoader.load(metaRequest);

function onMetaLoad(event: Event): void {

          try {

                    metadata = new DRMContentData(metaLoader.data);

          } catch (error: Error) {

         trace(error.toString());

          }

}

When I'm trying to trace properties from metadata, I get all nulls (i.e. serverURL, domain and etc.). I'm stuck on this problem and can't find solution for 3 days.

Thanks in advance,
Andrew

TOPICS
ActionScript
232
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
no replies

Have something to add?

Join the conversation