Skip to content

media: recover fallback device interop work#109

Open
thesyncim wants to merge 3 commits into
mainfrom
codex/media-fallback-loopback-pr
Open

media: recover fallback device interop work#109
thesyncim wants to merge 3 commits into
mainfrom
codex/media-fallback-loopback-pr

Conversation

@thesyncim
Copy link
Copy Markdown
Owner

Summary

  • recover the unlanded media fallback/device-selection work from the automation loop
  • keep GetUserMedia() from reporting a requested facingMode as if it were a resolved camera direction when enumeration is empty
  • add synthetic shim-backed interop coverage for facing-mode selection and default-device fallback, plus the mDNS-disabled Pion loopback helper used by those tests

Testing

  • GOCACHE=/tmp/libgowebrtc-media-pr-gocache LIBWEBRTC_SHIM_PATH=/Users/thesyncim/GolandProjects/libgowebrtc/lib/darwin_arm64/libwebrtc_shim.dylib go test ./pkg/media -run 'TestGetUserMedia(FacingModeSelectsMatchingCameraAndFlowsToPion|FallsBackToDefaultDevicesWhenEnumerationIsEmpty)$|TestGetUserMedia(ReturnsOverconstrainedWhenEnumerationIsEmptyAndExactDeviceRequested|FallbackDoesNotReportRequestedFacingModeWhenEnumerationIsEmpty)$' -count=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant