[pmwiki-users] [FlashMediaPlayer] How to configure fwplayer to show a playlist

Martin Kerz martin at kerz.org
Fri Jan 4 05:08:38 CST 2008


Dear Dominique,

thanks a lot for your advice. That's one configuration I already tried  
and it unfortunately doesn't work, yet. I have the impression that  
there is something missing in the embed code. Something that tells the  
mediaplayer that it should display the title list of the playlist. On  
the one hand, I don't know the veriable to set to display the track  
list, on the other hand, I don't know how to implement it in your  
recipe.

To better illustrate what I mean, I attached two screenshots.

This what I want:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: want.png
Type: image/png
Size: 40939 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20080104/e3dc8eed/attachment-0002.png 
-------------- next part --------------



This is what I get:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: get.png
Type: image/png
Size: 26888 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20080104/e3dc8eed/attachment-0003.png 
-------------- next part --------------



As you can see, everything works just fine, except for the playlist. :-/

Do you have any further idea?

Thanks a lot in advance.


Martin


> On Jan 4, 2008 9:59 AM, Martin Kerz <martin at kerz.org> wrote:
>> Hi,
>>
>> I implemented the FlashMediaPlayer recipe in my latest project.  
>> Everything
>> works fine, even playlists. One thing is not working though. I want  
>> to
>> configure the Jeroen Wijering player that it displays all tracks of  
>> the
>> playlist somewhere. I tried it for hours now, but don't know how to
>> configure it that way. Does anyone know what I should do?
>>
>> I tried it with the setup wizard
>> (http://www.jeroenwijering.com/extras/wizard.html), but don't  
>> really know
>> which variable is the right one, and, if I could find the right  
>> one, how to
>> implement it in the FlashMediaPlayer recipe.
>>
>> In the setup wizard I tried the option "Playlist to the right, all  
>> MP3's"
>> and the swfobject code I get is:
>>
>>
>> <script type="text/javascript" src="swfobject.js" /> <div  
>> id="player">This
>> text will be replaced</div> <script type="text/javascript"> var so  
>> = new
>> SWFObject('mediaplayer.swf','mpl','320','140','7');
>> so.addParam('allowfullscreen','true');
>> so.addParam('allowscriptaccess','always');
>> so.addVariable('file','http://www.jeroenwijering.com/upload/statistics.xml') 
>> ;
>> so.addVariable('height','140'); so.addVariable('width','320');
>> so.addVariable('displaywidth','120'); so.write('player'); </script>
>> I suspect the "mpl" in line 6 to be the necessary option. But how  
>> do I tell
>> it through the recipe? :-/
>>
>> Thanks a lot for you help!
>>
>
> The FlashMediaPlayer uses its own incarnation of the swfobject
> feature. You should select the "embed code" version (via the link
> above the code div itself), to get the following code:
>
> <embed src="http://www.jeroenwijering.com/embed/mediaplayer.swf"
> width="320" height="140" allowfullscreen="true"
> allowscriptaccess="always"
> flashvars="&file=http://www.jeroenwijering.com/upload/statistics.xml&height=140&width=320&displaywidth=120 
> "
> />
>
> which could be taylored into following configuration param:
>
> $FlashMediaPlayerInfo['jw'] = array(
>  'swf' => "jw_media_player/mediaplayer.swf",
>  'objparms' => array(
>    'flashvars' => array("&file=\$url",
>                         "\$parms"),
>    'allowFullScreen' => "true",
>    'allowScriptAccess'=> "always"),
>  'defaults' => array('align' => 'middle',
>                      'width' => 320,
>                      'height' => 140,
>                      'displayWidth' => 120));
>
> (not fully tested)
> -- 
> Dominique

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2434 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20080104/e3dc8eed/attachment-0001.bin 


More information about the pmwiki-users mailing list