In my previous post, I mentioned that there is the Flash Lite 3.1 distributable player available at the Adobe Labs. I have since then built a few Flash Lite apps and tested on the HTC Touch Diamond phone which is running WM6.1.
One application was to stream video from the Flash Media Server 3.5 with the video stream coming from my webcam captured with the Flash Media Live Encoder.
Initially I couldn’t have rtmp connection on my Touch Diamond and I wonder what it was. Turned out I could connect if it was via WiFi but not 3G. Apparently the rtmp protocol may have been blocked from the operator (Telstra)
But even with WiFi, the playback was very slow and indeed no audio came out from the phone. On further investigation, it was because I have unintentionally set the audio codec as NellyMoser instead of MP3. But once I changed it back to Mp3, everything streamed beautifully.
The code is something like:
var my_vid:Video;
var nc:NetConnection = new NetConnection();
nc.connect(”rtmp://myDomain.com/myApp”);
var ns:NetStream = new NetStream(nc);
my_vid.attachedVideo(ns);
ns.play(”myStream”);
Posted in Uncategorized