Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Playlist Not found

49 replies [Last post]

<embed src="http://www.biblicalmission.com/player/mp3player.swf" menu="false" quality="high" bgcolor="Transparent" width="300" height="300" name="index" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.biblicalmission.com/player/hercules/playlist.xml" flashvars="playList=http://www.biblicalmission.com/player/hercules/playlist.xml" wmode="transparent" />

That is the code I put.... Is there something wrong with it?

I run a PHP site (Drupal) so I go to create Content >> create story>> and just paste it in there and it should work -- All the files are in the FTP and all

[s]pluginspage="http://www.biblicalmission.com/player/hercules/playlist.xml" [/s]
pluginspage="http://www.macromedia.com/go/getflashplayer"

[s]flashvars="playList=http[/s]...
flashvars="file=http...

please see the [url=http://www.jeroenwijering.com/extras/readme.html]readme[/url] and the [url=http://www.jeroenwijering.com/extras/wizard.html]wizard[/url] for details...
it might be wortwhile using full urls inside the playlist too (at least until youve seen it work)

unfortunately the player you use is modified so i cant tell what version of the player it is-
but the current is [url=http://www.jeroenwijering.com/?item=JW_MP3_Player]v.3.99[/url]

for drupal questions you will have to ask [url=http://drupal.org/]drupal[/url]

Okay. I updated to v. 3.99

Now does this look correct:

<embed src="http://www.biblicalmission.com/player/mp3player.swf" menu="false" quality="high" width="300" height="300" name="index" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="playList=http://www.biblicalmission.com/player/hercules/playlist.xml&ShowPlaylist=1&ShowEQ=1&firstTrack=1&initVol=50" wmode="transparent" />

What I did was create a file with all the .mp3 files

Then another file with the playlist.xml and config.xml

And the mp3player.swf is located in a separate file as well

I just don't understand what I am doing wrong.

@Child,

For the v3.99 players, the flashvars have different names.

Take a look at the embed example here: [url=http://www.jeroenwijering.com/extras/readme.html]JW PLAYERS 3.99 README[/url] and then scroll down for the correct names of the flashvars.

Also, the things you are creating are correctly called directories (or folders) into which you put files.

@Child,

Start with this, get it working, then add flashvars to fine tune the appearance and/or performance.

<embed          src="http://www.biblicalmission.com/player/mp3player.swf"
               menu="false"
            quality="high"
            bgcolor="#000000"
              width="300"
             height="300"
               name="index"
  allowScriptAccess="always"
               type="application/x-shockwave-flash"
        pluginspage="http://www.macromedia.com/go/getflashplayer"
          flashvars="file=http://www.biblicalmission.com/player/hercules/playlist.xml&volume=50&displayheight=20"
              wmode="transparent"
/>

You should really use the SWFObject method of embedding a JW Player because we're much more familiar with it and can give you help that is more complete and accurate.

What is the SWFObject method?

complete basic HTML page

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">

<head>

  <title>Simple JW Player</title>

  <script type="text/javascript" src="swfobject.js"></script>

  <script type='text/javascript'>
    function createPlayer()
    {
      var s1 = new SWFObject('http://my.domain.com/mediaplayer.swf', 'playlist', '475', '450', '9');
          s1.addParam('allowfullscreen', 'true');
          s1.addVariable('width', '475');
          s1.addVariable('height', '450');
          s1.addVariable('displayheight', '350');
          s1.addVariable('file', 'http://my.domain.com/video.flv');
          s1.addVariable('overstretch', 'true');
          s1.addVariable('showdigits', 'true');
          s1.addVariable('autostart', 'true');
          s1.addVariable('shuffle', 'false');
          s1.addVariable('repeat', 'list');
          s1.addVariable('showicons', 'true');
          s1.addVariable('thumbsinplaylist', 'true');
          s1.addVariable('logo', 'http://my.domain.com/logo.png');
          s1.addVariable('backcolor', '0xFFFFFF');
          s1.addVariable('frontcolor', '0x404040');
          s1.addVariable('lightcolor', '0x0FFFF0');
          s1.write('player');
    };
  </script>

</head>

<body onload="createPlayer();">

  <div id="player">
    <a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Plugin</a>
    to see this gallery.
  </div>

</body>

</html>

thx Will,

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">

<head>

<title>Simple JW Player</title>

<script type="text/javascript" src="swfobject.js"></script>

<script type='text/javascript'>
function createPlayer()
{
var s1 = new SWFObject('http://www.biblicalmission.com/player/mp3player.swf', 'playlist', '475', '450', '9');
s1.addParam('allowfullscreen', 'true');
s1.addVariable('width', '475');
s1.addVariable('height', '450');
s1.addVariable('displayheight', '350');
s1.addVariable('file', 'http://my.domain.com/video.flv');
s1.addVariable('overstretch', 'true');
s1.addVariable('showdigits', 'true');
s1.addVariable('autostart', 'true');
s1.addVariable('shuffle', 'false');
s1.addVariable('repeat', 'list');
s1.addVariable('showicons', 'true');
s1.addVariable('thumbsinplaylist', 'true');
s1.addVariable('logo', 'http://my.domain.com/logo.png');
s1.addVariable('backcolor', '0xFFFFFF');
s1.addVariable('frontcolor', '0x404040');
s1.addVariable('lightcolor', '0x0FFFF0');
s1.write('player');
};
</script>

</head>

<body onload="createPlayer();">

<div id="player">
<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Plugin</a>
to see this gallery.
</div>

</body>

</html>

Any mistakes? Simply changed the link

Looks good. Of course, you will have to change the URLs for 'file' & 'logo'. 'logo' is optional, 'file' is required. And you may want to use a full URL to "swfobject.js".

Some of the other flashvars are for a playlist, but I included them so you could see how they are set. It won't hurt anythng to leave them in the code, especially if you are going to use a playlist in the future.

It doesn't work for me.

Is it possible if somebody code post their own personal code for a player on their website (so if i posted that code on my site it would display their player) then I would be able to change the links in that code and display my playlist and all?

Thanks

@Child,

Here's your HTML document cleaned up and running. [url=http://willswonders.myip.org:8085/downloads/Child.zip]Download Child.zip[/url]

There a few things that you need to do before this will work for you:

1) Unzip the file and upload "Child.html" to your server.

2) You need to put "swfobject.js" in your "player" directory with "mp3player.swf". It should have been in the player package that you downloaded from Jeroen's site.

3) You need to change the filename in this line to a valid file on your server.

s1.addVariable('file', 'http://www.biblicalmission.com/player/<strong>video.flv</strong>');

Thanks a lot Will for your patience and help.

You said unzip it to a file on my server, the site is Drupal (PHP) so I can't upload any html? Unless I type it up on the website

@Child,

Oh WOW! I didn't realize that you were using a CMS (smacks himself upside the head).

Well, then you can cut and paste these essential chunks into the head and body.

In the <head>:

<script type="text/javascript" src="http://www.biblicalmission.com/player/swfobject.js">
</script>

<script type='text/javascript'>
function createPlayer()
{
var s1 = new SWFObject('http://www.biblicalmission.com/player/mp3player.swf', 'playlist', '475', '450', '9');
s1.addParam('allowfullscreen', 'true');
s1.addVariable('width', '475');
s1.addVariable('height', '450');
s1.addVariable('displayheight', '430');
s1.addVariable('file', 'http://www.biblicalmission.com/player/video.flv');
s1.addVariable('overstretch', 'true');
s1.addVariable('autostart', 'true');
s1.addVariable('backcolor', '0xFFFFFF');
s1.addVariable('frontcolor', '0x404040');
s1.addVariable('lightcolor', '0x0FFFF0');
s1.write('player');
};
</script>

Add this to the <body> tag itself: (not exactly sure how you do that in Drupal)

onload="createPlayer();

So that the finished <body> tag looks like this:

<body id="second" onload="createPlayer();">

And then wherever you want the player to appear, you have to have a <div> tag with the id of "player" (which you already have).

So, somewhere in the <body> of your finished (output from Drupal) HTML document, you will have a <div> that looks like this:

<div id="player">
<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Plugin</a>
to see this gallery.
</div>

Also, don't forget to makesure that there are the correct files at these URLs:
http://www.biblicalmission.com/player/swfobject.js
http://www.biblicalmission.com/player/mp3player.swf
http://www.biblicalmission.com/player/video.flv

So, make a stab at this and then I'll take a look at your page if something still doesn't work.

Worked!!!!!!!!!!!!!!!!!!!!!!

Thanks a lot man!!!!!!!!!!

You can check out the link now.

Now my other question is what do I do incase I don't have any videos, just mp3 files that are media not videos (in other words you hear them but don't see picture) Could I run them off the same player?

@Child,

The same player can play video, mp3 and still images.

For a single MP3 file, displaying only the control bar, you could use this code:

<script type='text/javascript'>
function createPlayer()
{
var s1 = new SWFObject('http://www.biblicalmission.com/player/mp3player.swf', 'playlist', '200', '20', '9');
s1.addVariable('width', '200');
s1.addVariable('height', '20');
s1.addVariable('file', 'http://www.biblicalmission.com/player/song1.mp3');
s1.addVariable('autostart', 'true');
s1.addVariable('backcolor', '0xFFFFFF');
s1.addVariable('frontcolor', '0x404040');
s1.addVariable('lightcolor', '0x0FFFF0');
s1.write('player');
};
</script>

You can adjust the width to fit your location, if you do change the width, note that it has to be done in two places (same for height). And change song1.mp3 to your file.

For a single MP3 file with a still image 200x200, use this code:

<script type='text/javascript'>
function createPlayer()
{
var s1 = new SWFObject('http://www.biblicalmission.com/player/mp3player.swf', 'playlist', '200', '220', '9');
s1.addVariable('width', '200');
s1.addVariable('height', '220');
s1.addVariable('file', 'http://www.biblicalmission.com/player/song1.mp3');
s1.addVariable('image', 'http://www.biblicalmission.com/player/image.jpg');
s1.addVariable('autostart', 'true');
s1.addVariable('backcolor', '0xFFFFFF');
s1.addVariable('frontcolor', '0x404040');
s1.addVariable('lightcolor', '0x0FFFF0');
s1.write('player');
};
</script>

Adjust the width and height to suit your image, note that you need an extra 20px in height for the control bar.

For a playlist showing 4 items, use this code:

<script type='text/javascript'>
function createPlayer()
{
var s1 = new SWFObject('http://www.biblicalmission.com/player/mp3player.swf', 'playlist', '200', '112', '9');
s1.addVariable('width', '200');
s1.addVariable('height', '112');
s1.addVariable('file', 'http://www.biblicalmission.com/player/playlist.xml');
s1.addVariable('repeat', 'list');
s1.addVariable('autostart', 'true');
s1.addVariable('backcolor', '0xFFFFFF');
s1.addVariable('frontcolor', '0x404040');
s1.addVariable('lightcolor', '0x0FFFF0');
s1.write('player');
};
</script>

Note that the 'file' flashvar is now a URL to a playlist. The playlist can have many items in it; the code above will show 4 items and scroll to show more. Add 23px to the height for each additional playlist line that you want to show.
'repeat', 'list' will automatically play the next item in the playlist.
'repeat, 'true' will automatically repeat the entire list.

For a playlist and an image, use this code:

<script type='text/javascript'>
function createPlayer()
{
var s1 = new SWFObject('http://www.biblicalmission.com/player/mp3player.swf', 'playlist', '200', '312', '9');
s1.addVariable('width', '200');
s1.addVariable('height', '312');
s1.addVariable('displayheight', '200');
s1.addVariable('file', 'http://www.biblicalmission.com/player/playlist.xml');
s1.addVariable('repeat', 'list');
s1.addVariable('autostart', 'true');
s1.addVariable('backcolor', '0xFFFFFF');
s1.addVariable('frontcolor', '0x404040');
s1.addVariable('lightcolor', '0x0FFFF0');
s1.write('player');
};
</script>

Typical playlist with images:

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
  <trackList>
    <track>
      <title>Song 1</title>
      <creator>Anybody</creator>
      <location>http://www.biblicalmission.com/player/song1.mp3</location>
      <image>http://www.biblicalmission.com/player/image1.jpg</image>
    </track>
    <track>
      <title>Song 2</title>
      <creator>Anybody</creator>
      <location>http://www.biblicalmission.com/player/song2.mp3</location>
      <image>http://www.biblicalmission.com/player/image2.jpg</image>
    </track>
    <track>
      <title>Song 3</title>
      <creator>Anybody</creator>
      <location>http://www.biblicalmission.com/player/song3.mp3</location>
      <image>http://www.biblicalmission.com/player/image3.jpg</image>
    </track>
    <track>
      <title>Song 4</title>
      <creator>Anybody</creator>
      <location>http://www.biblicalmission.com/player/song4.mp3</location>
      <image>http://www.biblicalmission.com/player/image4.jpg</image>
    </track>
  </trackList>
</playlist>

Okay here is the code I have:

<script type="text/javascript" src="http://www.biblicalmission.com/player/swfobject.js">
</script>
<script type='text/javascript'>
function createPlayer()
{
var s1 = new SWFObject('http://www.biblicalmission.com/player/mp3player.swf', 'playlist', '200', '312', '9');
s1.addVariable('width', '200');
s1.addVariable('height', '312');
s1.addVariable('displayheight', '200');
s1.addVariable('file', 'http://www.biblicalmission.com/player/hercules/playlist.xml');
s1.addVariable('repeat', 'list');
s1.addVariable('autostart', 'true');
s1.addVariable('backcolor', '0xFFFFFF');
s1.addVariable('frontcolor', '0x404040');
s1.addVariable('lightcolor', '0x0FFFF0');
s1.write('player');
};
</script>

<body id="second" onload="createPlayer();">
<div id="player">
<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Plugin</a>
to see this gallery.
</div>

You can look at it here: http://biblicalmission.com/node/13

<b> Here is my question </b> Why does it say undefined? And is there a way to make it display the same PICTURE (not video) for each mp3. (So on the top there would be an image and on the bottom would be all the mp3s)

Appreciate it man. THANKS ALOT FOR YOUR TIME i understand how hard it must be with someone like me who has very low coding knowledge, appreciate it once more

Here is my playlist.xml file:

<?xml version="1.0" encoding="UTF-8" ?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<title>Sample XSPF Playlist</title>
<info>http://www.jeroenwijering.com/?item=Flash_MP3_Player</info>
<trackList>
<track>
<annotation>Love of God.mp3</annotation>
<location>../mediafiles/fridayroom/hercules/loveofgod.mp3</location>
<info> </info>
<image>../player/cross.jpg</image>
</track>
<track>
<annotation>Holiness</annotation>
<location>../mediafiles/fridayroom/hercules/holiness.mp3</location>
<info> </info>
<image>../player/cross.jpg</image>
</track>
<track>
<annotation>Faith</annotation>
<location>../mediafiles/fridayroom/hercules/faith.mp3</location>
<info> </info>
<image>../player/cross.jpg</image>
</track>
<track>
<annotation>God's Image of Man and Man's Relationship with God</annotation>
<location>../mediafiles/fridayroom/hercules/hercules.mp3</location>
<info> </info>
<image>../player/cross.jpg</image>
</track>
<track>
<annotation>Parable of the 4 kinds of soil</annotation>
<location>../mediafiles/fridayroom/hercules/parable.mp3</location>
<info> </info>
<image>../player/cross.jpg</image>
</track>
<track>
<annotation>Doctrine of the church Part 1</annotation>
<location>../mediafiles/fridayroom/hercules/doctrine.mp3</location>
<info> </info>
<image>../player/cross.jpg</image>
</track>
<track>
<annotation>Doctrine of the church Part 2 </annotation>
<location>../mediafiles/fridayroom/hercules/doctrinee.mp3</location>
<info> </info>
<image>../player/cross.jpg</image>
</track>

<track>
<annotation>Part 1 of Creation -- the world, man, and angels</annotation>
<location>../mediafiles/fridayroom/hercules/world.mp3</location>
<info> </info>
<image>../player/cross.jpg</image>
</track>
<track>
<annotation>Part 2 of Creation -- Evil Angels (Devil and his Angels)</annotation>
<location>../mediafiles/fridayroom/hercules/devil.mp3</location>
<info> </info>
<image>../player/cross.jpg</image>
</track>
<track>
<annotation>Christianity</annotation>
<location>../mediafiles/fridayroom/hercules/christianity.mp3</location>
<info> </info>
<image>../player/cross.jpg</image>
</track>
<track>
<annotation>God's Love</annotation>
<location>../mediafiles/fridayroom/hercules/herculeslove.mp3</location>
<info> </info>
<image>../player/cross.jpg</image>
</track>

</trackList>
</playlist>

Should be fine? Please answer the one post on top of this thanks

@Child,

"Undefined" is showing because you don't have a <creator> element in your playlist.

The playlist items are made up of: Creator - Title

Yes, you do have to have the <image> element for every track in a playlist.

Great. 1 more question --

When I expand the width of the player, the scroll bar does not show.

How can I expand the width and the scroll still shows?

@Child,

When you change the width or height in this line:

var s1 = new SWFObject('http://www.biblicalmission.com/player/mp3player.swf', 'playlist', '200', '312', '9');

You also have to make the corresponding change in these lines:

s1.addVariable('width', '210');
s1.addVariable('height', '312');

@Child,

Also, all of this code belongs in the <head> section of your page:

<script type="text/javascript" src="http://www.biblicalmission.com/player/swfobject.js">
</script>
<script type='text/javascript'>
function createPlayer()
{
var s1 = new SWFObject('http://www.biblicalmission.com/player/mp3player.swf', 'playlist', '200', '312', '9');
s1.addVariable('width', '210');
s1.addVariable('height', '312');
s1.addVariable('displayheight', '200');
s1.addVariable('file', 'http://www.biblicalmission.com/player/hercules/playlist.xml');
s1.addVariable('repeat', 'list');
s1.addVariable('autostart', 'true');
s1.addVariable('backcolor', '0xFFFFFF');
s1.addVariable('frontcolor', '0x404040');
s1.addVariable('lightcolor', '0x0FFFF0');
s1.write('player');
};
</script>

And you have two <body> tags, only one is allowed.

<body id="second">
<body id="second" onload="createPlayer();">

I don't know how to get things into the <head> in Drupal, but you should find out and move the code. And also find out how to edit the <body> tag and get it to look like this:

<body id="second" onload="createPlayer();">

Fixed the width problem --- Thanks

In Drupal, it doesn't matter whether its in the body of head or anything -- because they have a system that organizes it automatically. that could be why it is working fine (even though the <body> is messed up)

Also I only see one of the <body id="second" onload="createPlayer();">

How do I make the player start with the 1st song? Not randomized?

@Child,

The HTML document that is served to my browser is what really matters -- and it is all messed up. It might be working now in this browser, but you WILL have problems in the future with some browsers.

To start with the first playlist item, add this:

s1.addVariable('shuffle', 'false');

(shuffle is true by default)

Appreciate it. Last Question, I swear!

Hehe

How Do i do it so the sound is set to the maximum when the user selects the mp3 they wish to listen too?

Thanks

Default is 80%

s1.addVariable('volume', '100');

Speaking of the sound, I noticed that the volume level of your MP3s varied greatly. You should use MP3Gain (Google is your friend) to normalize the volume level so the user doesn't have to turn the volume up to hear one and then get [i]BLASTED OUT OF THEIR CHAIR!![/i] when the next one starts.

Got it.

Thanks -- I will try the MP3Gain right now and let you know how it goes.

Once again thanks a lot for your help.

And keep up the good work here at this website and keep developing these great players!!

Sorry, another question --

I was putting the player on my other website: www.biblical-education.com

http://biblical-education.com/?q=node/8

if you look here you will see the problem with my player

That was the coding for that page

you will need a login to use: username: player password: player
---------------------------------------------------------------
<B><Font color="Red">Please note that the most recent lectures are located on the top. Thank you</b></font>

<script type="text/javascript" src="http://www.biblical-education.com/player/swfobject.js">
</script>
<script type='text/javascript'>
function createPlayer()
{
var s1 = new SWFObject('http://www.biblical-education.com/player/mp3player.swf', 'playlist', '450', '500', '9');
s1.addVariable('width', '450');
s1.addVariable('height', '500');
s1.addVariable('displayheight', '200');
s1.addVariable('file', 'http://www.biblical-education.com/player/SecondSemester/doctrine2/playlist.xml');
s1.addVariable('shuffle', 'false');
s1.addVariable('volume', '100');
s1.addVariable('repeat', 'list');
s1.addVariable('autostart', 'false');
s1.addVariable('backcolor', '0xFFFFFF');
s1.addVariable('frontcolor', '0x404040');
s1.addVariable('lightcolor', '0x0FFFF0');
s1.write('player');
};
</script>

<body id="second" onload="createPlayer();">
<div id="player">
<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Plugin</a>
to see this gallery.
</div>

@Child,

The Flash mp3player on biblical-education is v2.3. You need to update the player and swfobject.js to the latest version of the JW Player v3.99.

The older player uses a much different set of configuration parameters and a different format playlist, etc.

oh Thanks.

Forgot to update -- I updated it now.

This is what my playlist looks like for this one:

<?xml version="1.0" encoding="UTF-8" ?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">

<trackList>
<track>
<title>Lecture 01 محاضره</title>
<location>../lecturesmedia/SecondSemester/doctrine2/Christian_Doctrine_II_01.mp3</location>
<info> </info>
<image>www.biblical-education.com/lecturesmedia/SecondSemester/church_history/cross.jpg</image>
</track>
</trackList>
</playlist>

Now I have Arabic In the Title (Does this player support Arabic also?)

How come the picture doesn't show nor the title of the mp3 file?

It's weird, if I copy and paste the things from the other website (www.biblicalmission.com) the code works on this website but if I change the links to the player on the www.biblical-education.com and change the url for the playlist it doesn't show up.

-----

Also (Sorry for the many questions, learning A LOT from you), I have a mp3 that I compressed too much so the sound, sounds funny (kind of like a cartoon character kind of thing) could I use that mp3gain program to fix the sound?

Thanks a lot

@Child,

"chipmunked" audio is caused by using the wrong bitrate to sample the audio. The Flash plugin only plays audio encoded at a sample bitrate of 5, 11, 22, and 44kHz.

Arabic and any other UTF8 is OK in titles. DON'T EVER USE IT in filenames.

If you are goung to use a full URL, you need to have the protocol "http://" at the beginning of the URL.

This will work:

<image>http://www.biblical-education.com/lecturesmedia/SecondSemester/church_history/cross.jpg</image>

Of course, there has to be an image file there named "cross.jpg".

With a CMS (Drupal) it would be best to use full URLs to all of your files because you never can tell what relative paths the CMS may generate that will mess things up.

Hmm

I don't see what I did wrong. The playlist does not show on this one.

http://biblical-education.com/?q=en/node/9

you may need to login to see it:

username and password are: test

After you login then go to:
http://biblical-education.com/?q=en/node/9

If you click on one of the mp3 files it plays it fine

@Child,

Maybe just the double slashes "//" between com and player.

s1.addVariable('file', 'http://www.biblical-education.com<strong>//</strong>player/SecondSemester/doctrine2/playlist.xml');

changed it.

But still nothing

@Child,

I don't know what to tell you.

http://biblical-education.com/?q=en/node/9

works for me, and I'm far away in place and time. :d

Seriously though, it does work, so I don't have any advice for you except maybe clear your browser's cache and restart your browser. If you can see the loading symbol, you probalby have a current version of Flash.

Works for me :d

I don't know what I did, but glad I did it

Thanks a lot for your help man. You have helped me so much

(I will memorize your name "Will" so if I have another question i can post it and say "WILLLL HELPPP" :d

Anyhow thanks a lot. Keep up the good work!

@Child,

Glad I could help you. It's very satisfying to see someone develop skills and get a site working.

Certainly, if you need more help, you know where to find me. :)

I'm back :d

Does this player support .ram and .rm?

so for example in the playlist

<location>blahblah.rm</location>

<location>blahblah.ram</location>

FLV, MP3, SVG, GIF, JPG, PNG, and simple SWF.

awww No fair,

Guess I'll be doing some converting tonight.

Thanks

If i wanted to hide the code

(So when you right click and go to (View page source) you wouldn't see the .xml URL then be able to download the song from the FTP)

how would I go about doing that?

There was a script for it I think not sure,

so it can hide the url for the .playlist file and all (i found one for HTML but i need one for whatever code I learned a few days ago with you :d

thanks

-------------

*Updated*

Also, a friend of mine was listening to songs from this player and when he clicked on play the file would be downloaded to his desktop...

Now he is using IE browser with IDM 5.03 -- When he disables IDM it is not downloaded on his computer. (Think I found a bug in the player :)) What must be done so whoever uses IDM does not download the file?

Thanks

http://www.biblicalmission.com/ar/node/33

Something is wrong with that player, doesn't play the songs -- If you could please check it when you get a chance.

Thanks

you have two <body tags - not good!

<body id="second">
...
<body id="second" onload="createPlayer();">

combine them in the first, delete the second:
<body id="second" onload="createPlayer();">

@andersen,

Please check earlier in this thread. Multi body tags are the norm here. :d

fundamental html document structure:

------ the head

<html>
<head>
<style type="text/css"></style>
<script type="text/javascript" src="swfobject.js">
<script type="text/javascript">
function createPlayer(){
...
s1.write('player');
}
</script>
</head>

---------- and the body

<body onload="createPlayer()">

<div id="player">
<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Plugin</a>to see this player.</div>

</body>
</html>

if that is not possible because of some CMS quirk then remove the onload="createPlayer()" completely -

and instead place a trigger like this:

<script type="text/javascript">createPlayer();</script>
</body>
</html>

at the very bottom of the document after the <div and the function createPlayer()

Well.. I'm glad you guys responded.

But what about my question? :d

Thanks

@Child,

You are serving the page from:
http://www.biblicalmission.com/ar/node/33/

then you tell the player to get the MP3 from:
../mediafiles/john/john_01.mp3

which is a full URL of:
http://www.biblicalmission.com/ar/node/mediafiles/john/john_01.mp3

But there is no MP3 named "john_01.mp3" at that URL.

It's really at:
http://www.biblicalmission.com/mediafiles/john/john_01.mp3

Adjust your paths.

<?xml version="1.0" encoding="UTF-8" ?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<title>Sample XSPF Playlist</title>
<info>http://www.jeroenwijering.com/?item=Flash_MP3_Player</info>
<trackList>
<track>
<title>Lecture 1</title>
<location>http://www.biblicalmission.com/mediafiles/john_01.mp3</location>
<image>http://www.biblical-education.com/lecturesmedia/SecondSemester/church_history/cross.jpg</image>
<info></info>
</track>
<track>
<title>Lecture 2</title>
<location>http://www.biblicalmission.com/mediafiles/john_02.mp3</location>
<image>http://www.biblical-education.com/lecturesmedia/SecondSemester/church_history/cross.jpg</image>
<info></info>
</track>

<track>
<title>Lecture 3</title>
<location>http://www.biblicalmission.com/mediafiles/john_03.mp3</location>
<image>http://www.biblical-education.com/lecturesmedia/SecondSemester/church_history/cross.jpg</image>
<info></info>
</track>

<track>
<title>Lecture 4</title>
<location>http://www.biblicalmission.com/mediafiles/john_04.mp3</location>
<image>http://www.biblical-education.com/lecturesmedia/SecondSemester/church_history/cross.jpg</image>
<info></info>
</track>

<track>
<title>Lecture 5</title>
<location>http://www.biblicalmission.com/mediafiles/john_05.mp3</location>
<image>http://www.biblical-education.com/lecturesmedia/SecondSemester/church_history/cross.jpg</image>
<info></info>
</track>

<track>
<title>Lecture 6</title>
<location>http://www.biblicalmission.com/mediafiles/john_06.mp3</location>
<image>http://www.biblical-education.com/lecturesmedia/SecondSemester/church_history/cross.jpg</image>
<info></info>
</track>

</trackList>
</playlist>

What is wrong?

The website has 2 branches within it... English and Arabic
They still run off the same FTP though.

Not sure what happened

Never mind.

Got it working,

Thanks