org.mobicents.mscontrol.sdp
Class AVProfile

java.lang.Object
  extended by org.mobicents.mscontrol.sdp.AVProfile
All Implemented Interfaces:
Cloneable

public class AVProfile
extends Object
implements Cloneable

Defines relation between audio/video format and RTP payload number as specified by Audio/Video Profile spec.

Author:
Oleg Kulikov

Field Summary
static AudioFormat AMR
           
static String AUDIO
           
static AudioFormat DTMF
           
static AudioFormat G729
           
static AudioFormat GSM
           
static VideoFormat H261
           
static VideoFormat H263
           
static AudioFormat L16_MONO
           
static AudioFormat L16_STEREO
           
static VideoFormat MP4V
           
static AudioFormat MPEG4_GENERIC
           
static AudioFormat PCMA
           
static AudioFormat PCMU
           
static AudioFormat SPEEX
           
static String VIDEO
           
 
Constructor Summary
AVProfile()
           
 
Method Summary
 AVProfile clone()
           
 AudioFormat getAudioFormat(int pt)
          Gets the audio format related to payload type.
 HashMap<Integer,AudioFormat> getAudioFormats()
           
 Hashtable<Integer,Format> getProfile()
           
 VideoFormat getVideoFormat(int pt)
          Gets the video format related to payload type.
 HashMap<Integer,VideoFormat> getVideoFormats()
           
 void setProfile(Hashtable<Integer,Format> profile)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUDIO

public static final String AUDIO
See Also:
Constant Field Values

VIDEO

public static final String VIDEO
See Also:
Constant Field Values

AMR

public static final AudioFormat AMR

PCMU

public static final AudioFormat PCMU

PCMA

public static final AudioFormat PCMA

SPEEX

public static final AudioFormat SPEEX

G729

public static final AudioFormat G729

GSM

public static final AudioFormat GSM

MPEG4_GENERIC

public static final AudioFormat MPEG4_GENERIC

L16_STEREO

public static final AudioFormat L16_STEREO

L16_MONO

public static final AudioFormat L16_MONO

DTMF

public static final AudioFormat DTMF

H261

public static final VideoFormat H261

MP4V

public static final VideoFormat MP4V

H263

public static final VideoFormat H263
Constructor Detail

AVProfile

public AVProfile()
Method Detail

setProfile

public void setProfile(Hashtable<Integer,Format> profile)

getProfile

public Hashtable<Integer,Format> getProfile()

getAudioFormats

public HashMap<Integer,AudioFormat> getAudioFormats()

getVideoFormats

public HashMap<Integer,VideoFormat> getVideoFormats()

getAudioFormat

public AudioFormat getAudioFormat(int pt)
Gets the audio format related to payload type.

Parameters:
pt - the payload type
Returns:
AudioFormat object.

getVideoFormat

public VideoFormat getVideoFormat(int pt)
Gets the video format related to payload type.

Parameters:
pt - the payload type
Returns:
VideoFormat object.

clone

public AVProfile clone()
Overrides:
clone in class Object


Copyright © 2013 TeleStax, Inc.. All Rights Reserved.