[6.8.0][驾驶位视频流] 优化代码逻辑

This commit is contained in:
renwj
2024-11-28 11:46:13 +08:00
parent c50b69f14d
commit 1790758b08
4 changed files with 194 additions and 38 deletions

View File

@@ -2,6 +2,7 @@ package com.mogo.eagle.core.function.api.driver.video
import android.view.View
import com.zhjt.mogo_core_function_devatools.driver.video.vo.VideoUrlData
import kotlinx.coroutines.flow.Flow
interface IDriveSeatVideoProvider {
@@ -23,6 +24,16 @@ interface IDriveSeatVideoProvider {
fun getLastData(): VideoUrlData?
/**
* 是否在线
*/
fun poller(): Flow<Boolean>
/**
* 视频是否正在播放
*/
fun isVideoPlaying(): Boolean
sealed class Event {
object Loading: Event()