Menu

#122 Flowplayer does not accept filename with & (ampersand)

open
nobody
None
5
2008-09-15
2008-09-15
ullix
No

using flowplayer 2.2.4 in the simple configuration with flowembed. The videoFile is provided as an php script. This works well e.g. using:
flashembed("divexample",
{
src:'FlowPlayerClassic.swf',
width: 640,
height: 502
},
{config: {
autoPlay: true,
videoFile: 'album.php?mode=video',
initialScale: 'scale',
useNativeFullScreen: true
}

and album.php is simply:
<?php
// ignore all parameters passed by GET
readfile("/home/testuser/myvideo.flv");
?>

but when I change the videoFile to contain an & (ampersand), the flowplayer window remains black, e.g.:
videoFile: 'album.php?mode=video&album=myalbum'

simply adding & seems to be enough to kill it. Modifications with &amp; don't help.

I can work around it in php, but it should not behave like that.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB