When I call stopVideoInput() by clicking a button, on my side the video stops, but on the remote side the video just freezes instead of turning off completely. Using Chime SDK v3.
videoTileDidUpdate(tileState: VideoTileState): void {
const videoElementId = tileState.localTile ? "local-video" : "remote-video";
const videoElement: HTMLVideoElement = this.domElement(videoElementId);
if (videoElement) {
console.info("binding video element: " + videoElementId);
this._audioVideo.bindVideoElement(tileState.tileId, videoElement);
} else {
console.error(videoElementId + " video not found");
}
}
videoTileWasRemoved(tileId: number) {
console.log("videoTileWasRemoved...");
this._audioVideo.unbindVideoElement(tileId);
}
stopVideoInput is called here
endCamera(): void {
this.av.stopVideoInput();
}