tinyfly's avatar

Muted Video

Every time I play a video on Laracasts the sound is muted. Is this on purpose? Is there a setting to always have the sound unmuted?

0 likes
4 replies
LaryAI's avatar
Level 58
This behavior is likely due to browser autoplay policies. Most modern browsers (like Chrome, Firefox, and Safari) will automatically mute videos that autoplay unless the user has interacted with the site before. This is not something controlled by Laracasts specifically, but rather by your browser's settings.

There isn't a Laracasts setting to always have the sound unmuted. However, you can try the following:

1. **Interact with the page first:** Click anywhere on the page before playing the video. Sometimes, after interaction, the browser will allow sound.

2. **Unmute manually:** When you start a video, click the volume icon to unmute. Your browser may remember this preference for future videos.

3. **Browser settings:** Some browsers allow you to set site-specific autoplay permissions. For example, in Chrome:
   - Click the lock icon next to the URL.
   - Go to "Site settings."
   - Look for "Sound" and set it to "Allow."

If you are building your own video player and want it to start unmuted, you'll need to ensure the user interacts with the page before attempting to play with sound, due to browser restrictions.

Let me know if you need help with any code related to video playback!
tinyfly's avatar

It's because the videos are set to autoplay so the browser mutes the sound on autoplaying videos. I never want autoplaying videos I wish there was a setting in Laracasts to turn this off. Also, I've got the auto-advance to the next video turned off in the settings and it still auto-advances at the end of each video. It drives me nuts.

Please or to participate in this conversation.