Class CastRenderer
java.lang.Object
com.appscend.media.renderers.CastRenderer
- All Implemented Interfaces:
KRAdapter, IVeeplayRenderer
Created by Andrei Marinescu on 5.11.2019.
Renderer implementation of the Media3 Cast player
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintduration()intstatic intandroid.view.ViewgetView()booleanvoidinit(android.app.Activity activity) voidvoidvoidpause()voidMethod used to compute the surface of the screenvoidIVeeplayRenderer Implementationvoidvoidvoidrelease()booleanvoidseekTo(int pos) voidsetMute(boolean toMute) voidsetVolume(float volume) type()voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IVeeplayRenderer
switchSurfaceModifier and TypeMethodDescriptiondefault voidswitchSurface(PlayerView newSurface) Deprecated.No renderer switches surfaces.
-
Field Details
-
rendererIdentifier
-
-
Constructor Details
-
CastRenderer
public CastRenderer()
-
-
Method Details
-
getPriorityIndex
public static int getPriorityIndex() -
playVideo
IVeeplayRenderer Implementation- Specified by:
playVideoin interfaceIVeeplayRenderer
-
playVideo
- Specified by:
playVideoin interfaceIVeeplayRenderer
-
getView
public android.view.View getView()- Specified by:
getViewin interfaceIVeeplayRenderer
-
pause
public void pause()- Specified by:
pausein interfaceIVeeplayRenderer
-
resumePlay
public boolean resumePlay()- Specified by:
resumePlayin interfaceIVeeplayRenderer
-
unitFinished
- Specified by:
unitFinishedin interfaceIVeeplayRenderer
-
playingSurfaceSizeChanged
public void playingSurfaceSizeChanged()Method used to compute the surface of the screen- Specified by:
playingSurfaceSizeChangedin interfaceIVeeplayRenderer
-
duration
public int duration()- Specified by:
durationin interfaceIVeeplayRenderer
-
init
public void init(android.app.Activity activity) - Specified by:
initin interfaceIVeeplayRenderer
-
release
public void release()- Specified by:
releasein interfaceIVeeplayRenderer
-
seekTo
public void seekTo(int pos) - Specified by:
seekToin interfaceIVeeplayRenderer
-
onActivityPaused
public void onActivityPaused()- Specified by:
onActivityPausedin interfaceIVeeplayRenderer
-
onActivityResumed
public void onActivityResumed()- Specified by:
onActivityResumedin interfaceIVeeplayRenderer
-
getCurrentPosition
public int getCurrentPosition()- Specified by:
getCurrentPositionin interfaceIVeeplayRenderer
-
handlesInitialPlaybackTime
public boolean handlesInitialPlaybackTime()- Specified by:
handlesInitialPlaybackTimein interfaceIVeeplayRenderer
-
setMute
public void setMute(boolean toMute) - Specified by:
setMutein interfaceIVeeplayRenderer
-
setVolume
public void setVolume(float volume) - Specified by:
setVolumein interfaceIVeeplayRenderer
-
recylePlayerView
public void recylePlayerView()- Specified by:
recylePlayerViewin interfaceIVeeplayRenderer
-
type
-