Этот коммит содержится в:
enahum
2016-09-20 12:58:39 -03:00
коммит произвёл Christopher Speller
родитель 0157e613bd
Коммит b072fdb23f
3 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@@ -172,10 +172,8 @@ export default class WebrtcController extends React.Component {
{
audio: true,
video: {
mandatory: {
minAspectRatio: MIN_ASPECT,
maxAspectRatio: MAX_ASPECT
},
minAspectRatio: MIN_ASPECT,
maxAspectRatio: MAX_ASPECT,
width: VIDEO_WIDTH,
height: VIDEO_HEIGHT
}
@@ -726,8 +724,10 @@ export default class WebrtcController extends React.Component {
this.videocall.hangup();
this.toggleIcons();
this.localMedia.getVideoTracks()[0].enabled = true;
this.localMedia.getAudioTracks()[0].enabled = true;
if (this.localMedia) {
this.localMedia.getVideoTracks()[0].enabled = true;
this.localMedia.getAudioTracks()[0].enabled = true;
}
}
if (error) {