Skip to content

Commit

Permalink
refactor(app): make base example app use the project library
Browse files Browse the repository at this point in the history
closes #4
  • Loading branch information
aelnonym committed May 26, 2023
1 parent 9cfc8ab commit b27fef6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 57 deletions.
3 changes: 3 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,7 @@ dependencies {
implementation "androidx.media3:media3-exoplayer:$mediaVersion"
implementation "androidx.media3:media3-ui:$mediaVersion"
implementation "androidx.media3:media3-exoplayer-dash:$mediaVersion"

// our library
implementation project(':androidenhancedvideoplayer')
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.example.androidenhancedvideoplayer.components

import androidx.compose.runtime.Composable
import com.profusion.androidenhancedvideoplayer.components.EnhancedVideoPlayer

@Composable
fun VideoPlayerComponent(
resourceId: Int,
useControls: Boolean = false,
alwaysRepeat: Boolean = true,
fullScreen: Boolean = true,
playImmediately: Boolean = true,
soundOff: Boolean = true
) {
EnhancedVideoPlayer(
resourceId = resourceId,
useControls = useControls,
alwaysRepeat = alwaysRepeat,
fullScreen = fullScreen,
playImmediately = playImmediately,
soundOff = soundOff
)
}
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ dependencyResolutionManagement {
}
rootProject.name = "Android Enhanced Video Player"
include ':app'
include ':androidenhancedvideoplayer'

0 comments on commit b27fef6

Please sign in to comment.