Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

create my xml playlist to work with flv player


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

100 Community Answers

JW Player

User  
0 rated :

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:bc.. <?xmlversion='1.0'encoding='UTF-8'?>
<playlistversion='1'xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>Artist</creator>
<title>Song1</title>
<location>http://my.domain.com/path-to-file/song1.mp3</location>
</track>
<track>
<creator>Artist</creator>
<title>Video1</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:bc.. <creator>Artist</creator>
with this:bc.. <creator>Robert</creator>
to change the creator's name.

JW Player

User  
0 rated :

Then your player code would look somethng like this:bc.. <scripttype="text/javascript"src="http://www.geocities.com/go_robertboyer/TriUnityDreamTeam/swfobject.js"></script>

<divid="player">Thistextwillbereplaced</div>

<scripttype="text/javascript">
varso=newSWFObject('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:bc.. <image>http://my.domain.com/path-to-file/*preview.jpg*</image>
The player will resize them to fit the playlist (60x40).

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

bc.. "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:bc.. so.addVariable('file', 'http://www.geocities.com/go_robertboyer/TriUnityDreamTeam/*playlist.xml*');

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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...

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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?

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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;

bc.. <?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> *(the asterisk's are replaced with numbers) *
<identifier>agent_outro.flv</identifier> *(I read with the Red5 server, you need to add ".flv")*
<meta rel="type">rtmp</meta>
</track>
</trackList>
</playlist>



Here is the PHP code so far;


bc.. <!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!

JW Player

User  
0 rated :

Please see the tutorial here: [url=http://www.jeroenwijering.com/?item=Embedding_Flash]*EMBEDDING FLASH*[/url] specifically the section titled *Flashvars problems*bc.. 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.

JW Player

User  
0 rated :

@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?

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

@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)

JW Player

User  
0 rated :

@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: bc.. 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!

JW Player

User  
0 rated :

Im not sure, if Im 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 doesnt 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 Im 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 dont know much about coding, so I hope, someone can help me.
Thanks a lot.

JW Player

User  
0 rated :

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:

bc.. <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:


bc.. <?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.

JW Player

User  
0 rated :

your playlist is missing the two closing tagsbc.. <trackList>
</playlist>

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

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?

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

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.

bc.. <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;
bc.. s.addVariable("file",theFile);

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

Hope this helped someone!

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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:
bc.. <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.

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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: bc.. http:/domain/path/file.flv

JW Player

User  
0 rated :

I see. Thanks.

JW Player

User  
0 rated :

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...

JW Player

User  
0 rated :

no ' ' around the urls! - missing / in </trackList> bc.. <?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>

JW Player

User  
0 rated :

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'?

bc.. <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>


bc.. <?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>

JW Player

User  
0 rated :

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: bc.. 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...

JW Player

User  
0 rated :

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!

JW Player

User  
0 rated :

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!

JW Player

User  
0 rated :

@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

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

@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

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

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

This:bc.. http://www.cruzsongs.com/mediaplayer.swf
is *NOT* the exact same domain as this:bc.. http://cruzsongs.com/playlist.xml
So add the *www* to the playlist URI.

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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?

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

yes I do have v3.15.

Thanks.

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

@Joe

I'm not sure if this will work, but give it a try and let me know:
bc.. <!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:
bc.. <a href="javascript:createplayer('*holyafteryouwithmonotrk2_001flv*', true)">Holy After You</a><br>



Look at the demo page and view page source to see how they made links here bc.. "http://home5.inet.tele.dk/nyboe/flash/mediaplayer/"


This is the example I assume you are following:
bc.. <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>

JW Player

User  
0 rated :

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

Do I need to create another one?

JW Player

User  
0 rated :

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.

?????

JW Player

User  
0 rated :

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




JW Player

User  
0 rated :

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.



JW Player

User  
0 rated :

@Joe

Glad you got it to work, but I still noticed that on this line
bc.. <a href="javascript:createplayer('holyafteryouwithmonotrk2_001flv', true)">Holy After You</a><br>

You need to change it to :
bc.. <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:
bc.. 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:
bc.. <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.

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

Hi guys,

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

Thanks.

JW Player

User  
0 rated :

bc.. 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 ;)

bc.. 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.

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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...

JW Player

User  
0 rated :

@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' : bc.. < ? 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 >

JW Player

User  
0 rated :

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!

JW Player

User  
0 rated :

to show the thumbnails in the playlist - set *thumbsinplaylist* to true - from the [url=http://www.jeroenwijering.com/?item=Supported_Flashvars]Supported Flashvars[/url]: bc.. *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: bc.. <?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>

JW Player

User  
0 rated :

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!

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

Hey guys,

i have some trubble with this!

That is my XML file:

bc.. <?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:
bc.. <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

JW Player

User  
0 rated :

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:bc.. 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""
to this:bc.. flashvars="height=300&width=450&*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&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 !!

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

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]:bc.. 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>".

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

thanks ajax for the info.

JW Player

User  
0 rated :

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!

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

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:
bc.. <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:
bc.. <?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

JW Player

User  
0 rated :

@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.

JW Player

User  
0 rated :

Hey,

yes thats the problem!
Thanks for your fast answer.

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

Phil

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

a galera do brasil que usa esse sistema e como eu, tem dificuldade no ingls;

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

JW Player

User  
0 rated :

@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

JW Player

User  
0 rated :

bc.. 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 v*3*.14 to v*3*.15 of the mediaplayer.swf. If so, yes, just overwrite the mediaplayer.swf file. Nothing else changed.

JW Player

User  
0 rated :

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!

JW Player

User  
0 rated :

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:
bc.. <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:
bc.. <?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?

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

Incredible! I need glasses urgently! :D

Thank you very much!

JW Player

User  
0 rated :

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 cant 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!

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

@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: bc.. 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]).

JW Player

User  
0 rated :

Life can be so easy sometimes!!

Thanks a mil it works now!

JW Player

User  
0 rated :

@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).

JW Player

User  
0 rated :

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

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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?

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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.

This question has received the maximum number of answers.