mirror of
https://github.com/bbara04/Purefin.git
synced 2026-03-31 17:10:08 +02:00
implement Media3 ExoPlayer for video playback
- Add Media3 UI, ExoPlayer, and Compose dependencies. - Implement `PlayerActivity` with landscape orientation for video playback. - Create `PlayerViewModel` to manage ExoPlayer lifecycle and media loading via Hilt. - Define `VideoPlayerModule` to provide a configured `ExoPlayer` instance with tunneling and custom load control. - Extend `JellyfinApiClient` to fetch media sources and video stream URLs. - Update `ContinueWatchingCard` to launch `PlayerActivity` when the play button is clicked. - Enforce portrait orientation for the main application and filter duplicate items in `HomePageViewModel`.
This commit is contained in:
@@ -67,6 +67,9 @@ dependencies {
|
||||
implementation(libs.androidx.compose.foundation)
|
||||
implementation(libs.coil.compose)
|
||||
implementation(libs.coil.network.okhttp)
|
||||
implementation(libs.medi3.ui)
|
||||
implementation(libs.medi3.exoplayer)
|
||||
implementation(libs.medi3.ui.compose)
|
||||
testImplementation(libs.junit)
|
||||
androidTestImplementation(libs.androidx.junit)
|
||||
androidTestImplementation(libs.androidx.espresso.core)
|
||||
|
||||
Reference in New Issue
Block a user