[6.8.0][驾驶位视频流] 优化代码逻辑
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user