This seems to be a buggy area in Chrome, and the behavior is constantly changing.
This seems to work, only if you are connected via http (not https):
var myStream;
function successCallback( stream ) {
...
myStream = stream; // used to close the stream later
}
function closeStream(){
myStream.stop();
myStream = null;
}
For some strange reason this doesn't work on SSL (https) (Checked on Chrome for Linux, Ver 27 Dev)