Fix mute video

This commit is contained in:
Jerko Steiner 2016-04-24 12:02:44 -04:00
parent 2dab961f55
commit 71185dcd54
2 changed files with 7 additions and 2 deletions

View File

@ -35,7 +35,7 @@ function connect() {
} }
function getCameraStream() { function getCameraStream() {
return getUserMedia({ video: true, audio: false }) return getUserMedia({ video: true, audio: true })
.then(stream => { .then(stream => {
debug('got our media stream:', stream); debug('got our media stream:', stream);
dispatcher.dispatch({ dispatcher.dispatch({

View File

@ -34,7 +34,12 @@ function app() {
return ( return (
<div className={className} key={userId}> <div className={className} key={userId}>
<video onClick={markActive} onLoadedMetadata={play} src={url} /> <video
muted={userId === '_me_'}
onClick={markActive}
onLoadedMetadata={play}
src={url}
/>
</div> </div>
); );
}); });