Question
NetStream.Play.StreamNotFound when connecting to my AMS
When I try and connect to the video on my AMS using Flash and AS3 I keep getting NetStream.PLay.StreamNotFound
The exact same video streams on the AMS home page.
I can stream from http://www.helpexamples.com/flash/video/cuepoints.flv but nothing from own server in flash.
Here is my code with the IP Address removed
import flash.media.Video;
var video:Video = new Video();
this.addChild(video);
var mNetConnection:NetConnection=new NetConnection();
mNetConnection.connect(null);
var mNetStream:NetStream=new NetStream(mNetConnection);
video.attachNetStream(mNetStream);
mNetStream.play("rtmp://000.000.000.000/vod/mp4:sample1_1500kbps.f4v");
mNetStream.client=this;
mNetStream.addEventListener(NetStatusEvent.NET_STATUS, onNetStreamStatusEvent);
mNetStream.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
function onNetStreamStatusEvent(event:NetStatusEvent):void
{
if (event.info.code == "NetStream.Play.Start")
{
trace("NetStream.Play.Start");
}
if (event.info.code == "NetStream.Play.StreamNotFound")
{
trace("Video Not Found");
}
if (event.info.code == "NetStream.Buffer.Full")
{
}
}
function onMetaData(metadata:Object):void
{
}
function securityErrorHandler(event:SecurityErrorEvent):void {
trace("securityErrorHandler: " + event);
}
