JSON Playlist - What is wrong? (Projekktor Core)
Hi,
I'm after using the playlist feature. I've got a playlist in a XML file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<playlist>
<vid src="P_CULTURAL TV.f4v" />
<vid src="P_ANIMACION.f4v" />
</playlist>
It would be very useful for me to directly load the playlist from a XML file instead having to generate a JSON file, which would cause huge changes in my software. However, since the code for 'alternate-playlist.xml' shown at the end of the playlist docs is not published, I'm not able to adapt it (obviously I've already tried loading it directly).
Could anyone tell me how must I structure the XML file so the playlist can be loaded from the file? Or, if it's not possible, tell me why this doesn't work?:
[{"0":{"src":"video\/intro.mp4","type":"video\/mp4"},config: {
disablePause: true,
disallowSkip: true
}},{"0":{"src":"video\/intro.mp4","type":"video\/mp4"}}]I've written it as an adaptation of the server.php file.
This is my document.ready:
<script type="text/javascript">
$(document).ready(function() {
projekktor('#player_a', {
volume: 1,
enableFullscreen: true,
continuous: true,
playlist: [
{
0:{src:'playlist.php', type:'text/json'}
}
]
});
});
</script>
794 views
Complete thread:
- JSON Playlist - What is wrong? - Stoyicker, 2012-08-06, 22:48
![Open whole thread [*]](templates/default/images/complete_thread.png)
- JSON Playlist - What is wrong? - Stoyicker, 2012-08-07, 09:41
![Show preview […]](templates/default/images/ajax_preview.png)
- JSON Playlist - What is wrong? - sascha, 2012-08-07, 16:28
![Show preview […]](templates/default/images/ajax_preview.png)
- JSON Playlist - What is wrong? - Stoyicker, 2012-08-07, 17:46
![Show preview […]](templates/default/images/ajax_preview.png)
- JSON Playlist - What is wrong? - Stoyicker, 2012-08-07, 17:46
- JSON Playlist - What is wrong? - Stoyicker, 2012-08-07, 09:41
