In the following:
|
/** |
|
* Represents the current playback position as a normalized value between 0.0 and 1.0. |
|
*/ |
|
var sliderPos: Float |
I think there is a mistake. In my code, I tried to detect if video is ended using this variable and saw that it's not 0...1, but 0...1000.
For ios the documentation is correct:
|
override var sliderPos: Float by mutableStateOf(0f) // value between 0 and 1000 |
In the following:
ComposeMediaPlayer/mediaplayer/src/commonMain/kotlin/io/github/kdroidfilter/composemediaplayer/VideoPlayerState.kt
Lines 40 to 43 in 6c5b94e
I think there is a mistake. In my code, I tried to detect if video is ended using this variable and saw that it's not 0...1, but 0...1000.
For ios the documentation is correct:
ComposeMediaPlayer/mediaplayer/src/iosMain/kotlin/io/github/kdroidfilter/composemediaplayer/VideoPlayerState.ios.kt
Line 48 in 6c5b94e