opentok / opentok-ios-sdk-samples-swift

Sample applications using the OpenTok iOS SDK in Swift
https://tokbox.com/
MIT License
137 stars 65 forks source link

Remain green dot #174

Closed dimimall closed 1 year ago

dimimall commented 2 years ago

Hello I am iOS developer and I firstly used OpenTok dependency framework and now I am using OTXCframework dependency but I have a faced an issue. When stream destroyed - finished green dot did not disappear. What can I do ? Because video works in background. With objective c I solve this. I create custom static framework with dependencies.

Best Regards

v-kpheng commented 1 year ago

Hi, @dimimall, thanks for letting us know about this issue.

By "green dot", are you referring to the fact that the camera LED remains on, despite publishVideo being false? If so, we have pending work in this area. That said, there's no ETA.

Please advise. Thanks!

v-kpheng commented 1 year ago

Closing, given lack of information. If this problem still persists, please refile. Thanks!

dimimall commented 1 year ago

Hi, @dimimall, thanks for letting us know about this issue.

By "green dot", are you referring to the fact that the camera LED remains on, despite publishVideo being false? If so, we have pending work in this area. That said, there's no ETA.

Please advise. Thanks!

I call my method endSession ` public func endSession() {

    disableCamera()
    disableMicrophone()
    guard let subscriber = subscriber else { return }
    otSession.unsubscribe(subscriber, error: nil)
    otSession.unpublish(publisher, error: nil)
    cleanupPublisher()
    cleanupSubscriber()

    dismiss(animated: true, completion: nil)
}`

But 'green dot' still appear and camera run on background.

Best regards