Page 1 of 1
How to make AVPlayer 1.3.2 work?
Posted: Thu May 16, 2013 7:21 am
by pkhunter
Hi. I'm running CMS Made Simple 1.11.4.
I am helping our church to setup a website so that church staff can put weekly talk (in MP3 format) in the website.
I installed the avplayer 1.3.2 but I don't know how to put it in the site so that our clerical staff can help to put MP3 clips in the website.
Actually, I am new to CMS and had very green. Please help to provide some hints. Many thanks.
PK Hunter.
Re: How to make AVPlayer 1.3.2 work?
Posted: Thu May 16, 2013 10:13 am
by staartmees
I use Yahoo WebPlayer -
http://webplayer.yahoo.com/. It works like a charm.
Put in the page specific metadata of the page where you put the mp3-file
Code: Select all
<__script__ type="text/javascript" src="http://webplayer.yahooapis.com/player.js"></__script>
Upload your mp3 into e.g. uploads/mp3
Put in the content of your page:
Code: Select all
<a href="uploads/mp3/example3.mp3">titel of the mp3</a>
Re: How to make AVPlayer 1.3.2 work?
Posted: Thu May 16, 2013 11:01 am
by Rolf
Re: How to make AVPlayer 1.3.2 work?
Posted: Thu May 16, 2013 11:34 am
by staartmees
I made a small adjustment so you only have to insert the name of the mp3-file. For use replace /path/to/ with e.g. :uploads/mp3/
Code: Select all
$config = cmsms()->GetConfig();
$str = $config['root_url'];
echo '<embed type="application/x-shockwave-flash" flashvars="audioUrl= '.$str.'/path/to/' . ($params[file]) . ' "src="http://www.google.com/reader/ui/3523697345-audio-player.swf" width="400" height="27" quality="best" style="z-index:0;" wmode="transparent"></embed>';
in your webpage use {mp3 file='filename.mp3'}
Re: How to make AVPlayer 1.3.2 work?
Posted: Fri May 17, 2013 5:44 am
by pkhunter
Hi staartmees, thanks for your help. It sounds good and handy to use. Yet our hosting provider only provide FTP access for me, and thus I cannot telnet to the shell to run the code you provide (I should run your script, right?).
I think I may download the config file and put the amendments in it. Or, what should I do to insert your codes? Please forgive me for I am naive. The config file you are talking about is the config.php in the root directory, right?
Thanks again.
PK Hunter.
staartmees wrote:I made a small adjustment so you only have to insert the name of the mp3-file. For use replace /path/to/ with e.g. :uploads/mp3/
Code: Select all
$config = cmsms()->GetConfig();
$str = $config['root_url'];
echo '<embed type="application/x-shockwave-flash" flashvars="audioUrl= '.$str.'/path/to/' . ($params[file]) . ' "src="http://www.google.com/reader/ui/3523697345-audio-player.swf" width="400" height="27" quality="best" style="z-index:0;" wmode="transparent"></embed>';
in your webpage use {mp3 file='filename.mp3'}
Re: How to make AVPlayer 1.3.2 work?
Posted: Fri May 17, 2013 6:32 am
by staartmees
You don't need all that fuzz. It's very simple.
(1) Put the code below in a user defined tag - you'll find them under Extensions - you call mp3
Code: Select all
$config = cmsms()->GetConfig();
$str = $config['root_url'];
echo '<embed type="application/x-shockwave-flash" flashvars="audioUrl= '.$str.'/path/to/' . ($params[file]) . ' "src="http://www.google.com/reader/ui/3523697345-audio-player.swf" width="400" height="27" quality="best" style="z-index:0;" wmode="transparent"></embed>';
(2) Put the tag below in the content of your webpage where you want it to appear
(3) Upload your mp3-file(s) into uploads/mp3
That's all. So no telnet or changing your config.php
Re: How to make AVPlayer 1.3.2 work?
Posted: Fri May 17, 2013 6:23 pm
by pkhunter
Hi Rolf and staartmees,
Thanks so much for your help and the Tag works fine.
One more thing, when client clicks on the player, it downloads the whole mp3 before it starts to play it. If the mp3 is a long talks, it takes a while before we can hear the speaker talks. Is there a way that the player plays the mp3 just after it buffers a few seconds (i.e. plays almost on-the-fly)? Or there is another player that fulfills the request?
Many thanks!!
Kind Regards,
PK Hunter.
Re: How to make AVPlayer 1.3.2 work?
Posted: Sat May 18, 2013 5:32 am
by staartmees
In that case use the Yahoo WebPlayer
Re: How to make AVPlayer 1.3.2 work?
Posted: Sat May 18, 2013 1:56 pm
by pkhunter
Then, if using Yahoo WebPlayer, how to make it as a "Tag" so that it can be simply used by non-IT user, like our church general staff to update/upload the weekly talks in the website?
Thanks.
Re: How to make AVPlayer 1.3.2 work?
Posted: Sat May 18, 2013 6:51 pm
by Dr.CSS
Are they going to be single mp3 players or do they want a player with a playlist function where all the mp3 files can be played with one player..?
I made ListIt2 into an audio player with a single player with a playlist, very easy for users to add mp3s...
http://tributetoaking.com/buy-it-now.html
Re: How to make AVPlayer 1.3.2 work?
Posted: Thu May 23, 2013 5:29 am
by pkhunter
Hi Dr. CSS, it would be a single MP3 player for each audio clip. Thx.
Hi Staartmees,
For easier use of the Yahoo WebPlayer, I defined the following Tag, but it does not work. Can you give me some hints?
Code:
$config = cmsms()->GetConfig();
$str = $config['root_url'];
echo '<a href="' . $str . 'uploads/audio/' . ($params[file]) . '">' . ($params[desc]) . '</a>';
Thx
Re: How to make AVPlayer 1.3.2 work?
Posted: Thu May 23, 2013 6:49 am
by staartmees
to make the Yahoo Webplayer work, you don't need all that fuzz
1. Put in the page specific metadata of the page where you put the mp3-file
Code: Select all
<__script__ type="text/javascript" src="http://webplayer.yahooapis.com/player.js"></__script>
2. Upload your mp3 into e.g. uploads/mp3
Put in the content of your page:
Code: Select all
<a href="uploads/mp3/example3.mp3">titel of the mp3</a>
You can do this very simple with the built-in 'insert link' of TinyMCE