Anybody succeeded with displaying RTMP in VideoMaterial?
Found this post:
http://groups.google.com/group/away3d-dev/browse_thread/thread/5dafeb80983c7346/09495fdf77cc1d4a#09495fdf77cc1d4a
Author said that he sent source code with server config to Away3D
team? Where Can I find it?
Regards
Paweł Stanisławczuk
I originally intended to make a RTMP material for Away3D as well, but
back then I didn't have a server to test this on. I now have a testing
server provided by Influxis and they recently changed the config so I
can start making the material. Ideally I want to integrate this into
the existing VideoMaterial, but I haven't had the time to do this yet.
If you have a chance to do this, feel free to post it back to the
group and I'll test/add it asap.
J
On Mar 4, 11:33 am, Paweł Stanisławczuk
<pawel.stanislawc...@gmail.com> wrote:
> Hi!
>
> Anybody succeeded with displaying RTMP in VideoMaterial?
>
> Found this post:http://groups.google.com/group/away3d-dev/browse_thread/thread/5dafeb...
I've succeeded with localhost FMS install, few modifications to
VideoMaterial.
Need more time to test with online RTMP feed.
I will try it tommorow.
greets
Paweł
On Mar 4, 2:07 pm, Jensa <jens...@gmail.com> wrote:
> Hi Pawe³,
> Nope. The biggest problem with this is actually all the restrictions
> that Adobe have added to the drawing of bitmaps (for DRM/copyright
> reasons). All materials require that you can use the bitmapdata.draw
> method. By default, Flash will not allow you to do this for RTMP
> (http://justin.everett-church.com/index.php/2007/12/07/wiwtw-
> bitmapdatadraw-and-rtmp-snapshotting/) but you can get around it by
> setting a config-flag on the FMS server streaming the video (http://
> forums.adobe.com/thread/422391).
>
> I originally intended to make a RTMP material for Away3D as well, but
> back then I didn't have a server to test this on. I now have a testing
> server provided by Influxis and they recently changed the config so I
> can start making the material. Ideally I want to integrate this into
> the existing VideoMaterial, but I haven't had the time to do this yet.
>
> If you have a chance to do this, feel free to post it back to the
> group and I'll test/add it asap.
>
> J
>
> On Mar 4, 11:33 am, Pawe³ Stanis³awczuk
>
>
>
> <pawel.stanislawc...@gmail.com> wrote:
> > Hi!
>
> > Anybody succeeded with displaying RTMP in VideoMaterial?
>
> > Found this post:http://groups.google.com/group/away3d-dev/browse_thread/thread/5dafeb...
>
> > Author said that he sent source code with server config to Away3D
> > team? Where Can I find it?
>
> > Regards
> > Pawe³ Stanis³awczuk
J
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 <jens...@gmail.com> wrote:
> Cool!
>
> J