Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2018-12-13 17:45:10

colin99
Member
Registered: 2005-11-15
Posts: 48

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 m4a files.

A minor thing but shouldn’t -
<source src=”<txp:variable name=“audio_file” />.mp3” type=“audio/mpeg”>
be
<source src=”/files/<txp:variable name=“audio_file” />.mp3” type=“audio/mpeg”>


On the World Wide Web since Day 1 – Editor/Creator – Coffeecrew.comCoffee.bc.ca
Twitter – Twitter.Com/CoffeeCrew -

Offline

#12 2018-12-14 06:40:46

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,246
Website

Re: M4A audio player

indeed! I corrected it in the code for future reference.


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

Board footer

Powered by FluxBB