The active read-only property of the true if the stream is currently active; otherwise, it returns false.
active
true
false
MDN Reference