opt seekbar .

This commit is contained in:
lixiaopeng
2020-02-11 09:56:07 +08:00
parent a885774acd
commit 69798b99b7
3 changed files with 8 additions and 9 deletions

View File

@@ -52,6 +52,7 @@ class SimpleCoverVideoPlayer : StandardGSYVideoPlayer {
totalTime: Int
) {
super.setProgressAndTime(progress, secProgress, currentTime, totalTime)
Log.e("liyz", "setProgressAndTime progress = $progress --->currentTime = $currentTime --->totalTime = $totalTime")
if (progress != 0) {
mProgressBar.progress = progress
}
@@ -128,7 +129,7 @@ class SimpleCoverVideoPlayer : StandardGSYVideoPlayer {
v?.let {
when (v) {
start -> {
Log.d("liyz", "start --------->")
}
else -> {
@@ -137,12 +138,6 @@ class SimpleCoverVideoPlayer : StandardGSYVideoPlayer {
}
}
override fun onBufferingUpdate(percent: Int) {
super.onBufferingUpdate(percent)
Log.d("liyz", "onBufferingUpdate percent = " + percent)
}
override fun onPrepared() {
super.onPrepared()
}

View File

@@ -15,7 +15,12 @@
<item android:id="@android:id/progress">
<clip>
<shape>
<solid android:color="#66FFFFFF"/>
<!-- <solid android:color="#66FFFFFF"/>-->
<corners android:radius="5dp" />
<!--在gradient这里设置不同的颜色就会产生渐变的效果-->
<gradient
android:startColor="#1AFFFFFF"
android:endColor="#CCFFFFFF"/>
</shape>
</clip>
</item>

View File

@@ -37,7 +37,6 @@
android:layout_width="match_parent"
android:layout_height="@dimen/tanlu_module_full_bottom_height"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/tanlu_module_full_bottom_margin"
android:orientation="horizontal">