Skip to content

Commit a06cab4

Browse files
committed
-Version Bump
1 parent 3406ca0 commit a06cab4

File tree

4 files changed

+1
-108
lines changed

4 files changed

+1
-108
lines changed

mediaplayer-kmp/build.gradle.kts

+1-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ kotlin {
6262
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
6363
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.6.0")
6464
implementation(libs.kotlinx.coroutines.android)
65-
implementation("com.android.support.constraint:constraint-layout:2.0.4")
6665
}
6766
}
6867
val jvmMain by getting {
@@ -105,7 +104,7 @@ mavenPublishing {
105104
coordinates(
106105
groupId = "io.github.khubaibkhan4",
107106
artifactId = "mediaplayer-kmp",
108-
version = "1.1.6"
107+
version = "1.1.7"
109108
)
110109

111110
pom {

mediaplayer-kmp/src/androidMain/kotlin/YouTubePlayer.android.kt

-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import android.view.ViewGroup
66
import android.view.WindowInsets
77
import android.view.WindowInsetsController
88
import android.view.WindowManager
9-
import android.widget.FrameLayout
109
import androidx.activity.ComponentActivity
1110
import androidx.annotation.OptIn
1211
import androidx.annotation.RequiresApi
@@ -202,7 +201,6 @@ fun YoutubeVideoPlayer(
202201
var player: com.pierfrancescosoffritti.androidyoutubeplayer.core.player.YouTubePlayer? = null
203202
val playerFragment = YouTubePlayerView(mContext)
204203
var isFullScreen by remember { mutableStateOf(false) }
205-
val fullscreenViewContainer = mContext.findViewById<FrameLayout>(R.id.full_screen_view_container)
206204

207205

208206
val playerStateListener = object : AbstractYouTubePlayerListener() {
@@ -254,8 +252,6 @@ fun YoutubeVideoPlayer(
254252
isFullScreen = true
255253
fullscreenView = view
256254
playerFragment.visibility = View.GONE
257-
fullscreenViewContainer.visibility = View.VISIBLE
258-
fullscreenViewContainer.addView(view)
259255
activity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
260256

261257
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
@@ -288,8 +284,6 @@ fun YoutubeVideoPlayer(
288284
activity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED
289285

290286
playerFragment.visibility = View.VISIBLE
291-
fullscreenViewContainer.visibility = View.GONE
292-
fullscreenViewContainer.removeAllViews()
293287

294288
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
295289
activity.window.setDecorFitsSystemWindows(true)

mediaplayer-kmp/src/main/res/layout/custom_youtube_player.xml

-75
This file was deleted.

mediaplayer-kmp/src/main/res/layout/youtube_player_fullscreen_container.xml

-25
This file was deleted.

0 commit comments

Comments
 (0)