添加预览图像过渡到首帧加载
This commit is contained in:
@@ -207,16 +207,17 @@ class FeatureHubActivity : AppCompatActivity() {
|
|||||||
Toast.makeText(this, "播放地址缺失", Toast.LENGTH_SHORT).show()
|
Toast.makeText(this, "播放地址缺失", Toast.LENGTH_SHORT).show()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
startActivity(
|
val intent = LivePlayActivity.createIntentWithParams(
|
||||||
LivePlayActivity.createIntentWithParams(
|
this,
|
||||||
this,
|
liveMode,
|
||||||
liveMode,
|
params.vhost,
|
||||||
params.vhost,
|
params.appName,
|
||||||
params.appName,
|
params.streamName,
|
||||||
params.streamName,
|
autoStart = true
|
||||||
autoStart = true
|
).apply {
|
||||||
)
|
item.previewImage?.let { putExtra(LivePlayActivity.EXTRA_PREVIEW_IMAGE_URL, it) }
|
||||||
)
|
}
|
||||||
|
startActivity(intent)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun resolvePlayMode(raw: String?): SellyLiveMode {
|
private fun resolvePlayMode(raw: String?): SellyLiveMode {
|
||||||
|
|||||||
@@ -14,6 +14,18 @@
|
|||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivPreview"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:contentDescription="@null"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/btnClose"
|
android:id="@+id/btnClose"
|
||||||
android:layout_width="36dp"
|
android:layout_width="36dp"
|
||||||
|
|||||||
Reference in New Issue
Block a user