Interrupt options
- Print
Interrupt options
- Print
Article summary
Did you find this summary helpful?
Thank you for your feedback
When an interrupt event occurs during playback due to a call or loss of earphone connection, you can set the Shoplive Player playback behavior after the interrupt event ends.
Interrupt due to earphone or headset disconnection
When the earphones or headset are disconnected, you can set the broadcast to keep playing or pause.
// set option - true: keep playing, default: false
ShopLive.setKeepPlayVideoOnHeadphoneUnplugged(true)
// check option
print(ShopLive.isKeepPlayVideoOnHeadPhoneUnplugged())
API Reference: setKeepPlayVideoOnHeadphoneUnplugged(_ keepPlay: Bool), isKeepPlayVideoOnHeadPhoneUnplugged() -> Bool
Interrupt due to call connection
You can set it to play automatically when you return to the broadcast after ending the call.
// set option - true: auto resume, default: false
ShopLive.setAutoResumeVideoOnCallEnded(true)
// check option
print(ShopLive.isAutoResumeOnCallEnded())