Fix mute video
This commit is contained in:
parent
2dab961f55
commit
71185dcd54
@ -35,7 +35,7 @@ function connect() {
|
||||
}
|
||||
|
||||
function getCameraStream() {
|
||||
return getUserMedia({ video: true, audio: false })
|
||||
return getUserMedia({ video: true, audio: true })
|
||||
.then(stream => {
|
||||
debug('got our media stream:', stream);
|
||||
dispatcher.dispatch({
|
||||
|
||||
@ -34,7 +34,12 @@ function app() {
|
||||
|
||||
return (
|
||||
<div className={className} key={userId}>
|
||||
<video onClick={markActive} onLoadedMetadata={play} src={url} />
|
||||
<video
|
||||
muted={userId === '_me_'}
|
||||
onClick={markActive}
|
||||
onLoadedMetadata={play}
|
||||
src={url}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user