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.