Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion docs/mobile-sdk/flutter-sdk/player-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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
};
```
28 changes: 28 additions & 0 deletions docs/mobile-sdk/flutter-sdk/player-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,34 @@ Fetches the current playback position of the video.
Duration currentTime = await controller.getCurrentTime();
```

### Enter Fullscreen

```dart
Future<void> enterFullScreen()
```

Enters fullscreen mode programmatically, providing a fully immersive viewing experience.

**Example Usage:**

```dart
await controller.enterFullScreen();
```

### Exit Fullscreen

```dart
Future<void> exitFullScreen()
```

Exits fullscreen mode and returns to the normal view.

**Example Usage:**

```dart
await controller.exitFullScreen();
```

Comment thread
Balamurugan-Testpress marked this conversation as resolved.
### Dispose

```dart
Expand Down
Loading