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