logo
On this page

ZegoCanvas

ZegoCanvas

View object.

Details

Configure view object, view Mode, background color

Declared in entity/ZegoCanvas.java

Properties

view

view
public Object view

View object

viewMode

viewMode
public ZegoViewMode viewMode

View mode, default is ZegoViewModeAspectFit

backgroundColor

backgroundColor
public int backgroundColor

Background color, the format is 0xRRGGBB, default is black, which is 0x000000

alphaBlend

alphaBlend
public boolean alphaBlend

If enable alpha blend render, default is false.

rotation

rotation
public int rotation

Rotate the angle counterclockwise, the default is 0. The media player canvas is not supported.

mirror

mirror
public boolean mirror

If enable the view mirror, default is false. Only play stream canvas is supported, for publish stream please use [setVideoMirrorMode] interface, for media player please use [enableViewMirror] interface.

viewContext

viewContext
public String viewContext

Context of view, default is empty string. A utf8 string with a maximum length of 63 bytes or less. Generally no attention is required, it can be used for slitting rendering of mixed stream, to understand the specific use, you need to contact ZEGO technical support.

Methods

ZegoCanvas

ZegoCanvas
public ZegoCanvas(Object view)
Declared in entity/ZegoCanvas.java

Previous

zegobroadcastmessageinfo

Next

zegocdnconfig

On this page

Back to top