Hi
If your device is rejected in Safari browser
safari browser only
Other users’ videos are not linked.
-
safari
-
opera
-
chrom
Spec
- react
- 2.16 openvidu-browser
Source Code
import React, { useState, useEffect } from “react”;
export const OvVideoComponent = (props) => {
let videoRef = React.createRef();
useEffect(() => {
// console.log(props.user);
// console.log(videoRef);
if (props && props.user.streamManager && !!videoRef) {
// if (props.type == "pip") {
// videoRef.current.defaultMuted = props.mutedSound;
// videoRef.current.muted = props.mutedSound;
// }
props.user.getStreamManager().addVideoElement(videoRef.current);
}
});
return (
<>
<video
autoPlay={true}
id={'video-' + props.user.getStreamManager().stream.streamId}
ref={videoRef}
muted={props.mutedSound}
/>
</>
);
};
export default OvVideoComponent;