Packagevn.karaokeplayer.utils
Classpublic class TimedTextParser
InheritanceTimedTextParser Inheritance Object



Public Properties
 PropertyDefined By
  tt : Namespace
TimedTextParser
  ttm : Namespace
TimedTextParser
  tts : Namespace
TimedTextParser
Public Methods
 MethodDefined By
  
TimedTextParser
Public Constants
 ConstantDefined By
  VERSION : String = 0.5.52
[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):SongInfo

Parameters

xml:XML

Returns
SongInfo
Constant Detail
VERSIONConstant
public static const VERSION:String = 0.5.52