Packagethanhtran.karaokeplayer.utils
Classpublic class TimedTextParser



Public Properties
 PropertyDefined by
  tt : Namespace
TimedTextParser
  ttm : Namespace
TimedTextParser
  tts : Namespace
TimedTextParser
Public Methods
 MethodDefined by
  
parseXML(xml:XML):SongInfo
TimedTextParser
Public Constants
 ConstantDefined by
  VERSION : String = "0.0.18"
[static]
TimedTextParser
Property detail
ttproperty
public var tt:Namespace
ttmproperty 
public var ttm:Namespace
ttsproperty 
public var tts:Namespace
Method detail
getValueFromSet()method
karplayer_internal function getValueFromSet(value:Object, valueSet:Array):Object

get value from set of predefined value.
for e.g: style must match one of "b", "m" or "f"

Parameters
value:Object
 
valueSet:Array

Returns
Object — value if value is in set; else return default value (first one)
parseSongHead()method 
karplayer_internal function parseSongHead(head:XML, songInfo:SongInfo):void

Parameters
head:XML
 
songInfo:SongInfo
parseSongLyrics()method 
karplayer_internal function parseSongLyrics(body:XML, songInfo:SongInfo):void

Parameters
body:XML
 
songInfo:SongInfo
parseTimeAttribute()method 
karplayer_internal function parseTimeAttribute(parentNode:XML, attr:String, req:Boolean):Number

Modified from FLVPlayBackCaptioning's TimedTextManager

Parameters
parentNode:XML
 
attr:String
 
req:Boolean

Returns
Number
parseXML()method 
public function parseXML(xml:XML):SongInfoParameters
xml:XML

Returns
SongInfo
Constant detail
VERSIONconstant
public static const VERSION:String = "0.0.18"