https://github.com/xeinebiu/android_floating_video
Floating video using Exo Player for Android
https://github.com/xeinebiu/android_floating_video
android exoplayer exoplayer2 float floating popup
Last synced: 3 months ago
JSON representation
Floating video using Exo Player for Android
- Host: GitHub
- URL: https://github.com/xeinebiu/android_floating_video
- Owner: xeinebiu
- License: mit
- Created: 2020-11-23T10:13:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-04-13T21:15:41.000Z (about 3 years ago)
- Last Synced: 2025-04-10T12:40:27.453Z (about 1 year ago)
- Topics: android, exoplayer, exoplayer2, float, floating, popup
- Language: Kotlin
- Homepage:
- Size: 366 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Floating Video Player
This library uses Exo Player as Video Player with ability to use it on a Floating window.

---
### Installation
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://www.jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.xeinebiu:android_floating_video:1.5.0'
}
---
---
### Starting the service
```kotlin
val stream = Stream(
Uri.parse("video url here"),
HashMap()
)
VideoFloatingService.play(
this,
VideoItem("demo", listOf(stream))
)
```
### Change logs
1.5.0
- Update dependencies
1.4.0
- Upgrade Gradle Plugin
- Play the stream which matches the window size by default
- Move Window dimensions to resources for overwrite flexibility
- Do not include custom user agent by default
1.3.0
- Update dependencies
1.2.1
- Bug fixes & improvements
1.1.0
- Support Subtitles
1.0.2
- Fix: Service crashes when is already running and another stream is provided
1.0.1
- Support custom headers for each Stream
1.0.0
- Initial Release