Skip to content

Commit

Permalink
Added null check in streaming state (#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 authored Oct 12, 2023
1 parent e441959 commit eb04506
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ class HMSHLSVariantExtension {
args["hls_stream_url"] = hmshlsVariant.hlsStreamUrl ?: ""
args["meeting_url"] = hmshlsVariant.meetingUrl ?: ""
args["metadata"] = hmshlsVariant.metadata ?: ""
args["started_at"] =
SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(hmshlsVariant.startedAt).toString()
hmshlsVariant.startedAt?.let {
args["started_at"] = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(it).toString()
}
return args
}
}
Expand Down

0 comments on commit eb04506

Please sign in to comment.