Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-60702

WebRTC capture doesn't work on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.8, 5.9.0 Beta 3
    • WebEngine
    • None
    • macOS 10.11, Qt 5.9 beta 3 and Qt 5.9 git HEAD
    • macOS

    Description

      On the following website https://www.webrtc-experiment.com/RecordRTC/ :

      Trying to capture "fullscreen" video has no effect, and also shows no errors, the start recording button simply gets gray. Same for "microphone + screen".

      Just capturing microphone works fine.

      Capturing camera + microphone fails and shows the following messages in stdout with debug build:

      [68562:1295:0509/172343.366292:INFO:CONSOLE(31)] "spec:   {"video":{},"audio":true}", source: https://webrtcexperiment-webrtc.netdna-ssl.com/gumadapter.js (31)
      [68562:1295:0509/172343.366466:INFO:CONSOLE(31)] "chrome: {"video":{},"audio":true}", source: https://webrtcexperiment-webrtc.netdna-ssl.com/gumadapter.js (31)
      [68562:1295:0509/172344.643579:ERROR:video_capture_device_avfoundation_mac.mm(507)] Could not create video capture input (Cannot Use FaceTime HD Camera (Built-in)): (null)
      [68562:1295:0509/172344.643616:ERROR:video_capture_device_client.cc(344)] error@ AllocateAndStart@../../3rdparty/chromium/media/capture/video/mac/video_capture_device_mac.mm:326, Could not open capture device., OS message: No such file or directory
      [68562:1295:0509/172344.643844:INFO:CONSOLE(54)] "started recording video stream.", source: https://webrtcexperiment-webrtc.netdna-ssl.com/RecordRTC.js (54)
      [68562:1295:0509/172344.643995:INFO:CONSOLE(828)] "Using recorderType:", source: https://webrtcexperiment-webrtc.netdna-ssl.com/RecordRTC.js (828)
      [68562:1295:0509/172344.644142:INFO:CONSOLE(2909)] "Using frames-interval:", source: https://webrtcexperiment-webrtc.netdna-ssl.com/RecordRTC.js (2909)
      [68562:1295:0509/172344.644301:INFO:CONSOLE(2980)] "canvas resolutions", source: https://webrtcexperiment-webrtc.netdna-ssl.com/RecordRTC.js (2980)
      [68562:1295:0509/172344.644461:INFO:CONSOLE(2981)] "video width/height", source: https://webrtcexperiment-webrtc.netdna-ssl.com/RecordRTC.js (2981)
      [68562:1295:0509/172344.645338:ERROR:video_capture_device_client.cc(344)] error@ -[VideoCaptureDeviceAVFoundation sendErrorString:]@../../3rdparty/chromium/media/capture/video/mac/video_capture_device_avfoundation_mac.mm:510, Could not create video capture input (Cannot Use FaceTime HD Camera (Built-in)): (null), OS message: No such file or directory
      [68562:1295:0509/172344.743172:INFO:CONSOLE(90)] "Initialized recorderType:", source: https://webrtcexperiment-webrtc.netdna-ssl.com/RecordRTC.js (90)
      js: Stopped recording video stream.
      [68562:1295:0509/172347.083780:INFO:CONSOLE(103)] "Stopped recording video stream.", source: https://webrtcexperiment-webrtc.netdna-ssl.com/RecordRTC.js (103)
      [68562:1295:0509/172347.696292:INFO:CONSOLE(140)] "video/webm", source: https://webrtcexperiment-webrtc.netdna-ssl.com/RecordRTC.js (140)
      [68568:37903:0509/172347.797173:ERROR:ffmpeg_video_decoder.cc(359)] Error decoding video: end of stream
      [68568:775:0509/172347.797362:ERROR:render_media_log.cc(25)] MediaEvent: PIPELINE_ERROR pipeline: decode error
      js: Uncaught (in promise) AbortError: The play() request was interrupted by a call to pause().
      [68562:1295:0509/172347.800657:INFO:CONSOLE(0)] "Uncaught (in promise) AbortError: The play() request was interrupted by a call to pause().", source: https://www.webrtc-experiment.com/RecordRTC/ (0)
      

      I remember testing this with some Qt version, and recall it working. So I'm not excluding that something might be misconfigured on my end.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes