Skip to content

Commit

Permalink
refcator
Browse files Browse the repository at this point in the history
  • Loading branch information
PruthiviRaj27 committed Jul 10, 2024
1 parent 6e6c161 commit d4013b7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions player/src/main/java/com/tpstream/player/data/Asset.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ data class Asset(
val livestream = this.liveStream!!

if (livestream.isDisconnected) return true
if (livestream.isRecording) return true

return !livestream.isStreaming &&
!(livestream.isEnded && livestream.recordingEnabled && video.isTranscodingCompleted)
Expand All @@ -57,7 +56,6 @@ data class Asset(
liveStream?.isNotStarted == true ->
"Live stream will begin soon."
liveStream?.isDisconnected == true -> "The live stream has been disconnected. Please try again later."
liveStream?.isRecording == true -> "The live stream has come to an end. Stay tuned, we'll have the recording ready for you shortly."
liveStream?.isEnded == true && liveStream.recordingEnabled && !video.isTranscodingCompleted ->
"Live stream has ended. Recording will be available soon."
liveStream?.isEnded == true && !liveStream.recordingEnabled ->
Expand Down

0 comments on commit d4013b7

Please sign in to comment.