diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser new file mode 100644 index 0000000..58cc836 Binary files /dev/null and b/.idea/caches/build_file_checksums.ser differ diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..30aa626 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..b0c7b20 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..9d5caa0 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..7f68460 --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/bvpkotlin/src/main/java/com/halilibo/bvpkotlin/BetterVideoPlayer.kt b/bvpkotlin/src/main/java/com/halilibo/bvpkotlin/BetterVideoPlayer.kt index ca9dc08..4497a33 100644 --- a/bvpkotlin/src/main/java/com/halilibo/bvpkotlin/BetterVideoPlayer.kt +++ b/bvpkotlin/src/main/java/com/halilibo/bvpkotlin/BetterVideoPlayer.kt @@ -985,6 +985,7 @@ class BetterVideoPlayer @JvmOverloads constructor( override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) { if (fromUser) { seekTo(progress) + mProgressCallback?.onUserSeek(progress) mPositionTextView.text = Util.getDurationString(progress.toLong(), false) } } diff --git a/bvpkotlin/src/main/java/com/halilibo/bvpkotlin/VideoProgressCallback.kt b/bvpkotlin/src/main/java/com/halilibo/bvpkotlin/VideoProgressCallback.kt index f5f1eed..ac6895f 100644 --- a/bvpkotlin/src/main/java/com/halilibo/bvpkotlin/VideoProgressCallback.kt +++ b/bvpkotlin/src/main/java/com/halilibo/bvpkotlin/VideoProgressCallback.kt @@ -3,4 +3,6 @@ package com.halilibo.bvpkotlin interface VideoProgressCallback { fun onProgressUpdate(position: Int, duration: Int) + fun onUserSeek(position: Int) + } \ No newline at end of file