UDP video stream to Air for iOS - not working
Hi everyone.
My client has asked me to look at the possibility of writing an iOS app which will immediately start displaying a video from a UDP stream.
The emphasis here is on instant playback without load times, buffering, etc.
I'm using Flash Professional CS6, and Air for iOS (3.8).
THE PROBLEM -> Unfortunately, no matter what I have tried, I cannot get a video to display on my local development machine or test iPad.
I am using a simple FLV video which is streaming locally through VLC Media Player.
In actionscript, I am then connecting a DatagramSocket to this.
No problem here, as I can see that the DatagramSocket is reading in the video stream data when I run the following function:
private function dataReceived( event:DatagramSocketDataEvent ):void {
//Read the data from the datagram
txtHistory.appendText("\n Received from " + event.srcAddress + ":" + event.srcPort + "> " + event.data.readUTFBytes(event.data.bytesAvailable));
}
Ive made my complete AS3 file available for download here:
http://www.frogcdrom.com/clients/frog/UDPVidStreamReceiver.as
Please can anyone help me out?
Im pretty good with AS3, but pants at network stuff so totally out of my knowledge zone here.
But its a good job for a good client and ideally Id like to get it.
Thanks in advance of any help you can give.
