Fix mute video
This commit is contained in:
parent
2dab961f55
commit
71185dcd54
@ -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({
|
||||||
|
|||||||
@ -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>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user