The id read-only property of the MediaStream interface is a string containing 36 characters denoting a unique identifier (GUID) for the object.
A string.
const promise = navigator.mediaDevices.getUserMedia({
audio: true,
video: true,
});
promise.then((stream) => {
console.log(stream.id);
});MediaStream, the interface this property belongs to.