public class RtpdumpMediaDevice
extends java.lang.Object
Constructor and Description |
---|
RtpdumpMediaDevice() |
Modifier and Type | Method and Description |
---|---|
static MediaDevice |
createRtpdumpAudioMediaDevice(java.lang.String filePath,
javax.media.format.AudioFormat format)
Create a new audio MediaDevice instance which will read
the rtpdump file located at filePath, and which will have the
encoding format format.
|
static MediaDevice |
createRtpdumpVideoMediaDevice(java.lang.String filePath,
java.lang.String rtpEncodingConstant,
MediaFormat format)
Create a new video MediaDevice instance which will read
the rtpdump file located at filePath, and which will have the
encoding format encodingConstant.
|
public static MediaDevice createRtpdumpVideoMediaDevice(java.lang.String filePath, java.lang.String rtpEncodingConstant, MediaFormat format)
filePath
- the location of the rtpdump filertpEncodingConstant
- the format this MediaDevice will have.
You can find the list of possible format in the class Constants
of libjitsi (ex : Constants.VP8_RTP).format
- the MediaFormat of the data contained in the
payload of the recorded rtp packet in the rtpdump file.public static MediaDevice createRtpdumpAudioMediaDevice(java.lang.String filePath, javax.media.format.AudioFormat format)
RtpdumpStream.RtpdumpStream(DataSource, javax.media.control.FormatControl)
TODO: Avoid this hack...filePath
- the location of the rtpdump fileformat
- the AudioFormat of the data contained in the
payload of the recorded rtp packet in the rtpdump file.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.