Share via


VideoStreamRendererView Class

  • java.lang.Object
    • FrameLayout
      • com.azure.android.communication.calling.VideoStreamRendererView

public class VideoStreamRendererView

VideoStreamRendererView representing the rendering surface to attach to a UI to render the Video Stream

Method Details

dispose

public void dispose()

Removes the videoStreamView from the view hierarchy

isRendering

public boolean isRendering()

Retrieve the current rendering state

Returns:

a boolean indicating the current rendering state

onFrameSizeChanged

public void onFrameSizeChanged(SurfaceTexture surfaceTexture, int width, int height)

Parameters:

surfaceTexture
width
height

onOrientationChanged

public void onOrientationChanged(int causeId)

Overrides:

VideoStreamRendererView.onOrientationChanged(int causeId)

Parameters:

causeId

onPreviewSurfaceUnset

public void onPreviewSurfaceUnset(SurfaceTexture surfaceTexture)

Parameters:

surfaceTexture

onSurfaceTextureAvailable

public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height)

Parameters:

surface
width
height

onSurfaceTextureDestroyed

public boolean onSurfaceTextureDestroyed(SurfaceTexture surface)

Parameters:

surface

onSurfaceTextureSizeChanged

public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height)

Parameters:

surface
width
height

onSurfaceTextureUpdated

public void onSurfaceTextureUpdated(SurfaceTexture surface)

Parameters:

surface

updateScalingMode

public void updateScalingMode(ScalingMode scalingMode)

Updates the ScalingMode

Parameters:

scalingMode - ScalingMode

Applies to