2011-10-31, 03:32:37
Here is the component code:
and the component is called audio-player
the audio files are named sleepers_awake.mp3 and sleepers_awake.ogg
Here is the tag i'm using:
here is the url where i'm using the code: http://www.weddingmusicensembles.com/
the first player is the one using this code, and the output is looking like this:
the subsequent players are each using a separate component where the audio file path is part of the component...
thanks again for your help...not sure why this isn't working for me....
Code:
<?php global $args; ?>
<audio class="AudioPlayerV1">
<source type="audio/mpeg" src="/data/uploads/<?php echo $args[0]; ?>.mp3" />
<source type="audio/ogg" src="/data/uploads/<?php echo $args[0]; ?>.ogg" />
</audio>
and the component is called audio-player
the audio files are named sleepers_awake.mp3 and sleepers_awake.ogg
Here is the tag i'm using:
Code:
{% audio-player sleepers_awake %}
here is the url where i'm using the code: http://www.weddingmusicensembles.com/
the first player is the one using this code, and the output is looking like this:
Code:
<audio class="AudioPlayerV1">
<source type="audio/mpeg" src="/data/uploads/.mp3" />
<source type="audio/ogg" src="/data/uploads/.ogg" />
</audio>
the subsequent players are each using a separate component where the audio file path is part of the component...
thanks again for your help...not sure why this isn't working for me....