Udostępnij za pośrednictwem


AudioCodec.GetCodec(Int32, String, String) Method

Definition

Creates an AudioCodec according to the given configuration.

[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

Parameters

type
Int32

The payload type of the encoding defined in RTP/AVP.

rtpmap
String

The encoding parameters specified in the corresponding SDP attribute, or null if it is not available.

fmtp
String

The format parameters specified in the corresponding SDP attribute, or null if it is not available.

Returns

The configured AudioCodec or null if it is not supported.

Attributes

Remarks

Creates an AudioCodec according to the given configuration.

Java documentation for android.net.rtp.AudioCodec.getCodec(int, java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to