PDA

View Full Version : Video Recorder Application


bitwalker
03-04-2009, 06:51 PM
This is a video and audio recorder application I wrote using OpenLaszlo 4.2.
OpenLaszlo is great but useful samples are pretty hard to find.

I am releasing this so that people don't have to go through the hard slog that I had to learn all this stuff. I got a lot of insight from the covcell recorder.
http://sourceforge.net/projects/covcell/

I am releasing it under the GNU Lesser General Public License (LGPL).

I also hope the Open Laszlo developers will find it useful to test the AV components. Sometimes they are broken and I think nobody realises, because Red5 steeaming is not really mainstream Open Laszlo.

There are three attributes you can pass in.
1) red5url
2) filename
3) updatecontrol

red5url
red5url is the full address of your red5 server. You will probably need the name of the red5 application you are connecting to at the end of the url. In most cases this will be oflademo. FMS server should work fine too.

filename
This is the name of the file that you want your recording to be saved as.
There is an input field on the app that you can use to change this mid session. So you can do multiple recordings if you wish.

updatecontrol
This is the id of a form element on the same page as the recorder which you want updated with the filename upon recording. This is useful if you are saving the filename of the recording in a database, or intend to use the filename in a subsequent page. But it is optional field. If you don't set it you will just see a debug warning. It won't call your partner and tell them about last year's christmas party or anything like that.

An example url when trying it out would be this,
http://127.0.0.1:8080/lps-4.2.0.1/my-apps/JustinsRecorder/JustinsRecorder.lzx?red5url=rtmp://127.0.0.1/oflaDemo&debug=true&lzproxied=false&filename=1234.flv&updatecontrol=filenamefield01


I recently added a Broadcast Test checkbox. When checked, if the record button is pressed no recording will occur. Instead a stream will be broadcast and played back in the playback view. This is useful for testing purposes


I hope you find it useful.


Justin



PS It is not problem free. e.g Changing the devices has no effect.
If you can add cool things, or fix things, please post the changes back to the here and I will try and maintain it. Thanks.

bitwalker
03-04-2009, 07:01 PM
If you want to use this with OL 4.2, as it is today, you will need to tweak a few things first. Please see this discussion:
http://forum.openlaszlo.org/showthread.php?p=42689#post42689

Hopefully these changes will be made in the trunk soon.