-
public interface RenderView
A common interface implemented by BrightcoveSurfaceView and BrightcoveTextureView.
-
-
Method Summary
Modifier and Type Method Description abstract Context
getContext()
abstract SurfaceHolder
getHolder()
abstract int
getHeight()
abstract ViewGroup.LayoutParams
getLayoutParams()
abstract int
getMeasuredHeight()
abstract int
getMeasuredVideoHeight()
abstract int
getMeasuredVideoWidth()
abstract int
getWidth()
abstract int
getVideoHeight()
abstract int
getVideoWidth()
abstract ViewParent
getParent()
abstract Surface
getSurface()
abstract void
setSurface(Surface surface)
abstract void
invalidate()
abstract void
release()
abstract void
setLayoutParams(ViewGroup.LayoutParams layoutParams)
abstract void
setVideoSize(int videoWidth, int videoHeight)
abstract void
setVisibility(int visibility)
abstract boolean
isShown()
abstract Video.ProjectionFormat
getProjectionFormat()
abstract void
setProjectionFormat(@Nullable() Video.ProjectionFormat projectionFormat)
abstract boolean
isVrMode()
Checks whether the surface is currently configured to render the video in Google VR mode. abstract void
setVrMode(boolean vrMode)
Sets whether the surface should render the video in Google VR mode. abstract void
zoomIn()
Updates the surface to apply a zoom in effect. abstract void
zoomOut()
Updates the surface to apply a zoom out effect. -
-
Method Detail
-
getContext
abstract Context getContext()
-
getHolder
abstract SurfaceHolder getHolder()
-
getHeight
abstract int getHeight()
-
getLayoutParams
abstract ViewGroup.LayoutParams getLayoutParams()
-
getMeasuredHeight
abstract int getMeasuredHeight()
-
getMeasuredVideoHeight
abstract int getMeasuredVideoHeight()
-
getMeasuredVideoWidth
abstract int getMeasuredVideoWidth()
-
getWidth
abstract int getWidth()
-
getVideoHeight
abstract int getVideoHeight()
-
getVideoWidth
abstract int getVideoWidth()
-
getParent
abstract ViewParent getParent()
-
getSurface
abstract Surface getSurface()
-
setSurface
abstract void setSurface(Surface surface)
-
invalidate
abstract void invalidate()
-
release
abstract void release()
-
setLayoutParams
abstract void setLayoutParams(ViewGroup.LayoutParams layoutParams)
-
setVideoSize
abstract void setVideoSize(int videoWidth, int videoHeight)
-
setVisibility
abstract void setVisibility(int visibility)
-
isShown
abstract boolean isShown()
-
getProjectionFormat
@NonNull() abstract Video.ProjectionFormat getProjectionFormat()
-
setProjectionFormat
abstract void setProjectionFormat(@Nullable() Video.ProjectionFormat projectionFormat)
-
isVrMode
abstract boolean isVrMode()
Checks whether the surface is currently configured to render the video in Google VR mode.
-
setVrMode
abstract void setVrMode(boolean vrMode)
Sets whether the surface should render the video in Google VR mode.
- Parameters:
vrMode
- true if Google VR mode should be enabled, otherwise false.
-
zoomIn
abstract void zoomIn()
Updates the surface to apply a zoom in effect.
-
zoomOut
abstract void zoomOut()
Updates the surface to apply a zoom out effect.
-
-
-
-