WordPress.org

Ready to get started?Download WordPress

Forums

JW Player for Flash & HTML5 Video
[Plugin: JW Player Plugin for WordPress] Playlist could not be loaded: XML could not be parsed or pl (21 posts)

  1. bretta
    Member
    Posted 3 years ago #

    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

  2. JW Player
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  3. bretta
    Member
    Posted 3 years ago #

    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

  4. JW Player
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  5. bretta
    Member
    Posted 3 years ago #

    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

  6. JW Player
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  7. bretta
    Member
    Posted 3 years ago #

    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?

  8. JW Player
    Member
    Plugin Author

    Posted 3 years ago #

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

  9. bretta
    Member
    Posted 3 years ago #

    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

  10. JW Player
    Member
    Plugin Author

    Posted 3 years ago #

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

  11. bretta
    Member
    Posted 3 years ago #

    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

  12. bretta
    Member
    Posted 3 years ago #

    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

  13. JW Player
    Member
    Plugin Author

    Posted 3 years ago #

    @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.

  14. bretta
    Member
    Posted 3 years ago #

    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

  15. SusanLocke
    Member
    Posted 3 years ago #

    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!

  16. SusanLocke
    Member
    Posted 3 years ago #

    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

  17. bretta
    Member
    Posted 3 years ago #

    Hi Susan. Are you getting 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?

    If so, then the only way I could get the playlists to work was to delete (or rename) the jwplayer.js file in the uploads and jw-player-for-wordpress folder. Mind you, I'm using the JW Player for wordpress plugin so I'm not sure how things are different for wordtube.

    This thread which I'm also participating in might help:
    http://bit.ly/g0Z3of

  18. SusanLocke
    Member
    Posted 3 years ago #

    Thanks Bretta. Got it working now - I'm using the JW-player-for-wordpress plugin now rather than wordtube. Just couldn't get the wordtube/jw player combo working at all so now over onto the plugin. The only thing I don't like it/can't yet figure out is how to "call up" a playlist directly. At the moment I'm clicking the Add Video function and accessing it that way. Seems a long way around.

    Thanks again
    Susan

  19. bretta
    Member
    Posted 3 years ago #

    Longtail, I've upgraded the player to v5.4.1530 and I'm still getting the error message "Task Queue failed at step 5: Playlist could not be loaded: XML could not be parsed or playlist was empty"

    The JW player plug for WP is still at v1.3.3 and according to the WordPress plugin directory was last updated 2010-11-18, not this year.

    It has been mentioned both here and on the longtail forum that this problem has been fixed and that there is a new release. Could you provide me with a link to the latest player/plugin where this problem is fixed?

  20. JW Player
    Member
    Plugin Author

    Posted 3 years ago #

    Hi bretta,

    The latest version of the plugin is 1.3.3 and it should have fixed your issue. If you're still having the issue then the fix was unsuccessful. Can you provide an updated link? I'll take another look.

    Thanks.

  21. bretta
    Member
    Posted 3 years ago #

    Hi

    the link is http://brettaplin.com.au/a-thousand-encores-the-ballets-russes-in-australia/

    however, I currently have the jwplayer.js file renamed as I need the player function for the moment while I work on the site. If this makes assessing the problem with the plugin difficult let me know.

    Brett

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic