diff --git a/doc/example/example.js b/doc/example/example.js index 0681102ce..e5b4c76a4 100644 --- a/doc/example/example.js +++ b/doc/example/example.js @@ -139,7 +139,9 @@ function disconnect(){ } function unload() { - room.leave(); + for(var i = 0; i < localTracks.length; i++) + localTracks[i].stop(); + room.leave(); connection.disconnect(); } diff --git a/doc/example/index.html b/doc/example/index.html index 6b6ae7d4e..896ba7313 100644 --- a/doc/example/index.html +++ b/doc/example/index.html @@ -11,6 +11,7 @@
+ Unload