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

Unified Diff: ppapi/examples/video_encode/video_encode.html

Issue 1132833002: pepper: add software vp9 encoder support to PPB_VideoEncoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Additional comments Created 5 years, 4 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
« no previous file with comments | « ppapi/examples/video_encode/video_encode.cc ('k') | ppapi/tests/test_video_encoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/video_encode/video_encode.html
diff --git a/ppapi/examples/video_encode/video_encode.html b/ppapi/examples/video_encode/video_encode.html
index 9f3b248c2f8897a2e4614e7fdf0ed3dbcb95aaac..2624eeaba4e650bf18be8cad1cfaef65832de000 100644
--- a/ppapi/examples/video_encode/video_encode.html
+++ b/ppapi/examples/video_encode/video_encode.html
@@ -59,12 +59,8 @@
}
function handleMessage(msg) {
- if (msg.data.name == 'started') {
- console.log('recording!');
- } else if (msg.data.name == 'data') {
+ if (msg.data.name == 'data') {
appendData(msg.data.data);
- } else if (msg.data.name == 'stopped') {
- console.log('done recording! bytes: ' + dataArray.byteLength);
} else if (msg.data.name == 'supportedProfiles') {
console.log('profiles: ', msg.data);
var profileList = $('profileList');
@@ -73,6 +69,8 @@
item.label = item.value = msg.data.profiles[i];
profileList.appendChild(item);
}
+ } else if (msg.data.name == 'log') {
+ console.log(msg.data.message);
}
}
@@ -85,7 +83,7 @@
tmp.set(new Uint8Array(dataArray), 0 );
tmp.set(new Uint8Array(data), dataArray.byteLength);
dataArray = tmp.buffer;
- $('length').innerHTML = ' Size: ' + dataArray.byteLength + ' bytes';
+ $('length').textContent = ' Size: ' + dataArray.byteLength + ' bytes';
}
function initialize() {
« no previous file with comments | « ppapi/examples/video_encode/video_encode.cc ('k') | ppapi/tests/test_video_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698