Live Broadcast On Flash Lite 4 With Flash Media Live Encoder
Now After a full week of indulging in video and streaming, when it was finally time to take a break and get back to some Flash Lite mobile work, it just struck me, how well would a Flash Lite 4 device suit the need of live event viewing. Its well known that Flash Lite 4 has a better memory management and better support for video overall.
The  Flash Lite Project
For setting up the Flash Lite project, we wont be doing everything from ground zero here. In reference to my previous post on Live Streaming on Flash Lite, i had created a open source Flash Lite project on google code. So we will be using just that to move ahead. To Download the project , you will need a svn client like tortoise svn.
Create a new folder on your hard drive come where and use tortoise svn to import the repository into that folder.
Next we check out the project from repository using tortoise svn’s SVN Checkout option using  trunk URL: http://spylite.googlecode.com/svn/trunk/
Now go into the  repository folder and launch the flash project in Flash CS3/CS4/ CS5 whatever you have.
Note : The file  com.flashvisions.litespy.model.ApplicationModel.as , contains RTMP url and streamname.You may want to edit those for your convenience.
For our demo, rtmp url is set to  rtmp://localhost/midiDemo and stream name is set to “red5″. Once all is set compile the project (assuming that rtmp server is running) swf and launch it in device central cs5, selecting the flash lite 4.0 player.
And Finally for our test simulation its very important to restrict network bandwidth to a 3G connection. You can do so from the  ”Network Performance” panel as shown.
So that completes our receiving setup , and now we must start broadcasting . There is not much work to do here though. We will be using Flash Media Live Encoder for broadcasting stream at a setting suitable for a mobile device.In case you dont have it already, you may download it here from Adobe’s site.
Flash Media Live Encoder
After installing FMLE, launch it and set up for broadcasting to our flash lite device (simulator) as shown below:
Settings
- FMS URL: rtmp://localhost/midiDemo
- Stream: red5
- Resolution: 160×120
- Bitrate: 100kbps
- Fps: 15
*FMS Url  and Stream will be same as what we have put in our Flash Lite Project.
Now that all is set , Press Connect on FMLE (below Stream:) and once connected, press Start to begin broadcast. Once you get confirmation that you are broadcasting, go back to Device central and press “Connect” on the Application’s interface.
And there you are
. Beautiful!! With little or no latency you will get very good quality on a mobile 3G network using Flash Media Live Encoder.
Popularity: 44% [?]
July 22, 2010
Tags: Actionscript 3.0, Flash Lite, Mobile, Nokia, Red5, RTMP, Streaming, Video Posted in: Actionscript 2.0, Flash Lite, Mobile, Nokia, Red5, RTMP, Sony Ericsson










Leave a Reply