Hi!

Ok, managed to get it working online.

Here's to what I've achieved:


---------------------------
Security issue is well described in this post (thanks thebluepipe!):
http://www.thebluepipe.com/Developer/tutorials/as3/Crossdomain-Video-Snapshot-Fixing-BitmapData-draw-Security-Sandbox-Violation.html

Short paste (if someday that page will die):

Step 1 - Setting up your Cross-Domain policy
Create a new XML file, name it crossdomain.xml, add the following
code:

<?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="*"/>
</cross-domain-policy>

Save your file and uploaded to your server in the root site directory.
file should be accessible at http://www.mydadgumwebsite.com/crossdomain.xml

Step 2 - Setting up Flash Media Server
» Modifying Application.xml

Inside the <Client> tag add the following child:

<Access>
    <VideoSampleAccess enabled="true">/</VideoSampleAccess>
</Access>

Other siblings should be <Bandwidth> and/or <MsgQueue>

» Modifying main.asc

Copy the main.asc from root\Program Files\Adobe\Flash Media Server
3\samples\applications\live

Under the application.onConnect function there's a commented line that
says: p_client.videoSampleAccess = "/"; Remove the comments, save the
file and you're good to go. This means we allow raw video access to
all the streams found inside the vod folder.

Restart your Flash Media Server


---------------------------
Away3d VideoMaterial:
In here I've got some problems because I'm not familiar and don't know
the big picture of Away3D code, so I'll only say what I've changed and
have to ask the Away3D Team to do it right :)

- uncommented the RTMP part
- switched the order of init: rtmp before file (to prevent var file
starting stream)
- I can't get updateDimensions(); working, so I draw a rect in
sprite.graphics.

There will be still some security errors but the stream will
eventually display in material. I just can't seize Away3D ;)

I will try to find some time to do the material right, but for now my
explanations is the only thing.

Hope I'd helped.

Regards
Paweł Stanisławczuk

On Mar 4, 10:41 pm, Jensa <[email protected]> wrote:
> Cool!
>
> J

Reply via email to