URL.createObjectURL(stream)
has been deprecated in favor of video.srcObject = stream
, which is now recommended for use instead.
In my current project, I'm utilizing a frontend framework called Vue.js and binding variables to the video element like this:
:src="video_src"
where
video_src = URL.createObjectURL(stream)
There are instances where I have multiple URL.createObjectURL(stream)
within an array looped through with the use of the v-for
directive.
Is using video.srcObject = stream
the only way to access the exact element?