CodeIgniter Forums
JW Media Player and loading playlists - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: JW Media Player and loading playlists (/showthread.php?tid=7057)



JW Media Player and loading playlists - El Forum - 03-22-2008

[eluser]Billy Khan[/eluser]
I am using Jw Media player (http://www.jeroenwijering.com/?item=JW_FLV_Media_Player
to play a list of flv and mp3 files.

To get them in a list below the player, you have to serve the full paths to them in an xml file. I have written the code that generates the xml as this path:

/xml/mediaplaylist

this works fine. The problem is that the player adds a unique random number on the end of the request. So what i end up with is:

/xml/mediaplaylist?123

This results in a "page not found". I have messed around with routes.php without luck. Some testing has come up with the following:

/xml/mediaplaylist?123 - page not found
/xml/mediaplaylist? - works
/xml/mediaplaylist - works

Simply, how do i get CI to ingore the question mark and everthing after it?

My attempts in routes.php were:
$route['xml/mediaplaylist/?:num'] = "c_utils/build_media_xml";
$route['xml/mediaplaylist/\?:num'] = "c_utils/build_media_xml";

Any ideas?


JW Media Player and loading playlists - El Forum - 03-23-2008

[eluser]Billy Khan[/eluser]
Any ideas? How do i route urls with question marks?


JW Media Player and loading playlists - El Forum - 04-18-2008

[eluser]Billy Khan[/eluser]
I assume from there being no responses that this isnt possible? Surely there must be a way of ignoring querystrings. Or have i not explained myself properly.... help?


JW Media Player and loading playlists - El Forum - 04-18-2008

[eluser]xwero[/eluser]
you need to set the uri_protocol to PATH_INFO and the enable_query_strings to TRUE and you should be able to work with the url you provided.