Commit c07391cd by 严久程

播放

parent 72e80914
ext { ext {
kotlin_version = "1.3.21" kotlin_version = "1.3.21"
dev_mode = false dev_mode = true
ydl_app = [ ydl_app = [
appName : "心理咨询壹点灵", appName : "心理咨询壹点灵",
......
...@@ -192,6 +192,8 @@ class CoursePlayItemViewVideo : RelativeLayout, PlayViewInterface { ...@@ -192,6 +192,8 @@ class CoursePlayItemViewVideo : RelativeLayout, PlayViewInterface {
) { ) {
activity?.isVideoPlay = true activity?.isVideoPlay = true
this@CoursePlayItemViewVideo.findViewById<View>(R.id.ll_bg).visibility = View.GONE this@CoursePlayItemViewVideo.findViewById<View>(R.id.ll_bg).visibility = View.GONE
this@CoursePlayItemViewVideo.findViewById<View>(R.id.ll_loading).visibility = View.GONE
this@CoursePlayItemViewVideo.findViewById<View>(R.id.app_video_loading).visibility = View.GONE
} }
if (what == PlayStateParams.STATE_COMPLETED) { if (what == PlayStateParams.STATE_COMPLETED) {
......
...@@ -85,30 +85,38 @@ ...@@ -85,30 +85,38 @@
<!--加载中--> <!--加载中-->
<LinearLayout <LinearLayout
android:id="@+id/app_video_loading" android:id="@+id/ll_loading"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center" android:visibility="visible">
android:orientation="vertical"
android:visibility="gone">
<ProgressBar
android:layout_width="50dp"
android:layout_height="50dp"
android:indeterminateBehavior="repeat"
android:indeterminateOnly="true" />
<TextView <LinearLayout
android:id="@+id/app_video_speed" android:id="@+id/app_video_loading"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_marginTop="4dp"
android:gravity="center" android:gravity="center"
android:text="188Kb/s" android:orientation="vertical"
android:textColor="@android:color/white" android:visibility="gone">
android:visibility="gone" />
<ProgressBar
android:layout_width="50dp"
android:layout_height="50dp"
android:indeterminateBehavior="repeat"
android:indeterminateOnly="true" />
<TextView
android:id="@+id/app_video_speed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:gravity="center"
android:text="188Kb/s"
android:textColor="@android:color/white"
android:visibility="gone" />
</LinearLayout>
</LinearLayout> </LinearLayout>
<!-- 中间触摸提示--> <!-- 中间触摸提示-->
<include <include
layout="@layout/simple_player_touch_gestures" layout="@layout/simple_player_touch_gestures"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment