| Index: native_client_sdk/src/examples/api/media_stream_video/example.js
|
| diff --git a/native_client_sdk/src/examples/api/media_stream_video/example.js b/native_client_sdk/src/examples/api/media_stream_video/example.js
|
| index dfd3eb9e4368f0dff6343528a511bb46f74a8d5a..89059d538a0662af18b7ecf5a086619d8a8be82e 100644
|
| --- a/native_client_sdk/src/examples/api/media_stream_video/example.js
|
| +++ b/native_client_sdk/src/examples/api/media_stream_video/example.js
|
| @@ -6,7 +6,10 @@ var stream;
|
|
|
| function success(s) {
|
| stream = s;
|
| - common.naclModule.postMessage({track: stream.getVideoTracks()[0]});
|
| + common.naclModule.postMessage({
|
| + command: 'init',
|
| + track: stream.getVideoTracks()[0]
|
| + });
|
| }
|
|
|
| function failure(e) {
|
| @@ -16,3 +19,12 @@ function failure(e) {
|
| function moduleDidLoad() {
|
| navigator.webkitGetUserMedia({'video': true}, success, failure);
|
| }
|
| +
|
| +function changeFormat(format) {
|
| + common.naclModule.postMessage({command:'format', format: format});
|
| +}
|
| +
|
| +function changeSize(width, height) {
|
| + common.naclModule.postMessage({command:'size', width: width, height: height});
|
| +}
|
| +
|
|
|