converting an old vsd site...question...

User 283347 Photo


Registered User
388 posts

I am in the process of using rsd to convert a site I did using vsd for a forties band that I am in...my question is what is the best way to use music files on a site? currently I have links to mp3's but it seems problematic for some folks.
Is there a "new" way to host music files...new formats? ...new code?

How would these be implemented into rsd?

Thanks,

Mark

User 379556 Photo


Registered User
1,536 posts

I did it as follows.

1. I placed an invisible HTML element on the page as follows without the controls for audio (as the audio element controls seem to display differently on different devices) -
<audio id="music">
<source src="sh19.mp3">
<source src="sh19.ogg">
Your browser does not support the audio element.
</audio>

2. I could have placed another HTML element where I needed buttons as follows -
<button onclick="document.getElementById('music').play()">Play Music</button>
<button onclick="document.getElementById('music').pause()">Pause Music</button>
<button onclick="document.getElementById('music').pause(); document.getElementById('music').currentTime = 0;">Stop Music</button>
but I in fact limited myself to just the first of those three lines.

3. This can be seen in operation in the utilitarian site I'm developing at http://fc7777.coffeecup.com at page 19 of the 'Sweet Harmonies' section. The layout etc. at full width is not open for adjustment for reasons connected with the copyright permission I have regarding the books on the site.

Frank
User 283347 Photo


Registered User
388 posts

Thanks, Frank!

I'll have a look when I get some time and see if I can use your method.

I'll keep you posted.:)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.