Skip to content

adamhenson/get-user-media

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

getUserMedia()

Testing getUserMedia with pushState.

Issue Reproduced in Safari iOS 17.4

Description: When utilizing MediaDevices.getUserMedia() to display a webcam stream and History.pushState() for navigation, the connection to the webcam appears to be lost upon call to history.pushState(). When the stream is displayed as a video element via srcObject, at the point of pushState() call, video displays a black background only. Also noteworthy is that the browser indicator of the webcam connection changes despite stream.active remaining true and all other properties of MediaStream instance remaining unchanged.

Noteworthy points:

  • The issue is not reproducible in Safari 17.4 on desktop (macOS).
  • It's not clear what specific change could potentially cause this issue, based on the release notes, and if the issue is instead intended.
  • It's not clear if this issue is specific to Safari or from Webkit.

Repro URL

Screen recording:

screen-recording-get-user-media.mp4

About

A repo to test getUserMedia() method of the MediaDevices interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published