Package | org.flowplayer.controller |
Interface | public interface StreamProvider |
Implementors | NetStreamControllingStreamProvider |
Property | Defined by | ||
---|---|---|---|
allowRandomSeek : Boolean [read-only]
Does this provider support random seeking to unbuffered areas in the timeline?
| StreamProvider | ||
bufferEnd : Number [read-only]
The point in timeline where the buffered data region ends, in seconds.
| StreamProvider | ||
bufferStart : Number [read-only]
The point in timeline where the buffered data region begins, in seconds.
| StreamProvider | ||
fileSize : Number [read-only]
File size in bytes.
| StreamProvider | ||
netConnection : NetConnection [read-only]
Gets the underlying netConnection object.
| StreamProvider | ||
netStream : NetStream [read-only]
Gets the underlying NetStream object.
| StreamProvider | ||
playlist : Playlist | StreamProvider | ||
stopping : Boolean [read-only]
Is this provider in the process of stopping the stream?
When stopped the provider should not dispatch any events resulting from events that
might get triggered by the underlying streaming implementation.
| StreamProvider | ||
streamCallbacks : Dictionary [read-only]
Get the current stream callbacks.
| StreamProvider | ||
time : Number [read-only]
Current playhead time in seconds.
| StreamProvider | ||
timeProvider : TimeProvider [write-only]
Sets a time provider to be used by this StreamProvider.
| StreamProvider | ||
type : String [read-only]
Gets the type of StreamProvider either http, rtmp, psuedo.
| StreamProvider | ||
volumeController : VolumeController [write-only]
Volume controller used to control the video volume.
| StreamProvider |
Method | Defined by | ||
---|---|---|---|
addConnectionCallback(name:String, listener:Function):void
Adds a callback function to the NetConnection instance.
| StreamProvider | ||
addStreamCallback(name:String, listener:Function):void
Adds a callback function to the NetStream object.
| StreamProvider | ||
attachStream(video:DisplayObject):void
Attaches a stream to the specified display object.
| StreamProvider | ||
Gets the Video object.
| StreamProvider | ||
Starts loading the specivied clip.
| StreamProvider | ||
Pauses playback.
| StreamProvider | ||
Resumes playback.
| StreamProvider | ||
Seeks to the specified point in the timeline.
| StreamProvider | ||
Stops and rewinds to the beginning of current clip.
| StreamProvider | ||
stopBuffering():void
Stops loading data into the buffer.
| StreamProvider | ||
Switch the stream in realtime with / without dynamic stream switching support
| StreamProvider |
allowRandomSeek | property |
allowRandomSeek:Boolean
[read-only]Does this provider support random seeking to unbuffered areas in the timeline?
Implementation public function get allowRandomSeek():Boolean
bufferEnd | property |
bufferEnd:Number
[read-only]The point in timeline where the buffered data region ends, in seconds.
Implementation public function get bufferEnd():Number
bufferStart | property |
bufferStart:Number
[read-only]The point in timeline where the buffered data region begins, in seconds.
Implementation public function get bufferStart():Number
fileSize | property |
fileSize:Number
[read-only]File size in bytes.
Implementation public function get fileSize():Number
netConnection | property |
netConnection:NetConnection
[read-only]Gets the underlying netConnection object.
Implementation public function get netConnection():NetConnection
netStream | property |
netStream:NetStream
[read-only]Gets the underlying NetStream object.
Implementation public function get netStream():NetStream
playlist | property |
playlist:Playlist
[read-write]Implementation
public function get playlist():Playlist
public function set playlist(value:Playlist):void
stopping | property |
stopping:Boolean
[read-only]Is this provider in the process of stopping the stream? When stopped the provider should not dispatch any events resulting from events that might get triggered by the underlying streaming implementation.
Implementation public function get stopping():Boolean
streamCallbacks | property |
streamCallbacks:Dictionary
[read-only]Get the current stream callbacks.
Implementation public function get streamCallbacks():Dictionary
time | property |
time:Number
[read-only]Current playhead time in seconds.
Implementation public function get time():Number
timeProvider | property |
timeProvider:TimeProvider
[write-only]Sets a time provider to be used by this StreamProvider. Normally the playhead time is queried from the NetStream.time property.
Implementation public function set timeProvider(value:TimeProvider):void
type | property |
type:String
[read-only]Gets the type of StreamProvider either http, rtmp, psuedo.
Implementation public function get type():String
volumeController | property |
volumeController:VolumeController
[write-only]Volume controller used to control the video volume.
Implementation public function set volumeController(value:VolumeController):void
addConnectionCallback | () | method |
public function addConnectionCallback(name:String, listener:Function):void
Adds a callback function to the NetConnection instance. This function will fire ClipEvents whenever the callback is invoked in the connection.
Parametersname:String |
|
listener:Function |
See also
addStreamCallback | () | method |
public function addStreamCallback(name:String, listener:Function):void
Adds a callback function to the NetStream object. This function will fire a ClipEvent of type StreamEvent whenever the callback has been invoked on the stream. The invokations typically come from a server-side app running on RTMP server.
Parametersname:String |
|
listener:Function |
See also
attachStream | () | method |
public function attachStream(video:DisplayObject):void
Attaches a stream to the specified display object.
Parametersvideo:DisplayObject — the video object that was originally retrieved using getVideo() .
|
See also
getVideo | () | method |
public function getVideo(clip:Clip):DisplayObject
Gets the Video object.
A stream will be attached to the returned video object using attachStream()
.
clip:Clip — the clip for which the Video object is queried for
|
DisplayObject |
See also
load | () | method |
public function load(event:ClipEvent, clip:Clip, pauseAfterStart:Boolean = true):void
Starts loading the specivied clip. Once video data is available the provider
must set it to the clip using clip.setContent()
. Typically the video
object passed to the clip is an instance of flash.media.Video.
event:ClipEvent — the event that this provider should dispatch once loading has successfully started,
once dispatched the player will call getVideo()
|
|
clip:Clip — the clip to load
|
|
pauseAfterStart:Boolean (default = true ) — if true the playback is paused on first frame and
buffering is continued
|
See also
pause | () | method |
public function pause(event:ClipEvent):void
Pauses playback.
Parametersevent:ClipEvent — the event that this provider should dispatch once loading has been successfully paused
|
resume | () | method |
public function resume(event:ClipEvent):void
Resumes playback.
Parametersevent:ClipEvent — the event that this provider should dispatch once loading has been successfully resumed
|
seek | () | method |
public function seek(event:ClipEvent, seconds:Number):void
Seeks to the specified point in the timeline.
Parametersevent:ClipEvent — the event that this provider should dispatch once the seek is in target
|
|
seconds:Number — the target point in the timeline
|
stop | () | method |
public function stop(event:ClipEvent, closeStream:Boolean = false):void
Stops and rewinds to the beginning of current clip.
Parametersevent:ClipEvent — the event that this provider should dispatch once loading has been successfully stopped
|
|
closeStream:Boolean (default = false )
|
stopBuffering | () | method |
public function stopBuffering():void
Stops loading data into the buffer.
switchStream | () | method |
public function switchStream(event:ClipEvent, clip:Clip, netStreamPlayOptions:Object = null):void
Switch the stream in realtime with / without dynamic stream switching support
Parametersevent:ClipEvent — ClipEvent the clip event
|
|
clip:Clip — Clip the clip to switch to
|
|
netStreamPlayOptions:Object (default = null ) — Object the NetStreamPlayOptions object to enable dynamic stream switching
|