public class RtpSender
extends java.lang.Object
Constructor and Description |
---|
RtpSender(long nativeRtpSender) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
DtmfSender |
dtmf() |
RtpParameters |
getParameters() |
java.util.List<java.lang.String> |
getStreams() |
java.lang.String |
id() |
void |
setFrameEncryptor(FrameEncryptor frameEncryptor) |
boolean |
setParameters(RtpParameters parameters) |
void |
setStreams(java.util.List<java.lang.String> streamIds) |
boolean |
setTrack(MediaStreamTrack track,
boolean takeOwnership)
Starts sending a new track, without requiring additional SDP negotiation.
|
MediaStreamTrack |
track() |
public boolean setTrack(@Nullable MediaStreamTrack track, boolean takeOwnership)
Note: This is equivalent to replaceTrack in the official WebRTC API. It was just implemented before the standards group settled on a name.
takeOwnership
- If true, the RtpSender takes ownership of the track
from the caller, and will auto-dispose of it when no
longer needed. |takeOwnership| should only be used if
the caller owns the track; it is not appropriate when
the track is owned by, for example, another RtpSender
or a MediaStream.@Nullable public MediaStreamTrack track()
public void setStreams(java.util.List<java.lang.String> streamIds)
public java.util.List<java.lang.String> getStreams()
public boolean setParameters(RtpParameters parameters)
public RtpParameters getParameters()
public java.lang.String id()
@Nullable public DtmfSender dtmf()
public void setFrameEncryptor(FrameEncryptor frameEncryptor)
public void dispose()
7.0.0