Using adapter.js and getRemoteStreams

Needed to make the stats demo work on M26.

BUG=

Review URL: https://webrtc-codereview.appspot.com/1165004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3612 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
hta@webrtc.org 2013-03-05 15:23:40 +00:00
parent 1dc0aa2de2
commit db3f42782c

View File

@ -1,6 +1,9 @@
<html>
<head>
<title>Constraints and Statistics</title>
<!-- Load the polyfill to switch-hit between Chrome and Firefox -->
<script src="../../base/adapter.js"></script>
<script>
var mystream;
var pc1;
@ -112,7 +115,7 @@ var statCollector = setInterval(function() {
}
display("No stream");
if (pc2 && pc2.remoteStreams[0]) {
if (pc2 && pc2.getRemoteStreams()[0]) {
if (pc2.getStats) {
display('No stats callback');
pc2.getStats(function(stats) {