Discussions
Activity
Sign In
How it works
Airtime Development
Embedded Audio Player
Vote Up
1
Vote Down
adrian shephard
November 2013
Posts: 53
Member
Can anyone recommend a simple way of embedding their radio station within an html script ?
We now have a radio-on-berlin.com from one.com and I'm experimenting with trying to put a player on the site,
thanks for any info !
adrian
www.radio-on-berlin.com
12 Comments
sorted by
Votes
Date Added
Vote Up
0
Vote Down
Daniel James
November 2013
Posts: 844
Member, Sourcefabric Team
Hi Adrian,
There is a simple example with code you can download here:
http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/stream-player-for-your-website/
Cheers!
Daniel
Vote Up
0
Vote Down
dommoir
November 2013
Posts: 21
Member
this:
http://kolber.github.io/audiojs/
incredibly simple.
works 100%
i use it here:
www.realhouseradio.com
enjoy!
Vote Up
0
Vote Down
adrian shephard
December 2013
Posts: 53
Member
thanks but currently I'm attempting to embed quicktime stream or html5 so the player works also in non flash based devices as well ---
we are using wordpress widget area,
so there's room for simple code that's all,
I've had a flash player working but as i mentioned it doesn't work in apple mobile devices and some android pads…
thanks for any advice !
ade
www.radio-on-berlin.com
Vote Up
0
Vote Down
adrian shephard
December 2013
Posts: 53
Member
<audio controls="controls">
<source src="
http://radioon.out.airtime.pro:8000/radioon_a
" type="audio/mp3" />
Your browser does not support the audio element.
</audio>
this works !
so simple
i'd like to put an auto play in somehow, but it works so far on apple mobil devices as well…
ade
www.radio-on-berlin.com
Vote Up
0
Vote Down
Lisa Forbes
December 2013
Posts: 123
Member
Hi Adrian,
Would you mind sharing if you find a solution? I am also trying to find a player that I can embed in a Wordpress site. I hate the widget I am currently using.
Vote Up
0
Vote Down
John Chewter
December 2013
Posts: 899
Member
To cover all bases you really need 2 players one for html5 and one not
I stream ogg to html5 and mp3 to the rest - works fine.
No longer using Airtime or Libretime.
Vote Up
0
Vote Down
adrian shephard
December 2013
Posts: 53
Member
lisa,
here is the code i used - very simple !
and it works on iPhones, i pads
safari..unsure of firefox..
maybe switch off autoplay as for iPad/iphone it seems to kill this anyway, but it still just goes on pause for these...
<audio autoplay="autoplay" controls="controls">
<source src="
http://radioon.out.airtime.pro:8000/radioon_a
"
type="audio/mp3" />
Your browser does not support the audio element.
</audio>
www.radio-on-berlin.com
Vote Up
0
Vote Down
adrian shephard
December 2013
Posts: 53
Member
yes we use it in a side widget in wordpress
ade
www.radio-on-berlin.com
Vote Up
0
Vote Down
John Chewter
December 2013
Posts: 899
Member
Note: This will not work in many older versions of browsers and some html5 machines require .ogg
No longer using Airtime or Libretime.
Vote Up
0
Vote Down
adrian shephard
December 2013
Posts: 53
Member
john,
would you know how to change the text colour for the widget below ?
$(document).ready(function() {
$("#headerLiveHolder").airtimeLiveInfo({
sourceDomain: "
http://radioon.airtime.pro
",
updatePeriod: 20 //seconds
});
$("#onAirToday").airtimeShowSchedule({
sourceDomain: "
http://radioon.airtime.pro
",
updatePeriod: 5, //seconds
showLimit: 10
});
$("#scheduleTabs").airtimeWeekSchedule({
sourceDomain:"
http://radioon.airtime.pro
",
updatePeriod: 600 //seconds
});
var d = new Date().getDay();
$('#scheduleTabs').tabs({selected: d === 0 ? 6 : d-1, fx: { opacity: 'toggle' }});
});
www.radio-on-berlin.com
Vote Up
0
Vote Down
adrian shephard
December 2013
Posts: 53
Member
hmm that didn't work,
well i'm asking how to force change the css font colour,
adrian
www.radio-on-berlin.com
Vote Up
0
Vote Down
Lisa Forbes
December 2013
Posts: 123
Member
Thanks Adrian!
Add a Comment
Start a New Discussion
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
8,397
Sourcefabric
↳
Announcements
25
Newscoop
↳
Newscoop Support
2,189
↳
Newscoop Development
722
↳
Newscoop Security
13
↳
Newscoop Documentation
17
↳
Newscoop Themes
69
Airtime
↳
Airtime Support
3,139
↳
Airtime Development
1,286
↳
Airtime Français
146
↳
Airtime Documentation
14
↳
Airtime Hacks
102
↳
Promote your station!
37
↳
Airtime Security
11
Booktype
↳
Booktype Support
277
↳
Booktype Development
55
↳
Booktype Documentation
7
Superdesk
↳
Superdesk Development
264
↳
Web Publisher
21
Poll
No poll attached to this discussion.
Top Posters
Albert FR
1978
Martin Konecny
1860
Andrey Podshivalov
1526
Voisses Tech
1423
John Chewter
899
Daniel James
844
Roger Wilco
784
hoerich
627
Paul Baranowski
389
Cliff Wang
339