Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: native_client_sdk/src/examples/api/media_stream_video/index.html

Issue 212533007: Sync NaCl MediaStream Video example with ppapi/examples/media_stream_video (Closed) Base URL:
Patch Set: Update Created 6 years, 9 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: native_client_sdk/src/examples/api/media_stream_video/index.html
diff --git a/native_client_sdk/src/examples/api/media_stream_video/index.html b/native_client_sdk/src/examples/api/media_stream_video/index.html
index 95f173f30a1127cf822e0ea305bb9320da3c74f2..95bd9633f809c5609cf8fbcb15998cf2f5c2866e 100644
--- a/native_client_sdk/src/examples/api/media_stream_video/index.html
+++ b/native_client_sdk/src/examples/api/media_stream_video/index.html
@@ -12,15 +12,26 @@ found in the LICENSE file.
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript" src="example.js"></script>
-<body data-width="640" data-height="480" {{attrs}}>
+<body data-width="640" data-height="240" {{attrs}}>
<h2>Status: <code id="statusField">NO-STATUS</code></h2>
<p>The MediaStream Video example demonstrates how to capture video from
a webcam.</p>
+ Left side shows YUV frames. Right side shows BGRA frames.<br>
This example uses dev interfaces. It will not work on the WebStore,
or with PNaCL.<br>
<!-- The NaCl plugin will be embedded inside the element with id "listener".
See common.js.-->
<div id="listener"></div>
+ <h2>Format:</h2><br>
+ <button onclick="changeFormat('YV12')" >YV12</button>
+ <button onclick="changeFormat('I420')" >I420</button>
Sam Clegg 2014/03/28 18:24:56 Doesn't CSP make inline JavaScript illegal? I thi
binji 2014/04/01 00:00:52 Yes, this is correct. We typically do this sort of
Peng 2014/04/01 15:36:37 Done.
+ <button onclick="changeFormat('BGRA')" >BGRA</button>
+ <button onclick="changeFormat('DEFAULT')" >DEFAULT</button>
+ <h2>Size:</h2><br>
+ <button onclick="changeSize(72, 72)" >72 x 72</button>
+ <button onclick="changeSize(640, 360)" >640 x 360</button>
+ <button onclick="changeSize(1280, 720)" >1280 x 720</button>
+ <button onclick="changeSize(0, 0)" >DEFAULT</button>

Powered by Google App Engine
This is Rietveld 408576698