Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-15 12:27:07

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

best way to embed jeroen's media player?

so i know two of his other widgets have been made into textpattern plugins(video and mp3) but the media player combines the two. i have not seen any textpattern plugins yet that feature playlist style media playback. ideally i wouldn’t even need to use a plugin as i just really need one instance of it and am not going to be attaching this to posts frequently. any ideas would be great.

http://www.jeroenwijering.com/?item=JW_Media_Player

Offline

#2 2007-09-15 17:15:49

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: best way to embed jeroen's media player?

one way after embedding it via swfobject would be to have it read your track data from a ‘page’ that just has the xml information in it. it wont be pretty to edit (you’d still have to sift through the simple xml stuff like <track>, <title>, <location> etc etc) but at least you wouldn’t have to update an actual file and upload it all the time.

so basically, one way you could do it would be:

1) embed the media player via swfobject
2) add a section called ‘playlist’
3) create blank ‘page’ called ‘playlist.xml’ (or whatever you want) and paste in your xml info
4) assign the section you just created with the page (‘playlist.xml’)
5) edit the mediaplayer attributes to read xml data from your page (ie so.addVariable(‘file’,’/playlist’)

gadslkdsa god i hate textile i'm sure there are some other simple(r) methods you could try as well, especially if you dont want to add a superfluous section to your admin area.

Last edited by iblastoff (2007-09-15 17:26:59)

Offline

#3 2007-09-16 05:32:40

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: best way to embed jeroen's media player?

hey thanks for the info – i started out by putting the player on the page, a first big step. but i used negative margins to get it where it is so this doesn’t show up in IE7
mrtunes.ca
i’m quite the CSS hack

as for the method you suggest, yeah i’ll have to think about trying it. thankfully i have a test site now where i can actually play with ideas before implementing them.

Last edited by mrtunes (2007-09-16 05:33:15)

Offline

Board footer

Powered by FluxBB