
Re: How to: Use CATweb on the Internet
Hi Dave
I now have CATweb running successfully on my PC's and IPAD.
I can also play a track on the IPAD although it starts on a blank webpage with a thin play bar.
What would be nice is this:
I made a copy of track.xsl, called it PlayMusic.xsl and included this code:
Obviously, the src should have been PLAY:{../@id}, but unfortunately CATweb ignores this command inside the audio tag.
This works in Safari + IE + FireFox
There are a couple of ways this could work:
1) Just insert the above code in the template, where you want to play.
2) Convert all playlinks to a call to a specific track template (PlayMusic.xsl) to open up on a new page.
This way you can build your own layout around the player plugin.
What do you think? Worth trying?
Edit:
It seems that FireFox does not support mp3 using the audio tag due to licensing issues.
Therefore if you use Firefox, the embed tag should be used instead.
Having played around a bit more, I think the best solution would be:
1) Convert all CMD:Play instructions to a call to Playmusic.xsl (basically a copy of track.xsl)
2) In Playmusic.xsl convert the audiofilename in the audio/embed src tag to the correct url.
If you want to play a file while browsing, you will most likely want to play on a new webpage so you can continue browsing while playing.