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 Nov 6, 2009

This thread is solved

Views: 2456     Replies: 7     Last reply Sep 19, 2010  
You must login first before you can use this feature

laughingbovine

Posts: 7

Registered:
Nov 6, 2009

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

Posted: Nov 6, 2009

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 Media ------------------- http://vizmu.com/

Posts: 576

Registered:
Nov 29, 2008

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

Posted: Nov 6, 2009

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

Registered:
Nov 6, 2009

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

Posted: Nov 7, 2009

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 Media ------------------- http://vizmu.com/

Posts: 576

Registered:
Nov 29, 2008

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

Posted: Nov 7, 2009

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

Registered:
Nov 6, 2009

ah.. found on forum

Posted: Nov 8, 2009

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: 25

Registered:
Jun 23, 2009

Damn

Posted: Nov 19, 2009

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.

joliet

Posts: 11

Registered:
Aug 18, 2010

a simple solution which seems to work for apostrophe in the playlist

Posted: Sep 16, 2010

Reply to: using an apostrophe in playlist title (with playlist plugin) causes flowplayer not to load, from laughingbovine
I have the same problem with apostrophe into the playlist of the flowplayer (which is in french, then full of apostrophes). As the apostrophe never works and breaks the flowplayer, even if writed in code, I just replace it by "simple guillemet", in text
& rsquo;
or in numeric
 & #8217; 
The two work perfectly fine in my page, for example, here is the code of one line of my playlist :
{url: 'sons/l-indomptee.mp3', title: 'L& rsquo;indomptée'}
Hope it will help !

And reediting : it seems to work so good that I even cannot show the code of characters... which is directly written. You have to delete the space just after the & into the codes. And the little square is well written with an & eacute;