Closed
Bug 626570
Opened 15 years ago
Closed 15 years ago
html5 audio tag: autoplay doesn't work when source elements are used
Categories
(Core :: Audio/Video, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: 0123456789abc, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729)
This kind of code autoplays finely:
<audio src="blablabla.xxx" autoplay whatever_other_parameters_or_not></audio>
This doesn't autoplay:
<audio autoplay whatever_other_parameters_or_not>
<source="blablabla.xxx" whatever_other_parameters_or_not />
<source="blablablabla.yyy" whatever_other_parameters_or_not />
</audio>
Nor this (just to be clear as far as the "/"s are concerned):
<audio autoplay whatever_other_parameters_or_not>
<source="blablabla.xxx" whatever_other_parameters_or_not >
<source="blablablabla.yyy" whatever_other_parameters_or_not >
</audio>
Additional trivial or not details
(of experimentations tried to overcome the problem):
Tried with 2 kinds of audio formats (ogg and wav), tried with various combinations and permutations of included (or not) other parameters but nothing changed.The audio files are playable but don't autoplay (clicking play is needed).
Reproducible: Always
Steps to Reproduce:
1.write a html page - create html file
2.put audio tag code in it with and without source elements
3.try browsing the page when source elements are included and when not
Actual Results:
Doesn't autoplay when source elements are coded-used.
Does autoplay when src is used instead.
Expected Results:
Should have autoplayed both times.
Updated•15 years ago
|
Component: General → Video/Audio
Product: Firefox → Core
QA Contact: general → video.audio
Version: unspecified → 1.9.2 Branch
Comment 1•15 years ago
|
||
Thanks for taking the time to file a bug. It looks like your markup is incomplete. You need to use:
<audio autoplay>
<source src="foo.xxx" />
</audio>
You forgot to add a src attribute to your audio element's child source elements.
If I add src attributes to the source elements in your example, they work for me.
If you do that, and you still can't get it to work, please attach a testcase to this bug, or comment with a URL of a webpage which exhibits this problem, and reopen this bug. Thanks!
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•