Adds the ability to reuse an existing MediaStream.
By default Firefox prompts the user every time we request camera access, even if we already have access to a stream.
In my app I already have a MediaStream available so this small modification allows me to reuse that stream rather than creating a new one and asking the user for access again.
Adds the ability to reuse an existing
MediaStream
.By default Firefox prompts the user every time we request camera access, even if we already have access to a stream.
In my app I already have a
MediaStream
available so this small modification allows me to reuse that stream rather than creating a new one and asking the user for access again.