WordPress.org

Support

Support » Plugins and Hacks » [Plugin: JW Player Plugin for WordPress] Playlist could not be loaded: XML could not be parsed or pl

[Plugin: JW Player Plugin for WordPress] Playlist could not be loaded: XML could not be parsed or pl

  • Hi.

    I’m using JW player plugin for wordpress (not wordtube) and while single files play fine, playlists result in the message “Task Queue failed at step 5: Playlist could not be loaded: XML could not be parsed or playlist was empty”. See an example here:
    http://brettaplin.com.au/all/a-thousand-encores-the-ballets-russes-in-australia/

    I know I’m using the plugin correctly and that it is caused by a specific conflict between the plugin and my template which is called Pendulum, (http://themeforest.net/item/pendulum-premium-wordpress-theme/113557) since the JW player plugin works fine on other themes I activate. Furthermore, I have tested Wordtube (since disabled) and this works fine with playlists on the Pendulum theme, so it is something specific to the way the JW player is embedded.

    When I use firebug, the only difference between my theme Pendulum, and any other theme in which playlists work is that my theme has ‘index.php?xspf=true&id=32’ rather than ‘index.php?xspf=true&#038:id=32’

    Can anyone point me in the right direction so that I can approach the theme developer with something concrete? I’m happy to experiment myself also but have no idea where to start.

    help!
    – Brett

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author JW Player
    Member

    @longtail-video

    Hi bretta,

    The issue here is that the generated playlist is actually an empty xml file. If I had to guess you probably forgot to hit save before hitting the insert playlist button. This has happened with other users which means I’ll need to revisit the UI since it’s not clear.

    Thanks.

    Hi LongTail.

    No, I certainly pressed save. In fact, as I mentioned, if I activate an alternate theme the JW player plays the playlist I saved just fine.

    It’s only an issue with the Pendulum theme. Most other simple themes seem to be fine, however the JW plugin seems to be embedded in such a way that makes it susceptible to the problem I described above (Wordtube for example is unaffected)

    In an update, I discovered that embedding an external playlist works ie [jwplayer file=”http://path/to/playlist.xml”] but embedding the wordpress generated playlist does not ie [jwplayer playlistid=”32″]

    Again, I stress that I’m using the plugin correctly because if I swap to any of the simple bundled WP themes and refresh my webpage your plugin works as advertised.

    The pendulum theme is picture and music portfolio theme found at http://themeforest.net/item/pendulum-premium-wordpress-theme/113557. I can approach the dev to assist me but I need to know where to start.

    Brett

    Plugin Author JW Player
    Member

    @longtail-video

    Ah, my apologies.

    It looks like it has to do with the encoding of the URL used for the playlist. This encoding is breaking the URL and causing the playlist generation to fail.

    The plugin uses our new JW Embedder which URL encodes values passed into it for the convenience of our users. However, the pendulum theme is HTML encoding the value which is then getting URL encoded by our embedder causing it to break.

    I’ve encountered this problem before and actually have a fix for it in the development version of the plugin. There’s actually enough changes in the development version to warrant a minor release. We’ll run it through testing and try to get it out soon.

    Thanks.

    That’s great. I’ll certainly keep an eye out for the new release and report back.

    In the meantime, is there an earlier revision of the JW player plug that doesn’t use the new JW Embedder that I could use to get on with building my site? (I’d use wordtube but *much* prefer the JW SP interface and promise with respect to html5)

    Brett

    Plugin Author JW Player
    Member

    @longtail-video

    One thing you can try is deleting jwplayer.js from the wp-content/uploads/jw-player-plugin-for-wordpress/player/jwplayer.js. This gets rid of the embedder and causes the plugin to fallback to swfobject. Let me know if that works for you.

    Thanks.

    that worked, and all the functionality still seems to be there. Great.

    In that case I don’t understand actually what the jwplayer.js embedder does?

    Plugin Author JW Player
    Member

    @longtail-video

    The jwplayer.js file is the JWEmbedder which contains the HTML5 player and supports the fallback mechanism.

    Am I correct in understanding that the HTML5 player and fallback support is not yet functional in the JW Player WordPress Plugin in wordpress anyway?

    If so is there an ETA on this?

    Brett

    Plugin Author JW Player
    Member

    @longtail-video

    The HTML5 player and fallback feature has been implemented into the plugin.

    I should have amended this post since I tried the single track player on an iPhone and of course if worked perfectly. I was confused due to the problems with the playlist (solved in my case by disabling jwplayer.js which of course breaks the html5 fallback)

    Perhaps I should have asked when the fix you described above for the playlist breaking in certain themes is scheduled?

    Regards – Brett

    It looks like it has to do with the encoding of the URL used for the playlist. This encoding is breaking the URL and causing the playlist generation to fail.

    The plugin uses our new JW Embedder which URL encodes values passed into it for the convenience of our users. However, the pendulum theme is HTML encoding the value which is then getting URL encoded by our embedder causing it to break.

    I’ve encountered this problem before and actually have a fix for it in the development version of the plugin. There’s actually enough changes in the development version to warrant a minor release. We’ll run it through testing and try to get it out soon.

    Any estimate when you hope to release the fix you described above?

    Brett

    Plugin Author JW Player
    Member

    @longtail-video

    @bretta,

    Sorry for the delay. This fix should be available in the current version of the plugin now. Let me know if it helps you with the problem you’re having.

    Thanks.

    No I’m afraid I’ve already tried the latest v5.4.1530 and I still get the error message “Task Queue failed at step 5: Playlist could not be loaded: XML could not be parsed or playlist was empty” when using playlists.

    As before, the JW plugin with playlists works fine on other themes and using a single track. However on my theme using playlists I have to delete the jwplayer.js file for the player to correctly use playlists (of course then the embedding is compromised including the all important html5 fallback for iDevices)

    Cameron at Longtail mentioned he has seen this behavior before on certain complex themes and that a fix was in the works. Not yet as it seems.

    Keep me posted, I still am keen for this to work.

    Brett

    SusanLocke
    Member

    @susanlocke

    Sorry to but in on this conversation but I’m going crazy. I’ve just upgraded to WordPress 3.0.5 and now my JW Player isn’t being recognised by Wordtube. I’ve done a manual upgrade of WordPress in case there was a glitch in the automatic upgrade, plus reinstalled latest versions of Wordtube and JW Player. No go. I’ve tried both the JW-Player-FOR-Wordpress and the download from the LongTails site and ftp’d the unzipped files up.

    I feel I’m going mad that something that worked so well until the WordPress upgrade now appears to be stuffed.

    Is it just a straightout incompatibility associated with the WordPress upgrade? If so has anyone located a player/media manager plugin that manages playlists. I’ve got a significant media website for a youth program that has just gone belly up because of this problem.

    Any help would be appreciated. See http://www.wettmedia.org.au for the site – usual issue by the sound of the above. And obviously when logged in Wordtube is not seeing the player when you select a playlist or individual media file.

    I’ve tried changing permissions on folders, placing the player in a a range of locations – it always worked in the wp-content/uploads folder but no more.

    Help!

    SusanLocke
    Member

    @susanlocke

    Re my previous posting. As an interim measure I’m using JE-Player-For-Wordpress Plugin and am able to at least have all the video files playing out as individual files. Long list of files. But the playlist function is not working when inserted, although the functionality in managing the playlists seems fine.

    What suggestions to get the playlist working?

    Thanks
    Susan

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘[Plugin: JW Player Plugin for WordPress] Playlist could not be loaded: XML could not be parsed or pl’ is closed to new replies.