com.flazr.rtmp.message
Class Metadata

java.lang.Object
  extended by com.flazr.rtmp.message.AbstractMessage
      extended by com.flazr.rtmp.message.Metadata
All Implemented Interfaces:
RtmpMessage
Direct Known Subclasses:
MetadataAmf0

public abstract class Metadata
extends AbstractMessage


Nested Class Summary
 
Nested classes/interfaces inherited from class com.flazr.rtmp.message.AbstractMessage
AbstractMessage.Pair
 
Field Summary
protected  Object[] data
           
protected  String name
           
 
Fields inherited from class com.flazr.rtmp.message.AbstractMessage
header
 
Constructor Summary
Metadata(RtmpHeader header, org.jboss.netty.buffer.ChannelBuffer in)
           
Metadata(String name, Object... data)
           
 
Method Summary
static Metadata dataStart()
           
 Boolean getBoolean(String key)
           
 Object getData(int index)
           
 Double getDouble(String key)
           
 double getDuration()
           
 Map<String,Object> getMap(int index)
           
 String getName()
           
 String getString(String key)
           
static Metadata onMetaData(MovieInfo movie)
           
static Metadata onMetaDataTest(MovieInfo movie)
          [ (map){ duration=112.384, moovPosition=28.0, width=640.0, height=352.0, videocodecid=avc1, audiocodecid=mp4a, avcprofile=100.0, avclevel=30.0, aacaot=2.0, videoframerate=29.97002997002997, audiosamplerate=24000.0, audiochannels=2.0, trackinfo= [ (object){length=3369366.0, timescale=30000.0, language=eng, sampledescription=[(object){sampletype=avc1}]}, (object){length=2697216.0, timescale=24000.0, language=eng, sampledescription=[(object){sampletype=mp4a}]} ]}]
static Metadata onPlayStatus(double duration, double bytes)
           
static Metadata rtmpSampleAccess()
           
 void setDuration(double duration)
           
 void setValue(String key, Object value)
           
 String toString()
           
 
Methods inherited from class com.flazr.rtmp.message.AbstractMessage
getHeader, map, map, object, object, pair
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.flazr.rtmp.RtmpMessage
decode, encode
 

Field Detail

name

protected String name

data

protected Object[] data
Constructor Detail

Metadata

public Metadata(String name,
                Object... data)

Metadata

public Metadata(RtmpHeader header,
                org.jboss.netty.buffer.ChannelBuffer in)
Method Detail

getData

public Object getData(int index)

setValue

public void setValue(String key,
                     Object value)

getMap

public Map<String,Object> getMap(int index)

getString

public String getString(String key)

getBoolean

public Boolean getBoolean(String key)

getDouble

public Double getDouble(String key)

getDuration

public double getDuration()

setDuration

public void setDuration(double duration)

onPlayStatus

public static Metadata onPlayStatus(double duration,
                                    double bytes)

rtmpSampleAccess

public static Metadata rtmpSampleAccess()

dataStart

public static Metadata dataStart()

onMetaDataTest

public static Metadata onMetaDataTest(MovieInfo movie)
[ (map){ duration=112.384, moovPosition=28.0, width=640.0, height=352.0, videocodecid=avc1, audiocodecid=mp4a, avcprofile=100.0, avclevel=30.0, aacaot=2.0, videoframerate=29.97002997002997, audiosamplerate=24000.0, audiochannels=2.0, trackinfo= [ (object){length=3369366.0, timescale=30000.0, language=eng, sampledescription=[(object){sampletype=avc1}]}, (object){length=2697216.0, timescale=24000.0, language=eng, sampledescription=[(object){sampletype=mp4a}]} ]}]


onMetaData

public static Metadata onMetaData(MovieInfo movie)

getName

public String getName()

toString

public String toString()
Overrides:
toString in class AbstractMessage


Copyright © 2011. All Rights Reserved.