# Flash as3: Recording the webcam with the movieclip on the top of the webcam

**URL:** <https://community.wowza.com/t/flash-as3-recording-the-webcam-with-the-movieclip-on-the-top-of-the-webcam/35565>\
**Category:** Wowza Streaming Engine\
**Created:** [July 6, 2011, 1:39pm UTC](https://community.wowza.com/t/flash-as3-recording-the-webcam-with-the-movieclip-on-the-top-of-the-webcam/35565 "2011-07-06T13:39:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sadf\_sdf](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@sadf\_sdf](https://community.wowza.com/u/sadf_sdf)\
**Post date:** [July 6, 2011, 1:39pm UTC](https://community.wowza.com/t/flash-as3-recording-the-webcam-with-the-movieclip-on-the-top-of-the-webcam/35565/1 "2011-07-06T13:39:51Z")

</div>

Hi,

I have no problem to record the webcam video to our wowza server. But recently, i want to record the video that show the augmented reality object that in the video.

I didn’t find any sample how i do it. Because in as3, i need to set the webcam. But now the whole thing became the movieclip live video. Is it possible to switch the webcam object to movieclip? So i can put anything on the top of the webcam and it will stream to the server?

Thank you

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [July 6, 2011, 9:47pm UTC](https://community.wowza.com/t/flash-as3-recording-the-webcam-with-the-movieclip-on-the-top-of-the-webcam/35565/2 "2011-07-06T21:47:15Z")

</div>

I don’t think it is supported in Flash

Richard

---

<div class="post-metadata">

**Author:** ![Elis\_Nunes\_Ficos](https://avatars.discourse-cdn.com/v4/letter/e/278dde/32.png) [@Elis\_Nunes\_Ficos](https://community.wowza.com/u/Elis_Nunes_Ficos)\
**Post date:** [March 31, 2012, 1:04pm UTC](https://community.wowza.com/t/flash-as3-recording-the-webcam-with-the-movieclip-on-the-top-of-the-webcam/35565/3 "2012-03-31T13:04:27Z")

</div>

Hello keroma,

I’m exactly the same problem as yours.

My application is using NetStream and sending it to the FMS server put the image of the webcam needs to send what is in the MovieClip where she is appearing because some objects placed in front of the webcam and I need to be sent to the NetStream.

You could solve your problem?

Could you post the solution?

Thank you. Elis Nunes

> Hi,
> 
> I have no problem to record the webcam video to our wowza server. But recently, i want to record the video that show the augmented reality object that in the video.
> 
> I didn’t find any sample how i do it. Because in as3, i need to set the webcam. But now the whole thing became the movieclip live video. Is it possible to switch the webcam object to movieclip? So i can put anything on the top of the webcam and it will stream to the server?
> 
> Thank you

---

<div class="post-metadata">

**Author:** ![AK\_KA](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@AK\_KA](https://community.wowza.com/u/AK_KA)\
**Post date:** [November 9, 2013, 7:39pm UTC](https://community.wowza.com/t/flash-as3-recording-the-webcam-with-the-movieclip-on-the-top-of-the-webcam/35565/4 "2013-11-09T19:39:28Z")

</div>

> Hi,
> 
> I have no problem to record the webcam video to our wowza server. But recently, i want to record the video that show the augmented reality object that in the video.
> 
> I didn’t find any sample how i do it. Because in as3, i need to set the webcam. But now the whole thing became the movieclip live video. Is it possible to switch the webcam object to movieclip? So i can put anything on the top of the webcam and it will stream to the server?
> 
> Thank you

hey keroma is there any way i can contact you? I have a few questions regarding recording on server.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [July 7, 2011, 4:09pm UTC](https://community.wowza.com/t/flash-as3-recording-the-webcam-with-the-movieclip-on-the-top-of-the-webcam/35565/5 "2011-07-07T16:09:03Z")

</div>

There was something called JScrap and Wowza does [support](https://www.wowza.com/specs.html) the Screen Shared codec over RTMP. These comments and links are current:

> [@Creating a Java screen capture application for Wowza](http://community.wowza.com/t/-/35551):
>
> Hi all, I’m currently trying to create a Java client for Wowza and I don’t really know where to start. My “Client” for the moment captures “screenshots” and I would like to send them to my Wowza Module and use them to create a video … First of all, is this possible with Wowza, (I know it’s possible with Red5, but I’m really knew to Wowza and wanted to be sure). Has someone done this and wouldn’t mind sharing the code with me. Any help would be appreciated, Thanks Julien

Richard

---

<div class="post-metadata">

**Author:** ![sadf\_sdf](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@sadf\_sdf](https://community.wowza.com/u/sadf_sdf)\
**Post date:** [July 6, 2011, 1:50pm UTC](https://community.wowza.com/t/flash-as3-recording-the-webcam-with-the-movieclip-on-the-top-of-the-webcam/35565/6 "2011-07-06T13:50:55Z")

</div>

Do you think if i can capture the screen and streaming the whole flash to wowza server and record it?

---

<div class="post-metadata">

**Author:** ![sadf\_sdf](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@sadf\_sdf](https://community.wowza.com/u/sadf_sdf)\
**Post date:** [July 7, 2011, 7:59am UTC](https://community.wowza.com/t/flash-as3-recording-the-webcam-with-the-movieclip-on-the-top-of-the-webcam/35565/7 "2011-07-07T07:59:27Z")

</div>

Any idea or direction i can search about? I could not find any way to put the object to the video and streaming and record to the server.

---

<div class="post-metadata">

**Author:** ![Oliver\_Lardner](https://avatars.discourse-cdn.com/v4/letter/o/c67d28/32.png) [@Oliver\_Lardner](https://community.wowza.com/u/Oliver_Lardner)\
**Post date:** [October 27, 2011, 5:37pm UTC](https://community.wowza.com/t/flash-as3-recording-the-webcam-with-the-movieclip-on-the-top-of-the-webcam/35565/8 "2011-10-27T17:37:55Z")

</div>

If it is on the screen in flash, you can capture the data (screen shot etc), create a video, do just about anything. Use the bitmap data, or create a new one and use the draw() method to draw pixels to it.

Here’s a demo I made using the webcam and playing with the bitmap data.

[http://hydroplain.blogspot.com/2008/10/this-is-as3-time-slicing-demo-i-was.html](http://hydroplain.blogspot.com/2008/10/this-is-as3-time-slicing-demo-i-was.html)
