Class Rtp
- java.lang.Object
-
- rocks.xmpp.extensions.jingle.apps.model.ApplicationFormat
-
- rocks.xmpp.extensions.jingle.apps.rtp.model.Rtp
-
public final class Rtp extends ApplicationFormat
The implementation of the<description/>
element in theurn:xmpp:jingle:apps:rtp:1
namespace.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Rtp.Bandwidth
Specifies the allowable or preferred bandwidth for use by this application type.static class
Rtp.Crypto
The crypto element, which is used for the Secure Real-time Transport Protocol.static class
Rtp.Encryption
The encryption element, which is used for the Secure Real-time Transport Protocol.static class
Rtp.PayloadType
The payload type which specifies an encoding that can be used for the RTP stream.
-
Constructor Summary
Constructors Constructor Description Rtp(String media)
Rtp(String media, String ssrc, Rtp.Bandwidth bandwidth, Rtp.Encryption encryption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rtp.Bandwidth
getBandwidth()
Gets the band width.Rtp.Encryption
getEncryption()
Gets the encryption element.String
getMedia()
Gets the media, such as "audio" or "video".List<Rtp.PayloadType>
getPayloadTypes()
Gets the payload types.String
getSynchronizationSource()
Gets the 32-bit synchronization source for this media stream, as defined in RFC 3550.
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
urn:xmpp:jingle:apps:rtp:1- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Rtp
public Rtp(String media)
- Parameters:
media
- The media type, such as "audio" or "video", where the media type SHOULD be as registered at IANA MIME Media Types Registry.
-
Rtp
public Rtp(String media, String ssrc, Rtp.Bandwidth bandwidth, Rtp.Encryption encryption)
- Parameters:
media
- The media type, such as "audio" or "video", where the media type SHOULD be as registered at IANA MIME Media Types Registry.ssrc
- Specifies the 32-bit synchronization source for this media stream, as defined in RFC 3550.bandwidth
- The allowable or preferred bandwidth for use by this application type.encryption
- The encryption.
-
-
Method Detail
-
getMedia
public String getMedia()
Gets the media, such as "audio" or "video".- Returns:
- The media.
-
getPayloadTypes
public List<Rtp.PayloadType> getPayloadTypes()
Gets the payload types.- Returns:
- The payload types.
-
getEncryption
public Rtp.Encryption getEncryption()
Gets the encryption element.- Returns:
- The encryption.
-
getSynchronizationSource
public String getSynchronizationSource()
Gets the 32-bit synchronization source for this media stream, as defined in RFC 3550.- Returns:
- The 32-bit synchronization source for this media stream, as defined in RFC 3550.
-
getBandwidth
public Rtp.Bandwidth getBandwidth()
Gets the band width.- Returns:
- The band width.
-
-