I managed to get JWplayer 5.7 going with playlist I load into player.
Both on PC's and on my iPhone (IOS 5.x).
So far i am fine.
Then I wrote a php script to read a directory with MP3's. This script exactly (as far as I know) generates the same XML file as the "hardcopy" of the file on the server.
On the PC it plays fine, on the iPhone not. The playlist on the iPhone is empty. It seems to me that it loads in flash on the PC and does not change to html5 on the iPhone. Although the playlist.xml file (hardcoded or generated) show exactly the same in the browser (view source).
<script type='text/javascript'>
jwplayer('mediaspace').setup({
// 'playlistfile': './media/music/Arena - Immortal/playlist.xml',
'playlistfile': './dir_list/playlist.php',
'flashplayer': './jwplayer/player.swf',
'playlist.position': 'right',
'playlist.size': '400',
'bufferlength': '5',
'mute': 'false',
'controlbar': 'bottom',
'width': '400',
'height': '200',
'repeat' : 'list',
'volume' : '100',
'stretching' : 'none',
'quality' : 'false',
'lightcolor' : 'CCCCCC',
'frontcolor' : 'FFFFFF',
'logo.hide' : 'false',
'shuffle' : 'false',
'skin' : './jwplayer/stylish_slim.swf',
'shownavigation': 'true',
});
</script>Notice the playlistfile lines.
'playlistfile': './media/music/Arena - Immortal/playlist.xml',Does work.
'playlistfile': './dir_list/playlist.php',Does not.
playlist.php generates the playlist file, see:
www.2rsweb.nl/progstreaming_test/dir_list/playlist.php (then view source).
The player can be found at:
www.2rsweb.nl/progstreaming_test
Anyone can give me a hint?
Something I like to add:
check url www.2rsweb.nl/progstreaming_test/indexok
to see the version which does work, because it uses the playlist.xml file.