question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: True FullScreen mode for Android with ExoPlayer

See original GitHub issue

Current behavior

The lib. does not support a full screen mode for Android at this moment. Only disabling status bar and buttons bar, with method ReactExoplayerView.setFullscreen but that is far from what a full functional full screen.

Expected behavior

Full screen mode should work in a similar way with what we have on iOS. The Video element should be re-parented to a new native view that will cover existing app content, like a full screen modal. This should also include all common controls: video scrubbing, volume controls, change aspect ratio + exit full screen.

This should work for Android ExoPlayer together with or without option useTextureView.

A good starting point I have found is this answer https://stackoverflow.com/a/48511657. I say approach no. 1 would work ok, even if it has some compromises for Android < 6 (API 23). And also using SimpleExoPlayerView (or new PlayerView) for a full screen transition I guess is a good option.

Not to say that we really do need this feature in our app, but I would like to hear other opinions, and why not volunteers to implement it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
IbrahimSulaicommented, Aug 28, 2019

Opened a PR (#1730) for full-screen support in Android Exoplayer.

2reactions
xstablecommented, Feb 28, 2019

You might have a look at my repo. I fork and upgraded react-native-video-player so that it now support react-native-video 4.4.0. Feel free to give it a try.

Because here, @IbrahimSulai is working on a build-in Fullscreen functionality, you can take my solution as temporary workaround

Read more comments on GitHub >

github_iconTop Results From Across the Web

True FullScreen mode for Android with ExoPlayer ... - GitHub
Full screen mode should work in a similar way with what we have on iOS. The Video element should be re-parented to a...
Read more >
android - Fullscreen the Exoplayer - Stack Overflow
a) Set the window and activity properties to fullscreen and/or immersive mode and (if desired) change to landscape mode. That's not difficult.
Read more >
exoplayer fullscreen landscape android | firebase ... - YouTube
exoplayer fullscreen landscape android | firebase Video Streaming app · In this video we are going to learn that how you can implement...
Read more >
How to Create Video Player Android Full Screen ... - YouTube
Today is we are going to learn how to set up and implement the design video player library EXO in Android App Kotlin....
Read more >
Media streaming with ExoPlayer - Android Developers
In this codelab, you build a media player to render audio and adaptive video streams with ExoPlayer, the open source media player running...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found