Skip to content

Commit

Permalink
fix: avoid send video size with zero value
Browse files Browse the repository at this point in the history
  • Loading branch information
tyohan committed Oct 11, 2024
1 parent b48d7d4 commit e167002
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/room/observer/video-observer.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ export class VideoObserver {
* @returns {void}
*/
#onVideoSizeChanged(id, width, height) {
if (width === 0 || height === 0) {
return
}

if (id in this.#delayedReports) {
clearTimeout(this.#delayedReports[id])

Expand Down

0 comments on commit e167002

Please sign in to comment.