Display Below error in Safari.
Failed to execute \'createObjectURL\' on \'URL\': No function was found that matched the signature provided.
This error is caused because the function createObjectURL is deprecated for Google Chrome
createObjectURL
I changed this:
video.src=vendorUrl.createObjectURL(stream); video.play();
to this:
video.srcObject=stream; video.play();
This worked for me.