From a906fc9f88c97dd7a360e6697be27932ef9568d5 Mon Sep 17 00:00:00 2001 From: Balamurugan-Testpress Date: Thu, 19 Mar 2026 17:23:14 +0530 Subject: [PATCH 1/2] feat: Expose public APIs for programmatically controlling fullscreen - Changed `isFullScreen` visibility from private to public. - Changed `enterFullScreen()` and `exitFullScreen()` visibility from internal to public. - Enables developers to trigger fullscreen transitions and check current state programmatically. --- Source/TPStreamPlayerViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/TPStreamPlayerViewController.swift b/Source/TPStreamPlayerViewController.swift index 66512c6..394a433 100644 --- a/Source/TPStreamPlayerViewController.swift +++ b/Source/TPStreamPlayerViewController.swift @@ -30,7 +30,7 @@ public class TPStreamPlayerViewController: UIViewController { } } private var controlsVisibilityTimer: Timer? - private var isFullScreen: Bool = false { + public var isFullScreen: Bool = false { didSet { controlsView.isFullScreen = isFullScreen setNeedsStatusBarAppearanceUpdate() @@ -198,14 +198,14 @@ public class TPStreamPlayerViewController: UIViewController { extension TPStreamPlayerViewController: FullScreenToggleDelegate, PlayerControlsDelegate { - func enterFullScreen() { + public func enterFullScreen() { delegate?.willEnterFullScreenMode() changeOrientation(orientation: .landscape) resizeContainerToWindow() delegate?.didEnterFullScreenMode() } - func exitFullScreen() { + public func exitFullScreen() { delegate?.willExitFullScreenMode() changeOrientation(orientation: .portrait) resizeContainerToParentView() From 8339df8b6df90830a1a0900d766fdfde69f7c59a Mon Sep 17 00:00:00 2001 From: Balamurugan-Testpress Date: Thu, 19 Mar 2026 17:27:07 +0530 Subject: [PATCH 2/2] fix Gemini suggested change --- Source/TPStreamPlayerViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/TPStreamPlayerViewController.swift b/Source/TPStreamPlayerViewController.swift index 394a433..7edc75a 100644 --- a/Source/TPStreamPlayerViewController.swift +++ b/Source/TPStreamPlayerViewController.swift @@ -30,7 +30,7 @@ public class TPStreamPlayerViewController: UIViewController { } } private var controlsVisibilityTimer: Timer? - public var isFullScreen: Bool = false { + public private(set) var isFullScreen: Bool = false { didSet { controlsView.isFullScreen = isFullScreen setNeedsStatusBarAppearanceUpdate()