Post not yet marked as solved
Post marked as unsolved with 0 replies, 300 views
Requirement :
Safaridriver provide option to disable Use Mock Capture Devices when use webdriver.
Problem :
In Mac OS, when use Safaridriver open a Safari browser for WebRTC samples, the audio input source only display Mock device (audio: Mock audio device 1/ Mock audio device 2 , video: Mock video device 1/ Mock video device 2) but not display Mac OS physical audio/video device .
From safaridriver readMe, seems no configure can set Use Mock Capture Devices , because WebDrier test not support live media capture
"For security reasons, Safari does not permit live media capture during a WebDriver test session. Instead, mock capture devices and streams with well-known contents are provided for testing purposes. "
(In Mac OS, cd/Library/Apple/System/Library/CoreServices/SafariSupport.bundle/Contents/MacOS , man safaridriver)
From safaridriver debug log, safaridriver not provide any configure for disable Mock device.
Reference :
WebRTC samples link:
https://webrtc.github.io/samples/src/content/devices/input-output/
safaridriver debug logs:
[safaridriver.82081.txt]
(https://developer.apple.com/forums/content/attachment/3806528b-d972-4459-8647-d4e6a4aae20a)
Reproduce demo:
SafariDriverDebug.java
pom.xml dependency: