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.
Yo dude... I GOT IT WORKING, PARTIALLY!
I managed to get the message through the server and create a image!
BUT IT TURNED OUT BLACK, NOTHING WAS THERE!
EDIT: O.K. Never mind, turns out it was working, just the first one was black and since I had the webcam feed and another image feed running at the same time it was running very slow. So it would turn out that it was just because of lag that it was black for so long.
Got any ideas for this situation though... How would I get a non-lagging feed of up to 1 webcam and 3 imagecams.
Edit2: I'm gonna upload it to any free download site like deposit files, rapidshare, or any website that you specify on your queue. If you want me to that is, you get to see the person you just helped XD, how do u like that...
Edit3: Nope, not yet sorry. I just noticed that the thing stops compressing the data after about 4 loops for some reason. Odd...
So it stops after the first like 4 images.
Yo zompo its working... Not well enough though
I got it working by doing what you said, but not 10-15, 3 fps is the best not to messy fps i can get it to.
If I could overcome the size of what its sending I should be able to make it work better.
And by the way, after about 3 minutes, it is about a minute & a half(or more) behind. On the image feed.
Edit: Dam... I rolled my eyes into the back of my head at one point. And the imagecam did it about 4-5 minutes later....
Edit2: I got the server to not lag so much, but only by scaling it down by half, it was 150x150, now 75x75. Too small if you ask me... If I could only maintain even a fair fps and keep it 150x150...