Android with FMS
Hi,
Have anyone tried accessing the FMS installed in their comp with their Android device?If both my PC and Android devices are connected to the same wifi,the coding below should do the work right?or am I missing something?I ran it on the pc and it works normally,but when i port it to the Android device,it won't connect to the FMS on my PC.
nc = new NetConnection();
nc.connect("rtmp://my ip address/vod");
nc.addEventListener(NetStatusEvent.NET_STATUS,onNetStatus);
private function onNetStatus(event:NetStatusEvent):void{
trace(event.info.code);
switch(event.info.code){
case "NetConnection.Connect.Success":
ns = new NetStream(nc);
ns.play("sample");
vid.attachNetStream(ns);
ns.client = customClient;
customClient.onMetaData = metaDataHandler;
ns.addEventListener(NetStatusEvent.NET_STATUS, statusHandler);
break;
}
}
Please advice,thanks!
Regards,
Tan
