Try doing the following in your ss file and see what is outputted.
<% control SampleTrack %>
$Debug
<% end_control %>
If I remember right I think I had to use something like $SampleTrack.URL to get it to work correctly.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Try doing the following in your ss file and see what is outputted.
<% control SampleTrack %>
$Debug
<% end_control %>
If I remember right I think I had to use something like $SampleTrack.URL to get it to work correctly.
Thanks for the reply again. I have added in the $Debug and get the below response:
Database record: File
* ClassName:
File
* Created:
2011-04-14 16:52:43
* LastEdited:
2011-04-14 16:52:43
* Name:
air.mp3
* Title:
air
* Filename:
assets/music/air.mp3
* Sort:
0
* ParentID:
16
* OwnerID:
1
* ID:
23
* RecordClassName:
File
Using $SampleTrack.URL seems to be getting me a step closer, the controls flash up and the code looks right in Firebug, but still not playing.
Scratch that. It's FF issue, need an ogg. Working fine in Safari and Chrome.
Thanks for all your help.