Reputation: 146
I am using tokbox-camera-filter api but this API already has an issue. When you change browser tab it removes video stream of publisher and when you come back on same tab it adds video stream.
Please check below link: https://aullman.github.io/opentok-camera-filters/
Open this link on two separate tab and then you can check it by changing browser tabs.
Any solution?
Upvotes: 1
Views: 244
Reputation: 1537
The issue is that it's using a requestAnimationFrame call to draw the image. https://github.com/aullman/opentok-camera-filters/blob/master/src/filterTask.js#L24
requestAnimationFrame doesn't run when the tab or window is in the background. You could try replacing that with a setTimeout which still runs but it probably won't perform as well.
Upvotes: 2
Reputation: 650
It is not officially supported by Tokbox so they(Tokbox) will not provide any support to you regarding this issue but you can submit your query on github from where you get this code or API.
Upvotes: 1