Welcome Guest, Not a member yet? Register   Sign In
Serving XML file to videoplayer fails
#1

[eluser]mvdg27[/eluser]
Hi,

I'm working on a solution to display video's on a website, using a videoplayer created by Jeroen Weijering (jeroenweijering.com). This player accepts XML files as a playlist. Now I'd like to dynamically create XML files from my database with CodeIgniter.

The XML is correctly created, but fails to load in the player. When I use a single php page with direct DB access everything works fine. Also when I copy the output of my script to an xml file and point to that, no problem occurs. So the script is correct, I imagine. I'm thinking it may be a headers problem? Or the player doesn't understand the url I'm supplying.

Anyway, the code I use to create the XML file:
Code:
// database stuff her ... captures result query in data['videos']

$charset = "utf-8";
$mime = (stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) ? "application/xhtml+xml" : "text/html";

$this->output->set_header("content-type:$mime;charset=$charset");
$this->load->view('xml', $data);

And my reference to the playlist file in the javascript
Code:
s1.addVariable('file','<?=site_url()?>/player/play/1/10');

Hope anyone has an idea on how to solve this!

Cheers, Michiel


Messages In This Thread
Serving XML file to videoplayer fails - by El Forum - 04-17-2008, 04:33 AM
Serving XML file to videoplayer fails - by El Forum - 07-10-2009, 04:38 AM
Serving XML file to videoplayer fails - by El Forum - 07-10-2009, 04:46 AM
Serving XML file to videoplayer fails - by El Forum - 07-10-2009, 05:15 AM
Serving XML file to videoplayer fails - by El Forum - 07-10-2009, 05:20 AM
Serving XML file to videoplayer fails - by El Forum - 07-10-2009, 05:23 AM
Serving XML file to videoplayer fails - by El Forum - 07-10-2009, 05:25 AM
Serving XML file to videoplayer fails - by El Forum - 07-10-2009, 05:35 AM
Serving XML file to videoplayer fails - by El Forum - 07-10-2009, 05:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB