Packagecom.cmiscm.videos.stream
Classpublic class CMstream
InheritanceCMstream Inheritance flash.events.EventDispatcher
Subclasses VideoPlayer



Public Properties
 PropertyDefined By
  curmode : int
[read-only] get curmode
CMstream
  duration : Number
[read-only] get duration
CMstream
  getDebugInfo : Sprite
[read-only] get debug info
CMstream
  stream : NetStream
[read-only] get stream
CMstream
Protected Properties
 PropertyDefined By
  _buffer : CMbufferload
CMstream
  _curMode : int = 2
CMstream
  _duration : Number = 0
CMstream
  _info : CMinfo
CMstream
  _progress : CMprogress
CMstream
  _sound : CMsound
CMstream
  _stream : NetStream
CMstream
  _syncDuration : Number = 0
CMstream
  _syncStream : NetStream
CMstream
  _syncVideo : Video
CMstream
  _video : Video
CMstream
Public Methods
 MethodDefined By
  
CMstream
  
addBufferLoad($video:Video):void
add buffer load
CMstream
  
addDefaultProgressBar($tW:int, $tH:int, $progress_color:uint, $buffer_color:uint, $bg_color:uint, $be_control:Boolean = false, $control_tY:int = 0, $control_tH:int = 0, $be_hand:Boolean = false, $buffer_limit:int = 0):void
add default progress
CMstream
  
addInfo():void
add info
CMstream
  
addSoundControl($first_volume:Number, $cookie:Boolean):void
add sound control
CMstream
  
addSync($video:Video):void
add sync
CMstream
  
bufferLoad($url:String, $cache:Boolean = false):void
buffer load
CMstream
  
changeVolume($volume:Number):void
CMstream
  
clear():void
clear
CMstream
  
connect($video:Video, $command:String = null):void
connect
CMstream
  
destroy():void
destroy
CMstream
  
destroy bufferLoad
CMstream
  
mute():void
CMstream
  
pause():void
CMstream
  
play():void
control
CMstream
  
seek($no:Number):void
seek
CMstream
  
setUrl($url:String, $buffer_time:int = 5, $cache:Boolean = false):void
set url
CMstream
  
setVolume($volume:Number):void
CMstream
  
soundOff():void
CMstream
  
soundOn():void
CMstream
  
stop():void
CMstream
  
syncUrl($url:String, $sync_url:String, $buffer_time:int = 5, $cache:Boolean = false, $sync_cache:Boolean = false):void
set sync url
CMstream
Property Detail
_bufferproperty
protected var _buffer:CMbufferload

_curModeproperty 
protected var _curMode:int = 2

_durationproperty 
protected var _duration:Number = 0

_infoproperty 
protected var _info:CMinfo

_progressproperty 
protected var _progress:CMprogress

_soundproperty 
protected var _sound:CMsound

_streamproperty 
protected var _stream:NetStream

_syncDurationproperty 
protected var _syncDuration:Number = 0

_syncStreamproperty 
protected var _syncStream:NetStream

_syncVideoproperty 
protected var _syncVideo:Video

_videoproperty 
protected var _video:Video

curmodeproperty 
curmode:int  [read-only]

get curmode


Implementation
    public function get curmode():int
durationproperty 
duration:Number  [read-only]

get duration


Implementation
    public function get duration():Number
getDebugInfoproperty 
getDebugInfo:Sprite  [read-only]

get debug info


Implementation
    public function get getDebugInfo():Sprite
streamproperty 
stream:NetStream  [read-only]

get stream


Implementation
    public function get stream():NetStream
Constructor Detail
CMstream()Constructor
public function CMstream()



Method Detail
addBufferLoad()method
public function addBufferLoad($video:Video):void

add buffer load

Parameters

$video:Video

addDefaultProgressBar()method 
public function addDefaultProgressBar($tW:int, $tH:int, $progress_color:uint, $buffer_color:uint, $bg_color:uint, $be_control:Boolean = false, $control_tY:int = 0, $control_tH:int = 0, $be_hand:Boolean = false, $buffer_limit:int = 0):void

add default progress

Parameters

$tW:int
 
$tH:int
 
$progress_color:uint
 
$buffer_color:uint
 
$bg_color:uint
 
$be_control:Boolean (default = false)
 
$control_tY:int (default = 0)
 
$control_tH:int (default = 0)
 
$be_hand:Boolean (default = false)
 
$buffer_limit:int (default = 0)

addInfo()method 
public function addInfo():void

add info

addSoundControl()method 
public function addSoundControl($first_volume:Number, $cookie:Boolean):void

add sound control

Parameters

$first_volume:Number
 
$cookie:Boolean

addSync()method 
public function addSync($video:Video):void

add sync

Parameters

$video:Video

bufferLoad()method 
public function bufferLoad($url:String, $cache:Boolean = false):void

buffer load

Parameters

$url:String
 
$cache:Boolean (default = false)

changeVolume()method 
public function changeVolume($volume:Number):void

Parameters

$volume:Number

clear()method 
public function clear():void

clear

connect()method 
public function connect($video:Video, $command:String = null):void

connect

Parameters

$video:Video
 
$command:String (default = null)

destroy()method 
public function destroy():void

destroy

destroyBufferLoad()method 
public function destroyBufferLoad():void

destroy bufferLoad

mute()method 
public function mute():void

pause()method 
public function pause():void

play()method 
public function play():void

control

seek()method 
public function seek($no:Number):void

seek

Parameters

$no:Number

setUrl()method 
public function setUrl($url:String, $buffer_time:int = 5, $cache:Boolean = false):void

set url

Parameters

$url:String
 
$buffer_time:int (default = 5)
 
$cache:Boolean (default = false)

setVolume()method 
public function setVolume($volume:Number):void

Parameters

$volume:Number

soundOff()method 
public function soundOff():void

soundOn()method 
public function soundOn():void

stop()method 
public function stop():void

syncUrl()method 
public function syncUrl($url:String, $sync_url:String, $buffer_time:int = 5, $cache:Boolean = false, $sync_cache:Boolean = false):void

set sync url

Parameters

$url:String
 
$sync_url:String
 
$buffer_time:int (default = 5)
 
$cache:Boolean (default = false)
 
$sync_cache:Boolean (default = false)