Class VideoView

All Implemented Interfaces:
Animation, Editable, StyleListener, Iterable<Component>

public final class VideoView extends Container

Draws a video track: the local camera's preview or the other side's picture. A native view on a device, laid out like any component.

Call release() when the view is discarded, so the track stops drawing into it.

  • Constructor Details

    • VideoView

      public VideoView(MediaTrack track, boolean mirror)
      Parameters
      • track: a video track

      • mirror: whether to flip it left to right, which is what people expect of their own front camera

  • Method Details

    • isRendering

      public boolean isRendering()
      Whether the track is being drawn: false on a port that cannot draw it, where the view stays empty.
    • release

      public void release()