Class MetaCue<K,​V>

  • Type Parameters:
    K - key type
    V - 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
    • Constructor Detail

      • MetaCue

        public MetaCue()
        CuePoint constructor
    • Method Detail

      • setName

        public void setName​(String name)
        Sets the name
        Specified by:
        setName in interface IMetaCue
        Parameters:
        name - Cue point name
      • getName

        public String getName()
        Gets the name
        Specified by:
        getName in interface IMetaCue
        Returns:
        name Cue point name
      • setType

        public void setType​(String type)
        Sets the type type can be "event" or "navigation"
        Specified by:
        setType in interface IMetaCue
        Parameters:
        type - Cue point type
      • getType

        public String getType()
        Gets the type
        Specified by:
        getType in interface IMetaCue
        Returns:
        type Cue point type
      • setTime

        public void setTime​(double d)
        Sets the time
        Specified by:
        setTime in interface IMetaCue
        Parameters:
        d - Timestamp
      • getTime

        public double getTime()
        Gets the time
        Specified by:
        getTime in interface IMetaCue
        Returns:
        time Timestamp