Skip to content

Commit

Permalink
docs(README): add support for a compose player full screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Nov 9, 2023
1 parent aaccbe5 commit 8654fb1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,9 @@ controller `ApiVideoPlayerController`.

```xml

<video.api.player.ApiVideoExoPlayerView
android:id="@+id/playerView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:show_controls="true"
app:show_subtitles="true" />
<video.api.player.ApiVideoExoPlayerView android:id="@+id/playerView"
android:layout_width="wrap_content" android:layout_height="wrap_content"
app:show_controls="true" app:show_subtitles="true" />
```

You can also use an ExoPlayer `PlayerView` or a `SurfaceView` according to your requirements.
Expand Down Expand Up @@ -167,6 +164,9 @@ ApiVideoPlayer(
)
```

In Fullscreen, you have to hide the background of your activity. For this, you can use a `Surface`
such as in the example.

## Play your api.video video with ExoPlayer, MediaPlayer and VideoView

If you want to use the ExoPlayer directly, you can use the api.video Android extensions:
Expand Down

0 comments on commit 8654fb1

Please sign in to comment.