public interface RenderView
Modifier and Type | Method and Description |
---|---|
android.content.Context |
getContext() |
int |
getHeight() |
android.view.SurfaceHolder |
getHolder() |
android.view.ViewGroup.LayoutParams |
getLayoutParams() |
int |
getMeasuredHeight() |
int |
getMeasuredVideoHeight() |
int |
getMeasuredVideoWidth() |
android.view.ViewParent |
getParent() |
Video.ProjectionFormat |
getProjectionFormat() |
android.view.Surface |
getSurface() |
int |
getVideoHeight() |
int |
getVideoWidth() |
int |
getWidth() |
void |
invalidate() |
boolean |
isShown() |
boolean |
isVrMode()
Checks whether the surface is currently configured to render the video in Google VR mode.
|
void |
release() |
void |
setLayoutParams(android.view.ViewGroup.LayoutParams layoutParams) |
void |
setProjectionFormat(Video.ProjectionFormat projectionFormat) |
void |
setSurface(android.view.Surface surface) |
void |
setVideoSize(int videoWidth,
int videoHeight) |
void |
setVisibility(int visibility) |
void |
setVrMode(boolean vrMode)
Sets whether the surface should render the video in Google VR mode.
|
android.content.Context getContext()
android.view.SurfaceHolder getHolder()
int getHeight()
android.view.ViewGroup.LayoutParams getLayoutParams()
int getMeasuredHeight()
int getMeasuredVideoHeight()
int getMeasuredVideoWidth()
int getWidth()
int getVideoHeight()
int getVideoWidth()
android.view.ViewParent getParent()
android.view.Surface getSurface()
void setSurface(android.view.Surface surface)
void invalidate()
void release()
void setLayoutParams(android.view.ViewGroup.LayoutParams layoutParams)
void setVideoSize(int videoWidth, int videoHeight)
void setVisibility(int visibility)
boolean isShown()
@NonNull Video.ProjectionFormat getProjectionFormat()
void setProjectionFormat(@Nullable Video.ProjectionFormat projectionFormat)
boolean isVrMode()
setVrMode(boolean)
void setVrMode(boolean vrMode)
vrMode
- true if Google VR mode should be enabled, otherwise false.isVrMode()