diff --git a/playback-sdk-android/src/main/java/com/streamamg/player/plugin/bitmovin/BitmovinVideoPlayerPlugin.kt b/playback-sdk-android/src/main/java/com/streamamg/player/plugin/bitmovin/BitmovinVideoPlayerPlugin.kt
index 5e290b1..8258957 100644
--- a/playback-sdk-android/src/main/java/com/streamamg/player/plugin/bitmovin/BitmovinVideoPlayerPlugin.kt
+++ b/playback-sdk-android/src/main/java/com/streamamg/player/plugin/bitmovin/BitmovinVideoPlayerPlugin.kt
@@ -60,7 +60,10 @@ class BitmovinVideoPlayerPlugin : VideoPlayerPlugin {
     @Composable
     override fun PlayerView(hlsUrl: String): Unit {
         val context = LocalContext.current
-        val isJetpackCompose = LocalViewModelStoreOwner.current != null
+        val isJetpackCompose = when (context) {
+            is ComponentActivity -> true
+            else -> false
+        }
 
         val activity = context.findActivity() as? ComponentActivity
         val playerViewModel: VideoPlayerViewModel = if (isJetpackCompose) viewModel() else activity?.let {