Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions browser-app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ CefRefPtr<CefBrowserProcessHandler> BrowserApp::GetBrowserProcessHandler()

void BrowserApp::OnRegisterCustomSchemes(CefRawPtr<CefSchemeRegistrar> registrar)
{
registrar->AddCustomScheme("obsbrowser", CEF_SCHEME_OPTION_STANDARD | CEF_SCHEME_OPTION_CORS_ENABLED |
CEF_SCHEME_OPTION_FETCH_ENABLED);
registrar->AddCustomScheme("http", CEF_SCHEME_OPTION_STANDARD | CEF_SCHEME_OPTION_CORS_ENABLED);
}

void BrowserApp::OnBeforeChildProcessLaunch(CefRefPtr<CefCommandLine> command_line)
Expand Down
2 changes: 1 addition & 1 deletion obs-browser-plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ static void BrowserInit(void)
}

// Register custom scheme handler for local browser sources
CefRegisterSchemeHandlerFactory("obsbrowser", "file", new BrowserSchemeHandlerFactory());
CefRegisterSchemeHandlerFactory("http", "absolute", new BrowserSchemeHandlerFactory());

os_event_signal(cef_started_event);
}
Expand Down
2 changes: 1 addition & 1 deletion obs-browser-source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ void BrowserSource::Update(obs_data_t *settings)
n_url.replace(n_url.find("%2F"), 3, "/");

// Local files are routed through our custom scheme handler to give them acess to other local files
n_url = "obsbrowser://file/" + n_url;
n_url = "http://absolute/" + n_url;
}

if (n_is_local == is_local && n_fps_custom == fps_custom && n_fps == fps &&
Expand Down