| Package | com.pcthomatos.ultraloader.types |
| Class | public class ULVideo |
ULVideo class is the type class for all videos loaded in with UltraLoader. $video.netConnection
...
import com.pcthomatos.ultraloader.UltraLoader;
import com.pcthomatos.ultraloader.types.
var testVideo:ULVideo;
var ul:Object = {init:true};
var ultraLoader:UltraLoader = new UltraLoader(ul);
ultraLoader.addEventListener(UltraLoader.LOAD_REQUEST_COMPLETE, render_Listener);
function render_Listener(e:Event):void{
ultraLoader.removeEventListener(UltraLoader.LOAD_REQUEST_COMPLETE, render_Listener);
testVideo = ul.$video.splash;
testVideo.play();
trace(testVideo.playing);
testVideo.stop();
trace(testVideo.playing);
...
See also
| Property | Defined by | ||
|---|---|---|---|
| metaData : Object Contains the NetStream.client.onMetaData metaData of your UltraLoader video file.
| ULVideo | ||
| netStream : NetStream Contains the NetStream Object of your UltraLoader video file.
* For streaming videos you will need to manually change your NetConnection and NetStream in your code after UltraLoader is done loading. | ULVideo | ||
| playing : Boolean = false Contains a boolean flag to determine if your UltraLoader video file is currently playing.
| ULVideo | ||
| src : String Contains the source path of your UltraLoader video file.
| ULVideo | ||
| video : Video Contains the Video Object of your UltraLoader video file.
| ULVideo | ||
| Method | Defined by | ||
|---|---|---|---|
|
ULVideo()
Contructor used by UltraLoader
| ULVideo | ||
|
close():void
Closes the ULVideo.
| ULVideo | ||
|
pause():void
Pauses the ULVideo.
| ULVideo | ||
|
play():void
Plays the ULVideo.
| ULVideo | ||
|
resume():void
Resumes the ULVideo.
| ULVideo | ||
|
stop():void
Stops the ULVideo.
| ULVideo | ||
|
togglePause():void
Toggle Pauses the ULVideo.
| ULVideo | ||
| metaData | property |
public var metaData:ObjectContains the NetStream.client.onMetaData metaData of your UltraLoader video file.
See also
| netStream | property |
public var netStream:NetStream Contains the NetStream Object of your UltraLoader video file.
* For streaming videos you will need to manually change your NetConnection and NetStream in your code after UltraLoader is done loading. There is only one NetConnection for all videos loaded in with UltraLoader and it is located at $video.netConnection
See also
| playing | property |
public var playing:Boolean = falseContains a boolean flag to determine if your UltraLoader video file is currently playing.
See also
| src | property |
public var src:StringContains the source path of your UltraLoader video file.
| video | property |
public var video:VideoContains the Video Object of your UltraLoader video file.
See also
| ULVideo | () | constructor |
public function ULVideo()Contructor used by UltraLoader
| close | () | method |
| pause | () | method |
| play | () | method |
| resume | () | method |
| stop | () | method |
public function stop():void Stops the ULVideo.
Pauses the video stream and resets the play head.
| togglePause | () | method |
public function togglePause():voidToggle Pauses the ULVideo.
See also