Bug 270831 - Camera is paused occasionally when torch is enabled
Summary: Camera is paused occasionally when torch is enabled
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 17
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-03-11 18:52 PDT by Shawn Lee
Modified: 2024-03-28 05:43 PDT (History)
2 users (show)

See Also:


Attachments
screencast (62.28 MB, video/mp4)
2024-03-11 18:52 PDT, Shawn Lee
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shawn Lee 2024-03-11 18:52:58 PDT
Created attachment 470308 [details]
screencast

Demo: 
https://xcwsr5.csb.app/

Click "Start" to open the camera and enable the torch.
Reload the page and repeat it a few times.
Occasionally, the camera pauses, and you have to click "Start Using Camera" to resume it.
Comment 1 Shawn Lee 2024-03-11 18:53:54 PDT
(In reply to Shawn Lee from comment #0)
> Created attachment 470308 [details]
> screencast
> 
> Demo: 
> https://xcwsr5.csb.app/
> 
> Click "Start" to open the camera and enable the torch.
> Reload the page and repeat it a few times.
> Occasionally, the camera pauses, and you have to click "Start Using Camera"
> to resume it.

Tested on iphone 13 pro, ios 17.4
Comment 2 youenn fablet 2024-03-12 00:19:29 PDT
I am able to reproduce once.
A few times, the torch is not switched on even though camera is on.
Comment 3 Radar WebKit Bug Importer 2024-03-12 00:19:57 PDT
<rdar://problem/124434403>
Comment 4 youenn fablet 2024-03-27 04:44:28 PDT
Pull request: https://github.com/WebKit/WebKit/pull/26510
Comment 5 EWS 2024-03-28 05:42:59 PDT
Committed 276773@main (7d9473d140a1): <https://commits.webkit.org/276773@main>

Reviewed commits have been landed. Closing PR #26510 and removing active labels.