Interrupt options

    Interrupt options


    Article summary

    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())


    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())