Skip to content

Commit 995c3fd

Browse files
committed
frontend: Refactor YoutubeApiWrappers
Created YoutubeApiClient and moved the broadcast and stream related functions from YoutubeApiWrappers to YoutubeApiClient and added apiClient object to YoutubeApiWrappers. This helps move the mixed ownership issue from YoutubeApiWrappers inheriting from YoutubeAuth only because it needs OAuth information, follow up refactor would be to move the broadcast setup/start/stop out to YoutubeBroadcastController and create a YoutubeService class which owns the OAuthTokenStore, YoutubeApiClient, YoutubeBroadcastController and the YoutubeDockController. (cherry picked from commit c4b8cb7)
1 parent 52b2c59 commit 995c3fd

6 files changed

Lines changed: 653 additions & 475 deletions

File tree

frontend/cmake/feature-youtube.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ if(
1919
oauth/YoutubeAuth.hpp
2020
utility/YoutubeApiWrappers.cpp
2121
utility/YoutubeApiWrappers.hpp
22+
utility/YoutubeApiClient.hpp
23+
utility/YoutubeApiClient.cpp
24+
utility/YoutubeApiTypes.hpp
2225
)
2326

2427
target_enable_feature(obs-studio "YouTube API connection" YOUTUBE_ENABLED)

0 commit comments

Comments
 (0)