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 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:

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