songz / cordova-plugin-opentok

Cordova Plugin for OpenTok - add webrtc video to your iOS or Android App
Other
162 stars 270 forks source link

Publisher and subscriber div gets removed on orientation change. #171

Open ghost opened 9 years ago

ghost commented 9 years ago

In Opentok plugin version 1.0.3, when I rotate the display (to landscape), I hide the publisher and subscriber divs and call TB.updateViews() method. But soon after that the publisher and subscriber divs gets removed from the DOM. It works correctly in v1.0.2 of the plugin.

robranck commented 9 years ago

We noticed the same issue and the workaround was fairly straight-forward. After the JS orientation event, have some code that checks if the publisher and subscriber divs are missing and if so, add them back to the DOM.