WoodcraftByOwen
New Member
Various plugins and extensions use BroadcastChannels to communicate between an OBS Dock and a BrowserSource on a scene, however OBS27.2 has changed the way it technically implements BrowserSource elements if you select "local file"
Docks are added (as I would expect) using the file:/// scheme - (eg file:///c:/obs/file.html)
In previous versions of OBS, BrowserSource local files were added the same way - nice feature, the Javascript Broadcast Channel API works to communicate between the two windows
In OBS 27.0 - BrowserSources set to Local File add the file using an absolute/ scheme (non-standard afaik) (eg absolute/c:/obs/file.html)
This breaks Broadcast Channels - as they only work for windows in the same browser, using the same scheme and host.
As a temp fix, I have updated my BrowserSources from a Local Source to a manually entered file:/// uri, changed all windows back slashes in the file path (\) to standard uri forward slashes (/), and replaced any spaces with the uri encoded %20 for good measure. (eg Local Source c:\obs project\file.html becomes standard url file:///c:/obs%20project/file.html)
Docks are added (as I would expect) using the file:/// scheme - (eg file:///c:/obs/file.html)
In previous versions of OBS, BrowserSource local files were added the same way - nice feature, the Javascript Broadcast Channel API works to communicate between the two windows
In OBS 27.0 - BrowserSources set to Local File add the file using an absolute/ scheme (non-standard afaik) (eg absolute/c:/obs/file.html)
This breaks Broadcast Channels - as they only work for windows in the same browser, using the same scheme and host.
As a temp fix, I have updated my BrowserSources from a Local Source to a manually entered file:/// uri, changed all windows back slashes in the file path (\) to standard uri forward slashes (/), and replaced any spaces with the uri encoded %20 for good measure. (eg Local Source c:\obs project\file.html becomes standard url file:///c:/obs%20project/file.html)