RtpSender

tee3.webrtc

## 类 RtpSender

- java.lang.Object
- - tee3.webrtc.RtpSender

-     public class RtpSender
      extends java.lang.Object

  Java wrapper for a C++ RtpSenderInterface.

- - ### 构造器概要

    构造器
    构造器和说明
    `RtpSender(long nativeRtpSender)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `dispose()`
    `DtmfSender` | `dtmf()`
    `RtpParameters` | `getParameters()`
    `java.lang.String` | `id()`
    `boolean` | `setParameters(RtpParameters parameters)`
    `boolean` | `setTrack(MediaStreamTrack track, boolean takeOwnership)` Starts sending a new track, without requiring additional SDP negotiation.
    `MediaStreamTrack` | `track()`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### RtpSender

          public RtpSender(long nativeRtpSender)

  - ### 方法详细资料

    - #### setTrack

          public boolean setTrack(@Nullable
                                  MediaStreamTrack track,
                                  boolean takeOwnership)

      Starts sending a new track, without requiring additional SDP negotiation.

      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.
      返回:
        true on success and false on failure.

    - #### track

          @Nullable
          public MediaStreamTrack track()

    - #### setParameters

          public boolean setParameters(RtpParameters parameters)

    - #### getParameters

          public RtpParameters getParameters()

    - #### id

          public java.lang.String id()

    - #### dtmf

          @Nullable
          public DtmfSender dtmf()

    - #### dispose

          public void dispose()