How to make AVPlayer 1.3.2 work?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
pkhunter
New Member
New Member
Posts: 6
Joined: Thu May 16, 2013 7:13 am

How to make AVPlayer 1.3.2 work?

Post 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.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: How to make AVPlayer 1.3.2 work?

Post 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>
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: How to make AVPlayer 1.3.2 work?

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: How to make AVPlayer 1.3.2 work?

Post 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'}
pkhunter
New Member
New Member
Posts: 6
Joined: Thu May 16, 2013 7:13 am

Re: How to make AVPlayer 1.3.2 work?

Post 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'}
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: How to make AVPlayer 1.3.2 work?

Post 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

Code: Select all

{mp3 file='filename.mp3'}
(3) Upload your mp3-file(s) into uploads/mp3

That's all. So no telnet or changing your config.php
pkhunter
New Member
New Member
Posts: 6
Joined: Thu May 16, 2013 7:13 am

Re: How to make AVPlayer 1.3.2 work?

Post 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.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: How to make AVPlayer 1.3.2 work?

Post by staartmees »

In that case use the Yahoo WebPlayer
pkhunter
New Member
New Member
Posts: 6
Joined: Thu May 16, 2013 7:13 am

Re: How to make AVPlayer 1.3.2 work?

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How to make AVPlayer 1.3.2 work?

Post 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
pkhunter
New Member
New Member
Posts: 6
Joined: Thu May 16, 2013 7:13 am

Re: How to make AVPlayer 1.3.2 work?

Post 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
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: How to make AVPlayer 1.3.2 work?

Post 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
Post Reply

Return to “The Lounge”