New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 109441 link

Starred by 37 users

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Apr 2012
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Regression

Restricted
  • Only users with EditIssue permission may comment.



Sign in to add a comment

HTML5 audio doesn't work on some Mac computers

Reported by dsouza.k...@gmail.com, Jan 6 2012

Issue description

Chrome Version       : 17.0.963.26
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
URLs (if applicable) : youtube.com, dailymotion.com, vimeo.com
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
     Safari 5: OK
  Firefox 4.x: OK
     IE 7/8/9: OK
     Opera 11: OK

What steps will reproduce the problem?
1. Go to a video site like youtube.com, dailymotion.com or vimeo.com
2. Play any video
3.

What is the expected result?

Video should play and you should also hear audio

What happens instead?

Video plays but there is no audio
Please provide any additional information below. Attach a screenshot if
possible.

UserAgentString: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.26 Safari/535.11


 
Showing comments 29 - 128 of 128 Older
Owner: imasaki@chromium.org
dsouza.keith, can you confirm the issue has been fixed?
 
Confirmed that it works in Canary build
Status: Verified
I'm in Mac OS X 10.6.8, and both video's audio track and audio files do not play any sound.
I can reproduce this in YouTube's HTML5 trial videos, and, for example, in the media present in these pages:
http://courses.csail.mit.edu/6.851/spring12/lectures/L02.html (video plays, but with no audio)
http://en.wikipedia.org/wiki/File:Pyotr_Ilyich_Tchaikovsky_-_1812_overture.ogg (progress bar moves, but with no audio)

I tried both in Chrome Dev Channel (19.0.1036.7) and Canary (19.0.1038.0) and neither play any sound.
In Firefox 10.0.1 I can hear sound as expected.
I'm a Mac OS X 10.6.8 user as well, and all HTML5 audio, audio tracks in HTML5 video, and direct audio file references (e.g. opening a link to an MP3/OGG file) yield no audio. Also broken in apps from the Chrome Web Store, which I imagine play audio through similar mechanisms.

I'm using Chrome 18.0.1025.11 beta, but also confirmed it is broken in Chrome Canary 19.0.1039.0 as well. Firefox 10.0 and Safari 5.2.0 have no problems.

Comment 34 by Deleted ...@, Feb 15 2012

I can confirm that I get no audio from html5 (tested on youtube, dailymotion and others).

Tested on:
OS: Mac OS X 10.7.3
Chrome : 17.0.963.46 (Sound works)
Chrome Canary : 19.0.1041.0 (Sound not working)
Owner: alek...@chromium.org
Status: Unconfirmed
Reopening issue due to customers finding more issues 
Owner: tweisberg@chromium.org
Trevor, can you look at this issue and try to repro. Thank you 

I am unable to repro this.  Looking at the above videos and videos on our test list I see and hear no issue.  There is still sound.  I am running Mac OS X 10.7.2, I am using  Canary 19.0.1042.0 and Chrome beta 18.0.1025.11
Happens on Windows 7 Ultimate as well with 19.0.1041.0 dev-m
Occurs infrequently on Windows 7 19.0.1041.0 Canary.  Seems to occurs most often after opening a video link for the first time.  Closing it and reopening it fixes the issue.  Cannot reproduce on a Mac, though.
With the new dev channel release I decided to try both links I posted back in comment #32 again, and the problem persists. I can reproduce this every time, that is, I never have sound in those links, neither do I have sound in YouTube's HTML5 player.
The Chrome versions I used to test this time were 19.0.1041.0 dev and 19.0.1044.0 canary running on Mac OS X 10.6.8.
Additionally, I'd like to make a note that when the media starts playing I can notice that something in the audio changes, since I start hearing a white noise kind of sound in my headphones; it stops some seconds after I stop the media (and it is usual when some short sounds play in my system). I think — this is mere speculation — this means something in Chrome interacts with the Audio API of the Operating System, but fails to play the sound correctly.
Owner: imasaki@chromium.org
Owner: ----
Status: Untriaged
Getting dev's input.

Cc: alek...@chromium.org
 Issue 114226  has been merged into this issue.
I just want to point out that this bug is NOT only HTML 5 related. I've had problems with the Google voice extension not playing the alert sound. Additional details in the merged  bug 114226 .
Labels: -Mstone-18

Comment 46 by Deleted ...@, Feb 29 2012

Same issue here, no sound on any HTML5 content using chrome 18 beta. Not just video either but on HTML5 based games like Bastion. I'm on OSX Lion by the way.
Owner: imasaki@chromium.org
Status: Assigned
I'm sorry, but I can't seem to reproduce this on 19.0.1056.0 Canary for Windows 7.  I've tried clearing my browser history and cache and restarting chrome and canary.  Nothing.  I cannot reproduce this at all.  I'm curious, were there any chrome flags used while doing this?
Continues to happen for me on 19.0.1055.1 dev-m. Is there any thing I could provide you with that would help you debug. This and the Chrome forgetting cookies issue is making this dev version pretty much useless for me right now.
 Issue 116504  might contain some more info. At least for the Mac side of the problem

Comment 51 by Deleted ...@, Mar 15 2012

Yes!!!!!!!  I set up a backgroud music player for my blog, it works fine with safri on my mac, even with Chrome for windows, BUT NOT Chrome For MAC!!  It seems playing music, but there is no sound!!! NO sound!!!
Move `/Library/Preferences/Audio/com.apple.audio.SystemSettings.plist` out of the way and `sudo killall coreaudiod`

http://code.google.com/p/chromium/issues/detail?id=116504#c9

That solved the issue for me.
dsouza.keith@, can you summarize this issue on Windows? Were there any version that is working?
In comment#18, you said "I can confirm that it has been fixed on 18.0.1009.0 canary". Was it working on 18.0.1009.0 canary?

It worked in that build but stopped working again. I can confirm that it does not work in the dev build now but works in the current canary build
Do you think you can bisect the build (http://www.chromium.org/developers/bisect-builds-py) to find out what fixed the issue? You have to reverse Good and Bad for that.
Please let me know if you have problems with it. 

Comment 56 by Deleted ...@, Mar 26 2012

I have the same problem. All html5 plays no audio– html5 versions of soundcloud players, vimeo, etc. OSX10.6.8, chrome 18.0.1025.129 beta. Should I be using a different build? It gives me no update option. 
I run OS X 10.6.8 and chrome dev 19.0.1068.1 and I've been frustrated with this no-audio issue for a long time. I just took a moment to create a new user, install chrome stable (17.something) and test: success. Then I installed Canary (19.something) and audio works fine.

I've been running chrome dev for a long time, so my suspicion is that there's some cruft in my profile. I'm going to investigate.

HTH

Comment 58 Deleted

Comment 59 by Deleted ...@, Mar 30 2012

I'm shocked Chrome 18 was released without this bug being fixed.

Comment 60 Deleted

overhaze: we've never been able to reproduce the bug locally which makes it extremely hard to fix and I apologize you've been getting hit particularly hard by this bug :\

it's sounding very machine/profile-specific -- could you help us out by providing the following details:
  * Which mac hardware are you using?
  * Do you have additional sound cards plugged in? (i.e., USB headsets) 
  * Does it happen with and without headphones plugged in?
  * Does it happen on Google Chrome Canary builds?
  * Does it happen when you run with a fresh profile? Run the following in Terminal.app:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=$(mktemp -d -tcrbug) --no-first-run
Also can you confirm whether Web Audio is working?
http://chromium.googlecode.com/svn/trunk/samples/audio/shiny-drum-machine.html
One more thing... can you launch Console.app (use spotlight and search for "Console") then launch Google Chrome, then navigate to something containing audio and see if Console.app reports and log messages relating to audio?
Yet another thing that would be extremely helpful!

Use spotlight to open "Audio MIDI Setup" and answer the following questions:
  * What is listed in the two drop-down boxes by "Format"?
  * Click on Configure Speakers... do you have Stereo or Multichannel selected?
  * If Multichannel, what configuration is listed in the drop-down box?
Labels: -Area-Undefined Area-WebKit OS-Mac
dsouza.keith: are you still running into issues with latest builds of Chrome? What about Chrome 18 stable?
Labels: Mstone-18 ReleaseBlock-Stable

Comment 67 by Deleted ...@, Mar 31 2012

Okay here is some info

I'm using a mid 2011 27 inch imac. I have no addition soundcards plugged in, I have no sound with or without headphones, I haven't tried a Canary build, I still get no sound with a fresh profile.

Wed audio does work, I get no console errors regarding audio.

Audio MIDI Setup Info

Format is 44100.0 Hz 2ch-24bit Interger , stereo is selected 
Is this and  issue 116504  the same? Should they be merged?
I'm on a Macbook Pro (MacBookPro5,3: Mid 2009), using Chrome 18.0.1025.142 beta. No audio even on a new profile.

I have no USB sound devices installed or plugged in; no sound with or without headphones.

I DO have audio in the Canary build, which is new. Last time I checked I did not.

The output format I have configured in Audio Midi Setup is 2channel 16bit, 48Hz. The speaker configuration is for stereo sound.

Comment 70 by luth...@gmail.com, Mar 31 2012

I am also having this problem. I'm on a MacBook (late 2006) using Chrome 18.0.1025.142 beta. No audio with or without headphones. No audio on a new profile.

Audio MIDI Setup
44100.0 Hz / 2ch-16bit / Stereo

I tried 'sudo killall coreaudiod' but that didn't help (http://code.google.com/p/chromium/issues/detail?id=116504#c9)

One thing that DOES work for me is if I run Boom (http://www.globaldelight.com/boom/). If I have Boom running, the audio will play in HTML5 videos.

Audio MIDI Setup for Boom
44100.0 Hz / 2ch-32bit / Stereo

Hope that helps. Looking forward to getting this fixed as I don't like running Boom all the time. (and be careful with that program, I just blew out the right speaker in my MacBook the other day… oops!)

Comment 71 by Deleted ...@, Mar 31 2012

The latest Canary build has audio. I can also confirm that installing Boom or using Soundflower as an intermediary restores HTMl 5 sound.
I just confirmed that passing audio through Soundflower restores HTML5 audio for me as well. (Also WebAudio did work for me, but not HTML5 audio.)

Comment 73 by Deleted ...@, Apr 2 2012

This just worked for me (but it's a hassle and makes me want to just use Safari):
I'm using  Mac 10.6.8, Chrome 18.0.1025.142, and have Soundflower. I can get audio to play on youtube vids if I start the video with Soundflower as my output, then switch to internal speakers. BUT, you have to do that EVERYTIME you want to play a video. 

Comment 74 by Deleted ...@, Apr 3 2012

Using Google Chrome Canary builds I was able to get audio working.  Running Macbook Pro 5,3
Owner: scherkus@chromium.org
Status: Assigned
Labels: -OS-Windows

Comment 77 by Deleted ...@, Apr 3 2012

i am on mac 10.6.8
latest chrome: 18.0.1025.142

html5 audio players are mute.
the chrome browser is, therefore, broken.

workarounds are not really acceptable. please fix it .

cheers
this is totally bizarre!!! D:

folks confirming canary is working: can you paste in the version string?
Labels: -importantforaudio
Summary: HTML5 audio doesn't work on some Mac computers
Cc: vrk@chromium.org
 Issue 116504  has been merged into this issue.
Status: Started
Is anyone in the Seattle area? Seeing as this is very machine specific I'd love to debug this in person if possible. Email me at scherkus@chromium.org for details. You can swing by the office and maybe even grab some free lunch :)
@sherkus It's a shame I'm not in Seattle, that sounds like a great offer. 

I can confirm that html5 audio is silent for me on Mac OSX 10.6.8, Chrome version 18.0.1025.142.  It works in Firefox, and the files play in other programs, just not Chrome. 

I've tried rebooting and reinstalling to no avail. Headphones being in or out makes no difference.
A fresh profile doesn't help.

I'm attaching screenshots of my audio profile and general hardware profile from 'about this mac'.


Screen shot 2012-04-04 at 14.48.14.png
298 KB View Download
Screen shot 2012-04-04 at 14.48.03.png
300 KB View Download
Project Member

Comment 83 by bugdroid1@chromium.org, Apr 4 2012

The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=130761

------------------------------------------------------------------------
r130761 | scherkus@chromium.org | Wed Apr 04 16:19:46 PDT 2012

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/media/audio/mac/audio_output_mac.cc?r1=130761&r2=130760&pathrev=130761

Replace NOTREACHED() with LOG(ERROR) in PCMQueueOutAudioOutputStream::HandleError().

BUG= 109441 

Review URL: https://chromiumcodereview.appspot.com/9959137
------------------------------------------------------------------------
Labels: Hotlist-ConOps

Comment 85 by Deleted ...@, Apr 5 2012

cannot play audio file by html5, and enter the url directly in the address bar has no sound too.
-------------
Google Chrome	18.0.1025.142 (Official Build 129054)
OS	Mac OS X
WebKit	535.19 (@111933)
JavaScript	V8 3.8.9.16
Flash	11.2.202.228
User Agent	Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19
Command Line	 /Applications/Google Chrome.app/Contents/MacOS/Google Chrome -psn_0_655520 --flag-switches-begin --flag-switches-end
Executable Path	/Applications/Google Chrome.app/Contents/MacOS/Google Chrome

Comment 86 by Deleted ...@, Apr 5 2012

I have tested Safari, it's works fine.
I have included a spreadsheet of the computers in our office:  The audio problem seems to be resolved for us with the latest canary build.

https://docs.google.com/spreadsheet/ccc?key=0AicI10hfAmESdHVNRDJUNGhBVXBCN3lSZTYyTU9xVFE

I would be happy to test other versions, or dump any settings files.  Just let me know.

Comment 88 by Deleted ...@, Apr 5 2012

Also confirming two separate Macs running Chrome 18.0.1025.142 do NOT play HTML5 audio.

Flash YouTube videos play with audio, HTML5 videos play with no audio.

One is an iMac running OSX 10.6.8, the other a Mac Pro running 10.5.8.




Mike, that is correct.  Flash videos play fine on all computers.  3 computers don't have HTML5 audio on 18.0.1025.142.  The issue seems to be resolved on all computers with Canary.   

I suspect this issue is related to Final Cut Pro 7 being installed.

Comment 90 by Deleted ...@, Apr 5 2012

Same issue for me on a Macbook Pro 2,53 GHz Intel Core 2 Duo. (5,5 model from 2009) 
Chrome Version: 18.0.1025.151
OS Version: OS X 10.6.8

No audio when trying to play html5 videos (and html5 audio files). Had no issues with previous versions. Sound works in the dev version (Chrome 19?).
loodjuret: can you paste the dev version string? it's critical I find out where we magically fixed things so we can try to get it into Chrome 18

Thanks!

Comment 92 by Deleted ...@, Apr 5 2012

Reinstalled the dev version now (19.0.1084.9 dev). I can confirm audio works playing html5 videos using this version.
Figured it out!

It turns out if your mac machine has had its surround sound speaker configuration set at some point in time, our mac audio code will try to make sure we redirect the audio to the right speakers. This is a system setting that is unset by default when you get a brand new mac but becomes somewhat permanently set if you do happen to touch it.

Most people never touch their surround sound speaker settings (i.e., laptops) so we didn't catch this bug sooner. We also didn't catch this on Linux/Windows because we don't support multichannel playback on those OSes yet.

The bug fix itself is pretty trivial so I hope to have this out by next week.

I'm fairly certain the fix was in http://crrev.com/128054 which would explain why Chrome 19 is also functioning.

You can test the following two Chromium builds:
http://commondatastorage.googleapis.com/chromium-browser-continuous/Mac/128041/chrome-mac.zip (bad)
http://commondatastorage.googleapis.com/chromium-browser-continuous/Mac/128057/chrome-mac.zip (good)

Unfortunately we can't merge that into Chrome 18 but I do have a fix ready that should be suitable for Chrome 18.
In my case, I've never used surround sound with my macbook pro, but I have used my car stereo's bluetooth for audio output. I can see the settings but not delete them in "Audio Midi Setup".
@sherkus As I was browsing the comments I found another complication. That drum sample that you were suggesting to test html5 audio http://chromium.googlecode.com/svn/trunk/samples/audio/shiny-drum-machine.html may not be a good test. It does work on my machine while other html5 audio doesn't.

The only thing I can guess about that is that it plays wav files, while the sites I am testing for use mp3 and/or ogg files. Here is a simple test that works in Firefox but not Chrome version 18.0.1025.142: http://thehack.github.com/bawk-b-kawk/game/audiotest.html

Maybe you've already found this out?
@tim.inman: that sample uses WebAudio API where as YouTube HTML5 uses <audio>. They use slightly different code paths inside the browser so it was helpful to figure out whether both were broken or just one was broken.

So I have this reproducing on my mac laptop now (OS X 10.6.8) but haven't been able to figure out a way to get my computer back to a working state. henkpoley linked to a possible workaround in http://code.google.com/p/chromium/issues/detail?id=116504#c9 but he's using OS X 10.7.3. In any case it involves deleting system plist files so take caution!
Labels: Merge-Requested
Labels: -Merge-Requested Merge-Approved
this is awesome, thank you so much for getting this working! 

approved for: https://chromiumcodereview.appspot.com/10009037/
Project Member

Comment 101 by bugdroid1@chromium.org, Apr 6 2012

Labels: -Merge-Approved merge-merged-1025
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=131184

------------------------------------------------------------------------
r131184 | scherkus@chromium.org | Fri Apr 06 14:04:53 PDT 2012

Changed paths:
 M http://src.chromium.org/viewvc/chrome/branches/1025/src/content/renderer/media/audio_device.cc?r1=131184&r2=131183&pathrev=131184

Chrome 18 specific fix for fixing HTML5 audio output on Mac.

BUG= 109441 
TEST=Adjust Audio MIDI settings on a mac then restart the machine. Build without
this change should not play any HTML5 audio. Build including this change should
play HTML5 audio.
Review URL: https://chromiumcodereview.appspot.com/10009037
------------------------------------------------------------------------
Status: Fixed
fix will be included in the next Chrome 18 stable channel refresh

again, you may or may not have success with the work around described in http://code.google.com/p/chromium/issues/detail?id=116504#c9 but if you don't feel uncomfortable messing with system files then just sit tight and the fix will come to you :)
Just want to confirm the fix for me in chrome dev on mac os x 1.6.8. I do a lot of audio work (over many years on OS X) and have spent a lot of time mucking about in Audio/MIDI setup, so the fix described here is entirely plausible.

Fantastic work, and thanks very much!
Cc: jeffreyc@chromium.org ac...@adobe.com scherkus@chromium.org viettrungluu@chromium.org t...@adobe.com
 Issue 121891  has been merged into this issue.

Comment 105 Deleted

Labels: testcaseadded
Status: Verified
Verified on 18.0.1025.152 
Has there been a solution to this problem? I am using a MacBook Pro and Google Chrome Youtube plays video, but does not play sound. Chromium works with both video and sound, however lacks the great interface that Google Chrome has to offer. Please keep me posted.

Comment 108 by zgh...@gmail.com, Apr 10 2012

the Comment 52  solution works for me. Thanks.

Comment 109 by zgh...@gmail.com, Apr 10 2012

Thanks  peterj...@gmail.com
I am using Chrome 18 in Mac OS X Lion 10.7.3.There is also no sound, when play html5 audio or video.Then I try the solution written in the Comment 52. It works again.If someone else  have the same issues in OSX , try this steps below:

1.open Terminal (you can type in spotlight for searching it)
2. input this command:   
      sudo rm  /Library/Preferences/Audio/com.apple.audio.SystemSettings.plist
      sudo killall coreaudiod

After you can hear sound from html5 audio or video again.
      
Cc: -viettrungluu@chromium.org

Comment 111 Deleted

we did bisect the build, and found out that this revision http://src.chromium.org/viewvc/chrome?view=rev&revision=113821 is offending CL 
As a reminder if you're not comfortable doing the workaround we've landed the fix and it will be included in the next Chrome 18 stable update.
Can somebody tell me how a report from Windows 7 turned into an issue specifically about Mac computers ? Don't forget to look at the original report.
This bug was at one point verified and closed in #31 but was re-opened in #35 after we received a few complaints in #32 #33 and #34.

All of those new complaints were Mac-specific. A new bug should have been filed.

Comment 116 Deleted

Comment 117 by Deleted ...@, May 11 2012

I can verify the problem in build 18.0.1025.168 running OS X 10.7.3
@goldenme - would you mind filing a new bug? Your issue might be separate from the one tracked here.
This bug has crept back into 22.0.1195.0 canary on Windows...
@dsouza.keith: can you file a new bug? if it's crept back in it's a new issue separate from this one
Scherkus - will file a new bug because it still exists
Project Member

Comment 123 by bugdroid1@chromium.org, Oct 13 2012

Labels: Restrict-AddIssueComment-Commit
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
Project Member

Comment 124 by bugdroid1@chromium.org, Mar 9 2013

Labels: -Action-FeedbackNeeded Needs-Feedback
Project Member

Comment 125 by bugdroid1@chromium.org, Mar 9 2013

Labels: -Type-Regression -Area-WebKit -Feature-Media-Audio -Mstone-18 Cr-Content Type-Bug-Regression Cr-Internals-Media-Audio M-18
Project Member

Comment 126 by bugdroid1@chromium.org, Mar 13 2013

Labels: -Restrict-AddIssueComment-Commit Restrict-AddIssueComment-EditIssue
Project Member

Comment 127 by bugdroid1@chromium.org, Apr 6 2013

Labels: -Cr-Content Cr-Blink
Cc: -jeffreyc@chromium.org
Showing comments 29 - 128 of 128 Older

Sign in to add a comment