question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

autoMuteDevice not working in Chrome

See original GitHub issue

Description

This has been discussed across various tickets #304 , #157 etc. Basically, Upon hitting stop / on finishing recording, the devices Must Turn Off. Since this isn’t happening, we are either to pass autoMuteDevices, or, handle it in a callback. However, even with these options configured, the user can only record Once. A second tap on record with these configurations in place, breaks MediaRecorder and throws a DOM Exception

Steps to reproduce

  1. Create a react component with react v16.2
  2. install videojs-record from npm with all its dependencies - version 3.8.0
  3. import videojs into your component.
  4. write out your component exactly as it is in the guide / wiki
  5. add autoMuteDevices to the record plugin and set it to true
  6. Also add a callback to your onFinish / onStop events on the player. and follow the code as given here
  7. open your component on the browser
  8. hit record
  9. Once recording is complete, Hit record again.

Results

Expected

  1. All controls must be retained
  2. The recorder must start recording again

Actual

  1. The stop button disappears, as does the replay button
  2. The recorder resizes abruptly and then comes back to actual dimensions.
  3. There are errors on the console that say VIDEOJS: ERROR: DOMException: Failed to execute 'start' on 'MediaRecorder': The MediaRecorder failed to start because there are no audio or video tracks available.
  4. The recorder turns blank on timeout - maxLength without recording anything

Error output

If there are any errors at all, please include them here. VIDEOJS: ERROR: DOMException: Failed to execute 'start' on 'MediaRecorder': The MediaRecorder failed to start because there are no audio or video tracks available.

Additional Information

Please include any additional information necessary here. Including the following:

versions

videojs

what version of videojs does this occur with? 3.8.0

browsers

what browser(s) are affected? Make sure to test with all third-party browser chrome v75.x / firefox v 67.x extensions disabled.

OSes

what platforms (operating systems and devices) are affected? macOS mojave

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
retrocausalcommented, Oct 14, 2019

@thijstriemstra Thanks so much for all the help on this. Much much appreciated

0reactions
thijstriemstracommented, Jan 16, 2021

Ok, so there’s no work around for now?

There used to be this much hated piece of software called the Flash Player that allowed me to do it, on every platform, circa 2003. Twenty years later and here we are… 🙉

Read more comments on GitHub >

github_iconTop Results From Across the Web

My Android Auto app isn't working - Google Support
If Android Auto had worked properly before and no longer works now, replace your USB cable and that will likely fix the issue....
Read more >
Troubleshooting the Connection from an Automotive Device to ...
Learn steps that can be taken to aid a successful connection between your Garmin automotive device and compatible computer.
Read more >
Support: Garmin Automotive Map Updates (PC | Chrome™)
Learn how to update your automotive device's map using your PC using the Google Chrome ™ browser.
Read more >
Automotive Device Not Detected by Garmin Express on a ...
USB communication issues can prevent your Garmin device from being detected by Garmin Express. This Video is a Quick and Easy way to...
Read more >
Auto-fill not working consistently in Chrome for Android #1276
Open overview (recent apps) menu, and swipe away Chrome. Re-open Chrome, which will resume back on "Discover.com", tap on the username box - ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found