opentok / cordova-plugin-opentok

Cordova Plugin for OpenTok - add webrtc video to your iOS or Android App
MIT License
30 stars 80 forks source link

#68 - Camera does not get reclaimed #69

Open wolfenrain opened 6 years ago

wolfenrain commented 6 years ago

Contributing checklist

Solves issue(s)

68

msach22 commented 6 years ago

Thanks for this PR. I spoke to one of our native developers and we both believe this should be application logic and not a part of this plugin. We don't want to tie the camera to the publisher because it's also possible to have a custom capturer that's not a camera, but is used for other things such as screen sharing.

wolfenrain commented 6 years ago

@msach22 Correct me if I am wrong, but how would one manage to do that on application level without writing a native plugin? Let alone hook into the OpenTok plugin to use the mPublisher.setPublishVideo method. I can understand that you can unpublish when going into background.. and publish when coming back...

I do belief this should be in the plugin, because we want to allow people to keep on publishing when in background, but also allow app creators to let their users use a different camera app(like snapchat) and then returning to publishing/reclaiming automatically.