Webpage that performs redirects becomes invisible #438

Open
opened 2024-04-07 04:57:42 -05:00 by jessicah · 2 comments
jessicah commented 2024-04-07 04:57:42 -05:00 (Migrated from github.com)

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

30.1.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/wOTzxKFaumzH09IZ

OBS Studio Crash Log URL

No response

Expected Behavior

Source displayed correctly after redirects.

Current Behavior

Redirects seem to confuse the browser source, and end up with an invisible source. Editing the custom CSS, e.g. tweaking body { background-color: rgba(0, 0, 0, 0; } between rgba(0, 0, 0, 0) and rgba(0, 0, 0, 1), the source will briefly flash visible then disappear again.

In this instance, the source is a page that does a redirect to Spotify for auth before redirecting back. If I relaunch OBS, where the auth has happened, so that a redirect isn't required, the browser source displays fine. Refreshing cache, making source enabled/disabled does not fix it, only relaunching OBS.

Steps to Reproduce

Add a browser source which does a redirect on load, e.g. https://jessicah.nz/spotify/now-playing.html

Anything else we should know?

No response

### Operating System Info Windows 10 ### Other OS _No response_ ### OBS Studio Version 30.1.1 ### OBS Studio Version (Other) _No response_ ### OBS Studio Log URL https://obsproject.com/logs/wOTzxKFaumzH09IZ ### OBS Studio Crash Log URL _No response_ ### Expected Behavior Source displayed correctly after redirects. ### Current Behavior Redirects seem to confuse the browser source, and end up with an invisible source. Editing the custom CSS, e.g. tweaking `body { background-color: rgba(0, 0, 0, 0; }` between `rgba(0, 0, 0, 0)` and `rgba(0, 0, 0, 1)`, the source will briefly flash visible then disappear again. In this instance, the source is a page that does a redirect to Spotify for auth before redirecting back. If I relaunch OBS, where the auth has happened, so that a redirect isn't required, the browser source displays fine. Refreshing cache, making source enabled/disabled does not fix it, only relaunching OBS. ### Steps to Reproduce Add a browser source which does a redirect on load, e.g. https://jessicah.nz/spotify/now-playing.html ### Anything else we should know? _No response_
Warchamp7 commented 2024-04-07 17:15:58 -05:00 (Migrated from github.com)

There is definitely something very weird happening here. The page still renders in devtools but not in OBS

image

Forcing the page to navigate to another URL such as Google and then issuing a history.back() command the page then functions fine.

There is definitely something very weird happening here. The page still renders in devtools but not in OBS ![image](https://github.com/obsproject/obs-browser/assets/1554753/686b33d5-ca57-440c-830f-89a339a0cf62) Forcing the page to navigate to another URL such as Google and then issuing a `history.back()` command the page then functions fine.
pabloko commented 2025-02-12 04:40:19 -06:00 (Migrated from github.com)

I have the same issue on my own implementation of cef. this happens only when using external_begin_frame = true and the browser_id > 1. if the browser_id(1) is navigated or closed, the issue is fixed. Navigating browser_id > 1 will stall the video capture until navigated back or the browser_id(1) is navigated or closed.
As a temporary workaround, at initialization im creating a browser instance and killing it right away.
related

I have the same issue on my own implementation of cef. this happens only when using `external_begin_frame = true` and the browser_id > 1. if the browser_id(1) is navigated or closed, the issue is fixed. Navigating browser_id > 1 will stall the video capture until navigated back or the browser_id(1) is navigated or closed. As a temporary workaround, at initialization im creating a browser instance and killing it right away. [related](https://github.com/chromiumembedded/cef/issues/2817)
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-obsproject/obs-browser#438
No description provided.