From 725d48e4f970386e69d607f6eada7f3776af45d3 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Fri, 8 Feb 2013 16:05:31 -0500 Subject: [PATCH] Adding a proper getUserMedia test that works for L and N + fixing deploy path of bar in deploy-tests --- build/deploy-tests.js | 2 +- .../manual/html5/getUserMediaTest.htm | 93 ++++++++++++++----- 2 files changed, 69 insertions(+), 26 deletions(-) diff --git a/build/deploy-tests.js b/build/deploy-tests.js index 55298f7c..a3eca280 100644 --- a/build/deploy-tests.js +++ b/build/deploy-tests.js @@ -79,7 +79,7 @@ module.exports = function (pathToPackager, packagerOptions, target, deviceIp, pa target = ((!!conf.COMMAND_DEFAULTS.device) ? "device" : "simulator"); utils.displayOutput("No deploy target specified, using default from test-runner.json - " + target); } - deployCmd += "\"" + path.join("test", "output", target, "test-app.bar") + "\""; + deployCmd += "\"" + path.join("test", target, "test-app.bar") + "\""; if (deviceIp) { deployCmd += "," + deviceIp; diff --git a/test/test-app/manual/html5/getUserMediaTest.htm b/test/test-app/manual/html5/getUserMediaTest.htm index a06fa0aa..7b741304 100644 --- a/test/test-app/manual/html5/getUserMediaTest.htm +++ b/test/test-app/manual/html5/getUserMediaTest.htm @@ -1,28 +1,71 @@ - - - getUserMedia - - - -
- + + + + GetUserMedia Test + + + +

Get User Media Test

+
+ + +
+
+ +
+

Main

- if(!!navigator.getUserMedia) { - navigator.getUserMedia({audio: true, video: true}, function(stream) { - var video = document.querySelector('video'); - video.src = ('webkitURL' in window)?window.webkitURL.createObjectURL(stream):stream; - }, onFailSoHard); - } else { - alert("not supported"); // fallback. - } - -
- - +