다음을 통해 공유


MediaExtractor.SetMediaCas(MediaCas) Method

Definition

Sets the MediaCas instance to use.

[Android.Runtime.Register("setMediaCas", "(Landroid/media/MediaCas;)V", "", ApiSince=26)]
public void SetMediaCas (Android.Media.MediaCas mediaCas);
[<Android.Runtime.Register("setMediaCas", "(Landroid/media/MediaCas;)V", "", ApiSince=26)>]
member this.SetMediaCas : Android.Media.MediaCas -> unit

Parameters

mediaCas
MediaCas

the MediaCas object to use.

Attributes

Remarks

Sets the MediaCas instance to use. This should be called after a successful setDataSource() if at least one track reports mime type of android.media.MediaFormat#MIMETYPE_AUDIO_SCRAMBLED or android.media.MediaFormat#MIMETYPE_VIDEO_SCRAMBLED. Stream parsing will not proceed until a valid MediaCas object is provided.

This member is deprecated. Use the Descrambler system API instead, or DRM public APIs like MediaDrm.

Java documentation for android.media.MediaExtractor.setMediaCas(android.media.MediaCas).

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