mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-08-31 17:37:48 +00:00
fix(device-selection): use non-connect video preview
Filmstrip only mode displays a device selection dialog that does not have access to the redux/connect. However, the current VideoTrack extends from AbstractVideoTrack, which assumes a redux connection. The fix is to move video display logic into a separate component and have device selection use that, while the existing VideoTrack remains connected to redux but uses the new video display component.
This commit is contained in:
committed by
hristoterezov
parent
03b4a32dd7
commit
1e84f993b4
@@ -1,6 +1,6 @@
|
||||
import React, { Component } from 'react';
|
||||
|
||||
import { VideoTrack } from '../../base/media';
|
||||
import { Video } from '../../base/media';
|
||||
|
||||
const VIDEO_ERROR_CLASS = 'video-preview-has-error';
|
||||
|
||||
@@ -42,7 +42,7 @@ class VideoInputPreview extends Component {
|
||||
|
||||
return (
|
||||
<div className = { className }>
|
||||
<VideoTrack
|
||||
<Video
|
||||
className = 'video-input-preview-display flipVideoX'
|
||||
triggerOnPlayingUpdate = { false }
|
||||
videoTrack = {{ jitsiTrack: this.props.track }} />
|
||||
|
||||
Reference in New Issue
Block a user