diff --git a/src/components/vedioCall.js b/src/components/vedioCall.js index 6d0c279..c315cef 100644 --- a/src/components/vedioCall.js +++ b/src/components/vedioCall.js @@ -22,7 +22,7 @@ class VedioCall extends Component { handleVideo= (stream)=> { // Update the state, triggering the component to re-render with the correct stream - this.refs.video.src = window.URL.createObjectURL(stream); + this.refs.video.srcObject = stream; }; videoError= ()=> { @@ -36,4 +36,4 @@ class VedioCall extends Component { } } -export default VedioCall; \ No newline at end of file +export default VedioCall;