Textpattern CMS support forum
- Registered: 2005-11-15
- Posts: 35
Re: M4A audio player
colak wrote #315561:
Hi Colin maybe this is better if you are calling it with
<txp::audio title="your_title" m4a mp3 />
<txp:variable name="audio_file"><txp:yield name="title" /></txp:variable>...
It has the added advantage that no player will be loaded if the title is empty. Also notice the correction to the mime type for
A minor thing but shouldn’t -
<source src=”<txp:variable name=“audio_file” />.mp3” type=“audio/mpeg”>
<source src=”/files/<txp:variable name=“audio_file” />.mp3” type=“audio/mpeg”>
On the World Wide Web since Day 1 – Editor/Creator – The Coffeecrew.com Blog – Coffee.BC.CA
Twitter – Twitter.Com/CoffeeCrew – Facebook: Go on, you can find me… somewhere down the lazy river.