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:
Leonard Kim
2017-08-30 16:58:19 -07:00
committed by hristoterezov
parent 03b4a32dd7
commit 1e84f993b4
3 changed files with 228 additions and 147 deletions

View File

@@ -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 }} />