c***@googlecode.com
2013-02-26 01:41:20 UTC
Status: Unconfirmed
Owner: ----
Labels: Feature-Media Pri-2 Via-Wizard Type-Bug OS-Android
New issue 178297 by iangilman: Android Chrome does not allow applications
to play HTML5 audio without an explicit action by the user
http://code.google.com/p/chromium/issues/detail?id=178297
Example URL:
http://iangilman.com/rdio/chrome-audio/
Steps to reproduce the problem:
Android Chrome restricts playback of HTML5 audio; you need to call .play()
from within a click handler or such. This is an explicit feature, and has
been discussed in
http://code.google.com/p/chromium/issues/detail?id=138132 . The comment at
the end of that bug says to file a new bug if adding new information, so
that's what I'm doing here.
I work for http://rdio.com, and we'd like to provide mobile playback with
our new JavaScript API. Due to our relationship with the music labels, we
can't just pass out .MP3 URLs, but instead must handle playback ourselves.
For this reason (and others) our JS API creates a non-visible rdio.com
iframe on the API client's site, and we do our playback (among other
things) within that iframe.
This structure works great on desktop, but with Android Chrome it's simply
not possible for us to trigger playback from within the click handler.
Here's the sequence:
1. User clicks
2. We postMessage into the iframe
3. Inside the iframe we do an ajax call to get the MP3 url
4. Inside the iframe we play the MP3
I've mocked this up in a simplified version for testing here:
http://iangilman.com/rdio/chrome-audio/
I realize our scenario may be a bit unusual, but I think it highlights one
of the ways in which this playback restriction is a hindrance to users of
the Android Chrome browser.
What is the expected behavior?
There should be some way to play audio in this scenario. I'm in favor of
removing the restriction entirely, but even some way to keep track that the
postMessage/Ajax chain started with a click would be better than nothing.
What went wrong?
See above.
Did this work before? No
Is it a problem with Flash or HTML5? HTML5
Does this work in other browsers? Yes Opera Mobile
Chrome version: 18.0.1025469 Channel: stable
OS Version: 4.2
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Owner: ----
Labels: Feature-Media Pri-2 Via-Wizard Type-Bug OS-Android
New issue 178297 by iangilman: Android Chrome does not allow applications
to play HTML5 audio without an explicit action by the user
http://code.google.com/p/chromium/issues/detail?id=178297
Example URL:
http://iangilman.com/rdio/chrome-audio/
Steps to reproduce the problem:
Android Chrome restricts playback of HTML5 audio; you need to call .play()
from within a click handler or such. This is an explicit feature, and has
been discussed in
http://code.google.com/p/chromium/issues/detail?id=138132 . The comment at
the end of that bug says to file a new bug if adding new information, so
that's what I'm doing here.
I work for http://rdio.com, and we'd like to provide mobile playback with
our new JavaScript API. Due to our relationship with the music labels, we
can't just pass out .MP3 URLs, but instead must handle playback ourselves.
For this reason (and others) our JS API creates a non-visible rdio.com
iframe on the API client's site, and we do our playback (among other
things) within that iframe.
This structure works great on desktop, but with Android Chrome it's simply
not possible for us to trigger playback from within the click handler.
Here's the sequence:
1. User clicks
2. We postMessage into the iframe
3. Inside the iframe we do an ajax call to get the MP3 url
4. Inside the iframe we play the MP3
I've mocked this up in a simplified version for testing here:
http://iangilman.com/rdio/chrome-audio/
I realize our scenario may be a bit unusual, but I think it highlights one
of the ways in which this playback restriction is a hindrance to users of
the Android Chrome browser.
What is the expected behavior?
There should be some way to play audio in this scenario. I'm in favor of
removing the restriction entirely, but even some way to keep track that the
postMessage/Ajax chain started with a click would be better than nothing.
What went wrong?
See above.
Did this work before? No
Is it a problem with Flash or HTML5? HTML5
Does this work in other browsers? Yes Opera Mobile
Chrome version: 18.0.1025469 Channel: stable
OS Version: 4.2
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs