diff --git a/docs/mobile-sdk/flutter-sdk/player-events.md b/docs/mobile-sdk/flutter-sdk/player-events.md index f9f04977..53e4b487 100644 --- a/docs/mobile-sdk/flutter-sdk/player-events.md +++ b/docs/mobile-sdk/flutter-sdk/player-events.md @@ -34,4 +34,18 @@ The listener will trigger updates to the following properties of the TPStreamsPl - **isEnded:** true if the video has played to the end. - **error:** Provides error information if an error occurs during playback. -Simply use controller.value.property to access the current state values in the listener. \ No newline at end of file +Simply use controller.value.property to access the current state values in the listener. + +### Fullscreen Callbacks + +You can also listen to fullscreen-related callbacks: + +```dart +_controller?.onBeforeFullScreenEnter = () { + // Called before entering fullscreen +}; + +_controller?.onBeforeFullScreenExit = () { + // Called before exiting fullscreen +}; +``` \ No newline at end of file diff --git a/docs/mobile-sdk/flutter-sdk/player-methods.md b/docs/mobile-sdk/flutter-sdk/player-methods.md index 8c3981eb..dc3ba29d 100644 --- a/docs/mobile-sdk/flutter-sdk/player-methods.md +++ b/docs/mobile-sdk/flutter-sdk/player-methods.md @@ -98,6 +98,34 @@ Fetches the current playback position of the video. Duration currentTime = await controller.getCurrentTime(); ``` +### Enter Fullscreen + +```dart +Future enterFullScreen() +``` + +Enters fullscreen mode programmatically, providing a fully immersive viewing experience. + +**Example Usage:** + +```dart +await controller.enterFullScreen(); +``` + +### Exit Fullscreen + +```dart +Future exitFullScreen() +``` + +Exits fullscreen mode and returns to the normal view. + +**Example Usage:** + +```dart +await controller.exitFullScreen(); +``` + ### Dispose ```dart