AudioCodec.GetCodec(Int32, String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據指定配置建立 AudioCodec。
[Android.Runtime.Register("getCodec", "(ILjava/lang/String;Ljava/lang/String;)Landroid/net/rtp/AudioCodec;", "")]
public static Android.Net.Rtp.AudioCodec? GetCodec(int type, string? rtpmap, string? fmtp);
[<Android.Runtime.Register("getCodec", "(ILjava/lang/String;Ljava/lang/String;)Landroid/net/rtp/AudioCodec;", "")>]
static member GetCodec : int * string * string -> Android.Net.Rtp.AudioCodec
參數
- type
- Int32
RTP/AVP 定義的編碼有效載荷類型。
- rtpmap
- String
編碼參數在對應的 SDP 屬性中指定,若無法使用則為 null。
- fmtp
- String
格式參數在對應的 SDP 屬性中指定,若無法使用則為 null。
傳回
如果不支援的話,是設定好的 AudioCodec null 。
- 屬性
備註
根據指定配置建立 AudioCodec。
Java 文件 android.net.rtp.AudioCodec.getCodec(int, java.lang.String, java.lang.String)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。