Skip to content

Commit 007bc41

Browse files
committed
Annotate createVideoPlayerState with @OptIn to use UnstableApi
1 parent 83db468 commit 007bc41

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mediaplayer/src/androidMain/kotlin/io/github/kdroidfilter/composemediaplayer/VideoPlayerState.android.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import android.content.Context
55
import android.content.Intent
66
import android.content.IntentFilter
77
import android.net.Uri
8+
import androidx.annotation.OptIn
89
import androidx.compose.runtime.Stable
910
import androidx.compose.runtime.getValue
1011
import androidx.compose.runtime.mutableDoubleStateOf
@@ -798,5 +799,6 @@ actual open class VideoPlayerState internal constructor(isInPreview: Boolean) {
798799
}
799800
}
800801

802+
@OptIn(UnstableApi::class)
801803
internal actual fun createVideoPlayerState(isInPreview: Boolean): VideoPlayerState =
802804
VideoPlayerState(isInPreview)

0 commit comments

Comments
 (0)