Most visited

Recently visited

Added in API level 1

MediaPlayer.OnCompletionListener

public static interface MediaPlayer.OnCompletionListener

android.media.MediaPlayer.OnCompletionListener


在媒体源播放完成时调用回调的接口定义。

Summary

Public methods

abstract void onCompletion(MediaPlayer mp)

在播放期间到达媒体源的末尾时调用。

Public methods

onCompletion

Added in API level 1
void onCompletion (MediaPlayer mp)

在播放期间到达媒体源的末尾时调用。

Parameters
mp MediaPlayer: the MediaPlayer that reached the end of the file

Hooray!