Enable getUserMedia(). Part of fixes for #31.
This commit is contained in:
parent
354a1c555b
commit
f26db5c7a1
9 changed files with 390 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "browser/atom_browser_client.h"
|
||||
|
||||
#include "browser/atom_browser_main_parts.h"
|
||||
#include "browser/media/media_capture_devices_dispatcher.h"
|
||||
#include "webkit/glue/webpreferences.h"
|
||||
|
||||
namespace atom {
|
||||
|
@ -37,6 +38,10 @@ void AtomBrowserClient::OverrideWebkitPrefs(
|
|||
prefs->allow_running_insecure_content = true;
|
||||
}
|
||||
|
||||
content::MediaObserver* AtomBrowserClient::GetMediaObserver() {
|
||||
return MediaCaptureDevicesDispatcher::GetInstance();
|
||||
}
|
||||
|
||||
bool AtomBrowserClient::ShouldSwapProcessesForNavigation(
|
||||
content::SiteInstance* site_instance,
|
||||
const GURL& current_url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue