Skip to main content
flashdictionary
Inspiring
July 8, 2013
Question

On iOS when I call netstream.play - why do I get NetStream.Play.StreamNotFound

  • July 8, 2013
  • 3 replies
  • 1818 views

On iOS, when I call netstream.play - why do I get NetStream.Play.StreamNotFound?

I am using Adobe AIR 3.7.0.2090.

My url (incomingStreamName) plays fine in the Safari browser on my iOS device,

but within Adobe AIR I get the NetStatusEvent NetStream.Play.StreamNotFound

My code is like so:

var incomingStreamName:String = "http://192.168.3.2/hls-live/livepkgr/_definst_/liveevent/test_ios.m3u8"

var nc:NetConnection = new NetConnection();

nc.connect(null);

var netStream:NetStream = new NetStream(nc);

netStream.receiveVideo(true);

netStream.play(incomingStreamName);

var stageVid:StageVideo = this.stage.stageVideos[0];

stageVid.attachNetStream(netStream);

Why am I getting the StreamNotFound error?

This topic has been closed for replies.

3 replies

Participant
February 16, 2015

I have this same issue,, trying to do the same as above. Very frustrating as all articles on the net describe playing video in mp4 rather than m3u8. We could convert the f4f to mp4 on the fly using ffmpeg but this may add the the latency which is already very bad?

Any help on this would be much appreciated!

Participant
December 4, 2014

Hi,

I have the same problem. I wish to play a .m3u8 stream but don't succeed in it.

I tried this library mangui/flashls · GitHub, but there is a problem with streaming on iOS.

Have you found a solution?

Adobe Employee
July 9, 2013

Hi,

I tried to run a  video using netstream.play() and it's working fine. Please see the attached project at https://www.dropbox.com/s/zqksttdyhkz2o7s/NetStreamPlay.zip. Also, could you please try updating your AIR Version to the latest AIR SDK 3.7 available at http://www.adobe.com/devnet/air/air-sdk-download.html.

Hope this will help.

Regards,

Nimit

flashdictionary
Inspiring
July 10, 2013

Your example is used primarily for testing StageVideo and is not applicable to iOS.

I need help understanding why my NetStream is dispatching the NetStream.Play.StreamNotFound error. So I am dealing with 3 variables here:

  • NetStream object
  • Adobe Media Server 5.0.1
  • Apache Server

I have noticed that this problem is intermittent. Sometimes the stream is found sometimes it is not. In the Apache logs it says sometimes that it is not finding the m3u8 stream. If I wait 30 seconds after the stream has been transmitting then it seems to work.

Is there some time constraint with the AMS livepkgr to where the stream appears as non-existant to Apache until some period of time has passed? For example, does the livepkgr not persist the stream on disk until after so many seconds?