Share via


TvView.TvInputCallback.OnVideoUnavailable Method

Definition

This is called when the video is not available, so the TV input stops the playback.

[Android.Runtime.Register("onVideoUnavailable", "(Ljava/lang/String;I)V", "GetOnVideoUnavailable_Ljava_lang_String_IHandler")]
public virtual void OnVideoUnavailable (string? inputId, Android.Media.TV.VideoUnavailableReason reason);
[<Android.Runtime.Register("onVideoUnavailable", "(Ljava/lang/String;I)V", "GetOnVideoUnavailable_Ljava_lang_String_IHandler")>]
abstract member OnVideoUnavailable : string * Android.Media.TV.VideoUnavailableReason -> unit
override this.OnVideoUnavailable : string * Android.Media.TV.VideoUnavailableReason -> unit

Parameters

inputId
String

The ID of the TV input bound to this view.

reason
VideoUnavailableReason

The reason why the TV input stopped the playback: <ul> <li>TvInputManager#VIDEO_UNAVAILABLE_REASON_UNKNOWN<li>TvInputManager#VIDEO_UNAVAILABLE_REASON_TUNING<li>TvInputManager#VIDEO_UNAVAILABLE_REASON_WEAK_SIGNAL<li>TvInputManager#VIDEO_UNAVAILABLE_REASON_BUFFERING<li>TvInputManager#VIDEO_UNAVAILABLE_REASON_AUDIO_ONLY</ul>

Attributes

Remarks

This is called when the video is not available, so the TV input stops the playback.

Java documentation for android.media.tv.TvView.TvInputCallback.onVideoUnavailable(java.lang.String, int).

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