forked from mdn/dom-examples
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove logging code from screen capture demos
- Loading branch information
1 parent
1f768e7
commit 6ac36ff
Showing
9 changed files
with
117 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Screen Capture API demo</title> | ||
<link href="index.css" rel="stylesheet" /> | ||
<script defer src="index.js"></script> | ||
</head> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<title>Screen Capture API demo</title> | ||
<link href="index.css" rel="stylesheet"> | ||
<script defer src="index.js"></script> | ||
</head> | ||
<body> | ||
<h1>Screen Capture API example</h1> | ||
<p> | ||
Click the "Start Capture" button to capture a tab, window, or screen as a | ||
video stream and broadcast it in the | ||
<code><video></code> element on the left. This demo uses the Screen | ||
Capture API. | ||
</p> | ||
|
||
<body> | ||
<h1>Screen Capture API example</h1> | ||
<p> | ||
Click the "Start Capture" button to capture a tab, window, or screen as a video stream and broadcast it in the | ||
<code><video></code> element on the left. This demo uses the Screen Capture API. | ||
</p> | ||
<p> | ||
<button id="start">Start Capture</button> <button id="stop"> | ||
Stop Capture | ||
</button> | ||
</p> | ||
|
||
<p> | ||
<button id="start">Start Capture</button> <button id="stop"> | ||
Stop Capture | ||
</button> | ||
</p> | ||
|
||
<div id="main-app"> | ||
<video autoplay></video> | ||
<div id="demo"> | ||
<h2>Some kind of demo</h2> | ||
<p>This container is a placeholder for some kind of demo that you might want to share with other participants.</p> | ||
<div id="main-app"> | ||
<video autoplay></video> | ||
<div id="demo"> | ||
<h2>Some kind of demo</h2> | ||
<p> | ||
This container is a placeholder for some kind of demo that you might | ||
want to share with other participants. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<h2>Log:</h2> | ||
<pre id="log"></pre> | ||
</body> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,36 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Element Capture API demo</title> | ||
<link href="index.css" rel="stylesheet" /> | ||
<script defer src="index.js"></script> | ||
</head> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<title>Element Capture API demo</title> | ||
<link href="index.css" rel="stylesheet"> | ||
<script defer src="index.js"></script> | ||
</head> | ||
<body> | ||
<h1>Element Capture API example</h1> | ||
<p> | ||
Click the "Start Capture" button to capture the demo container element | ||
shown on the right as a video stream and broadcast it in the | ||
<code><video></code> element on the left. This demo uses the Screen | ||
Capture API and the Element Capture API. | ||
</p> | ||
|
||
<body> | ||
<h1>Element Capture API example</h1> | ||
<p> | ||
Click the "Start Capture" button to capture the demo container element shown on the right as a video stream and | ||
broadcast it in the <code><video></code> element on the left. This demo uses the Screen Capture API and the | ||
Element Capture API. | ||
</p> | ||
<p> | ||
<button id="start">Start Capture</button> <button id="stop"> | ||
Stop Capture | ||
</button> | ||
</p> | ||
|
||
<p> | ||
<button id="start">Start Capture</button> <button id="stop"> | ||
Stop Capture | ||
</button> | ||
</p> | ||
|
||
<div id="main-app"> | ||
<video autoplay></video> | ||
<div id="demo"> | ||
<h2>Some kind of demo</h2> | ||
<p>This container is a placeholder for some kind of demo that you might want to share with other participants.</p> | ||
<div id="main-app"> | ||
<video autoplay></video> | ||
<div id="demo"> | ||
<h2>Some kind of demo</h2> | ||
<p> | ||
This container is a placeholder for some kind of demo that you might | ||
want to share with other participants. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<h2>Log:</h2> | ||
<pre id="log"></pre> | ||
</body> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.