Interrupt options
- Print
Interrupt options
- Print
Article summary
Did you find this summary helpful?
Thank you for your feedback
You can configure Shoplive Player playback behavior after interruption events, such as incoming calls or disconnection of headphones or earphones.
Interrupt due to earphone or headset disconnection
For interruptions due to headphone or headset disconnection, you can set it to automatically resume broadcasting when they are reconnected. (If you don't configure this, the video will stop when the headphones or headset are disconnected.)
// Auto Play
ShopLive.setKeepPlayVideoOnHeadphoneUnplugged(true)
// AUto Play + Mute
ShopLive.setKeepPlayVideoOnHeadphoneUnplugged(true, true)
Interrupt due to call connection
You can configure automatic playback when returning to the broadcast after ending a call. To use this feature, you'll need the android.permission.READ_PHONE_STATE
permission. (If you don't configure this, the video won't automatically play when returning to the video after ending a call.)
// While tyring to connect a call, pausing a broadcast.
ShopLive.setAutoResumeVideoOnCallEnded(false)