Class fvaswing.components.reader.video.FvVideoItem

Description

Data structure for FvVideoList tree node content

Method Index

new FvVideoItem()
getBookmark(), getDuration(), getMetaData(), getSize(), isPHPStreaming(), setBookmark(), setMetaData(), toObject()

Inherited from FvPlayListItem

Constructor Detail

FvVideoItem

public function FvVideoItem(url:String, title:String, isPHP:Boolean)

Constructor.

Method Detail

setBookmark

public function setBookmark(o:Object):Void

Sets bookmark for current video item.

Markers list ( bookmark ) are defined throw xml playlist file.

Example

   <root>
   	<videos>
   		<item>
   			<url type="string">assets/video.flv</url>
   			<title type="string">Introduction</title>
   			<bookmark>
   				<marker>
   					<caption type="string">myCuePoint</caption>
   					<time type="number">10.23</time>
   				</marker>
   			</bookmark>
   		</item>
   	</videos>
   </root>
 

getBookmark

public function getBookmark():Array

Returns markers iterator.

getSize

public function getSize():Dimension

Retreives video original size.

getDuration

public function getDuration():Number

Defines video duration ( in ms );

setMetaData

public function setMetaData(metaobject:VideoMetaData):Void

Sets current video metadata.

getMetaData

public function getMetaData():VideoMetaData

Returns current video metadata.

isPHPStreaming

public function isPHPStreaming():Boolean

Returns true if video is streamed throw PHP streaming file.

toObject

public function toObject():Object

Returns a basic object structure with item properties.

Used for SharedObject save process.