I’ve made an adaption of the videochat example… it publishes h264 video (no audio, at present) to rtmp://[myserver]:1935/myApp/myStream. When I export the project as a swf and view in the browser, I can successfully subscribe to the published stream (using a separate netstream instance), and display the 2 videos side-by-side (the local webcam that I’m publishing to the server, and streaming it back from the server)… as expected there is a slight delay between the two videos (maybe 1 second).
When I package this as an AIR for IOS app, and run it on my ipad2, it works in exactly the same way (surprisingly, as I have read that IOS is not capable of accepting RTMP streams, only HTTP, or HLS). When I publish a stream from my ipad, I am able to view it in my swf (in the browser). However, when I publish from the swf (in the browser), I am unable to view the stream in the ipad app (despite being able to publish from the ipad app, and view the stream in both the ipad app and swf app).
It is also worth mentioning that I’m able to view the stream (published from the swf) in the ipad app, if I use the AS3 StageWebView, and provide the URL: http://[myserver]:1935/myApp/myStream/playlist.m3u8 . While interesting, this isn’t really a solution, as the goal of my project is to create a cross-browser / ios / android compatible real-time audio/video chat application, and the absolute minimum latency time that I’m able to achieve with Apple’s HLS protocol is around 7 seconds (too much).
I’ve been scouring the internet for a week, but I haven’t yet been able to come up with any answers (most specifically, as to why the ipad app can publish/stream video from/to itself, and the swf can accept the stream from the ipad app, but the ipad app can’t read the stream from the swf). Could it be that the video published by the ipad app is somehow encoded differently to that of the swf? If so, is there any way analyze the two streams, and identify any difference?
I realize that AS3, Air for IOS, and the inner-workings of Apple devices are all rather specialist topics, but I didn’t really know where else to publish my question
Any ideas? I’d love to be able to make this work.
Thanks.