PeerConnection.SdpSemantics

tee3.webrtc

## 枚举 PeerConnection.SdpSemantics

- java.lang.Object
- - java.lang.Enum<PeerConnection.SdpSemantics>
  - - tee3.webrtc.PeerConnection.SdpSemantics

- 所有已实现的接口:
    java.io.Serializable, java.lang.Comparable<PeerConnection.SdpSemantics>
  封闭类:
    PeerConnection

      public static enum PeerConnection.SdpSemantics
      extends java.lang.Enum<PeerConnection.SdpSemantics>

  Java version of webrtc::SdpSemantics. Configure the SDP semantics used by this PeerConnection. Note that the WebRTC 1.0 specification requires UNIFIED_PLAN semantics. The RtpTransceiver API is only available with UNIFIED_PLAN semantics.

  PLAN_B will cause PeerConnection to create offers and answers with at most one audio and one video m= section with multiple RtpSenders and RtpReceivers specified as multiple a=ssrc lines within the section. This will also cause PeerConnection to ignore all but the first m= section of the same media type.

  UNIFIED_PLAN will cause PeerConnection to create offers and answers with multiple m= sections where each m= section maps to one RtpSender and one RtpReceiver (an RtpTransceiver), either both audio or both video. This will also cause PeerConnection to ignore all but the first a=ssrc lines that form a Plan B stream.

  For users who wish to send multiple audio/video streams and need to stay interoperable with legacy WebRTC implementations, specify PLAN_B.

  For users who wish to send multiple audio/video streams and/or wish to use the new RtpTransceiver API, specify UNIFIED_PLAN.

- - ### 枚举常量概要

    枚举常量
    枚举常量和说明
    `PLAN_B`
    `UNIFIED_PLAN`

  - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static PeerConnection.SdpSemantics` | `valueOf(java.lang.String name)` 返回带有指定名称的该类型的枚举常量。
    `static PeerConnection.SdpSemantics[]` | `values()` 按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。

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

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

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

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### 枚举常量详细资料

    - #### PLAN_B

          public static final PeerConnection.SdpSemantics PLAN_B

    - #### UNIFIED_PLAN

          public static final PeerConnection.SdpSemantics UNIFIED_PLAN

  - ### 方法详细资料

    - #### values

          public static PeerConnection.SdpSemantics[] values()

      按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:

          for (PeerConnection.SdpSemantics c : PeerConnection.SdpSemantics.values())
              System.out.println(c);

      返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组

    - #### valueOf

          public static PeerConnection.SdpSemantics valueOf(java.lang.String name)

      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
        `name` - 要返回的枚举常量的名称。
      返回:
        返回带有指定名称的枚举常量
      抛出:
        `java.lang.IllegalArgumentException` - 如果该枚举类型没有带有指定名称的常量
        `java.lang.NullPointerException` - 如果参数为空值