# Flash Media server for Mobile devices

**URL:** <https://forum.kirupa.com/t/flash-media-server-for-mobile-devices/237818>\
**Category:** flash\
**Created:** [September 4, 2007, 10:20am UTC](https://forum.kirupa.com/t/flash-media-server-for-mobile-devices/237818 "2007-09-04T10:20:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaiSubha](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@SaiSubha](https://forum.kirupa.com/u/SaiSubha)\
**Post date:** [September 4, 2007, 10:20am UTC](https://forum.kirupa.com/t/flash-media-server-for-mobile-devices/237818/1 "2007-09-04T10:20:38Z")

</div>

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.
