javascript - How to cancel getUserMedia indicator after recording -
i'm using recorder.js , getusermedia
audio recording in browser. when starting recording, user given "allow site use microphone" prompt, , once click allow, chrome adds indicator onto tab's favicon show recording:
recording indicator http://ubuntuone.com/1nbkbmc9va313wewtv03kz
my issue indicator never goes away, after application has stopped recording. basically, i'd revoke own recording permissions. possible?
when generate new mediastream
object getusermedia
call, contains mediastreamtrack
object.
calling mediastream.getaudiotracks()
should return sequence represents snapshot of mediastreamtrack
objects in stream kind "audio"
. same thing applies when calling mediastream.getvideotracks()
retrieve video track objects.
according spec, looks can revoke given permissions app calling mediastreamtrack.stop()
on audio track object.
source: media capture , stream api spec
Comments
Post a Comment