Hello Thanks for this great module

I try to use it in my website, to add mp3 playlist to play with wijering mediaplayer i try this code but it give me an error, i want to add a list of mp3 list to play with a background image and example :

<?php print swf('song1.mp3', 'song2.mp3', SWFDEFAULT, "imageback.jpg"); ?>

it doesn't work for me

Using filter:
<swflist
  files="My song=song1.mp3&&My image=image.jpg&&My Movie=movie.flv"
  player="wijering_mediaplayer"
  width="550" height="250"
  displaywidth="300"
>

this filter doesn't work either

Thanks a lot

Comments

lionstone’s picture

Have you tried printing to an XML file?

i put this in the input:

 print swf('movies.xml', SWFDEFAULT,  array(
    'displaywidth' => '300', 'autostart' => 'no',      
  )
);

and print to an xml file ( like this: )

playlist version="1">
Sample XSPF Playlist
My playlist/


Sample playlist for the players/rotator in XSPF format

− Video1
Unknown
http://www.colingo.org/abc/files/get_video.flv
ttt
− Video2
Unknown
http://www.colingo.org/abc/files/get_video2.flv
Info
− My name is
http://www.colingo.org/abc/files/my_name_is.flv
Eminem
Hi, My name is... captions.xml

Just change the .flvs to .mp3's?
Hope that helps (It took me a while to figure out!)

lionstone’s picture

Whoops, I made a typo; here, see the working xml file at http://www.colingo.org/abc/files/movies.xml

Much luck

toma’s picture

Hi

Thanks for your quick reply, i am trying your solution with xml playlist, but it doesn't seems to work

I have my media file in other server! i set the directory in my setting page, my xml file must be in the server media location, i do copy the xml file in both my server and my media server, and it doesnt work!

toma’s picture

i view the code source of my page

<div class="swftools-wrapper wijering-mediaplayer "><div class="swftools"><object width="400" height="320" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">

<param name="allowScriptAccess" value="sameDomain" />
<param name="movie"   value="http://www.biladi.ma/sites/all/modules/swftools/shared/generic/flash_media_player/mediaplayer.swf" />
<param name="wmode"   value="opaque" />
<param name="bgcolor" value="#FFFFFF" />
<param name="scale"   value="showall" />
<param name="quality" value="autohigh" />
<param name="align"   value="l" />
<param name="FlashVars"  value="displaywidth=300&autostart=yes&shuffle=true&usekeys=true&showdigits=true&showeq=true&showicons=true&thumbsinplaylist=true&width=400&height=320&overstretch=true&file=http%3A//www.mysite.org/media//playlist50cent.xml" />
<embed width="400" height="320" swliveconnect="default" src="http://www.mysite.com/sites/all/modules/swftools/shared/generic/flash_media_player/mediaplayer.swf" wmode="opaque" bgcolor="#FFFFFF" scale="showall" quality="autohigh" loop="false" menu="false" play="true" name="" base="http://www.mghrib.org/media/" salign="tl" FlashVars="displaywidth=300&autostart=yes&shuffle=true&usekeys=true&showdigits=true&showeq=true&showicons=true&thumbsinplaylist=true&width=400&height=320&overstretch=true&file=http%3A//www.mysite.org/media//playlist50cent.xml" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></div>

As you can see on my url

http%3A//www.mysite.org/media//playlist50cent.xml

when i past to the browser it gives me an error http%3A

Thank you

sime’s picture

toma, the players won't have a problem with the %3A (eg. http%3A//www.mysite.org/media//playlist50cent.xml) To review your playlist, just replace that link you showed to one with a colon to look like a normal address.

The filter example you showed should work (where you say "this filter doesn't work either"). You should play around with your input formats and make sure that drupal is not stripping your tags etc.

toma’s picture

Thanks for your reply, the flash player work, but doesn't play any of my movies, the movie work fine when i add .flv and it doesn't work when i add the code with xml playlist just the flash player try loading with no result, i am using php for the input filter because only administrator can post video to my web site ! could be something about permission !!! i have set 755 to the media directory

Thanks

sime’s picture

Please provide a link to an xml playlist. You can email me the link if you'd rather not put it public.

toma’s picture

Hi thanks for your reply, i make my xml playlist in local files at /files, and on playlist and i make full url to the media mp3 files and it works fine, its like the xml file need to be in 777 chmod directory in order to play the list,

<?php
print swf('hajah.xml', SWFDEFAULT,  array(
    'displaywidth' => '300', 'autostart' => 'no',     
  )
);
?>

This work fine for me, i just need to have a background image like the one i use with one mp3 file, this great module, just need some more examples

thanks a lot of your effort and work

sime’s picture

Yes, as a rule /files (or whatever your files directory is) is 777

Otherwise, I can see how a few more examples will help you. You should be able to do something as simple as:

<?php
$playlist = swftools_prepare_playlist_data(array('file1.mp3', 'file2.mp3', 'file3.mp3'));
print swf_list($playlist);
?>

I will verify that on the next release.

toma’s picture

Hi thanks for your reply, i setup my playlist and it works fine, but it doesn't play all the list, i set autostart to yes but stop by the first track and don't play all the playlist itself, the user must click the song to play, you can see an example on my french website

http://www.biladi.ma/musique/latifa-raafat-0

I am using this code to get the play

<?php
print swf('latifaa.xml', SWFDEFAULT, array(
    'displaywidth' => '0', 'autostart' => 'yes',     
  )
);
?>

Any idea how to play all my list automatically ?

Thanks for your help

sime’s picture

Try changing this line
'displaywidth' => '300', 'autostart' => 'no', 'repeat' => 'list'

Any flashvars can be set in this way.
http://jeroenwijering.com/extras/readme.html#playback

You should be able to set this to default in the admin settings, too. Check the playlist section at admin/media/swf/wijering

toma’s picture

Hi

thanks for your help, now i get it to work like i want

great job

sime’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)
Violet B’s picture

Did you manage to get it right? I hope some of the tips worked out.

Violet, IT Freelancer currently working on the Antifungal Online Pharmacies project.

Boyd M’s picture

I'm glad it worked out for you eventually. You did receive some great tips, seems to be lot of people with plenty of knowledge here.

Boyd, Programmer currently working on the how to lose 20 pound project.

toma’s picture

#15 and #16 are spam

hedac’s picture

clever spam... lol.. I hate spam.. they are still there more than 1 year later!