[Papervision3D] RTMP videostream as material

Patrick Pietens patrick at flashaddict.nl
Mon May 14 19:32:20 EDT 2007


John,

 

I uploaded a demo to
http://backstage.flashaddict.nl/papervision/videomaterial/

You can download the source from
http://backstage.flashaddict.nl/papervision/videomaterial/source.zip

 

There are some issues/to-do's. 

 

I looked at all the Material classes inherited by MovieMaterial but couldn't
find out how Papervision updates the texture every frame for an animated
MovieClips. There is a possibility to set the "animated" flag on initObject
to true, but it seems MaterialObject3D doesn't look at that. It always sets
the "animated" flag to false. I assume this feature which is not yet
included in Papervision. 

 

So I created a timer class which updates the texture every frame of the
video. At this moment the timer assumes the video has 25 FPS. This because
it seems that the NetStream isn't responding to the onMetaData handler
(Could someone please tell me why Adobe didn't use listeners?).

 

At this moment it is only possible to use the Video object. I think it will
be cool and appreciated if we add the possibility to use the FLVPlayback
component as well.

 

Cheers!

 

 

- - - - - - - - - - - - - - - - - - - - - - - - - -

 

The contents of this message are confidential and only intended for the eyes
of the addressee(s). Others than the addressee(s) are not allowed to use
this message, to make it public or to distribute or multiply this message in
any way. Flashaddict cannot be held responsible for incomplete reception or
delay of this transferred message.

 

 

  _____  

From: Papervision3D-bounces at osflash.org
[mailto:Papervision3D-bounces at osflash.org] On Behalf Of John Grden
Sent: maandag 14 mei 2007 21:27
To: Papervision3D at osflash.org
Subject: Re: [Papervision3D] RTMP videostream as material

 

SWiggity!!

\m/

On 5/14/07, Patrick Pietens <patrick at flashaddict.nl> wrote:

Hi John,

 

Love to collaborate!  

I hope to find some time tonight to work on the class. Otherwise expect it
tomorrow in your mailbox.

 

Cheers,

Patrick

 

- - - - - - - - - - - - - - - - - - - - - - - - - -

 

The contents of this message are confidential and only intended for the eyes
of the addressee(s). Others than the addressee(s) are not allowed to use
this message, to make it public or to distribute or multiply this message in
any way. Flashaddict cannot be held responsible for incomplete reception or
delay of this transferred message.

 

 

  _____  

From: Papervision3D-bounces at osflash.org [mailto:
<mailto:Papervision3D-bounces at osflash.org>
Papervision3D-bounces at osflash.org] On Behalf Of John Grden
Sent: maandag 14 mei 2007 19:29


To: Papervision3D at osflash.org
Subject: Re: [Papervision3D] RTMP videostream as material

 

Hey Patrick, let's collab on this one if you're into that.  After you get
that work in there, I'd like to put in some checks for events with the NS
playback etc to save on processing something that isn't actually playing any
longer etc. 

can you send it over to me when you've got your code in place?  I'll pass
back a test to see what you think if that's cool

THanks!

jpg

On 5/14/07, John Grden <neoriley at gmail.com> wrote:

I think if you sub classed MovieMaterial, that makes the most sense.  Then
just allow the user to pass the NetStream and video container object in the
constructor and store them as props.

Then, override the Update() method to detach/attach the video object from
the NS and that should work 

 

On 5/14/07, Patrick Pietens < patrick at flashaddict.nl
<mailto:patrick at flashaddict.nl> > wrote:

Tell me what you think is best ...

 

- - - - - - - - - - - - - - - - - - - - - - - - - -

 

The contents of this message are confidential and only intended for the eyes
of the addressee(s). Others than the addressee(s) are not allowed to use
this message, to make it public or to distribute or multiply this message in
any way. Flashaddict cannot be held responsible for incomplete reception or
delay of this transferred message.

 

 

  _____  

From: Papervision3D-bounces at osflash.org [mailto:
<mailto:Papervision3D-bounces at osflash.org>
Papervision3D-bounces at osflash.org] On Behalf Of John Grden
Sent: maandag 14 mei 2007 17:48


To: Papervision3D at osflash.org
Subject: Re: [Papervision3D] RTMP videostream as material

 

Hey Patrick, are just going to subclass the MovieMaterial then?

On 5/14/07, Patrick Pietens <patrick at flashaddict.nl
<mailto:patrick at flashaddict.nl> > wrote:

For more information about the workaround John is talking about, read
<http://chennney.com/2006/12/08/security-sandbox-violation-bitmapdatadraw-on
-rtmp-source/>
http://chennney.com/2006/12/08/security-sandbox-violation-bitmapdatadraw-on-
rtmp-source/ 

 

I will send the material class as soon as I refactored it. 

 

Cheers!

 

- - - - - - - - - - - - - - - - - - - - - - - - - -

 

The contents of this message are confidential and only intended for the eyes
of the addressee(s). Others than the addressee(s) are not allowed to use
this message, to make it public or to distribute or multiply this message in
any way. Flashaddict cannot be held responsible for incomplete reception or
delay of this transferred message.

 

 

  _____  

From: Papervision3D-bounces at osflash.org [mailto:
<mailto:Papervision3D-bounces at osflash.org>
Papervision3D-bounces at osflash.org] On Behalf Of John Grden
Sent: maandag 14 mei 2007 16:47
To: Papervision3D at osflash.org
Subject: Re: [Papervision3D] RTMP videostream as material

 

no, that "trick" isn't apart of the animated materials code ;) 

I guess all you'd have to do is pass the NetStream object and the video
container object so that it could work it's magic, yes?

I assume you're talking about detaching the video object from the NetStream,
take a snapshot, reconnect trick, yes?

On 5/14/07, Patrick Pietens <patrick at flashaddict.nl> wrote:

Hi all,

 

Due to security reasons it is impossible to create a bitmap from a RTMP
videostream in Flash CS3. However there is a workaround to do this ().I was
wondering if this workaround is already included in the materials that come
with Papervision. If not I'm happy to provide the team a special Material
for RTMP videostreams.

 

Let me know if you are interested!

 

Cheers,

 

- - - - - - - - - - - - - - - - - - - - - - - - - -

 

Patrick Pietens

Rich internet & Flash gaming

 

+31 6 414 282 76

 <mailto:patrick at flashaddict.nl> patrick at flashaddict.nl

 <http://www.flashaddict.nl> http://www.flashaddict.nl

 

- - - - - - - - - - - - - - - - - - - - - - - - - -

 

The contents of this message are confidential and only intended for the eyes
of the addressee(s). Others than the addressee(s) are not allowed to use
this message, to make it public or to distribute or multiply this message in
any way. Flashaddict cannot be held responsible for incomplete reception or
delay of this transferred message.

 


_______________________________________________
Papervision3D mailing list
Papervision3D at osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org 




-- 
[  JPG  ] 


_______________________________________________
Papervision3D mailing list
Papervision3D at osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org 




-- 
[  JPG  ] 


_______________________________________________
Papervision3D mailing list
Papervision3D at osflash.org 
http://osflash.org/mailman/listinfo/papervision3d_osflash.org 




-- 
[  JPG  ] 




-- 
[  JPG  ] 


_______________________________________________
Papervision3D mailing list
Papervision3D at osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org




-- 
[  JPG  ] 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070515/451deb8f/attachment-0001.htm


More information about the Papervision3D mailing list