public class ExoPlayerRenderer extends java.lang.Object implements ExoPlayerInterface.Listener, ExoPlayerInterface.CaptionListener, ExoPlayerInterface.Id3MetadataListener, com.google.android.exoplayer.audio.AudioCapabilitiesReceiver.Listener, IVeeplayRenderer
ExoPlayerInterface.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
rendererIdentifier |
| Constructor and Description |
|---|
ExoPlayerRenderer() |
| Modifier and Type | Method and Description |
|---|---|
int |
duration() |
int |
getCurrentPosition() |
com.google.android.exoplayer.ExoPlayer |
getExoPlayerInstance() |
static int |
getPriorityIndex() |
View |
getView() |
boolean |
handlesInitialPlaybackTime() |
void |
init(Activity activity) |
void |
onActivityPaused() |
void |
onActivityResumed() |
void |
onAudioCapabilitiesChanged(com.google.android.exoplayer.audio.AudioCapabilities audioCapabilities) |
void |
onCues(java.util.List<com.google.android.exoplayer.text.Cue> cues) |
void |
onError(java.lang.Exception e) |
void |
onId3Metadata(java.util.List<com.google.android.exoplayer.metadata.id3.Id3Frame> id3Frames) |
void |
onStateChanged(boolean playWhenReady,
int playbackState) |
void |
onVideoSizeChanged(int width,
int height,
int unappliedRotationDegrees,
float pixelWidthHeightRatio) |
void |
pause() |
void |
playingSurfaceSizeChanged() |
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 position) |
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 onAudioCapabilitiesChanged(com.google.android.exoplayer.audio.AudioCapabilities audioCapabilities)
onAudioCapabilitiesChanged in interface com.google.android.exoplayer.audio.AudioCapabilitiesReceiver.Listenerpublic void onStateChanged(boolean playWhenReady,
int playbackState)
onStateChanged in interface ExoPlayerInterface.Listenerpublic void onError(java.lang.Exception e)
onError in interface ExoPlayerInterface.Listenerpublic void onVideoSizeChanged(int width,
int height,
int unappliedRotationDegrees,
float pixelWidthHeightRatio)
onVideoSizeChanged in interface ExoPlayerInterface.Listenerpublic void playVideo(java.lang.String url)
playVideo in interface IVeeplayRendererpublic void playVideo(java.lang.String url,
java.lang.String subtitlesUrl)
playVideo in interface IVeeplayRendererpublic int duration()
duration in interface IVeeplayRendererpublic void init(Activity activity)
init in interface IVeeplayRendererpublic 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 playingSurfaceSizeChanged()
playingSurfaceSizeChanged in interface IVeeplayRendererpublic void release()
release in interface IVeeplayRendererpublic void seekTo(int position)
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 onCues(java.util.List<com.google.android.exoplayer.text.Cue> cues)
onCues in interface ExoPlayerInterface.CaptionListenerpublic com.google.android.exoplayer.ExoPlayer getExoPlayerInstance()
public void onId3Metadata(java.util.List<com.google.android.exoplayer.metadata.id3.Id3Frame> id3Frames)
onId3Metadata in interface ExoPlayerInterface.Id3MetadataListener