| Package | com.soma.view.video.skin |
| Interface | public interface ISomaVideoTimeBarSkin extends ISomaVideoSkin |
| Implementors | SomaVideoTimeBarSkin |
Author: Romuald Quantin - www.soundstep.com
Information:
Blog page - SomaUI
How does it work - Soma Protest
Project Host - Google Code
Documentation - Soma ASDOC
Class version: 2.0
Actionscript version: 3.0
Copyright:
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied.
See the License for the specific language governing rights and
limitations under the License.
The Original Code is Soma.
The Initial Developer of the Original Code is Romuald Quantin.
Initial Developer are Copyright (C) 2008-2009 Soundstep. All Rights Reserved.
Usage:
Interface meant to implemented by a DisplayObject class (such as Sprite) to skin a buffer/preloading/time bar skin and be added to the SomaVideoControls (somaVideoPlayerInstance.controls).
See the SomaVideoTimeBarSkin documentation to create your own buffer/preloading/time skin and the SomaVideoControls documentation to add or create your own controls.
See also
| Method | Defined by | ||
|---|---|---|---|
|
bufferCallBack(length:Number, time:Number):void
Methods called whenever the video is buffering.
| ISomaVideoTimeBarSkin | ||
![]() |
dispose():void
This method is internally called when you dispose a SomaVideoPlayer to remove children, the event listeners or whatever that needs to be destroyed to free the memory (make the instance elligible to the Garbage Collection).
| ISomaVideoSkin | |
|
preloadingCallBack(bytesLoaded:Number, bytesTotal:Number):void
Methods called whenever the video is preloading.
| ISomaVideoTimeBarSkin | ||
![]() |
registerPlayer(player:SomaVideoPlayer):void
Register the SomaVideoPlayer instance that will be used with the skin class
| ISomaVideoSkin | |
|
timeCallBack(time:Number, duration:Number):void
Methods called whenever the video playhead is updated to display the current time and duration in seconds of the video.
| ISomaVideoTimeBarSkin | ||
| bufferCallBack | () | method |
public function bufferCallBack(length:Number, time:Number):voidMethods called whenever the video is buffering.
Parameterslength:Number — A Number indicating the current length of the buffer, this value must reach the time (max value) of the buffer to start to play.
|
|
time:Number — A Number indicating the time of the buffer to reach in seconds (you can set this buffer time property with the SomaVideoPlayer instance property: bufferTime).
|
| preloadingCallBack | () | method |
public function preloadingCallBack(bytesLoaded:Number, bytesTotal:Number):voidMethods called whenever the video is preloading.
ParametersbytesLoaded:Number — A Number indicating the number of bytes loaded.
|
|
bytesTotal:Number — A Number indicating the total number of bytes to load.
|
| timeCallBack | () | method |
public function timeCallBack(time:Number, duration:Number):voidMethods called whenever the video playhead is updated to display the current time and duration in seconds of the video.
Parameterstime:Number — A Number indicating the current time of the video playhead in seconds.
|
|
duration:Number — A Number indicating the duration of the video (time length) in seconds.
|