This commit is contained in:
Henry Hiles 2022-06-12 10:13:30 -04:00
parent 4b0d3433c5
commit bf29f728f0

View file

@ -73,7 +73,9 @@ export const addVideoStream = (videoContainer, username, stream, isYours) => {
if (CSS.supports("::-webkit-media-controls-panel"))
video.controls = "controls"
video.addEventListener("loadedmetadata", async () => {
video.muted = true
if (isYours) {
video.muted = true
}
try {
await video.play()
} catch (error) {