From ba7045c2ed8b0b5fe37a03aacb6620d4d23c68ab Mon Sep 17 00:00:00 2001 From: Emily Dixon Date: Fri, 11 Oct 2024 12:52:59 -0700 Subject: [PATCH] squashed changes --- .../examples/ConfigurablePlayerActivity.kt | 6 +- .../media3/examples/SmartCacheActivity.kt | 15 +- .../main/res/layout/activity_basic_player.xml | 181 +----------------- 3 files changed, 9 insertions(+), 193 deletions(-) diff --git a/app/src/main/java/com/mux/player/media3/examples/ConfigurablePlayerActivity.kt b/app/src/main/java/com/mux/player/media3/examples/ConfigurablePlayerActivity.kt index 98253b8..5fb5ef8 100644 --- a/app/src/main/java/com/mux/player/media3/examples/ConfigurablePlayerActivity.kt +++ b/app/src/main/java/com/mux/player/media3/examples/ConfigurablePlayerActivity.kt @@ -20,7 +20,7 @@ import com.mux.stats.sdk.core.model.CustomerViewData import com.mux.stats.sdk.core.util.UUID import com.mux.player.MuxPlayer import com.mux.player.media3.R -import com.mux.player.media3.databinding.ActivityBasicPlayerBinding +import com.mux.player.media3.databinding.ActivityConfigurablePlayerBinding /** * A configurable example that uses the normal media3 player UI to play a video in the foreground from @@ -30,7 +30,7 @@ import com.mux.player.media3.databinding.ActivityBasicPlayerBinding */ class ConfigurablePlayerActivity : AppCompatActivity() { - private lateinit var binding: ActivityBasicPlayerBinding + private lateinit var binding: ActivityConfigurablePlayerBinding private val playerView get() = binding.player private val playbackParamsHelper = PlaybackParamsHelper() @@ -39,7 +39,7 @@ class ConfigurablePlayerActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - binding = ActivityBasicPlayerBinding.inflate(layoutInflater) + binding = ActivityConfigurablePlayerBinding.inflate(layoutInflater) setContentView(binding.root) if (savedInstanceState != null) { diff --git a/app/src/main/java/com/mux/player/media3/examples/SmartCacheActivity.kt b/app/src/main/java/com/mux/player/media3/examples/SmartCacheActivity.kt index c02a891..53afee4 100644 --- a/app/src/main/java/com/mux/player/media3/examples/SmartCacheActivity.kt +++ b/app/src/main/java/com/mux/player/media3/examples/SmartCacheActivity.kt @@ -13,25 +13,16 @@ import androidx.media3.common.MediaMetadata import androidx.media3.common.PlaybackException import androidx.media3.common.Player import androidx.media3.common.util.UnstableApi -import com.mux.stats.sdk.core.model.CustomData -import com.mux.stats.sdk.core.model.CustomerData -import com.mux.stats.sdk.core.model.CustomerVideoData -import com.mux.stats.sdk.core.model.CustomerViewData -import com.mux.stats.sdk.core.util.UUID import com.mux.player.MuxPlayer -import com.mux.player.media.MediaItems -import com.mux.player.media.PlaybackResolution -import com.mux.player.media.RenditionOrder -import com.mux.player.media3.PlaybackIds import com.mux.player.media3.R -import com.mux.player.media3.databinding.ActivityBasicPlayerBinding +import com.mux.player.media3.databinding.ActivityConfigurablePlayerBinding /** * Example Activity that enables smart caching */ class SmartCacheActivity : AppCompatActivity() { - private lateinit var binding: ActivityBasicPlayerBinding + private lateinit var binding: ActivityConfigurablePlayerBinding private val playerView get() = binding.player private val playbackParamsHelper = PlaybackParamsHelper() @@ -40,7 +31,7 @@ class SmartCacheActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - binding = ActivityBasicPlayerBinding.inflate(layoutInflater) + binding = ActivityConfigurablePlayerBinding.inflate(layoutInflater) setContentView(binding.root) if (savedInstanceState != null) { diff --git a/app/src/main/res/layout/activity_basic_player.xml b/app/src/main/res/layout/activity_basic_player.xml index 018ca09..31d4708 100644 --- a/app/src/main/res/layout/activity_basic_player.xml +++ b/app/src/main/res/layout/activity_basic_player.xml @@ -1,191 +1,16 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -