I can't get the audio to play. It'll play if I fiddle
with code already on page, but then I'll make that change, and it
still won't play when I refresh the site.
https://ctrl-c.club/~singletona082/ytmnd/index.html
Step One:
What did I do wrong?
<embed
src="https://ctrl-c.club/~singletona082/ytmnd/conanstare/moonlight.mp3"
autostart="true" loop="true">
</embed>
A plugin is needed to display this content.
Notes:
- I also took a liberty to change your use of absolute URL
to relative URLs, for ease of your further maintenance.
- I don't think Netscape version of `<embed>` actually support such
`autostart` and `loop` attribute; but HTML 5.0 doesn't forbid them--
such parameter would be passed to the plug-in in question. [4]
- `<embed>`, like `<img>`, doesn't have an end tag;
try not to confuse this with HTML 4.01-standarized `<object>` tag.
This should take care of your audio problem, at least for browsers
which could play MP3 file in HTML 5.0 way.
Regards,
~xwindows
P.S. When I say "HTML 5.0", I explicitly mean W3C HTML 5 original
edition (October 2014)
<https://www.w3.org/TR/2014/REC-html5-20141028/>. For what other
people refer to as "HTML5" or "HTML/LS" nowadays, I would refer to
that as "HTML/MovingGoalpost".
-----
[1] Image files (including SVG) are among these exceptions.
[2] https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html#the-audio-element
[3] Not necessarily a RealPlayer. (*Ba-tum-tss*) [4] http://blooberry.com/indexdot/html/tagpages/e/embed.htm https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html#the-embed-element
YTMND of Yore, before it went to flash, was literally 'here is a gif
and an audio file hit back when you're done.'
I've tried hand making one of those just to see what the end-state
is, so I'd know what I have to try building, and it doesn't matter
what I do. I can't get the audio to play. It'll play if I fiddle
with code already on page, but then I'll make that change, and it
still won't play when I refresh the site.
https://ctrl-c.club/~singletona082/ytmnd/index.html
Sysop: | deepend |
---|---|
Location: | Calgary, Alberta |
Users: | 254 |
Nodes: | 10 (0 / 10) |
Uptime: | 27:25:55 |
Calls: | 1,647 |
Files: | 4,022 |
Messages: | 389,299 |