Skip to content

Commit 50eb8b8

Browse files
author
Chad Hart
committed
changed adapter.js reference to latest ver
1 parent a3c20d3 commit 50eb8b8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ <h4>Visit <a href="http://webrtchacks.com">webrtcHacks.com</a> for more details.
7272
</div>
7373
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
7474
<!--script src="js/adapter.js"></script> <!-- Load the polyfill to switch-hit between Chrome and Firefox -->
75-
<script src="https://webrtc.github.io/samples/src/js/adapter.js"></script>
75+
<!--script src="https://webrtc.github.io/samples/src/js/adapter.js"></script-->
76+
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
7677
<script src="js/resolutionScan.js"></script>
7778
</body>
7879
</html>

js/resolutionScan.js

+3
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ function gum(candidate, device) {
142142
stream.getTracks().forEach(function (track) {
143143
track.stop();
144144
});
145+
//try this for FF
146+
if (video.mozSrcObject)
147+
video.mozSrcObject.stop();
145148
}
146149

147150
//create constraints object

0 commit comments

Comments
 (0)