public class MediaPlayerRenderer extends java.lang.Object implements IVeeplayRenderer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
rendererIdentifier |
| Constructor and Description |
|---|
MediaPlayerRenderer() |
| Modifier and Type | Method and Description |
|---|---|
int |
duration() |
int |
getCurrentPosition() |
static int |
getPriorityIndex() |
View |
getView() |
boolean |
handlesInitialPlaybackTime() |
void |
init(Activity activity) |
void |
loadStatePlayable() |
void |
onActivityPaused() |
void |
onActivityResumed() |
void |
onBufferingUpdate(MediaPlayer mp,
int percent) |
void |
onCompletion(MediaPlayer mp) |
boolean |
onError(MediaPlayer mp,
int what,
int extra) |
boolean |
onInfo(MediaPlayer mp,
int what,
int extra) |
void |
onPrepared(MediaPlayer mp) |
void |
onSeekComplete(MediaPlayer mp) |
void |
onVideoSizeChanged(MediaPlayer mp,
int width,
int height) |
void |
pause() |
void |
playingSurfaceSizeChanged()
Method used to compute the surface of the screen
|
void |
playVideo(java.lang.String url) |
void |
playVideo(java.lang.String url,
java.lang.String subtitlesUrl) |
void |
recylePlayerView() |
void |
release() |
boolean |
resumePlay() |
void |
seekTo(int pos) |
void |
setMute(boolean toMute) |
void |
setVolume(float volume) |
void |
switchSurface(PlayerView newSurface) |
java.lang.String |
type() |
void |
unitFinished(APSMediaPlayer.MPMovieFinishReason reason) |
public static int getPriorityIndex()
public void playVideo(java.lang.String url)
playVideo in interface IVeeplayRendererpublic void playVideo(java.lang.String url,
java.lang.String subtitlesUrl)
playVideo in interface IVeeplayRendererpublic void onPrepared(MediaPlayer mp)
public void onBufferingUpdate(MediaPlayer mp,
int percent)
public void onCompletion(MediaPlayer mp)
public boolean onError(MediaPlayer mp,
int what,
int extra)
public boolean onInfo(MediaPlayer mp,
int what,
int extra)
public void onVideoSizeChanged(MediaPlayer mp,
int width,
int height)
public View getView()
getView in interface IVeeplayRendererpublic void pause()
pause in interface IVeeplayRendererpublic boolean resumePlay()
resumePlay in interface IVeeplayRendererpublic void unitFinished(APSMediaPlayer.MPMovieFinishReason reason)
unitFinished in interface IVeeplayRendererpublic void loadStatePlayable()
public void playingSurfaceSizeChanged()
playingSurfaceSizeChanged in interface IVeeplayRendererpublic int duration()
duration in interface IVeeplayRendererpublic void init(Activity activity)
init in interface IVeeplayRendererpublic void release()
release in interface IVeeplayRendererpublic void seekTo(int pos)
seekTo in interface IVeeplayRendererpublic void onActivityPaused()
onActivityPaused in interface IVeeplayRendererpublic void onActivityResumed()
onActivityResumed in interface IVeeplayRendererpublic int getCurrentPosition()
getCurrentPosition in interface IVeeplayRendererpublic boolean handlesInitialPlaybackTime()
handlesInitialPlaybackTime in interface IVeeplayRendererpublic void setMute(boolean toMute)
setMute in interface IVeeplayRendererpublic void setVolume(float volume)
setVolume in interface IVeeplayRendererpublic void switchSurface(PlayerView newSurface)
switchSurface in interface IVeeplayRendererpublic void recylePlayerView()
recylePlayerView in interface IVeeplayRendererpublic void onSeekComplete(MediaPlayer mp)