Skip to content

Commit

Permalink
update: something
Browse files Browse the repository at this point in the history
  • Loading branch information
muedsa committed Nov 8, 2023
1 parent 1ed88cd commit 103cff5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fun PlaybackScreen(
}

if (danmakuListLD.type == LazyType.SUCCESS && danmakuSettingLD.type == LazyType.SUCCESS) {
var danmakuSetting = danmakuSettingLD.data!!
val danmakuSetting = danmakuSettingLD.data!!

DanmakuVideoPlayer(
debug = BuildConfig.DEBUG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fun AppSettingScreen(
) {
Text(
modifier = Modifier.width(100.dp),
text = "弹幕开关",
text = "全局弹幕开关",
color = MaterialTheme.colorScheme.onBackground,
style = MaterialTheme.typography.titleMedium
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ class PlaybackViewModel @Inject constructor(
stopState: State<Boolean>
) {
viewModelScope.launch(Dispatchers.Unconfined) {
LogUtil.d("[Player position saver-${id}] running for $aid-$episodeTitle")
LogUtil.d("[PlayerPositionSaver-${id}] running for $aid-$episodeTitle")
while (!stopState.value) {
delay(15 * 1000)
val pos = withContext(Dispatchers.Main) {
exoPlayer.currentPosition
}
LogUtil.d("[Player position saver-${id}] save pos: $pos for $aid-$episodeTitle")
LogUtil.d("[PlayerPositionSaver-${id}] save pos: $pos for $aid-$episodeTitle")
}
LogUtil.d("[Player position saver-${id}] stop for $aid-$episodeTitle")
LogUtil.d("[PlayerPositionSaver-${id}] stop for $aid-$episodeTitle")
synchronized(_saverIdSet) {
_saverIdSet.remove(id)
}
Expand Down

0 comments on commit 103cff5

Please sign in to comment.