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.
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
North America
Europe, Middle East and Africa
Asia Pacific