diff options
author | ratsunny <ratsunny@gmail.com> | 2015-09-28 12:39:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-28 19:40:30 +0000 |
commit | 4c33b2d569d4ddeec03b1984c4d35659293d0a4f (patch) | |
tree | 4cb24fa429a8711d47816775afd7cbf524bc3bff /native_client_sdk | |
parent | 53fb744488a4aa0a3e3e3aa22943686da1648989 (diff) | |
download | chromium_src-4c33b2d569d4ddeec03b1984c4d35659293d0a4f.zip chromium_src-4c33b2d569d4ddeec03b1984c4d35659293d0a4f.tar.gz chromium_src-4c33b2d569d4ddeec03b1984c4d35659293d0a4f.tar.bz2 |
Add missing app permissions to media stream examples
For media_stream_audio example, add 'audioCapture' permission
For media_stream_video example, add 'videoCapture' permission
Missing these permissions will cause NavigatorUserMediaError
BUG=NONE
TEST=Build the app and load it into Chrome, you should see it's working.
Review URL: https://codereview.chromium.org/1374513002
Cr-Commit-Position: refs/heads/master@{#351120}
Diffstat (limited to 'native_client_sdk')
-rw-r--r-- | native_client_sdk/src/examples/api/media_stream_audio/example.dsc | 3 | ||||
-rw-r--r-- | native_client_sdk/src/examples/api/media_stream_video/example.dsc | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/native_client_sdk/src/examples/api/media_stream_audio/example.dsc b/native_client_sdk/src/examples/api/media_stream_audio/example.dsc index 829f0c3..9d18729 100644 --- a/native_client_sdk/src/examples/api/media_stream_audio/example.dsc +++ b/native_client_sdk/src/examples/api/media_stream_audio/example.dsc @@ -16,5 +16,6 @@ 'NAME': 'media_stream_audio', 'TITLE': 'MediaStream Audio', 'GROUP': 'API', - 'MIN_CHROME_VERSION': '35.0.0.0' + 'MIN_CHROME_VERSION': '35.0.0.0', + 'PERMISSIONS': ['audioCapture'] } diff --git a/native_client_sdk/src/examples/api/media_stream_video/example.dsc b/native_client_sdk/src/examples/api/media_stream_video/example.dsc index 75d179a..ab9dfeb 100644 --- a/native_client_sdk/src/examples/api/media_stream_video/example.dsc +++ b/native_client_sdk/src/examples/api/media_stream_video/example.dsc @@ -16,8 +16,6 @@ 'NAME': 'media_stream_video', 'TITLE': 'MediaStream Video', 'GROUP': 'API', - 'MIN_CHROME_VERSION': '35.0.0.0' + 'MIN_CHROME_VERSION': '35.0.0.0', + 'PERMISSIONS': ['videoCapture'] } - - - |