srcObject
The srcObject property of the HTMLMediaElement interface represents the media stream that is currently assigned to the element. This media stream can be a local stream obtained from a user's camera and microphone, or a remote stream received from a network connection, such as during a video call.
When a MediaStream object is assigned to srcObject, the media element begins to play the audio and/or
The srcObject property can also be set to null. Setting it to null effectively stops the playback
Accessing srcObject returns the MediaStream object currently associated with the media element. If no stream is