Problems getting audio to play using html5media

6 views
Skip to first unread message

Robin Valk

unread,
Jan 17, 2014, 8:46:14 AM1/17/14
to html5...@googlegroups.com
Hi

I'm trying to implement html5media on a test blog page. The goal is to create a blog in blogger, dressed up like a website, which can have embedded audio for a schools radio project.

I have embedded
 <script src='http://api.html5media.info/1.1.6/html5media.min.js'/>   
in the head section of the blog template, as instructed.

Next, I placed the player code
<audio controls preload> 
    <source src="audio.mp3"></source> 
    <source src="audio.ogg"></source> 
</audio>
On a blog post page. and have tried linking to a dozen different audio files, using both absolute and relative paths. In all cases, the audio does not play, and the player volume control indicates that there is no audio.  Here's a screenshot clip.


So my question is: what am I dong wrong? Is there a setting in the player I can tweak? Are there special pathing steps that need to be taken?

Any advice and help you can give would be much appreciated - this solution would be perfect four my project if I can get it working.

With many thanks

Robin Valk

The Radio To Go blogmusic, musicians and radio stories from the West Midlands

Dave Hall

unread,
Jan 17, 2014, 12:40:15 PM1/17/14
to html5...@googlegroups.com
Can you link me to a URL that shows the problem?

In general, absolute URLs are safer. If you can paste the URL into your browser, and have it open or download the file, then it should work in the audio tag.


--
You received this message because you are subscribed to the Google Groups "html5media" group.
To unsubscribe from this group and stop receiving emails from it, send an email to html5media+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

ffjaciej.png
Reply all
Reply to author
Forward
0 new messages