Skip to content

Commit 82fde6b

Browse files
committed
Update README to include surface type options
1 parent c4f6a1f commit 82fde6b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.MD

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
- [Initialization](#initialization)
3030
- [Displaying the Video Surface](#displaying-the-video-surface)
3131
- [Content Scaling](#content-scaling)
32+
- [Surface type](#surface-type)
3233
- [Custom Overlay UI](#custom-overlay-ui)
3334
- [Video Playback via URL or Local Files](#video-playback-via-url-or-local-files)
3435
- [Full Controls](#full-controls)
@@ -150,8 +151,9 @@ Available content scale options:
150151
> [!WARNING]
151152
> Surface type is supported only for Android target.
152153
153-
`SurfaceType.Surface` uses SurfaceView for the player view, which is more performant for video playback but has limitations in terms of composability and animations.
154-
`SurfaceType.Texture` uses TextureView for the player view, which allows for more complex composable layouts and animations.
154+
Available surface type options:
155+
- `SurfaceType.Surface` (default): uses SurfaceView for the player view, which is more performant for video playback but has limitations in terms of composability and animations.
156+
- `SurfaceType.Texture`: uses TextureView for the player view, which allows for more complex composable layouts and animations.
155157

156158
```kotlin
157159
VideoPlayerSurface(

0 commit comments

Comments
 (0)