- 支持 EPG Intent 传参启动(deviceUid + programCode 自动播放) - 代销模式 init/checkBenefits/SDK初始化/获取播放地址/播放 - Android 4.2 (API 17) 兼容 - OkHttp 3.12.x + TLS 1.2 - ExoPlayer 2.19.1 视频播放
40 lines
1.3 KiB
XML
40 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#000000">
|
|
|
|
<com.google.android.exoplayer2.ui.PlayerView
|
|
android:id="@+id/playerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:resize_mode="fit" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvError"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:textColor="#FF4444"
|
|
android:textSize="18sp"
|
|
android:visibility="gone" />
|
|
|
|
<Button
|
|
android:id="@+id/btnBack"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top|start"
|
|
android:layout_margin="16dp"
|
|
android:text="返回"
|
|
android:alpha="0.7" />
|
|
|
|
</FrameLayout>
|