|
-
Can you send bitmapData over xmlSocket
I have a question, I hope its possible because it would basically allow me to stream any video I want from a client to other clients but...
I put this in backend section because of the xmlSocket server I made in java.
How would I go about sending Bitmapdata over a server and use the xmlSocket.send() function to get it to all the other clients. I am trying to simply create a BitmapData object and have it draw() then send it over, but it only returns as sending the String "[Object Object]". So how would I really send it over. The image is created dynamically obviously so it isn't sending a file over.
I am using this tut for the screenshot making...
http://www.flash-db.com/Tutorials/snapshot/
I kept it the same except I deleted the flv vid and replaced it with a webcam feed. And I made the shadow button into a movieclip and applied the capture for it to be in a onEnterFrame loop instead of a onPress.
Does anyone know how I would send a dynamically created image over a xmlSocket, please give me a reply. Please let it be possible. AND THANK YOU WHO EVER HELPS!
It does work by the way, I do have the image based vid popping up on my screen. I just need to figure out how to send it.
Last edited by cody112; 04-05-2009 at 10:07 AM.
Reason: I forgot to about putting this in...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|