这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@mqlstam
Copy link
Contributor

@mqlstam mqlstam commented Oct 9, 2025

  • Adds enable-media-stream CEF flag to allow getUserMedia() API

  • Enables native browser camera/microphone access in web widgets

  • Fixes community request for webcam support in web page widgets

    Summary

    Enables webcam and microphone access in CEF browser for web page widgets.

    Problem

    Currently, Xibo Player blocks navigator.mediaDevices.getUserMedia() calls, preventing webcam/microphone access in web widgets. This has been requested by the community.

    Solution

    Added the enable-media-stream CEF command line flag, which automatically grants media permissions.

    Changes

    • One line added to MainWindow.xaml.cs (line 371)
    • Adds settings.CefCommandLineArgs["enable-media-stream"] = "1";

    Testing

    • Tested with web page widget using getUserMedia()
    • Camera/microphone access works without permission dialogs
    • No breaking changes to existing functionality

    References

- Adds enable-media-stream CEF flag to allow getUserMedia() API
  - Enables native browser camera/microphone access in web widgets
  - Fixes community request for webcam support in web page widgets
@dasgarner dasgarner assigned dasgarner and mqlstam and unassigned dasgarner Oct 13, 2025
@dasgarner dasgarner self-requested a review October 13, 2025 08:37
@dasgarner
Copy link
Member

Issue created here: #362

@dasgarner dasgarner merged commit d8feee3 into xibosignage:develop Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants