public class

AVAdapterWrapper

extends Object
java.lang.Object
   ↳ org.opencdnunion.media.streamer.avAdaptor.AVAdapterWrapper

Class Overview

network adaptor and Audio video interleave module wrapper

Summary

Nested Classes
interface AVAdapterWrapper.OnAdapterEvent  
Constants
int BW_EST_STRATEGY_NEGATIVE
int BW_EST_STRATEGY_NORMAL
int FRAME_TYPE_AUDIO
int FRAME_TYPE_VIDEO
int RTMP_PUB_EVENT_EST_BW_DROP
int RTMP_PUB_EVENT_EST_BW_RAISE
int RTMP_PUB_EVENT_SEND_SLOW
int RTMP_PUB_EVENT_WLD_UPLOAD
int RTMP_PUB_PROPERTY_AUDIO_FRAME_NUM
int RTMP_PUB_PROPERTY_AUDIO_SEND_DELAY
int RTMP_PUB_PROPERTY_AUDIO_TS
int RTMP_PUB_PROPERTY_DROPPED_VIDEO_FRAMES
int RTMP_PUB_PROPERTY_UPLOADED_KBYTES
int RTMP_PUB_PROPERTY_VIDEO_CACHE_LENGTH
int RTMP_PUB_PROPERTY_VIDEO_FRAME_NUM
Public Constructors
AVAdapterWrapper()
Public Methods
int getPropertyInt(int property)
long getPropertyLong(int property)
synchronized void release()
void setAudioOnly(boolean audioOnly)
void setBwEstConfig(int initAudioBitrate, int initVideoBitrate, int minVideoBitrate, int maxVideoBitrate, int strategy)
void setOnPubEvent(AVAdapterWrapper.OnAdapterEvent event)
void setVideoOnly(boolean videoOnly)
int start()
int stop()
int writeFrame(int type, ByteBuffer data, long dts, long pts, int flags)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int BW_EST_STRATEGY_NEGATIVE

Constant Value: 1 (0x00000001)

public static final int BW_EST_STRATEGY_NORMAL

Constant Value: 0 (0x00000000)

public static final int FRAME_TYPE_AUDIO

Constant Value: 1 (0x00000001)

public static final int FRAME_TYPE_VIDEO

Constant Value: 2 (0x00000002)

public static final int RTMP_PUB_EVENT_EST_BW_DROP

Constant Value: 102 (0x00000066)

public static final int RTMP_PUB_EVENT_EST_BW_RAISE

Constant Value: 101 (0x00000065)

public static final int RTMP_PUB_EVENT_SEND_SLOW

Constant Value: 100 (0x00000064)

public static final int RTMP_PUB_EVENT_WLD_UPLOAD

Constant Value: 103 (0x00000067)

public static final int RTMP_PUB_PROPERTY_AUDIO_FRAME_NUM

Constant Value: 3 (0x00000003)

public static final int RTMP_PUB_PROPERTY_AUDIO_SEND_DELAY

Constant Value: 5 (0x00000005)

public static final int RTMP_PUB_PROPERTY_AUDIO_TS

Constant Value: 6 (0x00000006)

public static final int RTMP_PUB_PROPERTY_DROPPED_VIDEO_FRAMES

Constant Value: 2 (0x00000002)

public static final int RTMP_PUB_PROPERTY_UPLOADED_KBYTES

Constant Value: 1 (0x00000001)

public static final int RTMP_PUB_PROPERTY_VIDEO_CACHE_LENGTH

Constant Value: 7 (0x00000007)

public static final int RTMP_PUB_PROPERTY_VIDEO_FRAME_NUM

Constant Value: 4 (0x00000004)

Public Constructors

public AVAdapterWrapper ()

Public Methods

public int getPropertyInt (int property)

public long getPropertyLong (int property)

public synchronized void release ()

public void setAudioOnly (boolean audioOnly)

public void setBwEstConfig (int initAudioBitrate, int initVideoBitrate, int minVideoBitrate, int maxVideoBitrate, int strategy)

public void setOnPubEvent (AVAdapterWrapper.OnAdapterEvent event)

public void setVideoOnly (boolean videoOnly)

public int start ()

public int stop ()

public int writeFrame (int type, ByteBuffer data, long dts, long pts, int flags)