PDA

View Full Version : Flash Media server for Mobile devices



SaiSubha
September 4th, 2007, 07:20 AM
Hi all,

I am trying to stream, the media content from flash media server to My WM5.0 SP device/ O2 device.... I am having flash run-time installed on these devices...

And I am using the following code
-----------------------------------------------------------------------------
// These lines begin broadcasting.
var my_nc:NetConnection = new NetConnection(); // Create connection object.
my_nc.onStatus = function(info) {
Baba.text = info.code;
Baba.textHeight = 16;
Baba.textWidth = 16;
trace(info.code);
if (info.code == "NetConnection.Connect.Success") {
trace("Connection Successfull");
}
}

my_nc.connect("rtmp://192.168.0.4/music/Selections"); // Connect to server.
var publish_ns:NetStream = new NetStream(my_nc); // Open stream within connection.
publish_ns.publish("Baba"); // Begin broadcasting.

var play_ns:NetStream = new NetStream(my_nc);
vidObj_video.attachVideo(play_ns);
play_ns.play("mp3:Swami Vivekananda - 0001");
-------------------------------------------------------------------------------------


The specified Mp3 file is stored in /Applications/music/Stream/Selections folder

And the application plays the file on Desktop and shows the server connection status on the textBox, But when I am publishing the file and running the .swf file on Pocket PC, its not doing anything not even connecting....And its not showing the connection status...

What Am I supposed to do.....

Kindly suggest some sample code or documentation.....

Regards,

Subhasmita.

project107
September 4th, 2007, 10:32 AM
You are running the FMS from your local machine, yes?
192.168.xx.xxx is an internal IP, which is why I ask. If this is indeed true, then you must run IIS to have outside devices/machine connect to it. Otherwise, it's no different than having notepad open on your computer and wondering why your Palm can't connect to it.

SaiSubha
September 6th, 2007, 10:48 AM
Boss thank u so much for yor reply....

Yeah I am trying to connect to the server while the device is cradle enabled, so through the local LAN connection, it can connect to the server...If its unable to connect also, it should have shown the connection status....But It doesn't seem to trace the connection status also..

I am totally new in this field...
I am using Macromedia Flash 8, to develop the application...
And Publishing it through the settings Flash lite 2.1.
I have flashlite2_1_winmobile5_ppc.CAB installed on my device...Does it recognise NetConnection(), NetStream classes...

What is the total procedure what do I need to develop an application to stream media content from media server to Pocket PC...
What is needed on the device to run it??

Can u kindly specify me all the requirements and some sample example...

I will really be obliged....

Regards,

SaiSubha..



You are running the FMS from your local machine, yes?
192.168.xx.xxx is an internal IP, which is why I ask. If this is indeed true, then you must run IIS to have outside devices/machine connect to it. Otherwise, it's no different than having notepad open on your computer and wondering why your Palm can't connect to it.

project107
September 11th, 2007, 05:42 PM
Mate, I have no idea about mobile devices, but I will go get the latest FlashLite and try to look into it. I dont have a windows mobile device to test on, though.