Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: LayoutTests/media/video-capture-preview.html

Issue 414543002: Delete mediaPlaybackRequiresUserGesture (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove extra header Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/media/video-capture-preview.html
diff --git a/LayoutTests/media/video-capture-preview.html b/LayoutTests/media/video-capture-preview.html
deleted file mode 100644
index fe7d08f3c5c6f93c2c08cc38f5e0366dc8960af5..0000000000000000000000000000000000000000
--- a/LayoutTests/media/video-capture-preview.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE HTML">
-<html>
-<head>
-<script src=media-file.js></script>
-<script src=video-test.js></script>
-<script src=video-played.js></script>
-
-<script type="text/javascript">
-
-var previewURL = "";
-var localStream = null;
-
-if (window.internals)
- window.internals.settings.setMediaPlaybackRequiresUserGesture(true);
-
-function startPreview()
-{
- video.src = previewURL;
-}
-
-function gotStream(stream)
-{
- consoleWrite("got a stream");
- previewURL = URL.createObjectURL(stream);
- startPreview();
- consoleWrite("start preview");
- localStream = stream;
- var playTimeInMillisecond = 2500;
- var replayIfTimeIsReached = function ()
- {
- startPreview();
- consoleWrite("restart preview");
- setTimeout(endTest, playTimeInMillisecond);
- }
-
- setTimeout(replayIfTimeIsReached, playTimeInMillisecond);
-}
-
-function gotStreamFailed(error)
-{
- consoleWrite("Failed to get access to local media. Error code was " + error.code);
-}
-
-function playPreview()
-{
- findMediaElement();
- try {
- consoleWrite("request access to local media");
- navigator.webkitGetUserMedia({video:true}, gotStream, gotStreamFailed);
- } catch (e) {
- consoleWrite("getUserMedia error " + "(" + e.name + " / " + e.message + ")");
- }
-
- waitForEvent("error");
- waitForEvent("loadstart");
- waitForEvent("loadeddata");
- waitForEvent("canplay");
- waitForEvent("play");
- waitForEvent("canplaythrough");
-}
-
-</script>
-</head>
-
-<body onload="playPreview()">
-<video width="320" height="240" autoplay="autoplay"></video>
-</body>
-</html>
-
« no previous file with comments | « LayoutTests/media/video-capture-canvas-expected.txt ('k') | LayoutTests/media/video-capture-preview-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698