Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

140
Views
videoTileWasRemoved() not being called after stopVideoInput() is called

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();
          }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

When you call stopVideoInput, only videoTileDidUpdate will get called with the inactive tile state. Chime SDK is reusing the same local tile object when you restart it by calling startLocalVideoTile.

videoTileDidUpdate: tileState => {
   if (tileState.localTile) {
     // tileState.active will be false when you call stopLocalVideoTile
   }
}

videoTileWasRemoved gets invoked when you call removeLocalVideoTile. Chime SDK will remove the local video tile. Please review the "Stop sharing your video" example in: AWS Chime SDK - Video

Source: AWS Chime SKD GitHub

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!