Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix/flut 138 recording null fix #1617

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ class HMSStreamingState {
map["running"] = hmsRtmpStreamingState.running
map["error"] = HMSExceptionExtension.toDictionary(hmsRtmpStreamingState.error)
if (hmsRtmpStreamingState.running) {
map["started_at"] = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(hmsRtmpStreamingState.startedAt).toString()
hmsRtmpStreamingState.startedAt?.let {
map["started_at"] = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(hmsRtmpStreamingState.startedAt).toString()
}
}
return map
}
Expand All @@ -23,7 +25,9 @@ class HMSStreamingState {
map["running"] = hmsServerRecordingState.running
map["error"] = HMSExceptionExtension.toDictionary(hmsServerRecordingState.error)
if (hmsServerRecordingState.running) {
map["started_at"] = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(hmsServerRecordingState.startedAt).toString()
hmsServerRecordingState.startedAt?.let {
map["started_at"] = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(hmsServerRecordingState.startedAt).toString()
}
}
return map
}
Expand All @@ -34,7 +38,9 @@ class HMSStreamingState {
map["running"] = hmsBrowserRecordingState.running
map["error"] = HMSExceptionExtension.toDictionary(hmsBrowserRecordingState.error)
if (hmsBrowserRecordingState.running) {
map["started_at"] = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(hmsBrowserRecordingState.startedAt).toString()
hmsBrowserRecordingState.startedAt?.let {
map["started_at"] = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(hmsBrowserRecordingState.startedAt).toString()
}
}
map["initialising"] = hmsBrowserRecordingState.initialising
return map
Expand All @@ -57,7 +63,9 @@ class HMSStreamingState {
if (hmsHlsRecordingState == null)return null
map["running"] = hmsHlsRecordingState.running
if (hmsHlsRecordingState.running == true) {
map["started_at"] = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(hmsHlsRecordingState.startedAt).toString()
hmsHlsRecordingState.startedAt?.let {
map["started_at"] = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(hmsHlsRecordingState.startedAt).toString()
}
}
return map
}
Expand Down