diff --git a/react/features/base/media/components/web/Video.tsx b/react/features/base/media/components/web/Video.tsx index 8acc2d1643d8..0a1d5442d6ae 100644 --- a/react/features/base/media/components/web/Video.tsx +++ b/react/features/base/media/components/web/Video.tsx @@ -239,7 +239,8 @@ class Video extends Component { // Prevent uncaught "DOMException: The play() request was interrupted by a new load request" // when video playback takes long to start and it starts after the component was unmounted. if (this._mounted) { - throw error; + logger.error(`Error while trying to play video with id ${ + this.props.id} and video track ${this.props.videoTrack?.jitsiTrack}: ${error}`); } }); } @@ -276,6 +277,9 @@ class Video extends Component { this._attachTrack(nextProps.videoTrack).catch((_error: Error) => { // Ignore the error. We are already logging it. }); + + // NOTE: We may want to consider calling .play() explicitly in this case if any issues araise in future. + // For now it seems we are good with the autoplay attribute of the video element. } if (this.props.style !== nextProps.style || this.props.className !== nextProps.className) { diff --git a/react/features/device-selection/components/VideoInputPreview.web.tsx b/react/features/device-selection/components/VideoInputPreview.web.tsx index fc7cf1c74e86..f13a56499f17 100644 --- a/react/features/device-selection/components/VideoInputPreview.web.tsx +++ b/react/features/device-selection/components/VideoInputPreview.web.tsx @@ -59,6 +59,7 @@ const VideoInputPreview = ({ error, localFlipX, track }: IProps) => {