public class CastRenderer extends java.lang.Object implements IVeeplayRenderer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
rendererIdentifier |
| Constructor and Description |
|---|
CastRenderer() |
| Modifier and Type | Method and Description |
|---|---|
int |
duration() |
int |
getCurrentPosition() |
static int |
getPriorityIndex() |
View |
getView() |
boolean |
handlesInitialPlaybackTime() |
void |
init(Activity activity) |
void |
onActivityPaused() |
void |
onActivityResumed() |
void |
pause() |
void |
playingSurfaceSizeChanged()
Method used to compute the surface of the screen
|
void |
playVideo(java.lang.String videoUrl)
IVeeplayRenderer Implementation
|
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 videoUrl)
playVideo in interface IVeeplayRendererpublic void playVideo(java.lang.String url,
java.lang.String subtitlesUrl)
playVideo 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 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 IVeeplayRenderer