VideoStreamRendererView Class
- java.
lang. Object - FrameLayout
- com.
azure. android. communication. calling. VideoStreamRendererView
- com.
public class VideoStreamRendererView
VideoStreamRendererView representing the rendering surface to attach to a UI to render the Video Stream
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Removes the videoStreamView from the view hierarchy |
boolean |
isRendering()
Retrieve the current rendering state |
void | onFrameSizeChanged(SurfaceTexture surfaceTexture, int width, int height) |
void | onOrientationChanged(int causeId) |
void | onPreviewSurfaceUnset(SurfaceTexture surfaceTexture) |
void | onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) |
boolean | onSurfaceTextureDestroyed(SurfaceTexture surface) |
void | onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) |
void | onSurfaceTextureUpdated(SurfaceTexture surface) |
void |
updateScalingMode(ScalingMode scalingMode)
Updates the ScalingMode |
Method Details
dispose
public void dispose()
Removes the videoStreamView from the view hierarchy
isRendering
public boolean isRendering()
Retrieve the current rendering state
Returns:
onFrameSizeChanged
public void onFrameSizeChanged(SurfaceTexture surfaceTexture, int width, int height)
Parameters:
onOrientationChanged
public void onOrientationChanged(int causeId)
Overrides:
VideoStreamRendererView.onOrientationChanged(int causeId)Parameters:
onPreviewSurfaceUnset
public void onPreviewSurfaceUnset(SurfaceTexture surfaceTexture)
Parameters:
onSurfaceTextureAvailable
public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height)
Parameters:
onSurfaceTextureDestroyed
public boolean onSurfaceTextureDestroyed(SurfaceTexture surface)
Parameters:
onSurfaceTextureSizeChanged
public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height)
Parameters:
onSurfaceTextureUpdated
public void onSurfaceTextureUpdated(SurfaceTexture surface)
Parameters:
updateScalingMode
public void updateScalingMode(ScalingMode scalingMode)
Updates the ScalingMode
Parameters: