Hello,
We have wowza server 3 on a windows 2008 x64 pc by port 80 with:
Application.xml
<Client>
<IdleFrequency>-1</IdleFrequency>
<Access>
<StreamReadAccess>*</StreamReadAccess>
<StreamWriteAccess>*</StreamWriteAccess>
<StreamAudioSampleAccess>*</StreamAudioSampleAccess>
<StreamVideoSampleAccess>*</StreamVideoSampleAccess>
<SharedObjectReadAccess>*</SharedObjectReadAccess>
<SharedObjectWriteAccess>*</SharedObjectWriteAccess>
</Access>
</Client>
Crossdomain.xml
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" to-ports="*" />
<site-control permitted-cross-domain-policies="all"/>
</cross-domain-policy>
And our As3 application on the lan with:
At main class:
Security.loadPolicyFile( "http://192.168.1.69/crossdomain.xml" )
At videoPlayer class:
private function init():void
{
_playerSprite = new MediaPlayerSprite()
_playerSprite.mediaPlayer.addEventListener( MediaPlayerStateChangeEvent.MEDIA_PLAYER_STATE_CHANGE, onStateChange )
var resource:StreamingURLResource = new StreamingURLResource( "http://192.168.1.69:80/vod/mp4:mainstream.mp4/manifest.f4m", StreamType.LIVE_OR_RECORDED )
var f4mMedia:F4MElement = new F4MElement( resource )
_playerSprite.media = f4mMedia
addChild( _playerSprite )
}
private function onStateChange( evt:MediaPlayerStateChangeEvent ):void
{
if( evt.state == "playing")
{
_videoBitmapData = new BitmapData ( _video.width, _video.height, false, 0x000000 )
_timer.start()
}
}
private function onTick( evt:TimerEvent ):void
{
try
{
_videoBitmapData.draw( _playerSprite )
}
catch (err:Error)
{
trace("error: " + err.message)
}
}
Well, the video plays fine, but onTick function trhows “Error #2123: Security sandbox violation: BitmapData.draw” every time the _timer fires.
What are we missing?
Thanks.