Package org.red5.io.flv.meta
Class MetaCue<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- org.red5.io.flv.meta.MetaCue<K,V>
-
- Type Parameters:
K- key typeV- value type
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Object>,Map<String,Object>,IMeta,IMetaCue
public class MetaCue<K,V> extends HashMap<String,Object> implements IMetaCue
Cue point is metadata marker used to control and accompany video playback with client-side application events. Each cue point have at least one attribute, timestamp. Timestamp specifies position of cue point in FLV file.
Cue points are usually used as event triggers down video flow or navigation points in a file. Cue points are of two types:- Embedded into FLV or SWF
- External, or added on fly (e.g. with FLVPlayback component or ActionScript) on both server-side and client-side.
To add cue point trigger event listener at client-side in Flex/Flash application, use NetStream.onCuePoint event handler.- Author:
- The Red5 Project, Dominick Accattato (daccattato@gmail.com), Luke Hubbard, Codegent Ltd (luke@codegent.com)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description MetaCue()CuePoint constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object arg0)StringgetName()Gets the namedoublegetTime()Gets the timeStringgetType()Gets the typevoidsetName(String name)Sets the namevoidsetTime(double d)Sets the timevoidsetType(String type)Sets the type type can be "event" or "navigation"StringtoString()-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode
-
-
-
-
Method Detail
-
setName
public void setName(String name)
Sets the name
-
getName
public String getName()
Gets the name
-
setType
public void setType(String type)
Sets the type type can be "event" or "navigation"
-
getType
public String getType()
Gets the type
-
setTime
public void setTime(double d)
Sets the time
-
getTime
public double getTime()
Gets the time
-
compareTo
public int compareTo(Object arg0)
- Specified by:
compareToin interfaceComparable<K>
-
toString
public String toString()
- Overrides:
toStringin classAbstractMap<String,Object>
-
-