Results 1 to 2 of 2

Thread: JW 5.3 Thread on no file error

  1. #1

    Default JW 5.3 Thread on no file error

    http://www.longtailvideo.com/support...-no-file-wowza

    If a file does not exist there should be a message to the user, but due to how Wowza responds the player can't tell the difference. Any workaround for this?

  2. #2
    Join Date
    Dec 2007
    Posts
    25,641

    Default

    You can get this info in Flash player in the NetStream onStatus handler:

    This is trace output from Wowza SimpleVideoStreaming player:

    Code:
    onStatus: 
      level = error
      details = samxxxple.mp4
      description = Failed to play samxxxple.mp4; stream not found.
      clientid = 221923853
      code = NetStream.Play.StreamNotFound
    This the source:

    Code:
    nsPlay.addEventListener(NetStatusEvent.NET_STATUS, nsOnStatus);
    
    private function nsOnStatus(infoObject:NetStatusEvent):void
    		{
    			trace("onStatus: ");
    			for (var propName:String in infoObject.info)
    			{
    				trace("  "+propName + " = " + infoObject.info[propName]);
    			}
    			
    			if (infoObject.info.code == "NetStream.Play.Start")
    				isProgressUpdate = true;
    			else if (infoObject.info.code == "NetStream.Play.StreamNotFound" || infoObject.info.code == "NetStream.Play.Failed")
    				prompt.text = infoObject.info.description;
    		}
    JW Player handles this too.

    Richard

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •