View Full Version : Rtmp streaming 1 frame.
bulfen
10-15-2009, 03:24 PM
Hi All,
After reading around it seems that I'm not able to take a snapshot of a rtmp live stream. So here is my question. Is it possible to start the rtmp stream and stop it as soon as it displayed the first frame (or the start) of the stream and then stop it. and repeat this every 5th sec or so? Please remember I'm no action script guru so dont go all advance on me now. :)
Best reg,
B
bowljoman
10-15-2009, 08:00 PM
It is possible if you own the server.
If you do not own the server, then maybe it is not ok to save images from a stream.
If you know it is OK, then tell the server owner to configure it as so.
bowljoman
10-15-2009, 08:02 PM
There is a workaround using the netstream, but again, this is a 'content/copyright' issue, so I always encourage the server to be configured properly before I give out the 'not - so -secret' method.
bulfen
10-15-2009, 08:08 PM
The reson that I wanned to do this was because I use a webcam over a bay and wanned to do still shots instead of starting the stream for each user that enter the page.
I currently useing influxis as a hosting so I "dont" own the hosting but I own the stream. ;)
bowljoman
10-15-2009, 10:31 PM
so, you dont even need rtmp. But you could ask them to allow client access to data.
draw your camera to bitmap data, and use http request POST data to push your image to a php server each couple of seconds.
Use regular html to display the posted image data in an image tag.
use javascript to replace that image with the new one every few ticks so people on the webpage get new image without refresh.
here is the secret trick.
video.attachNetstream(null);
bitmapData.draw(video);
video.attachNetstream(cam);
bulfen
10-15-2009, 10:49 PM
There is a reson for that we use rtmp. So people can select to see the live feed also if they choose it. But thx anyway bowljoman. :)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.