You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

using an apostrophe in playlist title (with playlist plugin) causes flowplayer not to load Created 2 weeks ago

This thread is solved

Views: 135     Replies: 5     Last reply yesterday 19:28  
You must login first before you can use this feature

laughingbovine

Posts: 3

Registered:
2 weeks ago

using an apostrophe in playlist title (with playlist plugin) causes flowplayer not to load

Posted: 2 weeks ago

I was creating a playlist with the playlist plugin, and one of my songs had an apostrophe in the title... the playlist plugin apparently does not like this.

heres the template i'm using...

<div class="derp">
    <div><a href="${url}">${title}</a></div>
</div>

and heres the playlist from the flowplayer config...

playlist: [
    { title : "Ain't Nobody", url   : 'aintnobody.mp3' },
    ...
]

(amongst other code and other playlist entries) causes the flowplayer element to show up all black (no player). Taking out the apostrophe makes everything run fine.

Oh, and another thing... the playlist plugin apparently doesn't work with only one playlist entry (still using templates in this case).

My guess is that it's a problem with the whole javascript templating thing you guys do.

Edge
Vizmu Movie Trailers @ http://vizmu.com/

Posts: 276

Registered:
Nov 29, 2008

» using an apostrophe in playlist title (with playlist plugin) causes flowplayer not to load

Posted: 2 weeks ago

Reply to: using an apostrophe in playlist title (with playlist plugin) causes flowplayer not to load, from laughingbovine
I just tested the playlist with only one entry and it worked.

Looks like you have an extra comma at the end of this line 'aintnobody.mp3' }, <-

playlist: [ 
    { title: "Aint Nobody", url: 'aintnobody.mp3' }

] 

As for the apostrophe, if php is inserting the title you may have to preg_replace the apostrophe. Its java specific not flowplayer in general. I think the object method would do the same thing though I haven't tested it so don't quote me on that.

laughingbovine

Posts: 3

Registered:
2 weeks ago

» » using an apostrophe in playlist title (with playlist plugin) causes flowplayer not to load

Posted: 2 weeks ago

Reply to: » using an apostrophe in playlist title (with playlist plugin) causes flowplayer not to load, from edge
The extra comma wasn't the issue... I had other playlist items afterwards. Also, wasn't using PHP. I tried using '&apos;' and others with the same result (still didn't work). I wound up creating the playlist manually.

Not sure why it wasn't not-working for you. I was able to reproduce reliably.

Edge
Vizmu Movie Trailers @ http://vizmu.com/

Posts: 276

Registered:
Nov 29, 2008

» » » using an apostrophe in playlist title (with playlist plugin) causes flowplayer not to load

Posted: 2 weeks ago

Reply to: » » using an apostrophe in playlist title (with playlist plugin) causes flowplayer not to load, from laughingbovine
Regarding single entry only in the playlist, The install snippet in your first post is incomplete. Please post the full flowplayer install code your using.

Apostrophe: You could try searching the forums http://flowplayer.org/search.html?q=apostrophe

I would help more with the apostrophe but I'm walking out the door. I'll poke around more when I return.

laughingbovine

Posts: 3

Registered:
2 weeks ago

ah.. found on forum

Posted: 12 days ago

Reply to: » » » using an apostrophe in playlist title (with playlist plugin) causes flowplayer not to load, from edge
this guy seems to have the same problem
http://flowplayer.org/forum/3/20389#post-27459

as i said, i wound up doing a 'manual' playlist a la..

<div id="playlist">
    <div href="a.mp3">AAA</div>
    <div href="b.mp3">BBB</div>
    <div href="aintnobody.mp3">Ain't Nobody</div>
    <div href="d.mp3">DDD</div>
</div>
and then..

$f("player").playlist("div#playlist");

This actually worked out better for me since I needed 2 playlists to link to the same Flowplayer, and it seems like taking the templating route would put the playlist all in one place.

Thanks for all your time and help.
- Geoff

dextr0us

Posts: 20

Registered:
Jun 23, 2009

Damn

Posted: yesterday 19:28

Reply to: ah.. found on forum, from laughingbovine
Unfortunately, manual playlists aren't an option for me. This sucks. Boo.

I have the same issue with any type of apostrophe.