加入重連機制

This commit is contained in:
Raymond Yang 2023-01-30 16:16:20 +08:00
parent ac15111ab3
commit a29f0e7bbf

View File

@ -129,13 +129,13 @@ class SplitViewFragment : Fragment() {
for (position in videoViews.indices) {
videoViews[position].setOnClickListener {
if (position >= data.size) return@setOnClickListener
/*if (!videoViews[position].isPlaying) {
if (!videoViews[position].isPlaying) {
if (!videoViews[position].isLoading) {
videoViews[position].play()
}
return@setSafeOnClickListener
return@setOnClickListener
}
stopAll()
/*stopAll()
val item = data[position]
val bundle = Bundle().apply {
putInt(MonitoringActivity.BUNDLE_DEVICE_ID, item.id)