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

Forums

/

create my xml playlist to work with flv player

163 replies [Last post]

Hello

I used the wizad ...Hello

I used the wizad to create the mediaplayer with a playlist of flv movies example which was an xml file for blip tv but i need to know how to get my own videos into a playlist that fits into the side menu.

My website is at
http://www.geocities.com/go_robertboyer/TriUnityDreamTeam/TriUnity-DreamTeam3.html

if I simply give you 2 movies I want to have placed in the side menu can you create a xml playlist http link so in the wizard i can just enter that and the embed code will then play my movies? Maybe i need to setup a blog like the one that they have at there playlist file at: http://mirror.video.blip.tv/hot-shows.xml

Robert

You should download the JW Media Player package from here:[url=http://www.jeroenwijering.com/upload/mediaplayer-3-14.zip]download the FLV Media Player here[/url] and place the mediaplayer.swf and swfobject.js files on your own server/host.

A playlist is just a text file (use Notepad or another text editor to edit it), in this format:

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
  <trackList>
    <track>
      <creator>Artist</creator>
      <title>Song 1</title>
      <location>http://my.domain.com/path-to-file/song1.mp3</location>
    </track>
    <track>
      <creator>Artist</creator>
      <title>Video 1</title>
      <location>http://my.domain.com/path-to-file/video.flv</location>
      <image>http://my.domain.com/path-to-file/preview.jpg</image>
      <info>http://my.domain.com/</info>
    </track>
  </trackList>
</playlist>

Replace the data within the tags with your own data, then upload it to your server/host.

For example, replace this:<creator>Artist</creator>with this:<creator>Robert</creator>to change the creator's name.

Then your player code would look somethng like this:

  <script type="text/javascript" src="http://www.geocities.com/go_robertboyer/TriUnityDreamTeam/swfobject.js"></script>

  <div id="player">This text will be replaced</div>

  <script type="text/javascript">
    var so = new SWFObject('http://www.geocities.com/go_robertboyer/TriUnityDreamTeam/mediaplayer.swf', 'mpl', '770', '380', '8');
        so.addParam('allowscriptaccess',     'always');
        so.addParam('allowfullscreen',       'true');
        so.addVariable('file',               'http://www.geocities.com/go_robertboyer/TriUnityDreamTeam/playlist.xml');
        so.addVariable('width',              '770');
        so.addVariable('height',             '380');
        so.addVariable('displaywidth',       '550');
        so.addVariable('backcolor',          '0xFFFFFF');
        so.addVariable('frontcolor',         '0x6666FF');
        so.addVariable('bufferlength',       '5');
        so.addVariable('overstretch',        'fit');
        so.addVariable('autoscroll',         'true');
        so.addVariable('thumbsinplaylist',   'true');
        so.addVariable('autostart',          'true');
        so.write('player');
  </script>

The thumbnail images come from the image element of the playlist:<image>http://my.domain.com/path-to-file/<strong>preview.jpg</strong></image>The player will resize them to fit the playlist (60x40).

Hello Ajax

Thank you for your help...that was very detailed and simple.

I think I have everything in place correctly but now there is just a blank where the player goes.

Maybe it is because my movies are not flv but swf?

Here is the playlist code I created....labeled it playlist.txt and uploaded it into the same file as my website page and all other files associated with the player.

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>DreamTeamFormula</creator>
<title>Single Line Downline Placement</title>

<location>http://geocities.com/go_robertboyer/TriUnityDreamTeam/SingleLineP

lacement.swf</location>
<image>http://www.geocities.com/go_robertboyer/Images/dreamteam.jpg</image>
<info>http://triunity-dreamteam.com</info>
</track>
<track>
<creator>Robert Boyer</creator>
<title>TriUnityWorld Highlights</title>

<location>http://geocities.com/go_robertboyer/TriUnityDreamTeam/TriUnityWor

ld.swf</location>

<image>http://www.geocities.com/go_robertboyer/Images/triunityworld5.jpg</i

mage>
<info>http://triunity-dreamteam.com</info>
</track>
</trackList>
</playlist>

Then I coipied and paste the embed code you created and come outr with a blank.

Robert

"Here is the playlist code I created....labeled it playlist.txt and uploaded it into the same file as my website page and all other files associated with the player."

Looks to me as if this code is looking for playlist.xml, NOT playlist.txt:so.addVariable('file',                'http://www.geocities.com/go_robertboyer/TriUnityDreamTeam/<strong>playlist.xml</strong>');

yes I saw that....but was not sure how to create an xml file....you mentioned to create text file....and when creating that there is no save as xml.....how do you create an xml file?

Also if I want to add some videos from a playlist at blip tv i could not see how to do that either as the codes they have under share at blip tv did not work....they only seem to work in the xml file that comes as a sample in the flv player wizard.

got it to work sort of....changed to xml by choosing the code-8 option when saving the playlist.xml.....then noticed there was a space where it should not be and that got things working....but my first movie did not load automatically....you had to click the 2nd movie and then click back to the first movie to actually view it.....the first movie did start automatically as you could see the bottom buffer bar moving along....but it was dark...no picture until you clicked each movie back and forth......the 2nd movie came out ok except buffering time when i created it may need to be reset.....as it always stalls.....it did not stall in the camtasia thetater but cannot get an embed code for camtasisa theater and like flv media player better.....so you could view my movies and see if you know why it is not working good....also after viewing each movie once or twice....it gores into a mode where only the image shows and the movies dont pklay....then after awhile they play again....would like them to play whenever clkicked and the first movie to be shown when vistors arrive at my site...

http://www.geocities.com/go_robertboyer/TriUnityDreamTeam/TriUnity-DreamTeam3.html

the first movie to show should be the tiop one in the playlist menu.....but it seems to show the movie that was shown last whenever you revisit the site unless you delete cache history and temp files...

An xml file is just a plain text file with everything enclosed within tags. It can be UTF8, but doesn't have to be.

To get the first movie to always show first, add shuffle false to your flashvars.

The mode where the movies do not play the second time until after a delay is a weird caching behavior of Internet Explorer. Apparently, it is looking in it's cache to see if it shuld play the movie from the cache or request it from the server. It can cause delays of 2-3 minutes. I think the way around that behavior is to add some random garbage after the file, but I haven't done it, so I can't tell you exactly what to do. Try searching the forums for "cache random" and you will find some proposed solutions.

added the shuffle...it seems to remain consistent in bringing up the 1st movie.....the movies are not playing at the moment and if I click on the html file location for each movie sometimes it gives a message that says Sorry, Unable to process request at this time -- error 999.
Unfortunately, we are unable to process your request at this time. We apologize for the inconvenience. Please try again later.

this is hosted with geocities....not sure but looks like the webhost could be a problem....here is my movie location

http://us.share.geocities.com/go_robertboyer/TriUnityDreamTeam/SingleLinePlacement.swf

maybe some of my problem is with the camtasia settings when i produced each movie and because of the webhost. hope the new webhost on the run system that flv media player owners are creating will make this a simple process.....even at camtasia it is difficult as i have been trying to get this to work for several weeks.....and there theater worked well in the original html file on my computer but could not get an imbed code and insert it to my website and they said they could not create an embed code for their theater so hopefully can get the flv media player to work. It seems to work fairly good with the blip tv xml playlist.

can you explain step by step how to create an xml playlist like the blip tv one.....I think that is a blog that is subscribed to the rss feed of the hot tv shows......if I create a video blog will that work the same way......how would i do it exactly like the sample in the flv media player wizaed under media player and list of flvs?

still stuck.....maybe I will just try to upload my movies to blip tv......just dont want to share them with everyone only those who visit my site.

Hi all,

I've been reading these forums for the past week trying to find the easiest way to have my videos play with a playlist on my site and keep running into a wall. I'm using the Red 5 server and only playing "FLV" files using the JW FLV player. All videos are uploaded to "usr/lib/red5/webapps/oflaDemo/streams". Now I can play the files just fine normally, but in trying to get a playlist to show on the right side, with out thumbnail images or autoscroll....this is my playlist code so far;

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<title>Video</title>
<creator>Myself</creator>
<location>rtmp://69.***.***.***/oflaDemo</location> <strong>(the asterisk's are replaced with numbers) </strong>
<identifier>agent_outro.flv</identifier>  <strong>(I read with the Red5 server, you need to add ".flv")</strong>
<meta rel="type">rtmp</meta>
</track>
</trackList>
</playlist>

Here is the PHP code so far;

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title><?= ucwords(str_replace("_", " ", $_REQUEST['vid_name'])); ?></title>
</head>

<body bgcolor="#ffffff" style="margin: 0;">
<center>
<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<script type="text/javascript" src="/shared/flash_video/swfobject.js"></script>
<script type="text/javascript">
        var s1 = new SWFObject("shared/flash_video/mediaplayer.swf","mediaplayer","640","500","8");
        s1.addParam("allowfullscreen","true");
        s1.addVariable("width","640");
        s1.addVariable("height","500");
        s1.addVariable("file","/shared/flash_video/playlist.xml");
        s1.addVariable("bufferlength","1");
        s1.addVariable("autostart","true");
        s1.write("container");
</script>
</center>
</body>

</html>

it doesn't work and I really need some help. Thanks in advance!

Please see the tutorial here: [url=http://www.jeroenwijering.com/?item=Embedding_Flash]EMBEDDING FLASH[/url] specifically the section titled Flashvars problems

Three problems related to flashvars often cause them not to load. The first relates to relative linking of files. When linking to MP3, image and XML files, you should always start from the location of the HTML in which the SWF is embedded. So, in the previous example, if the SWF was to be put in a subdirectory, the flashvar pointing to the playlist would remain to be file=playlist.xml and not file=../playlist.xml! There's an exception: the path of FLV files should be given relatively from the SWF file. In order to prevent confusion, you can always point to files using an absolute URL (including the http://www part).

Your first line of JS code is missing the root symbol "/" before shared/flash_video/mediaplayer.swf

Then your playlist.xml should be referenced from wherever your HTML page is located.

It's best to use full URIs until you get things working, then you can experiment with relative/absolute URIs, which are tricky because of the way the Flash player references different types of files.

@streamBabie

Thanks for the info. I added the root symbol "/" and I realized that I didn't have "playlist.xml" in the same folder as the mediaplayer, so I uploaded it there and the video now plays, only whatever is in the first playlist track. I added more tracks referencing to different files, but it still only plays the first one in the list. Also, the playlist doesn't show up anywhere. Do I need to make the window bigger? I can't point to the original "HTML" page, because that page is a PHP document called "control.php". The only HTML page is once the video is clicked on the web page, it opens a new window, which is the code in my last post above. Any ideas?

mine almost works with the above instructions Ajax gave me. Check my website to see the playlist in the right.....i have 2 problems #1. both movies sometimes only play once #2 the starting movie which is set for autostart does start but there is no picture of the mvie unless you click the other movie and then click back.

@Pete,

To make the playlist show, you need to add height.

Your video is probably 640x480 so add 20px for the control bar plus 23px for each track or 41px if you want thumbnails in the playlist. Then set displayheight to 480 to fix the display area.

So 3 tracks would be 480 + 20 + (23 * 3) = 569=height (in two places)

@streamBabie

Thanks, the playlist now works!

The next thing that my company wants, is to give the viewer the ability to watch a whole training video all he way through or let them pick which segment that want to watch. I already have the videos broke down into segments, but how do I make the player open on...lets say the 5th video out of 10...and then play through the end with the playlist on the side. For the full video I'll just have it point to the first video in the the XML file and play through the list in order, but my question is; How can I have my "Playlist.xml" point to a specific file when clicked on?

If your going to send me to this page:

http://therealandonlyghostdot.googlepages.com/home

I can't seem to get it to work right. does anyone have any example's? Where do I find the "AbstractController.as" file to modify it's code?

Thanks in advance!

I´m not sure, if I´m at the right place with my question, but I got a problem with the playlist (for the mp3-player) too.
I want to use the mp3 player in a popup, so that the music doesn´t change if someone uses a link, but when I fill in an URL between the "<info>-Tags" the new site opens in the popup too.
So I´m searching a solution where or how I could fill in "_blank" to open all this info-sites in an new site. This would be very important, because I want to show some songs of not so well known bands, and they could need it as promotion.

I don´t know much about coding, so I hope, someone can help me.
Thanks a lot.

Hi there! I have nearly the same problem as Pete. But I can't find the mistake in my codes.
I just saved the documents on the Local Disk of the computer in a folder, because it is just a test to see how to make a flash player this a playlist work.
Here are the codes I have so far:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Unbenanntes Dokument</title>

<style type="text/css">
<!--
.Stil1 {color: #D4D0C8}
-->
</style>
</head>

<body>
<script type="text/javascript" src="/C:/Test%20Flash/Mediaplayer_test/swfobject.js"></script>

  <div id="player">This text will be replaced</div>

  <script type="text/javascript">
    var so = new SWFObject('/C:/Test%20Flash/Mediaplayer_test/mediaplayer.swf', 'mpl', '770', '380', '8');
        so.addParam('allowscriptaccess',     'always');
        so.addParam('allowfullscreen',       'true');
        so.addVariable('file',               'playlist.xml');
        so.addVariable('width',              '600');
        so.addVariable('height',             '220');
        so.addVariable('displaywidth',       '300');
        so.addVariable('backcolor',          '0xFFFFFF');
        so.addVariable('frontcolor',         '0x666666');
so.addVariable('screencolor',        '0xefefef');
so.addVariable('lightcolor',         '0x666666');
        so.addVariable('bufferlength',       '5');
        so.addVariable('overstretch',        'fit');
        so.addVariable('autoscroll',         'true');
        so.addVariable('thumbsinplaylist',   'true');
        so.addVariable('autostart',          'true');
        so.write('player');
  </script>
  <span class="Stil1"></span>  <span class="Stil1"></span>  <span class="Stil1"></span>
</body>
</html>

and the XML one:

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
  <trackList>
    <track>
      <creator>WALTER</creator>
      <title>Drilling</title>
      <location>'/C:/Test%20Flash/Mediaplayer_test/imagefilm_startseite.flv'</location>
      <image>'walter_b4035.flv'</image>
    </track>
    <track>
      <creator>TITEX</creator>
      <title>Drilling</title>
      <location>'walter_b4213.flv'</location>
      <image>''</image>
      <info></info>
    </track>
<track>
      <creator>WALTER</creator>
      <title>Turning</title>
      <location></location>
      <image>'WALTER.jpg'</image>
      <info></info>
    </track>
<track>
      <creator>PROTOTYP</creator>
      <title>Threading</title>
      <location>'walter_b4035.flv'</location>
      <image>''</image>
      <info></info>
    </track>
<track>
      <creator>PROTOTYP</creator>
      <title>Milling</title>
      <location>'walter_b4035.flv'</location>
      <image>''</image>
      <info></info>
    </track>
<track>
      <creator>WALTER</creator>
      <title>Milling</title>
      <location>'walter_b4035.flv'</location>
      <image>'WALTER.jpg'</image>
      <info></info>
    </track>

If I browse the html-file I can see the player and the list, but the movies aren't working at all. I'm searching since hours for a solution, but I can't find anyone with the same problem... ; )
It must be something really sipmle, I think.

your playlist is missing the two closing tags

<trackList>
</playlist>

Yes, thats right, but thats not the problem. they just get lost when I copied the code.

Okay, the movies are working now, but I can't see the little images in front of the titles. Do they have to have a special format to fit in there?

Try removing the single quotes in the image elements:<image>'WALTER.jpg'</image>

Ok, to solve my problem, I did away with opening a new window for the playlist and used the multiple playlist drop down function to solve my problem. Here is the code I used and just change the paths to your files and you should be sweet.

<head>

<script language="JavaScript" src="/shared/flash_video/motionpack.js"></script>
<style type="text/css">

.title { font-family: century gothic, arial, sans serif; color:#000000; font-size:14px; font-weight:bold;}
</style>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title><?= ucwords(str_replace("_", " ", $_REQUEST['vid_name'])); ?></title>
</head>       
<center>
<body onLoad="createPlayer(document.theForm.sel1.value)">
<div class="title">
Please choose a video from the drop down menu below and use the Playlist to the right of the player to navigate to which video you would like to see. Once the playlist loads, simply click on the first item in the playlist and enjoy!
</div>

<form id="theForm" name="theForm">
  <select name="sel1" onChange="javascript:createPlayer(document.theForm.sel1.value)" style="width:300px">
    <option value="/shared/flash_video/agent.xml">Agent Login and Navigation</option>
    <option value="/shared/flash_video/seller.xml">Seller Experience</option>
    <option value="/shared/flash_video/buyer.xml">Buyer Experience</option>
    <option value="/shared/flash_video/promoting.xml">Promoting Your Website</option>
  </select>

</form>

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

<script type="text/javascript" src="/shared/flash_video/swfobject.js"></script>
<script type="text/javascript">
var theItem;
var selFile;

function loadPlay(file,idx) {
theItem=idx;
selFile=file;
createPlayer(selFile);
setTimeout("play()",1100);
};

function play() {
sendEvent('playitem',theItem);
};

function sendEvent(typ,prm) {
thisMovie("thePlayerId").sendEvent(typ,prm);
};

function thisMovie(movieName) {
    if(navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
} else {
return document[movieName];
}
};
function createPlayer(theFile) {
var s = new SWFObject("/shared/flash_video/mediaplayer.swf","thePlayerId","900","500","8");
s.addParam("allowfullscreen","true");
s.addParam("allowscriptaccess","always");
s.addVariable("file",theFile);
s.addVariable("width","900");
s.addVariable("height","500");
    s.addVariable('displaywidth','640');
s.addVariable('shuffle','false');
    s.addVariable("bufferlength","1");
s.addVariable("autoscroll","false");
s.addVariable("autostart","false");
s.addVariable("thumbsinplaylist","false");
s.addVariable("enablejs","true");
s.addVariable("javascriptid","thePlayerId");
s.write("placeholder");
}
</script>

Oh yeah, in the Flashvars where it says;

s.addVariable("file",theFile);

Don't change this line. It is supposed to be like this!!

Hope this helped someone!

got my problem fixed and it is working well. It was just my webhost had a limit on the size of each video and they fixed that.....then i had some files which were .swf and when I changed them to .flv they all worked consistently after the webhost fixed their problem.

http://www.geocities.com/go_robertboyer/TriUnityDreamTeam/TriUnity-DreamTeam3.html

well spoke too soon. I changed webhosts and now the movies do not work at both webhosts at approximately the same time. So that seems like it is not a limit on the size of the movies when the movies work sometimes and sometimes they dont and it happens at both webhosts on different websites at approximately the same time. Maybe as Ajax mentioned above it is because of the cache but when researching this on the net i could not figure out what the solution was....

ajax mentioned...

The mode where the movies do not play the second time until after a delay is a weird caching behavior of Internet Explorer. Apparently, it is looking in it's cache to see if it shuld play the movie from the cache or request it from the server. It can cause delays of 2-3 minutes. I think the way around that behavior is to add some random garbage after the file, but I haven't done it, so I can't tell you exactly what to do. Try searching the forums for "cache random" and you will find some proposed solutions

but now that i read this....it happens on both firefox and internet explorer......and it lasts for up to 2 hours sometimes.....today started greate....even thought they fixed it.....as it worked over and over for along time.....then nothing.....still confused and need to find the solution.

Hi, my XML playlist for our YouTube videos won't work. I've tried different formats from the forums, everything. Here's the link to the playlist: http://www.bwcfilms.co.nr/allvideos.xml

Here's the code:

<playlist version="1">
<title>All BWC Films Videos</title>

<info>

http://www.jeroenwijering.com/?item=Flash_Media_Player
</info>
<annotation>
Every video released by BWC Films.
</annotation>

<trackList>

<track>
<title>Chariots on Fire</title>
<creator/>

<location>

http://ash-v390.ash.youtube.com/get_video?video_id=GU_yiz-vDZU.flv

</location>
</track>

<track>
<title>Romulus VS Remus: An Underdog Story</title>
<creator/>

<location>

http://lax-v308.lax.youtube.com/get_video?video_id=slv3fzU7AFE.flv

</location>
</track>

<track>
<title>The Adventures of Thomas - Episode Three</title>
<creator/>

<location>

http://dal-v75.dal.youtube.com/get_video%3Fvideo_id%3DxGCIoI_OVEU.flv

</location>
</track>

<track>
<title>The Adventures of Thomas - Episode Two</title>
<creator/>

<location>

http://sjc-v64.sjc.youtube.com/get_video%3Fvideo_id%3DyEmnH53T7Z0.flv

</location>
</track>

<track>
<title>The Adventures of Thomas - Episode One</title>
<creator/>

<location>

http://chi-v109.chi.youtube.com/get_video%3Fvideo_id%3Dd2HqkRS4A2Q.flv

</location>
</track>

<track>
<title>Clubhouse of Terror</title>
<creator/>

<location>

http://lax-v177.lax.youtube.com/get_video?video_id=oNJwOEOUf0I.flv

</location>
</track>

<track>
<title>Benny Hill Spoof</title>
<creator/>

<location>

http://sjc-v137.sjc.youtube.com/get_video%3Fvideo_id%3Dg-r39oyvlIc.flv

</location>
</track>
</trackList>
</playlist>

Sorry about all of the spaces. I used it to differentiate between the different places to put video files. Anything that I'm doing wrong? When I put it into the JW Setup Wizard it doesn't load. Send me a reply at

rocky_x94@hotmail.com

It will be easier than checking back here.

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
  <title>All BWC Films Videos</title>
  <info>http://www.jeroenwijering.com/?item=Flash_Media_Player</info>
  <annotation>Every video released by BWC Films.</annotation>
  <trackList>
    <track>
      <title>Chariots on Fire</title>
      <creator/>
      <location>http://ash-v390.ash.youtube.com/get_video?video_id=GU_yiz-vDZU.flv</location>
    </track>
    <track>
      <title>Romulus VS Remus: An Underdog Story</title>
      <creator/>
      <location>http://lax-v308.lax.youtube.com/get_video?video_id=slv3fzU7AFE.flv</location>
    </track>
    <track>
      <title>The Adventures of Thomas - Episode Three</title>
      <creator/>
      <location>http://dal-v75.dal.youtube.com/get_video?video_id=xGCIoI_OVEU.flv</location>
    </track>
    <track>
      <title>The Adventures of Thomas - Episode Two</title>
      <creator/>
      <location>http://sjc-v64.sjc.youtube.com/get_video?video_id=yEmnH53T7Z0.flv</location>
    </track>
    <track>
      <title>The Adventures of Thomas - Episode One</title>
      <creator/>
      <location>http://chi-v109.chi.youtube.com/get_video?video_id=d2HqkRS4A2Q.flv</location>
    </track>
    <track>
      <title>Clubhouse of Terror</title>
      <creator/>
      <location>http://lax-v177.lax.youtube.com/get_video?video_id=oNJwOEOUf0I.flv</location>
    </track>
    <track>
      <title>Benny Hill Spoof</title>
      <creator/>
      <location>http://sjc-v137.sjc.youtube.com/get_video?video_id=g-r39oyvlIc.flv</location>
    </track>
  </trackList>
</playlist>

Your last URI is no good, the rest work OK.

Hi!

I would have 2 questions too. I would like to stream wmv files the jw player does it work with wmv or only with flv files? The nother question is that how can set the location of a file that I want to play? I mean I can I do it so:

./dirname/dirname/file.flv or I have to type in a web acces for it.

Thx.

See the new JW WMV Player here: [url=http://www.jeroenwijering.com/?item=JW_WMV_Player]JW WMV Player[/url]

Files have to be Web accessible: http:/domain/path/file.flv

I see. Thanks.

Is my plist file in this way correct or it has any mistakes?

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>Andragogia</creator>
<title>Bakos Norbert</title>
<location>'http://www.andragogia.atw.hu/videok/bakosnorbert.flv'</location>
<image>'http://www.andragogia.atw.hu/videok/bakos.jpg'</image>
</track>
<track>
<creator>Andragogia</creator>
<title>Deme Tamas</title>
<location>'http://www.andragogia.atw.hu/videok/demetamas.flv'</location>
<image>'http://www.andragogia.atw.hu/videok/deme.jpg'</image>
<info></info>
</track>
<track>
<creator>Andragogia</creator>
<title>Keri Terez</title>
<location>'http://www.andragogia.atw.hu/videok/keriterez.flv'</location>
<image>'http://www.andragogia.atw.hu/videok/keriteri.jpg'</image>
<info></info>
</track>
<track>
<creator>Andragogia</creator>
<title>Szalai Andrea</title>
<location>'http://www.andragogia.atw.hu/videok/szalaiandrea.flv'</location>
<image>'http://andragogia.atw.hu/videok/szalai.jpg'</image>
<info></info>
</track>
<track>
<creator>Andragogia</creator>
<title>Utca embere</title>
<location>'http://www.andragogia.atw.hu/videok/utcaembere.flv'</location>
<image>'http://www.andragogia.atw.hu/videok/utca.jpg'</image>
<info></info>
</track>
<trackList>
</playlist>

please help me someone...

no ' ' around the urls! - missing / in </trackList>

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>Andragogia</creator>
<title>Bakos Norbert</title>
<location>http://www.andragogia.atw.hu/videok/bakosnorbert.flv</location>
<image>http://www.andragogia.atw.hu/videok/bakos.jpg</image>
</track>
<track>
<creator>Andragogia</creator>
<title>Deme Tamas</title>
<location>http://www.andragogia.atw.hu/videok/demetamas.flv</location>
<image>http://www.andragogia.atw.hu/videok/deme.jpg</image>
<info></info>
</track>
<track>
<creator>Andragogia</creator>
<title>Keri Terez</title>
<location>http://www.andragogia.atw.hu/videok/keriterez.flv</location>
<image>http://www.andragogia.atw.hu/videok/keriteri.jpg</image>
<info></info>
</track>
<track>
<creator>Andragogia</creator>
<title>Szalai Andrea</title>
<location>http://www.andragogia.atw.hu/videok/szalaiandrea.flv</location>
<image>http://andragogia.atw.hu/videok/szalai.jpg</image>
<info></info>
</track>
<track>
<creator>Andragogia</creator>
<title>Utca embere</title>
<location>http://www.andragogia.atw.hu/videok/utcaembere.flv</location>
<image>http://www.andragogia.atw.hu/videok/utca.jpg</image>
<info></info>
</track>
</trackList>
</playlist>

I tested my player code with the playlist at http://www.jeroenwijering.com/upload/statistics.xml and the player appeared and worked fine, but it doesn't even appear with my playlist (http://brentsplace.info/playlist.xml). I just get the white background and the round timer.

Do you have to create an XML playlist with a generator? Or can you just paste the code suggested in this thread into Notepad, or in my case, EditPad Lite, and save the file with an .xml extension? If the former, Charlie Craig's generator says "You must specify a directory to scan." when I drop an flv-containing folder on it that's in the same directory as the vbs and swf files. If the latter, what's wrong with the code in my playlist'?

<script type="text/javascript" src="http://www.jeroenwijering.com/embed/swfobject.js"></script>
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('http://www.jeroenwijering.com/embed/mediaplayer.swf','mpl','470','575','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','575');
so.addVariable('width','470');
so.addVariable('file','http://brentsplace.info/playlist.xml');
so.addVariable('displayheight','350');
so.write('player');
</script>
<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
  <title>The Seventh Day</title>
  <info>http://www.jeroenwijering.com/embed/mediaplayer.swf</info>
  <annotation>Previews of The Seventh Day</annotation>
  <trackList>
    <track>
      <title>Introduction 7:16</title>
      <location>http://chi-v168.chi.youtube.com/get_video?video_id=mqXdzBoTwCM.flv</location>
    </track>
    <track>
      <title>Healing 2:07</title>
      <location>http://ash-v95.ash.youtube.com/get_video?video_id=qyXkxdG0gCo.flv</location>
    </track>
    <track>
      <title>Authority 2:40</title>
      <location>http://chi-v12.chi.youtube.com/get_video?video_id=N7caITfMi2s.flv</location>
    </track>
    <track>
      <title>Jones 2:43</title>
      <location>http://sjl-v107.sjl.youtube.com/get_video?video_id=WxlvnDP89go.flv</location>
    </track>
  </trackList>
</playlist>

the playlist is ok -
but you must upload swfobject.js and mediaplayer.swf to your site along with playlist.xml (both in the [url=http://www.jeroenwijering.com/?item=JW_FLV_Media_Player]downloaded[/url] .zip file)
from the [url=http://www.jeroenwijering.com/?item=Supported_Playlists]Supported Playlists[/url] page:

a playlist should always reside on the same server as the SWF file, due to security restrictions of the Flash Player

no need to generate playlists, saving with plain text editor should be fine...

Oh that's right. I saw that earlier but forgot when testing it. Unlike my frustrating experience with Flow Player, FLV Media Player's finally working now. Thanks!

Hello Everyone,

I've been following everyone's lead on this forum trying to figure out why my video comes up for only a second then turns white.

Here's my code:

<script src="http://www.thehall.tv/_library/media/swfobject.js" type="text/javascript">
//<![CDATA[

//]]>
</script>
<div id="player">This text will be replaced</div>
<script type="text/javascript">
//<![CDATA[
var so = new SWFObject('http://www.thehall.tv/_library/media/mediaplayer.swf', 'mpl', '770', '380', '8');
so.addParam('allowscriptaccess', 'always');
so.addParam('allowfullscreen', 'true');
so.addVariable('file', 'http://www.thehall.tv/_library/media/playlist.xml');
so.addVariable('width', '770');
so.addVariable('height', '380');
so.addVariable('displaywidth', '550');
so.addVariable('backcolor', '0xFFFFFF');
so.addVariable('frontcolor', '0x6666FF');
so.addVariable('bufferlength', '5');
so.addVariable('overstrech', 'fit');
so.addVariable('autoscroll', 'true');
so.addVariable('thumbsinplaylist', 'false');
so.addVariable('autostart', 'true');
so.write('player');
//]]>
</script>

The hosting company is using Zepp OS Control panel which keeps putting CDATA into my code.

Here's my test playlist.xml:

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>Artist</creator>
<title>Song 1</title>
<location>http://www.thehall.tv/_library/media/Rankin.flv</location>
</track>
<track>
<creator>Rakin</creator>
<title>Rankin Projector video</title>
<location>http://www.thehall.tv/_library/media/Rankin.flv</location>
<image></image>
<info>http://www.thehall.tv/</info>
</track>
</trackList>
</playlist>

I have mediaplayer.swf, playlist.xml, swfobject.js and a test flv file all in the same folder.

Any help would be greatly appreciated. We lost our Webmaster just recently and since I'm the IT Manager, the GM through this task at me. I'm quite a bit rusty with my coding.

Thank you!

@Tom - your code, playlist and videos works fine when i test, but your player is somewhat old, you might want to [url=http://www.jeroenwijering.com/?item=JW_FLV_Media_Player]update[/url]
also make sure your flash browser plugin is up to date (feb. 08 - v.9.0.115)
adobe version test: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507

Thank you for your assistance. Well everything works great in FireFox but only works for a second in IE. Any suggestions?

@Tom
as your code etc. works fine when i test (ie7 - flash9.0.115) the problem must be local or interference with the rest of the page

Hi,
Maybe somebody can help? I am also trying to get my xml playlist to work with my flv player. But I keep getting a white box where the player is. I know it's there because I can see it when I right click on it.
These are the codes:

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

<div id="player">mediaplayer</div>
<script type="text/javascript">var so = new SWFObject('http://www.cruzsongs.com/mediaplayer.swf','mpl','340','255','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','255');
so.addVariable('width','340');
so.addVariable('file','http://cruzsongs.com/playlist.xml');
so.addVariable('frontcolor','0x000000');
so.addVariable('screencolor','0x0000FF');
so.addVariable('showstop','true');
so.write('player');</script>

This is the playlist.xml code:

<?xml version="1.0" encoding="UTF-8" ?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<creator>Joe</creator>
<title>Holy After You</title>
<location>http://cruzsongs.com/holyafteryouwithmonotrk2_001.flv</location>
</track>
<track>
<creator>Joe</creator>
<title>Love For Today</title>
<location>http://cruzsongs.com/lovefortoday.flv</location>
<image>http://cruzsongs.com/joepicforcdsmall2.jpg</image>
<info>http://cruzsongs.com/</info>
</track>
</trackList>
</playlist>

I would like to have one player and as many .flv files in the playlist I can use.

This is new to me so I'm fishing around. If anyone can walk me thru this, that would be very helpful.
Thanks.

Plays fine for me, some dude with a mandolin.

Most likely your Adobe Flash Player is messed up.

Uninstall the Adobe Flash Player with Adobe';s uninstaller, reboot, install the latest Flash Player from Adobe.

nothing is happening, it looks like the player is still white and the wheel in the middle is spinning?

still nothing is happening. I uploaded the same info onto another html page and I get the same results. Just a empty box with the spinning wheel.

I already uninstalled and reinstalled adobe's lastest player. What could I be missing?

This is my link. Can you please check it out?

http://cruzsongs.com/testplayer.html

Due to Adobe Flash Player security restrictions, the mediaplayer.swf file and all XML files must come from the EXACT same domain.

This:http://www.cruzsongs.com/mediaplayer.swfis NOT the exact same domain as this:http://cruzsongs.com/playlist.xmlSo add the www to the playlist URI.

Thanks Ajax, that worked!

Can I ask you how can I get my "images" for my songs in my playlist to show up next to the player and not in the player?
And of course to click on the images to go to the video on the player.

Thanks.

Or instead of images "links" to the .flv files, how can I just make a text (titles of each song) link to trigger the videos in my playlist?

Is this possible?

See the various demos on andersen's [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/]Demo Page[/url]

Thanks, that's exactly what I'm looking for.

Before I start reading will i need to trash my xml playlist? Or should I keep it?
Will I need to replace my flv player or will I be just adding to it?

Thanks.

Keep your playlist; depending on what method of creating the links you choose, you may need it. Just add to the code that you already have. The mediaplayer.swf is the same for all applications. Do you have the latest version? Right-click on the player to see if it's v3.15.

yes I do have v3.15.

Thanks.

Once you have coded one of the demos, post back here if you need further help and we'll help you get it running.

I'm sorry I didn't post yet, last night got to late and today is going very quickly. : (

I did get to look at the demo page and was wondering how do I get the code for what I need? Do I right click and copy and paste the sample HTML then play with it? Or is there another way to get the code that I need?

Thanks.

I know this is wrong, but I really don't know what I'm doing. : (

This is the HTML on my page:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<title>new video with links test</title>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">

function createplayer(theFile, go) {
var s = new SWFObject("mediaplayer.swf","playerID","400","245","7");
s.addParam("allowfullscreen","true");
s.addVariable("file",theFile);
s.addVariable("width","400");
s.addVariable("height","245");
s.addVariable("displayheight","225");
s.addVariable("overstretch","fit");
if (go) { s.addVariable("autostart","true"); }
s.write("placeholder");
}
</script>
</head>
<body onload="createplayer('video.flv', false)">
<br>
<br>
<a
href="javascript:createplayer('holyafteryouwithmonotrk2_001flv', true)">Holy
After You</a><br>
<a href="javascript:createplayer('lovefortoday.flv', true)">Love For
Today</a><br>
<br>
<br>
<div id="player">mediaplayer</div>
<script type="text/javascript">var so = new SWFObject('http://www.cruzsongs.com/mediaplayer.swf','mpl','340','255','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','255');
so.addVariable('width','340');
so.addVariable('file','http://www.cruzsongs.com/playlist.xml');
so.addVariable('frontcolor','0x000000');
so.addVariable('screencolor','0x0000FF');
so.addVariable('showstop','true');
so.write('player');</script><br>
</body>
</html>

This is the test page http://www.cruzsongs.com/linkvideotest.html

I am trying to have one player and multiple video text links. Right now there should be 2 videos.
Is one of my problems the xml playlist I've used for a different function, and it maybe shouldn't be uploaded?
There is also a picture in the player which I don't want and again it's from the old xml playlist.

If someone could help me with this, that would be very helpful.
Thanks.

@Joe

I'm not sure if this will work, but give it a try and let me know:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<center>
<head>
<title>new video with links test</title>

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

var theItem;
var selFile;

function loadPlay(file,idx) {
theItem=idx;
selFile=file;
createPlayer(selFile);
setTimeout("play()",1100);
};

function play() {
sendEvent('playitem',theItem);
};

function sendEvent(typ,prm) {
thisMovie("thePlayerId").sendEvent(typ,prm);
};

function thisMovie(movieName) {
    if(navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
} else {
return document[movieName];
}
};

function createplayer(theFile) {
var s = new SWFObject("mediaplayer.swf","thePlayerId","500","260","8");

s.addParam("allowfullscreen","true");
s.addParam("allowscriptaccess","always");
s.addVariable("file",theFile);
s.addVariable("width","500");
s.addVariable("height","260");
    s.addVariable('displayheight','320');
s.addVariable('shuffle','false');
s.addVariable('repeat','list');
    s.addVariable("bufferlength","1");
s.addVariable("autoscroll","false");
s.addVariable("autostart","true");
s.addVariable("thumbsinplaylist","false");
s.addVariable("enablejs","true");
s.addVariable("javascriptid","thePlayerId");
s.write("placeholder");
};
</script>

</head>
<body onload="createPlayer(theFile);">

  <div id="player">
    <a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Plugin</a>
    to see this video.
  </div>
<br>
<br>
<a href="javascript:createplayer('holyafteryouwithmonotrk2_001.flv', true)">Holy After You</a><br>
<a href="javascript:createplayer('lovefortoday.flv', true)">Love For Today</a><br>
<br>
<br>
</body>
</center>
</html>

I just noticed that in your HTML you provided you left out the (period) in between the video name and FLV here:
<a href="javascript:createplayer('<strong>holyafteryouwithmonotrk2_001flv</strong>', true)">Holy After You</a><br>

Look at the demo page and view page source to see how they made links here

"http://home5.inet.tele.dk/nyboe/flash/mediaplayer/"

This is the example I assume you are following:

<html>
<!-- saved from url=(0014)about:internet -->
<!-- page by andersen -->
<head>
<title>Simple list example</title>

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

function createplayer(theFile, go) {
var s = new SWFObject("mediaplayer.swf","playerID","400","245","7");
s.addParam("allowfullscreen","true");
s.addVariable("file",theFile);
s.addVariable("width","400");
s.addVariable("height","245");
s.addVariable("displayheight","225");
s.addVariable("overstretch","fit");
if (go) { s.addVariable("autostart","true"); }
s.write("placeholder");
}
</script>

</head>
<body onLoad="createplayer('video.flv', false)">

Minimal but safe example of Jeroen Wijerings <a href="http://www.jeroenwijering.com/?item=JW_FLV_Media_Player">FLV Mediaplayer</a><br>

with a plain link playlist...<br>
<br>
<a href="javascript:createplayer('video.flv', true)">video</a><br>
<a href="javascript:createplayer('video_remember_this_1.flv', true)">video2</a><br>
<a href="javascript:createplayer('video_remember_this_2.flv', true)">video3</a><br>
<br>
<div id="placeholder"><a href='http://www.macromedia.com/go/getflashplayer'>get the flash player</a> to see this player.</div>

</body>
</html>

the html code you gave me doesn't have a flv player?

Do I need to create another one?

I was looking at that example from the demo page. I just don't understand it, YET.

The code you sent back to me didn't have a player in it. It had a link to get a flash player from macromedia, which I already have in my computer. But nothing happened. I uploaded it to http://www.cruzsongs.com/linkvideotest3.html.

?????

I need some help on this. I originally have a xml playlist for this page. But it's not what I was looking for. So now I am trying to set up the "linkplaylist" from the Demo Page but it is not working. Should I trash the xml playlist that I upload to my ftp and change the code for my player? Or should I create a new player and go from there?

I really don't know what to do next. If anyone could help me and talk me thru this, that would be great.

This is what I have.

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

function createplayer(theFile, go) {
var s = new SWFObject("mediaplayer.swf","playerID","400","245","7");
s.addParam("allowfullscreen","true");
s.addVariable("file",theFile);
s.addVariable("width","400");
s.addVariable("height","245");
s.addVariable("displayheight","225");
s.addVariable("overstretch","fit");
if (go) { s.addVariable("autostart","true"); }
s.write("placeholder");
}
</script>
</head>
<body onload="createplayer('video.flv', false)">
<br>
<br>
<a
href="javascript:createplayer('holyafteryouwithmonotrk2_001flv', true)">Holy
After You</a><br>
<a href="javascript:createplayer('lovefortoday.flv', true)">Love For
Today</a><br>
<br>
<br>
<div id="player">mediaplayer</div>
<script type="text/javascript">var so = new SWFObject('http://www.cruzsongs.com/mediaplayer.swf','mpl','340','255','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','255');
so.addVariable('width','340');
so.addVariable('file','http://www.cruzsongs.com/playlist.xml');
so.addVariable('frontcolor','0x000000');
so.addVariable('screencolor','0x0000FF');
so.addVariable('showstop','true');
so.write('player');</script><br>

Again I have 2 flv files and one player and I would like to set up the links like on the demo page, as I said earlier.

Can someone help me out?
Thanks.

You can see the page at http://www.cruzsongs.com/linkvideotest.html

Well well well..... I think I got it!!!!!!! Halelujah!!!!!!!!

I guess playing around with it and studying these codes for about 3 days, after a while it starts making sense.

Thanks guys for your help and thanks for a great tool.

I'll be back.

@Joe

Glad you got it to work, but I still noticed that on this line
<a href="javascript:createplayer('holyafteryouwithmonotrk2_001flv', true)">Holy After You</a><br>
You need to change it to :
<a href="javascript:createplayer('holyafteryouwithmonotrk2_001.flv', true)">Holy After You</a><br>
The period NEEDS to be between the file name holyafteryouwithmonotrk2_001 and the extension flv

Also...the player IS being created when it says:
function createplayer(theFile)
"theFile" is referenced in a function to be what is in your playlist.
In the body of the document, it is created with this line:
<body onload="createPlayer(theFile);">
I suggest using an XML playlist and make it look much neater then using HTML and having a boatload of links all over your page.

Hey Pete,

Thanks for the info. You might still be looking at one of my test pages, with these errors. The missing period is fixed, thanks. I agree with you and I did end up with a XML playlist after all. And it looks great. Like I said in my last posting, that after a while the codes started making sense. You can check out the page I'm building at www.cruzsongs.com.

I do have a question for you or anyone else that might be able to answer. How come the flash player (FLV player) doesn't show up on Netscape? Or does it and I'm just not getting it?

Thanks.

Hi guys,

Is there any way of adding "Album" credits to the XML playlist?

Thanks.

Is there any way of adding "Album" credits to the XML playlist?

I would say try adding it using your video editor program with a title screen. Depending on how many credits you have, you could make a short FLV with them (say 10 seconds) and add it to your playlist at the end. Using the flashvar (s1.addVariable('repeat', 'list');) it will automatically play after your last song. Just some suggestions ;)

How come the flash player (FLV player) doesn't show up on Netscape?

Now that could be a problem with not using a correct tag, such as embed. I work on a Mac and only use Firefox, but I know my clients use IE, so I usually test for both of those. I just downloaded Netscape v.9 for the Mac and it played fine. Both Firefox and Netscape were developed very similar.

Thanks for your suggestions on using titles, but is there another way of just editing the XML playlist to add "<Albums>"?

Do you think maybe I can just add it next to the <title> OR <creator>? Or maybe in place of "<Image>"?

Thanks.

flvplayer with .xml playlist... I've looked at this over and over again and I just can't work out what I'm doing wrong. Please can someone help me! I have the mediaplayer.swf and the swfobject.js in the same location etc... but I just get a black player with nothing on it. Here's the code:

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

<div id="player">This text will be replaced</div>

<script type="text/javascript">
var so = new SWFObject('http://www.jimmyyoungdesign.com/try/mediaplayer.swf','mpl','550','230','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','230');
so.addVariable('width','550');
so.addVariable('file','http://www.jimmyyoungdesign.com/try/playlist.xml');
so.addVariable('backcolor','0x000000');
so.addVariable('frontcolor','0xAAAAAA');
so.addVariable('lightcolor','0xFFFFFF');
so.addVariable('screencolor','0x000000');
so.addVariable('displaywidth','280');
so.addVariable('showstop','true');
so.addVariable('showdownload','true');
so.addVariable('autoscroll','true');
so.addVariable('enablejs','true');
so.write('player');
</script>

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<title>Are You The Universe?</title>
<creator>Mike Benn</creator>
<location>
http://www.jimmyyoungdesign.com/try/flv/mikeb_universe.flv
</location>
<info>http://www.peterjonesmusic.net/</info>
<image>
http://www.jimmyyoungdesign.com/try/flv/mikeb_universe.jpg
</image>
<annotation>From Kill Kill Faster Faster (Aria Films) 2008</annotation>
<meta rel="duration">00:02:18</meta>
</track>
<track>
<title>Leaving Home</title>
<creator>Mike Benn</creator>
<location>
http://www.jimmyyoungdesign.com/try/flv/mikeb_home.flv
</location>
<info>http://www.peterjonesmusic.net/</info>
<image>
http://www.jimmyyoungdesign.com/try/flv/mikeb_universe.jpg
</image>
<annotation>From Truck of Dreams (Sahara One)</annotation>
<meta rel="duration">00:01:21</meta>
</track>
</trackList>
</playlist>

sorry if this is annoying and going over the same problem as loads of other people, but my head will explode soon if I don't sort this out! Thanks very much in advance...

@Jimmy
something goes terribly wrong with your playlist!
this is how the first few lines looks when i open it from here 'http://www.jimmyyoungdesign.com/try/playlist.xml' :

œ < ? x m l   v e r s i o n = ' 1 . 0 '   e n c o d i n g = ' U T F - 8 ' ? >
< p l a y l i s t   v e r s i o n = ' 1 '   x m l n s = ' h t t p : / / x s p f . o r g / n s / 0 / ' >
< t r a c k L i s t >
< t r a c k >
< t i t l e > A r e   Y o u   T h e   U n i v e r s e ? < / t i t l e >
< c r e a t o r > M i k e   B e n n < / c r e a t o r >
< l o c a t i o n >
h t t p : / / w w w . j i m m y y o u n g d e s i g n . c o m / t r y / f l v / m i k e b _ u n i v e r s e . f l v
< / l o c a t i o n >

Oh dear. I've resaved the xml in text wrangler and now I'm getting this

http://www.jimmyyoungdesign.com/try/video.html

with no thumbnails and the flv not working... any ideas?
Thanks!

to show the thumbnails in the playlist - set thumbsinplaylist to true - from the [url=http://www.jeroenwijering.com/?item=Supported_Flashvars]Supported Flashvars[/url]:

thumbsinplaylist (true): Set this to false to hide preview images in the display (and restrict the buttons to a single line).

the problem now with the playlist seem to be the linebreaks in the urls - this list works for me:

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<title>Are You The Universe?</title>
<creator>Mike Benn</creator>
<location>http://www.jimmyyoungdesign.com/try/flv/mikeb_universe.flv</location>
<info>http://www.peterjonesmusic.net/</info>
<image>http://www.jimmyyoungdesign.com/try/flv/mikeb_universe.jpg</image>
<annotation>From Kill Kill Faster Faster (Aria Films) 2008</annotation>
<meta rel="duration">00:02:18</meta>
</track>
<track>
<title>Leaving Home</title>
<creator>Mike Benn</creator>
<location>http://www.jimmyyoungdesign.com/try/flv/mikeb_home.flv</location>
<info>http://www.peterjonesmusic.net/</info>
<image>http://www.jimmyyoungdesign.com/try/flv/mikeb_universe.jpg</image>
<annotation>From Truck of Dreams (Sahara One)</annotation>
<meta rel="duration">00:01:21</meta>
</track>
</trackList>
</playlist>

Thanks so much, I've sorted it all out now thanks to you! You've made my day and it's only 11.58 am Ta!

Is there a way to slow down the XML Playlist scrolling speed? The scrolling looks great but seems to moving quickly thru the list. I was wondering it there was a way to slow the scrolling feature.

Thanks guys.

Hey guys,

i have some trubble with this!

That is my XML file:

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
  <trackList>
      <track>
          <creator>Flugzeug</creator>
          <title>Beinahe Absturz A320</title>
          <location>http://gamerphil.saar-pc.de/hp/videos/flugzeug.flv</location>
          <image>http://gamerphil.saar-pc.de/hp/videos/flugzeug.jpg</image>
          <info>http://gamerphil.saar-pc.de</info>
      </track>
      <track>
          <creator>Familienduell:</creator>
          <title>Lustige Antworten!</title>
          <location>http://gamerphil.saar-pc.de/hp/videos/familienduell.flv</location>
          <image>http://gamerphil.saar-pc.de/hp/videos/familienduell.jpg</image>
          <info>http://gamerphil.saar-pc.de</info>
      </track>
      <track>
          <creator>USB-Toepferscheibe</creator>
          <title>Freak baut Toepferscheibe aus einer alten Festplatte</title>
          <location>http://gamerphil.saar-pc.de/hp/videos/toepfern.flv</location>
          <image>http://gamerphil.saar-pc.de/hp/videos/toepfern.jpg</image>
          <info>http://gamerphil.saar-pc.de</info>
      </track>
      <track>
          <creator>Deichkind:</creator>
          <title>Krawall und remmi Demmi - Amateur Video!</title>
          <location>http://gamerphil.saar-pc.de/hp/videos/krawall.flv</location>
          <image>http://gamerphil.saar-pc.de/hp/videos/krawall.jpg</image>
          <info>http://gamerphil.saar-pc.de</info>
     </track>
  </trackList>
</playlist>

And thats my embed code:

<embed
src="http://gamerphil.saar-pc.de/hp/videos/mediaplayer.swf"
width="400"
height="450"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="height=300&width=450&file=http://gamerphil.saar-pc.de/hp/videos/flugzeug.flv&image=http://gamerphil.saar-pc.de/hp/videos/flugzeug.jpg&id=2&backcolor=0xFFFFFF&frontcolor=0x3399ff&lightcolor=0xEF3F03&screencolor=0x000000&logo=http://gamerphil.saar-pc.de/hp/Bilder/video-logo.png&autoscroll=true&displayheight=300""
/>

Can you tell me what is wrong?

Thank you so much!

Phil

You are calling a FLV file and an image in your flashvars. You should call the playlist.xml in your flashvars. The image comes from the playlist.

So, change this:flashvars="height=300&width=450&<strong>file=http://gamerphil.saar-pc.de/hp/videos/flugzeug.flv&image=http://gamerphil.saar-pc.de/hp/videos/flugzeug.jpg&id=2</strong>&backcolor=0xFFFFFF&frontcolor=0x3399ff&lightcolor=0xEF3F03&screencolor=0x000000&logo=http://gamerphil.saar-pc.de/hp/Bilder/video-logo.png&autoscroll=true&displayheight=300""to this:flashvars="height=300&width=450&<strong>file=http://gamerphil.saar-pc.de/hp/videos/playlist.xml</strong>&backcolor=0xFFFFFF&frontcolor=0x3399ff&lightcolor=0xEF3F03&screencolor=0x000000&logo=http://gamerphil.saar-pc.de/hp/Bilder/video-logo.png&autoscroll=true&displayheight=300"and you have one too many double quotes after displayheight=300. And you don't need an 'id' flashvar. Use whatever file name you want for for your playlist, but it must have a extension of xml for good luck !!

Hey,
thank you very much for your fast answer!

Here you can see what i did:
http://gamerphil.saar-pc.de/hp/1.php5

the first video should be with a playlist.

I hope you can help me fixing it and getting it to work ;)

Phil

Your page won't load in Internet Explorer 6.

The page does load in Opera9 and your first video of the aborted airplane landing plays.

However, your playlist has a bad, unnecessary ending tag. Here's what Opera has to say about your [url=http://gamerphil.saar-pc.de/hp/playlist.xml]playlist.xml[/url]:

XML parsing failed: syntax error (Line: 13, Character: 0)

Reparse document as HTML
Error:unexpected end-tag (no current element)
Specification:http://www.w3.org/TR/REC-xml/
10:       </track>
11:   </trackList>
12: </playlist>
13: </xml>

so get rid of the "</xml>".

is there a way of slowing down the scroll function in the xml playlist?
using the flv 3.15 player?

Your only choice is autoscroll=false, which stops the automatic scrolling and places a scroll bar on the right side of the playlist.

thanks ajax for the info.

Got it working in the meanwhile.
these are the new codes if it can help:
embed in swf(copied player clip from source fla into my main fla right where i want player to be and one clip before thisi put the following code)
var width = 648.6;
var height = 296;
var showdigits = true;
var showstop = true;
var showicons = false;
var thumbsinplaylist = true;
var usefullscreen = false;
var bufferlength = 5;
var lightcolor = 0x333333;
var backcolor = 0xFFFFFF;
var frontcolor = 0x000000;
var autoscroll = true;
var repeat = false;
var shuffle = false;
var displaywidth = 300;
var file = "playlist.xml"

playlist.xml code:

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>Natural Project</creator>
<title>Actisom - Original Music</title>
<location>video/actisom.flv</location>
<image>thumb3/actisom.jpg</image>
</track>
</trackList>
</playlist>

all is placed in the same directory: main.fla, videoplayer.fla, thumb3 folder, video folder.

hope this helps

thanks Jeroen, gooooood job!

I'm brazilian and need to place special caracter as: 'ç', 'á', é, ...

The solution to be in fla file edit, but i don't know flash code.
Please, informs to me the modification for download.

http://linhadecodigo.com.br/cs2/forums/thread/732.aspx

//Usando classe de caracteres (Acentos, e etc).
System.useCodepage = true;

thanks
giordano_magalhaes@yahoo.com.br

Hey,

as you can see i got it working:
http://gamerphil.saar-pc.de/hp/alle.php5
But i have a problem with the thumbnails.

Can you help me with this?

Here the embed code:

<embed
src="http://gamerphil.saar-pc.de/hp/videos/mediaplayer.swf"
width="780"
height="300"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="height=300&width=780&file=http://gamerphil.saar-pc.de/hp/videos/playlist.xml&backcolor=0xFFFFFF&frontcolor=0x3399ff&lightcolor=0xEF3F03&screencolor=0x000000&logo=http://gamerphil.saar-pc.de/hp/Bilder/video-logo.png&displaywidth=380&autoscroll=true"
/>

Here the playlist.xml:

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
  <trackList>
      <track>
          <creator>Flugzeug</creator>
          <title>Beinahe Absturz A320</title>
          <location>http://gamerphil.saar-pc.de/hp/videos/flugzeug.flv</location>
          <image>http://gamerphil.saar-pc.de/hp/videos/flugzeug.jpg</image>
          <info>http://gamerphil.saar-pc.de</info>
      </track>
      <track>
          <creator>Familienduell:</creator>
          <title>Lustige Antworten!</title>
          <location>http://gamerphil.saar-pc.de/hp/videos/familienduell.flv</location>
          <image>http://gamerphil.saar-pc.de/hp/videos/familienduell.jpg</image>
          <info>http://gamerphil.saar-pc.de</info>
      </track>
      <track>
          <creator>USB-Toepferscheibe</creator>
          <title>Freak baut Toepferscheibe aus einer alten Festplatte</title>
          <location>http://gamerphil.saar-pc.de/hp/videos/toepfern.flv</location>
          <image>http://gamerphil.saar-pc.de/hp/videos/toepfern.jpg</image>
          <info>http://gamerphil.saar-pc.de</info>
      </track>
      <track>
          <creator>Deichkind:</creator>
          <title>Krawall und remmi Demmi - Amateur Video!</title>
          <location>http://gamerphil.saar-pc.de/hp/videos/krawall.flv</location>
          <image>http://gamerphil.saar-pc.de/hp/videos/krawall.jpg</image>
          <info>http://gamerphil.saar-pc.de</info>
     </track>
      <track>
          <creator>Zauberwuerfel:</creator>
          <title>Vom Roboter komplett geloest!</title>
          <location>http://gamerphil.saar-pc.de/hp/videos/lego.flv</location>
          <image>http://gamerphil.saar-pc.de/hp/videos/lego.jpg</image>
          <info>http://gamerphil.saar-pc.de</info>
     </track>
      <track>
          <creator>Windows-Sounds:</creator>
          <title>Ein Lied nur aus den Sounds von Windows.</title>
          <location>http://gamerphil.saar-pc.de/hp/videos/windows_music.flv</location>
          <image>http://gamerphil.saar-pc.de/hp/videos/windows_music.jpg</image>
          <info>http://gamerphil.saar-pc.de</info>
     </track>   
      <track>
          <creator>Song-Verhoerer:</creator>
          <title>Urkomisch was manche Leute so verstehen!</title>
          <location>http://gamerphil.saar-pc.de/hp/videos/verhoerer.flv</location>
          <image>http://gamerphil.saar-pc.de/hp/videos/verhoerer.jpg</image>
          <info>http://gamerphil.saar-pc.de</info>
     </track>    
  </trackList>
</playlist>

Thank you

Phil

@Phil,

What is the nature of your problem with the thumbnails? They don't show?

Prior to v3.15, the default was thumbsinpolaylist=false. Now, with v3.15, the default is thumbsinplaylist=true.

Since you are using the v3.14 player, add &thumbsinplaylist=true to your flashvars.

Hey,

yes thats the problem!
Thanks for your fast answer.

How can i update the player?
just overwrite the files?

Phil

Add &thumbsinplaylist=true to your local file with any text editor, save as plain text, and upload to your host.

aí galera do brasil que usa esse sistema e é como eu, tem dificuldade no inglês;

Resolvi o problema no meu site com ç, á, à, é, ... acentos e caracteres especiais

abri o dreamweaver e todos os arquivos que tinham xml dentro ou no nome do arquivo
depois, antes de criar as classes, colei o seguinte texto:

System.useCodepage = true;
Depois salvei todos e dei upload

qualquer coisa
giordano_magalhaes@yahoo.com.br

@Ajax

I know that :D

I am not that stupid ;)

I want to know if i can just overwrite the old files from ver. 1.14 with the new filef ver 1.15...

Thanks

Phil

I want to know if i can just overwrite the old files from ver. 1.14 with the new filef ver 1.15...

OK, you lost me here. Are you talking about v3.14 to v3.15 of the mediaplayer.swf. If so, yes, just overwrite the mediaplayer.swf file. Nothing else changed.

Okay thx!

Of coure i wanted to say v.3.14 und v.3.15 ;)

I was just to lazzy to look up the right version ;)

Thanks for your help!

I read many messages about playlist.xml troubles here, but I can't fix the problem with my own playlit!

In my server, I have created a folder called /tv/ where I put the the flvplayer.swf (version 3.15), the swfobject.js, html, xml, jpg and all flv files. So, to see my player you have to go to http://universopokemon.net/tv.

It works fine, but I can see only the first image with the first movie, when I have more files in my playlist. Also, when I put the 'default' xml used for some demos in demo page ('http://mirror.video.blip.tv/hot-shows.xml'), the playlist shows perfectly all files, so the problem I have got must be on my playlist.xml.

For a better explanation, you can see my 'index.html' code:

<html>
<head>

</head>
<body>

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

<div id="player">This text will be replaced</div>

<script type="text/javascript">
var so = new SWFObject('mediaplayer.swf','mpl','620','500','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('width','620');
so.addVariable('height','500');
so.addVariable('file','playlist.xml');
so.addVariable('autoscroll','true');
so.addVariable('displayheight','367');
so.write('player');
</script>

</body>
</html>

and my playlist.xml code:

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

<track>
<title>UPtv</title>
<creator>La television de Universo Pokemon</creator>
<location>afraid.flv</location>
                                                <image>uptv.jpg<image>
</track>

<track>
<title>Origenes del manga</title>
<creator>CuatroSfera</creator>
<location>origenes_manga.flv</location>
                                                <image>uptv2.jpg<image>
</track>

<track>
<title>Episodio 2</title>
<creator>CuatroSfera</creator>
<location>episodio_2.flv</location>
                                                <image>uptv3.jpg<image>
</track>

<track>
<title>Episodio 3</title>
<creator>CuatroSfera</creator>
<location>episodio_3.flv</location>
                                                <image>uptv4.jpg<image>
<info>http://www.jeroenwijering.com/</info>
</track>

</trackList>
</playlist>

Some suggestion?

missing the / in the image tags: <image>uptv.jpg</image>

Incredible! I need glasses urgently! :D

Thank you very much!

Hi there,

1) I have a googlepages site where I put mediaplayer.swf, swfobjet.js and jokoxml.xml
jokoxml.xml is the playlist. My question is: Why can´t get to the out link ,
http://free.guba.com/uploaditem/3000121035/flash.flv ?
the jokoplaylist:

<?xml version="1.0" encoding="ISO-8859-1"?>
<playlist version="1">
<trackList>

<track>
<title>Girl</title>
<creator>Ado</creator>
<location>http://jokolos.googlepages.com/girl.swf</location>
<image>http://jokolos.googlepages.com/girl.png</image>
<info>/info>
<identifier></identifier>
</track>

<track>
<title>EXTERNO</title>
<creator>OUT</creator>
<location>http://free.guba.com/uploaditem/3000121035/flash.flv</location>
<image></image>
<info>/info>
<identifier></identifier>
</track>
</trackList>
</playlist>

My html code:

<script type="text/javascript" src="http://jokolos.googlepages.com/swfobject.js"></script>
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('http://jokolos.googlepages.com/mediaplayer.swf','mpl','350','150','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('width','350');
so.addVariable('height','150');
so.addVariable('file','http://jokolos.googlepages.com/jokoxml.xml');
so.addVariable('displaywidth','200');
so.write('player');
</script>

I dont see the list on the mediaplayer and I can't access to the external link
I hope someone can help me!

<info>/info> should be <info></info>

That's right!!
Thank you very much Andersen!!!

I've also got a problem with getting my playlist to work. A single file works fine but I can't get it to work with a playlist. I've got all the files in the same directory?
Here's my html code :

<script type="text/javascript" src="http://www.defeestformule.nl/swfobject.js"></script>

<div id="player" align="right">This text will be replaced</div>

<script type="text/javascript">
var so = new SWFObject('http://www.defeestformule.nl/mediaplayer.swf','mpl','550','230','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','230');
so.addVariable('width','550');
so.addVariable('file','http://www.defeestformule.nl/playlist.xml');
so.addVariable('backcolor','0x000000');
so.addVariable('frontcolor','0xAAAAAA');
so.addVariable('lightcolor','0xFFFFFF');
so.addVariable('screencolor','0x000000');
so.addVariable('displaywidth','280');
so.addVariable('showstop','true');
so.addVariable('showdownload','true');
so.addVariable('autoscroll','true');
so.addVariable('enablejs','true');
so.addVariable('thumbsinplaylist','true');
so.write('player');
</script>

Here's my playlist :

<?xml version="1.0" encoding="UTF-8" ?>
- <playlist version="1" xmlns="http://xspf.org/ns/0/">
- <trackList>
- <track>
<title>Sutemi</title>
<creator>Baloe</creator>
<location>http://www.defeestformule.nl/Sutemi.flv</location>
<info>http://www.defeestformule.nl/</info>
<annotation>Aiki</annotation>
<meta rel="duration">00:00:11</meta>
</track>
- <track>
<title>Tenbin Nage deel 1</title>
<creator>Baloe</creator>
<location>http://www.defeestformulenl/Tenbin.flv</location>
<info>http://www.defeestformule.nl/</info>
<annotation>Aikibudo</annotation>
<meta rel="duration">00:00:29</meta>
</track>
</trackList>
</playlist>
Many thanks in advance

@Baloe

two problems:
you need to delete all the minus signs - from the playlist !

i get a file not found when i try the addresses: http://www.defeestformule.nl/Sutemi.flv and Tenbin.flv in the browser addressline
if you have actually uploaded the files there, it can be the mime problem - from the [url=http://www.jeroenwijering.com/?item=JW_FLV_Media_Player]JW_FLV_Media_Player[/url] page:

If FLV playback doesn't work on your site which runs off an IIS server, the FLV mimetype isn't added to the server. Please contact your webserver administrator on this (if you're an admin, [url=http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19439]here's how to fix it[/url]).

Life can be so easy sometimes!!

Thanks a mil it works now!

@Andersen

That problem with the "minus signs" crops up a lot. It stems from people loading the playlist into a browser window and then copy-pasting it into a text file. Somewhere we should point people to "view source" if they want to do it that way, or just "Save page as" which seems to work here on my Mac Pro with Firefox (creates a plain-text file).

@Tony Reed - indeed! - and "show source" and/or "save file" works fine in windows too...

Hi!
My Videos on JW-Player do work. But I want to add my playlist with some more settings. Such as more informations, categories and so on.
And: When I play a video in the player, the video does work and it is fully loading, but there is no chance to go forwards or go to a special point of the video that I do want. I am missing that little controller in the upload-line.

Hi Everyone,
I've been reading all the posts and trying all the solutions given but I still cannot get my player to work. I think it has something to do with my playlist since when I change the link to go straight to an mp3 it works but when I go to my playlist it does not.
Here is my playlist;

<?xml version="1.0" encoding="UTF-8"?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>Dude Man Bro</creator>
<title>Dude Man Bro</title>
<location>http://www.dudemanbro.com/upload/DudeManBro.mp3</location>
</track>
<track>
<creator>Dude Man Bro</creator>
<title>Bald Bald Britney</title>
<location>http://www.dudemanbro.com/upload/BaldBaldBritney.mp3</location>
</track>
</trackList>
</playlist>

All the files are in the same folder on my server as well as the mediaplayer.swf and swfobject.js

here is the object code too;

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

<div id="player">This text will be replaced</div>

<script type="text/javascript">
var so = new SWFObject('http://www.dudemanbro.com/mediaplayer.swf','mpl','470','20','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','20');
so.addVariable('width','470');
so.addVariable('file','http://www.dudemanbro.com/upload/playlist.xml');
so.addVariable('thumbsinplaylist','false');
so.addVariable('autostart','true');
so.addVariable('shuffle','false');
so.write('player');
</script>

All I get on the page is a white rectangle. Any ideas?

Seems like maybe your playlist is missing. This URL [url=http://www.dudemanbro.com/upload/playlist.xml]http://www.dudemanbro.com/upload/playlist.xml[/url] gives the: "The page cannot be found" error.

Hello, is there any way to group your playlist by aritsts so people click on an artist and it makes a right scroll animation and then displays all the tracks by them? I'm using this to showcase many by radically different genres and it would really help. Thanks a lot, this software is great.

@Omri - use a separate playlist for each artist, then select using [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/playlistlinks.htm]links[/url], buttons, images or [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/multipleplaylists.htm]dropdownbox[/url] (from the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer]demopage[/url])

If anyone can answer this question, that would be very helpful.

Does the flv files, in the player, load slower if you keep adding flv files to the playlist?
Let me try to ask this question again. Does the flv files load slower if you keep adding video flv files to the playlist. Lets say if a player with 5 flv files in the playlist vs. a playlist with 15 flv files? Does it matter how many files are in the playlist?

I'm experinceing a slower loading time when clicking on a video in my player, now that I have 7 files in the playlist. Does that have anything to do with it loading slower? Or is is just the server?

Thanks for any feedback on this.

@Joe

I'm experinceing a slower loading time when clicking on a video in my player, now that I have 7 files in the playlist. Does that have anything to do with it loading slower?

most probably not! the playlist is just a few lines of text...

Thanks Andersen, I guess it could be the server.

My image rotator can only play 30 images, out of 40 I have in my playlist. How can I expand the number of items displayed by Image Rotator?

Doe's anyone know how I can setup my player like Blip TV?

I want to be able to have the playlist play music, movies, etc. that will be added or changed daily without having to manually rewrite the xml file.

How does the blip tv playlist work (hot-shows.xml). It looks like different coding then the basic player.xml.

I see there is some kind of RSS feed here, -> http://mirror.video.blip.tv/hot-shows.xml

Do they somehow link that to their playlist?

Hi again, I have fixed my playlist so that it it at the correct address and now I can see the player but nothing loads from my playlist. (I am assuming it is a playlist problem because I can get a single mp3 to load)

Here is the code for the playlist;

<?xml version="1.0" encoding="UTF-8"?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>Dude Man Bro</creator>
<title>Dude Man Bro</title>
<location>http://www.dudemanbro.com/upload/DudeManBro.mp3</location>
</track>
<track>
<creator>Dude Man Bro</creator>
<title>Bald Bald Britney</title>
<location>http://www.dudemanbro.com/upload/BaldBaldBritney.mp3</location>
</track>
</trackList>
</playlist>

and my object code;

<p align="center"><script type="text/javascript" src="http://www.dudemanbro.com/upload/swfobject.js"></script>
<div id="player">
<div align="center">This text will be replaced</div>
</div>

<div align="center">
<script type="text/javascript">
var so = new SWFObject('http://www.dudemanbro.com/upload/mediaplayer.swf','mpl','470','20','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','20');
so.addVariable('width','470');
so.addVariable('file','http://www.dudemanbro.com/upload/Playlist.xml');
so.addVariable('backcolor','0x000000');
so.addVariable('frontcolor','0xCC00CC');
so.addVariable('lightcolor','0xCC00CC');
so.addVariable('screencolor','0xCC00CC');
so.addVariable('autostart','true');
so.addVariable('shuffle','false');
so.write('player');
</script>
 
</p>
</div> </p>
</body>
</html>

Also, I removed a track from my playlist code in this forum because a title of one of the songs is slightly offensive. If you are going to help me out and want to see the actual playlist it is at http://www.dudemanbro.com/upload/Playlist.xml and I apologize in advance if it offends you.

Hi,
Maybe somebody can help me with this? Does anyone know how to setup a robots.txt file for my playlist.xml page? It seems that Google is picking up and showing my playlist.xml page, which I do not want to be shown.

This is what I have:

<meta name="Robots" content="user-agent: *
disallow: /playlist.xml">

And I've placed it in my page between the <head> and </head> tags. This is probably wrong because the search engine is still picking it up and viewing it in a search.

Would anyone be able to edit this for me and maybe show me what I am doing wrong?

Thanks guys.

@Joe - google Webmaster Help Center: [url=http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=40360]How do I use a robots.txt file to control access to my site?[/url]

Thanks.

@Amy,

Remove the double quotes from your location elements<location>http://www.dudemanbro.com/upload/DudeManBro.mp3</location>

@anderson

Is there any way you can make the links inside the player? So that the artists are listed there and when you click on one of them (in the player) it pulls all the songs?

@Omri - maybe do something like the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/redirectrelated.htm]redirectrelated[/url] or [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/tuberedirectrelated.htm]tuberedirectrelated[/url] demos (linked from the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/]demopage[/url]) and then just use playlists instead of single files...

Can someone help me in step by step on how to create a xml file? I want to be able to play only 2 videos. This is the location of the video; http://poseidonaquatics.com/video1/videohtml1.html and http://blip.tv/file/370547/. I want to use the setup wizard to be able to do this. I want to use the player that has the automatic scrolling option. Please help, I really want to learn how to do this.

What do i need to do?

Thank You

Please see this thread: [url=http://www.jeroenwijering.com/?thread=9681]HOW DO I CREATE A FLV PLAYLIST?[/url].

Hi All

I have 2 flv files name Inventory Pro - ATP, Inventory Pro - UOM and I would like to have a flv playlist for those videos. Please, can anyone shows me the embed code and , swfobjectcode for that?

My website is at
http://www.plusxpert.com/demo/demo.html

Please see the previous post.

where should I include my playlist code?Is that inside my Demo.html?

@steve

Are you talking about in my playlist? I have no double quotes in my playlist.

@Amy,

There used to be double quotes surrounding the data in the location element; they are gone now.

Your player works fine for me like this:

var s1 = new SWFObject('http://www.dudemanbro.com/upload/mediaplayer.swf', 'mpl', '470', '20', '8');
s1.addVariable('file', 'http://www.dudemanbro.com/upload/Playlist.xml');

@Steve
Thanks so much for you help. I got it to work.


<code><code><code><code><code><code><code><blockquote><strong><blockquote></blockquote></strong></blockquote>

Hey guys it's me again. Hope all is well.

Is there a way of changing the color to the "scroll bar" if I was using ('autoscroll','false') for my player?

Thanks.

How can i make playlist, without <creator></creator>, i want only title, no numbers

@Wu4D,

Please see this thread: [url=http://www.jeroenwijering.com/?thread=8879#msg56127]AUTOGENERATE PLAYLIST FROM FOLDER?[/url]

Thx verry much

Would anyone know if the color of the scroll bar in the flv player 3.15, when set to autoscroll false, can be changed from black to a different color?

Thanks.

The scroll and the stop button don't appear in my playlist . why?
Thanks

<embed src="lib/libPlayer/flvplayer.swf"
width="450" height="100"allowfullscreen="true" allowscriptaccess="always"
flashvars="showstop=trueautoscroll=true&shuffle=false&repeat=list&displayheight=1&file=lib/listas/listaAudio.xml"
/>

XML file:

<playlist version="1">
<trackList>
<track>
<title>Audio1</title>
<creator>TIC</creator>
<location>../archivos/piano.flv</location>
</track>
<track>
<title>Audio2</title>
<creator>TIC</creator>
<location>../archivos/audiowav.flv</location>
</track>
<track>
<title>Audio3</title>
<creator>TIC</creator>
<location>../archivos/audiomp3.flv</location>
</track>
<track>
<title>Audio4</title>
<creator>TIC</creator>
<location>../archivos/flooding - siesta en pausa.flv</location>
</track>
<track>
<title>Audio5</title>
<creator>TIC</creator>
<location>../archivos/baladamp3.flv</location>
</track>
<track>
<title>Audio6</title>
<creator>TIC</creator>
<location>../archivos/bandawav.flv</location>
</track>
</trackList>
</playlist>

The scroll and the stop button don't appear in my playlist . why?
Thanks

<embed src="lib/libPlayer/flvplayer.swf"
width="450" height="100"allowfullscreen="true" allowscriptaccess="always"
flashvars="showstop=true&autoscroll=true&shuffle=false&repeat=list&displayheight=1&file=lib/listas/listaAudio.xml"
/>

XML file:

<playlist version="1">
<trackList>
<track>
<title>Audio1</title>
<creator>TIC</creator>
<location>../archivos/piano.flv</location>
</track>
<track>
<title>Audio2</title>
<creator>TIC</creator>
<location>../archivos/audiowav.flv</location>
</track>
<track>
<title>Audio3</title>
<creator>TIC</creator>
<location>../archivos/audiomp3.flv</location>
</track>
<track>
<title>Audio4</title>
<creator>TIC</creator>
<location>../archivos/flooding - siesta en pausa.flv</location>
</track>
<track>
<title>Audio5</title>
<creator>TIC</creator>
<location>../archivos/baladamp3.flv</location>
</track>
<track>
<title>Audio6</title>
<creator>TIC</creator>
<location>../archivos/bandawav.flv</location>
</track>
</trackList>
</playlist>

@HCalero - the stop button was only added from player v.3.14 so you might need to update -
to show the scrollbar in the playlist set autoscroll=false - please see [url=http://www.jeroenwijering.com/?item=Supported_Flashvars]Supported Flashvars[/url]

I have the adobe flash player loaded on my site, It plays single flv files no problem.
When I add a playlist to your wizard nothing happens. I copied the playlist from your site and added my
flv.movies were they need be. All I did was save it as an xml file then put it in my video folder. Is that all I need
to do or is there more cause I am runing out of ways to get this to work please help.
here is my playlist

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>Nando</creator>
<title>Occy</title>
<location>http://skatepark.com/Videos/occy_320x240.flv</location>
</track>
<track>
<creator>Nando</creator>
<title>Globe</title>
<location>http://skatepark.com/UBF3Web_320x240.flv</location>
<image>http://skatepark.com/path-to-file/preview.jpg</image>
<info>http://www.skatepark.com</info>
</track>
</trackList>
</playlist>

@Nando - you have to upload the mediaplayer.swf to your site also! - the playlist.xml and the mediaplayer.swf must be on the same domain! - from the [url=http://www.jeroenwijering.com/?item=Supported_Playlists]Supported Playlists[/url] page:

a playlist should always reside on the same server as the SWF file, due to security restrictions of the Flash Player. This can be solved if you own the domain on which the mediafiles reside. You then have to put a crossdomain.xml file in the root webfolder of that server. In this file, you can specifically allow sites to load data.

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>Nando</creator>
<title>Occy</title>
<location>http://skatepark.com/Videos/occy_320x240.flv</location>
</track>
<track>
<creator>Nando</creator>
<title>Globe</title>
<location>http://skatepark.com/UBF3Web_320x240.flv</location>
<image>http://skatepark.com/path-to-file/preview.jpg</image>
<info>http://www.skatepark.com</info>
</track>
</trackList>
</playlist>

Hey, BP,

Same issue with me!

For some reason, the playlist on my page displays an empty "undefined" track every other listing as "undefined." No info, no thumbnail, no, video.

Here's my playlist.xml:

<playlist version="1">
<title>My Videos</title>
<info>http://www.mydomain.com/</info>
  <trackList>
    <track>
      <title>First Video</title>
      <creator>Me</creator>
      <location>http://www.mydomain.com/video/whatever.flv</location>
      <image>http://www.mydomain.com/video/image.jpg</image>
      <info>http://www.mydomain.com/</info>
    </track>
  </trackList>
</playlist>

Notice that there's only one track above. In the player, however, I see three tracks: #1 and #3 are undefined. Where did they come from? Add another actual track and I get a total of six, four undefined.

Here's my swfobject code:

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

<div id="player">This text will be replaced</div>

<script type="text/javascript">
var so = new SWFObject('http://www.mydomain.com/video/mediaplayer.swf','mpl','440','435','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','435');
so.addVariable('width','440');
so.addVariable('file','www.mydomain.com/video/playlist.xml');
so.addVariable('displayheight','330');
so.addVariable('displaywidth','440');
so.addVariable('autoscroll','true');
so.write('player');
</script>

Same results using embed code:

<embed src="http://http://www.mydomain.com/video/mediaplayer.swf"
width="440"
height="435"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="height=435&width=440&file=http://http://www.mydomain.com/video/playlist.xml&displayheight=330&displaywidth=440&autoscroll=tr />

I'm using MediaPlayer 3.16. I tried using swfobject.js 2.0 (broke my swfobject code). I've tried saving the xml file using a variety of editors (Notepad, Dreamweaver, TextWrangler). Tried whittling down the tracks to bare nothingness...and back. No difference.

Hey, can anyone throw us a rope on this? :-)

I know I'm close, but I'm just not getting it.

Thanks!

Wipson

Post some real URIs, not those fake "my.domain.com" and we might be able to help.

I would take a look at your HTTP request first, maybe fake URIs are posting back additions to your XML?

<embed src="http://http://www.mydomain.com/video/mediaplayer.swf"

should be

<embed src="http://www.mydomain.com/video/mediaplayer.swf"

and

flashvars="height=435&width=440&file=http://http://www.mydomain.com/video/playlist.xml

should be

flashvars="height=435&width=440&file=http://www.mydomain.com/video/playlist.xml

these are minor details, but may be a possible reason?

I have tried about everything possible but the playlist and associated thumbnails just don't work.
I was getting error 2032 but fixed that by putting double quotation marks like this:

so.addVariable('file','"/flv/Andrea_1.xml"');

I believe that I have the latest versions of the files swfobject.js and player.swf

the relevant snippets:

<script type="text/javascript">
function createPlayer()
{
var so = new SWFObject('/flv/player.swf','playlist','640','260','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('file','"/flv/Andrea_1.xml"');
so.addVariable('width', '640');
so.addVariable('height', '260');
so.addVariable('displaywidth', '320');
so.addVariable('displayheight', '240');
so.addVariable('overstretch', 'false');
so.addVariable('autostart', 'false');
so.addVariable('shuffle', 'false');
so.addVariable('repeat', 'list');
so.addVariable('thumbsinplaylist', 'true');
so.addVariable('backcolor', '0xFFFFFF'); // face of buttons
so.addVariable('frontcolor', '0x404040'); // button symbols & playlist text
so.addVariable('lightcolor', '0x808080'); // highlighted playlist item
so.addVariable('screencolor', '0x909090'); // screen background color
so.write('flashbanner');
};
</script>
<TD><div id="flashbanner">this will be replaced by the SWF.</div></TD>

the playlist:

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>Andrea</creator>
<title>Vanilla-English</title>
<location>/flv/vanilla_en.flv</location>
<image>/flv/vanilla_en.flv.jpg</image>
</track>
<track>
<creator>Andrea</creator>
<title>Vanille-Francais</title>
<location>/flv/vanilla_fr.flv</location>
<image>/flv/vanilla_fr.jpg</image>
</track>
</trackList>
</playlist>

I have tried using url : http://localhost/directory/file.xxx but nothing works.
All I get is the player with the run arrow; clickillng the arrow does not start the video.

Could somebody explain to me what is happening here?

Are you trying to load this locally, or from a web server?

Have you tried loading your playlist into your browser to see if it validates and is actually available?

Have you tried loading the images and media files into your browser to see if they are available?

You've mixed v3.x flashvars with v4 flashvars in your player code, such as the color flashvars and displaywidth/height. See this page for valid flashvars for the v4 player: http://code.longtailvideo.com/trac/wiki/FlashVars

I finally blundered into the variables necessary to make things work.

BTW, it is not at all clear what the display, width and height parameters - they seem to appear in various and sometimes repeated fashion without any clear indication as to what exactly they refer. :(

I'm rather disappointed that there are no clear or complete references for the FlashVars or the parameters for the playlist - like annotation. I had to look at tons of examples before I found what was necessary. I just find that the lack of preciceness and clarity are terribly frustrating.
I still don't know how to remove the centered play button over the initial image or how to restrict the length of the control bar to the length of the video with rather than the entire width of the video with the right-side playlist.
Thanks for your suggestions, though.

Actually, I am testing a website on my local machines. The web server is on a FreeBSD 7.0 machine and links and all the files are nicely available.
There are some issues about the thumbnails - it would be nice if one could choose to use them only in the playlist without putting them on top of the opening frame. Anyway, it seems that only the default first file to be played shows the thumbnail; this means that to have any quality in the image, it must be at least the dimensions of the opening video - the thumbnails are then generated from it. This does increase the size of the file, allbeit it is not that great. :)

Hmmmmm.....   did you look at: http://code.longtailvideo.com/trac/wiki/FlashVars?

That seems incredibly clear and precise, but maybe I'm spoiled because we didn't have such nice documentation in the early years.

In fact I have that page up now and I had looked at it but I did not find it clear because there were no explanations or examples ... that is, I knew nothing about the xspf or the other formats. I could not understand the the "examples" because they are in code format without any graphic illustration so I could relate to the code and understand exactly what it does. Reading and seeing is quite different. Now that I have got things working, I still have to try to figure out what some of the tags and vars actually do...
I do appreciate your input. Thanks much.

For example, what do these tags do visuallly? :

in the XSPF format -
<info>http://www.bigbuckbunny.org/</info>
<meta rel="captions">http://www.jeroenwijering.com/upload/bunny.xml</meta>
<meta rel="duration">20</meta>
<meta rel="start">10</meta>
<meta rel="type">image/jpeg</meta>

and where are these (they don't seem to do anything...
so.addVariable('backcolor', '0xFFFFFF'); // face of buttons
so.addVariable('frontcolor', '0x404040'); // button symbols & playlist text
so.addVariable('lightcolor', '0x808080'); // highlighted playlist item
so.addVariable('screencolor', '0x909090'); // screen background color

And one final question: Why does the controlbar appear for about 1 second and then disappear when it is set to controlbar=over ?
Thanks in advance.

The playlist elements are explained here: http://code.longtailvideo.com/trac/wiki/FlashFormats

The info element is a link that will be used if the user clicks on the display if displayclick=link.

meta rel='captions' is a URL to a captions file.

meta rel='duration' is the duration (time) to play the media file.

meta rel='start' is the number of seconds into the media file to start playing it.

meta rel='type' is the type of media. [image/jpeg is WRONG] See the type flashvar here: http://code.longtailvideo.com/trac/wiki/FlashVars

The four color flashvars are for the v3.x players, the v4 player uses skinning for decorative effects.

Why does the controlbar appear for about 1 second and then disappear when it is set to controlbar=over ?

It's what is known as a "question maker" and it appears to be working. NO, seriously, it's a small "glitch" that will probably be taken care of (destroyed) when the larger issues are finished.

blz Giordano,

Se caso o usuario tenha o sistema operacional em outro idioma vai dar problema em usuar o System.useCodepage = true; . Use onde tiver xml assim <?xml version='1.0' encoding='UTF-8'?> já resolve.

Hi everyone, I don't see my scroll bar with this code. Even if I put the autoscroll false...

</head>
<body>

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

<div id="player">This text will be replaced</div>

<script type="text/javascript">
var so = new SWFObject('mediaplayer.swf','mpl','620','500','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','500');
so.addVariable('width','620');
so.addVariable('file','playlist.xml');
so.addVariable('autoscroll','false');
so.addVariable('displayheight','367');
so.write('player');
</script>

</body>
</html>

everything is almost working....can anyone tell me what am i doing wrong when it says "video stream is not found"

i love my baby

Hi- I would like to know what do I have to do so that specific member(s) videos play within my playlist. Currently my playlist plays directly from the recently added videos--thus, I want to change that to make it feed from a specific member id.

I can be reach at: ragtube@live.com

<CENTER><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8" name="theMediaPlayer"width="400" height="300"id="theMediaPlayer">
<param name=movie value="[var.base_url]/flvplayer.swf">
<param name=quality value="high">
<param name=bgcolor value="#FFFFFF">
<param name=allowFullScreen value="false">
<param name=swLiveConnect value="true">
<param name=allowScriptAccess value="sameDomain">
<param name="FlashVars" value="file=[var.base_url]/uploads/[var.video_play]&file=playlist.php&width=400&height=300&displaywidth=300&displayheight=260&overstretch=true&showfsbutton=false&image=uploads/thumbs/[var.video_thumb]&backcolor=0xDC01FF&frontcolor=0xFFFFFF&lightcolor=0xFFE8F9&screencolor=0xFF00CC&autoscroll=true&thumbsinplaylist=true">
<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="400" height="300" bgcolor="#FF00CC" name="theMediaPlayer"src="flvplayer.swf"flashvars="file=[var.base_url]/uploads/[var.video_play]&file=playlist.php&width=400&height=300&displaywidth=400&displayheight=260&overstretch=true&showfsbutton=
false&image=uploads/thumbs/[var.video_thumb]&backcolor=0xDC01FF&frontcolor=0xFFFFFF&lightcolor=0xFFE8F9&screencolor=0xFFFFFF&autoscroll=true&thumbsinplaylist=true"></embed></object></CENTER>

Hy! i have a problem:
My site is http://yahoo-online.webs.com and i have a flash gallery image, but the problem is that my flash doesnt want to read my xml with the image address given. what can be the problem? :| pls, send me an email or here a response. (yskins@yahoo.com) Tkx and sorry for my english (i'm romanian)

hey this is really helpful info, but I have antother question that is close to yourse exept i want to make a playlist of music and play it off of a website. I have found tutorials on this subject, but they all require using flash and i can remember finding one where i did not need flash just a file that was the already created "player" and i had to create the xml file and set it up to use with the "player" i have been unable to find this tutorial again and i was wondering if anyone could help as i dont have the money to download adobe flash creator. Thanks in advance also if you do have info on where i could find the tut or if you know how yourself please send the answer to this email: mcgriffin890@gmail.com with thee subject: Answer. Thanks in advance

Hello...I created a xml file but I don't know,How to do use this file :( this my xml file

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>Admin</creator>
<title>video 1</title>
<location>http://video.ak.facebook.com/video-ak-sf2p/v22831/22/78/100457713324103_62184.mp4</location>
<image>http://img810.imageshack.us/img810/5071/kurtlarvadisi11.jpg</image>
<info>http://my.domain.com/</info>
</track>
<track>
<creator>Admin</creator>
<title>video 2</title>
<location>http://video.ak.facebook.com/video-ak-sf2p/v22831/140/34/100457719990769_38688.mp4</location>
<image>http://img810.imageshack.us/img810/5071/kurtlarvadisi11.jpg</image>
<info>http://my.domain.com/</info>
</track>
</trackList>
</playlist>

Where should I add to this file ? in public html ? or other ? Please I need to help

You need to upload the file to your website, it can be anywhere, as long as your embed code references the file correctly.

Dear sir,

I wanna make VDO Playlist on my website but it's not work. No video, no playlist appear

I'd already uploaded all of swfobject.js , player.swf , video.flv , video-test2.flv to http://www.offlens.com/vdo/

Then I attached :

<script type='text/javascript' src='http://www.offlens.com/vdo/swfobject.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
var so = new SWFObject('http://www.offlens.com/vdo/player.swf','mpl','800','338','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://www.offlens.com/vdo/offlensplaylist.xml');
so.addVariable('backcolor','333333');
so.addVariable('frontcolor','EEEEEE');
so.addVariable('lightcolor','CCCC00');
so.addVariable('screencolor','000000');
so.addVariable('playlistsize','200');
so.addVariable('playlist','right');
so.write('mediaspace');
</script>

to my HTML file (name http://www.offlens.com/vdo/index-2.html)

and make xml file :

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

<track>
<creator>OFFLENS.com</creator>
<title>TEST 1</title>
<location>http://www.offlens.com.com/vdo/video.flv< /location>
<image>http://www.offlens.com/vdothumb/test1.jpg</image>
<info>info info ทดสอบไทย</info>
</track>
<track>
<creator>OFFLENS.com</creator>
<title>TEST 2</title>
<location>http://www.offlens.com.com/vdo/video-test2.flv< /location>
<image>http://www.offlens.com/vdothumb/test1.jpg</image>
<info>info info</info>
</track>

</trackList>
</playlist>

save to http://www.offlens.com/vdo/offlensplaylist.xml

Would you guy help me about this problem.

Best Regards,
Offlens

 
There are multiple mistakes in your playlist.

Try this one:

<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/" version="1">
  <trackList>
    <track>
      <creator>OFFLENS.com</creator>
      <title>TEST 1</title>
      <location>http://www.offlens.com.com/vdo/video.flv</location>
      <image>http://www.offlens.com/vdothumb/test1.jpg</image>
      <info>info info ????????</info>
    </track>
    <track>
      <creator>OFFLENS.com</creator>
      <title>TEST 2</title>
      <location>http://www.offlens.com.com/vdo/hwm-TK-1280720-01.flv</location>
      <image>http://www.offlens.com/vdothumb/test1.jpg</image>
      <info>info info ????????</info>
    </track>
  </trackList>
</playlist>

Also, your server is not properly setup to deliver FLV files such as:  http://www.offlens.com.com/vdo/hwm-TK-1280720-01.flv

wget -c -S "http://www.offlens.com.com/vdo/hwm-TK-1280720-01.flv

--2010-06-16 08:07:00--  http://www.offlens.com.com/vdo/hwm-TK-1280720-01.flv
Resolving www.offlens.com.com... 216.239.122.34
Connecting to www.offlens.com.com|216.239.122.34|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Date: Wed, 16 Jun 2010 15:07:03 GMT
  Server: Apache
  Expires: Wed Jun 16 15:12:03 2010 GMT
  Cache-Control: private, max-age=300, must-revalidate
  P3P: CP="NON DSP COR DEVa PSAa PSDa OUR IND UNI COM", policyref="http://www.cnet.com/w3c/p3p.xml"
  Connection: close
  <strong>Content-Type: text/html; charset=utf-8</strong>
  Length: unspecified [text/html]
  Saving to: `hwm-TK-1280720-01.flv'

    [ <=>                                   ] 9,197       --.-K/s   in 0.05s

2010-06-16 08:07:00 (187 KB/s) - `hwm-TK-1280720-01.flv' saved [9197]

The MIME type should be video/x-flv for an FLV file.

Dear Craterscore ,

Thank you for help,Now XML is work properly. But Video still can't play I'd upload "hwm-TK-1280720-01.flv" to /vdo and change file name to be video-test2.flv via FileZilla ... Is that Point of problem?

By the way I tried to upload hwm-TK-1280720-01.flv to server again. So now I have both video-test2.flv and hwm-TK-1280720-01.flv for test the script.

Also, your server is not properly setup to deliver FLV files such as: http://www.offlens.com.com/vdo/hwm-TK-1280720-01.flv

I have been tried to make 1 of Single player script for play my FLV file follow :

<html>
<head>
<title>
vdo.offlens.com</title>
<style>
* { font-family: verdana; font-size: 10pt; COLOR: gray; }
b { font-weight: bold; }
table { border: 1px solid gray;}
td { text-align: center; padding: 25;}
body {
background-color: #333333;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body>
<center><p>
<p id='preview'>The player will show in this paragraph #1</p>

<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','720','405','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=hwm-TK-1280720-01.flv');
s1.write('preview');
</script>
<br><br>
<br><br>
<table>
<tr><td>This is a placeholder for the subdomain <b>vdo.offlens.com</b></td></tr>
</table>
<br><br>
</center>

</body>
</html>

and save to http://www.offlens.com/vdo/index.html
That's work properly also.

So I tried to paste all of HTML and XML code that I upload to server

index.html == TEST Single file play

<html>
<head>
<title>
vdo.offlens.com</title>
<style>
* { font-family: verdana; font-size: 10pt; COLOR: gray; }
b { font-weight: bold; }
table { border: 1px solid gray;}
td { text-align: center; padding: 25;}
body {
background-color: #333333;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body>
<center><p>
<p id='preview'>The player will show in this paragraph #1</p>

<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','720','405','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=hwm-TK-1280720-01.flv');
s1.write('preview');
</script>
<br><br>
<br><br>
<table>
<tr><td>This is a placeholder for the subdomain <b>vdo.offlens.com</b></td></tr>
</table>
<br><br>
</center>

</body>
</html>

index-2.html

<html>
<head>
<title>
vdo.offlens.com</title>
<style>
* { font-family: verdana; font-size: 10pt; COLOR: gray; }
b { font-weight: bold; }
table { border: 1px solid gray;}
td { text-align: center; padding: 25;}
body {
background-color: #333333;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body>
<center><p>
<script type='text/javascript' src='http://www.offlens.com/vdo/swfobject.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
var so = new SWFObject('http://www.offlens.com/vdo/player.swf','mpl','800','338','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://www.offlens.com/vdo/offlensplaylist.xml');
so.addVariable('backcolor','333333');
so.addVariable('frontcolor','EEEEEE');
so.addVariable('lightcolor','CCCC00');
so.addVariable('screencolor','000000');
so.addVariable('playlistsize','200');
so.addVariable('playlist','right');
so.write('mediaspace');
</script>
<br><br>
<br><br>
<table>
<tr><td>This is a placeholder for the subdomain <b>vdo.offlens.com</b></td></tr>
</table>
<br><br>
</center>

</body>
</html>

offlensplaylist.xml

<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/" version="1">
<trackList>
<track>
<creator>OFFLENS.com</creator>
<title>TEST 1</title>
<location>http://www.offlens.com.com/vdo/video.flv</location>
<image>http://www.offlens.com/vdothumb/test1.jpg</image>
<info>info info ????????</info>
</track>
<track>
<creator>OFFLENS.com</creator>
<title>TEST 2</title>
<location>http://www.offlens.com.com/vdo/hwm-TK-1280720-01.flv</location>
<image>http://www.offlens.com/vdothumb/test1.jpg</image>
<info>info info ????????</info>
</track>
</trackList>
</playlist>

Test Single play at http://www.offlens.com/vdo/index.html
Test Multiply playlist at http://www.offlens.com/vdo/index-2.html

Thank you for Big HELP,

Best Regards,
OFFLENs

Bingo !

Now I tried to Fix my problem already.

just remove http://www.domain.com/.... just fill in my video name.

like this :

<track>
<creator>OFFLENS.com</creator>
<title>TEST 1</title>
<location>video.flv</location>
<image>test1.jpg</image>
<info>info info ????????</info>
</track>

By the way, script cannot play everthing that contain in sub folder.

THANK YOU VERY MUCH !!!

Best Regards,
Offlens

 
Your player with the playlist works for me. Both videos play.

However, your server is VERY slow and is still mis-configured — the MIME type for FLV files is incorrect.

Dear Craterscore,

Thank you very much for your support.

I'll check error from server then,

You said : "Your player with the playlist works for me. Both videos play."

Is that work with full path or just filename.flv ?

Best Regards,
Offlens

 
Works with this playlist:

<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/" version="1">
  <trackList>
    <track>
      <creator>OFFLENS.com</creator>
      <title>TEST (FLV)</title>
      <location>video.flv</location>
      <image>test1.jpg</image>
      <info>info info ????????</info>
    </track>
    <track>
      <creator>OFFLENS.com</creator>
      <title>Tik-Yod Engagement (FLV)</title>
      <location>hwm-TK-1280720-01.flv</location>
      <image>test1.jpg</image>
      <info>info info ????????</info>
    </track>
    <track>
      <creator>OFFLENS.com</creator>
      <title>Tik-Yod Reception (MP4)</title>
      <location>hwm-TK-720405-22.mp4</location>
      <image>test1.jpg</image>
      <info>info info ????????</info>
    </track>
  </trackList>
</playlist>

 
The origin of a relative URL for FLV files is the location of player.swf.

The origin of all other media files is the location of the HTML document that the Flash content is embedded in (index-2.html).

So the relative URL for a FLV file is different than the relative URL for an MP4 file unless they are in the same directory as the Flash movie file (player.swf).

The origin of a relative URL for FLV files is the location of player.swf.

The origin of a relative URL for all other media files is the location of the HTML document that the Flash content is embedded in (index-2.html).

So the relative URL for a FLV file is different than the relative URL for an MP4 file unless they are in the same directory as the Flash movie file (player.swf).