addVideoBox method

void addVideoBox(
  1. int textureId
)

Implementation

void addVideoBox(int textureId) {
  if (_src == null) {
    return;
  }

  TextureBox box = TextureBox(textureId: textureId);

  addChild(box);

  if (_autoplay) {
    controller!.play();
  }
}