Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/halilozel1903/exoplayerscreenlock

Example of Lock Screen ๐Ÿ”“ and Full Screen ๐Ÿ“บ mod in ExoPlayer โ–ถ๏ธ
https://github.com/halilozel1903/exoplayerscreenlock

android-kotlin-example android-video-player android-video-streaming exoplayer exoplayer-caching exoplayer-demo exoplayer-kotlin exoplayer-subtitles exoplayer-video exoplayer-wrapper exoplayer2 exoplayerinsiderecyclerview exoplayertrackselection fullscreen-mode fullscreen-videos kotlin-android lockscreen

Last synced: 4 days ago
JSON representation

Example of Lock Screen ๐Ÿ”“ and Full Screen ๐Ÿ“บ mod in ExoPlayer โ–ถ๏ธ

Awesome Lists containing this project

README

        

# How to add Lock Screen ๐Ÿ”“ & Full Screen ๐Ÿ“บ mod in ExoPlayer โ–ถ๏ธ

![ExoPlayer](https://miro.medium.com/max/1400/1*4u9gHCST9NfXnr-xlUO9tg.png)

**ExoPlayer** is an application level media player for Android. It provides an alternative to Androidโ€™s MediaPlayer API for playing audio and video both locally and over the Internet. ExoPlayer supports features not currently supported by Androidโ€™s MediaPlayer API, including **DASH** and **SmoothStreaming** adaptive playbacks. Unlike the MediaPlayer API, ExoPlayer is easy to customize and extend, and can be updated through Play Store application updates.

ExoPlayer allows developers to create and use custom controllers. In the sample project we will do, we add icons for both full screen mode and screen locking.

## Full Screen Mode ๐Ÿ“บ

Let's start with how we integrate Full Screen mode, which is one of the indispensable features in the streaming world, into our application. Netflix allows the user to watch directly in landscape mode. Some applications, for example TV+, allow the user to watch in both horizontal and vertical modes.

![ExoPlayer](https://cdn-images-1.medium.com/max/2400/1*bT9StnFnLgvIT1huYMHvqg.png)

![ExoPlayer](https://cdn-images-1.medium.com/max/2400/1*IWVzHJkYCurv_IzPeC5Dkw.png)

## Screen Lock Mode ๐Ÿ”“

Another popular feature on Netflix recently is screen locking. The user can continue watching by locking the screen. When the screen is locked, it provides the opportunity to have pleasant moments by focusing directly on the relevant content without accessing the player. If the user wants to unlock the screen, he activates all the elements on the player screen by pressing the Lock icon.

## Donation ๐Ÿ’ธ

Do you want to support me? โ˜•

[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/halilozel1903)

## License โ„น๏ธ
```
MIT License

Copyright (c) 2023 Halil OZEL

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```