Share via


MediaPlayer.IOnMediaTimeDiscontinuityListener Interface

Definition

Interface definition of a callback to be invoked when discontinuity in the normal progression of the media time is detected.

[Android.Runtime.Register("android/media/MediaPlayer$OnMediaTimeDiscontinuityListener", "", "Android.Media.MediaPlayer/IOnMediaTimeDiscontinuityListenerInvoker", ApiSince=28)]
public interface MediaPlayer.IOnMediaTimeDiscontinuityListener : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/media/MediaPlayer$OnMediaTimeDiscontinuityListener", "", "Android.Media.MediaPlayer/IOnMediaTimeDiscontinuityListenerInvoker", ApiSince=28)>]
type MediaPlayer.IOnMediaTimeDiscontinuityListener = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Attributes
Implements

Remarks

Interface definition of a callback to be invoked when discontinuity in the normal progression of the media time is detected. The "normal progression" of media time is defined as the expected increase of the playback position when playing media, relative to the playback speed (for instance every second, media time increases by two seconds when playing at 2x).<br> Discontinuities are encountered in the following cases: <ul> <li>when the player is starved for data and cannot play anymore</li> <li>when the player encounters a playback error</li> <li>when the a seek operation starts, and when it's completed</li> <li>when the playback speed changes</li> <li>when the playback state changes</li> <li>when the player is reset</li> </ul> See the MediaPlayer#setOnMediaTimeDiscontinuityListener(OnMediaTimeDiscontinuityListener, Handler) method to set a listener for these events.

Java documentation for android.media.MediaPlayer.OnMediaTimeDiscontinuityListener.

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.

Properties

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)

Methods

Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
OnMediaTimeDiscontinuity(MediaPlayer, MediaTimestamp)

Called to indicate a time discontinuity has occured.

SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to