Stream State Update (#53)

* implemented

* update docs
This commit is contained in:
Hiroshi Horie
2021-12-11 14:18:35 +07:00
committed by GitHub
parent 7e1164a74c
commit 9c573f4924
8 changed files with 80 additions and 0 deletions
+8
View File
@@ -124,3 +124,11 @@ extension LKTrackSourceExt on TrackSource {
}[this] ??
lk_models.TrackSource.UNKNOWN;
}
extension PBStreamStateExt on lk_rtc.StreamState {
StreamState toLKType() =>
<lk_rtc.StreamState, StreamState>{
lk_rtc.StreamState.ACTIVE: StreamState.active,
}[this] ??
StreamState.paused;
}