| Package | org.flowplayer.controller |
| Interface | public interface StreamProvider |
| Implementors | NetStreamControllingStreamProvider |
Usually in the Flash platform providers are implemented using http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html.
| 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 | ||
| time : Number [read-only]
Current playhead time in seconds.
| 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 | ||
| 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
| time | property |
time:Number [read-only]Current playhead time in seconds.
Implementation public function get time():Number
| 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):voidAdds 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):voidAdds 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):voidAttaches 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.
Parameters
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):voidPauses playback.
Parametersevent:ClipEvent — the event that this provider should dispatch once loading has been successfully paused
|
| resume | () | method |
public function resume(event:ClipEvent):voidResumes 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):voidSeeks 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):voidStops 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():voidStops loading data into the buffer.