[Webkit-unassigned] [Bug 202706] getDisplayMedia stop working when I change the tab or I minimize safari

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 14 12:18:56 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=202706

--- Comment #2 from Bruno Bertoni <bertonibrunoeugenio at gmail.com> ---
I'm not 100% sure if this could cause of this issue, but I found out that Safari uses the setTimeout/setInterval functions in a different way that chrome/firefox.

I added a little script in my index html in order to validate this:
<script>
    $(document).ready(function() {
        setTimeout(printTimeStamp,1000);
        function printTimeStamp(){
            var date = new Date();
            console.log(date);
            setTimeout(printTimeStamp,1000);
        }
    });
</script>

(see the attached image to see the console's log).

The thing is, that I'm using multiple setTimeouts to get the frames, save them into a Queue and then polling them from the queue to show those frames.

Is this an expected behavior of the browser? is there a way to avoid it? 

Thanks!

Bruno.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191014/a66c32b7/attachment.html>


More information about the webkit-unassigned mailing list