Skip to content

Commit

Permalink
Fix video review page for API <28.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-signal authored and cody-signal committed Mar 19, 2024
1 parent 2bf6b99 commit 4ceeda5
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,15 @@ class VideoEditorFragment : Fragment(), PositionDragListener, MediaSendPageFragm
})
player.hideControls()
player.loopForever()
} else if (MediaConstraints.isVideoTranscodeAvailable()) {
} else {
if (MediaConstraints.isVideoTranscodeAvailable()) {
bindVideoTimeline(state)
} else {
hud.visibility = View.VISIBLE
}
hud.setPlayClickListener {
player.play()
}
bindVideoTimeline(state)
player.setOnClickListener {
player.pause()
hud.showPlayButton()
Expand Down

0 comments on commit 4ceeda5

Please sign in to comment.