rtmp://host/app/foo/bar/stream
. In this case the instance name would be 'foo' and the stream would
* be 'bar/stream'.
* If false, then the second part of the URL path is considered to be the stream name,
* such as rtmp://host/app/foo/bar/stream
. In this case there is no instance name and the stream would
* be 'foo/bar/stream'.
*
*
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion OSMF 1.0
*/
public function FMSURL(url:String, useInstance:Boolean=false)
{
super(url);
_useInstance = useInstance;
_appName = "";
_instanceName = "";
_streamName = "";
_fileFormat = "";
parsePath();
parseQuery();
}
/**
* Whether a named instance is being used within the URI
*
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion OSMF 1.0
*/
public function get useInstance():Boolean
{
return _useInstance;
}
/**
* The FMS application name.
*
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion OSMF 1.0
*/
public function get appName():String
{
return _appName;
}
/**
* The FMS instance name.
*
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion OSMF 1.0
*/
public function get instanceName():String
{
return _instanceName;
}
/**
* The FMS stream name.
*
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion OSMF 1.0
*/
public function get streamName():String
{
return _streamName;
}
/**
* The file format of the streaming media. Corresponds to one of the
* public constants defined in this class, such as MP4_STREAM,
* or the blank stream for flv media streams.
*
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion OSMF 1.0
*/
public function get fileFormat():String
{
return _fileFormat;
}
/**
* The vector of edges.
*
* @see FMSHost
*
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion OSMF 1.0
*/
public function get edges():Vector.
* For example, in this URL: "http://host.com:80/foo/bar/index.html?a=1&b=2"
* path would be "foo/bar/index.html"