Skip to main content

Player behaviors

Player behaviors define actions when a video item changes. LORA Short Video SDK supports 2 behaviors autoplay and Player complete action. You can configure these using the configuration.player.autoPlay property and configuration.player.playerCompleteAction property

For playerCompleteAction, you have 4 options: There are 4 options that you can set:

  • Stop: The player will always stop the video after finishing playing it.
  • Loop: The player will always loop the current video.
  • PlayNextItem: The player will always play the next video in the list. If the current video is the last item, the player will stop playing.
  • PlayNextItemAndLoop: The player will always play the next video in the list. If the current video is the last item, the player will play the first item in the list.