mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
OBS Studio - Free and open source software for live streaming and screen recording
cc-plus-plusdirectshowfacebook-liveffmpeggame-capturelive-streamingscreen-capturetwitch-tvvideo-recordingyoutube-live
2226292adc
The YouTubeAppDock uses its own cookie manager and thus requires a running CEF instance before creating the dock. Unfortunately creation of the dock itself and launching the associated browser instance are coupled in the code. The UI code to restore browser dock states runs _after_ this code and unfortunately this is also the only way to ensure that if the user has closed the YouTubeAppDock before that it stays closed on app launch (the dock needs to exist in the Widget hierarchy for its state to be restored). Alas, outside of Windows, InitBrowserPanelSafeBlock uses a separate local QEventLoop to block the main thread while still allowing UI events to be processed to launch a CEF instance. By this point in the code execution, the primary event loop has not been started yet, so the event loop launched by InitBrowserPanelSafeBlock temporarily becomes the main application event loop, which initializes all Widgets, finds no active window state for the widgets, and thus treats them as "visible", calls the showEvent method on every browser dock, which thus loads the associated websites. The dock state is restored after all that, which leads to each browser dock being "shown" (even though the main QApplication hasn't even started yet), the associated sites are running (including audio and video output) but then hidden again, which leads to surprising audio output seemingly coming from "nowhere". All browser docks call the browser initialization methods synchronously, which has the benefit of not spinning up a premature event loop, and does not trigger Qt view state changes before all Widgets have been initialized. Having the YouTubeAppDock behave the same does thus not negatively impact UX. |
||
---|---|---|
.github | ||
additional_install_files | ||
build-aux | ||
CI | ||
cmake | ||
deps | ||
docs/sphinx | ||
libobs | ||
libobs-d3d11 | ||
libobs-opengl | ||
libobs-winrt | ||
plugins | ||
test | ||
UI | ||
.cirrus.yml | ||
.clang-format | ||
.cmake-format.json | ||
.editorconfig | ||
.git-blame-ignore-revs | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.mailmap | ||
.swift-format | ||
AUTHORS | ||
buildspec.json | ||
CMakeLists.txt | ||
CMakePresets.json | ||
COC.rst | ||
COMMITMENT | ||
CONTRIBUTING.rst | ||
COPYING | ||
INSTALL | ||
README.rst |
OBS Studio <https://obsproject.com> =================================== .. image:: https://github.com/obsproject/obs-studio/actions/workflows/push.yaml/badge.svg?branch=master :alt: OBS Studio Build Status - GitHub Actions :target: https://github.com/obsproject/obs-studio/actions/workflows/push.yaml?query=branch%3Amaster .. image:: https://badges.crowdin.net/obs-studio/localized.svg :alt: OBS Studio Translation Project Progress :target: https://crowdin.com/project/obs-studio .. image:: https://img.shields.io/discord/348973006581923840.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2 :alt: OBS Studio Discord Server :target: https://obsproject.com/discord What is OBS Studio? ------------------- OBS Studio is software designed for capturing, compositing, encoding, recording, and streaming video content, efficiently. It's distributed under the GNU General Public License v2 (or any later version) - see the accompanying COPYING file for more details. Quick Links ----------- - Website: https://obsproject.com - Help/Documentation/Guides: https://github.com/obsproject/obs-studio/wiki - Forums: https://obsproject.com/forum/ - Build Instructions: https://github.com/obsproject/obs-studio/wiki/Install-Instructions - Developer/API Documentation: https://obsproject.com/docs - Donating/backing/sponsoring: https://obsproject.com/contribute - Bug Tracker: https://github.com/obsproject/obs-studio/issues Contributing ------------ - If you would like to help fund or sponsor the project, you can do so via `Patreon <https://www.patreon.com/obsproject>`_, `OpenCollective <https://opencollective.com/obsproject>`_, or `PayPal <https://www.paypal.me/obsproject>`_. See our `contribute page <https://obsproject.com/contribute>`_ for more information. - If you wish to contribute code to the project, please make sure to read the coding and commit guidelines: https://github.com/obsproject/obs-studio/blob/master/CONTRIBUTING.rst - Developer/API documentation can be found here: https://obsproject.com/docs - If you wish to contribute translations, do not submit pull requests. Instead, please use Crowdin. For more information read this page: https://obsproject.com/wiki/How-To-Contribute-Translations-For-OBS - Other ways to contribute are by helping people out with support on our forums or in our community chat. Please limit support to topics you fully understand -- bad advice is worse than no advice. When it comes to something that you don't fully know or understand, please defer to the official help or official channels.