Skip navigation
Currently Being Moderated

Using the DRMAuthenticateEvent class

Jul 24, 2012 11:08 AM

 
Replies
  • Currently Being Moderated
    Jul 24, 2012 11:08 AM   in reply to Community Help

    I tried the last code above.... using the VideoDisplay component.... but I get an error on the line:

     

    videoStream.setDRMAuthenticationCredentials(uName, pWord, "drm");

     

    The error is 1061: Call to a possibly undefined method setDRMAuthenticationCredentials through a reference with static type mx.controls:VideoDisplay.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2012 2:22 PM   in reply to streamworksaudio

    It looks like the final example left out some of the previous code. Maybe try adding the following to see how it works:

     

    var connection:NetConnection = new NetConnection();

    connection.connect(null);

     

    var videoStream:NetStream = new NetStream(connection);

     

    videoStream.addEventListener(DRMAuthenticateEvent.DRM_AUTHENTICATE,

                                drmAuthenticateEventHandler)

     

    private function drmAuthenticateEventHandler(event:DRMAuthenticateEvent):void 

    {

        videoStream.setDRMAuthenticationCredentials("administrator", "password", "drm");

    }

     

     

    HTH,

    Randy Nielen

    Senior Content and Community Manager

    Adobe

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points