WordPress.org

Ready to get started?Download WordPress

Forums

HTML5 jQuery Audio Player
[resolved] Player not playing in Firefox 15.01 (11 posts)

  1. styzer
    Member
    Posted 1 year ago #

    Hi,

    I have installed the player and customized it to my needs. However, strangely, it's not playing in Firefox, although it's playing in IE 9.

    http://www.herecomethesixers.com/

    Anything I need to know? Any fix?

    Thanks!

    Andre

    http://wordpress.org/extend/plugins/html5-jquery-audio-player/

  2. Maeve Lander
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Andre, haha just saw this thread now - have answered you twice in other threads...

    Basically you just need to work through the standard list of things to try to isolate the error as this is something specific to your site.

    However, I think the most likely culprit is jQuery conflict... I can see on that page you have 3 different versions of jQuery being called. Have a read about standard noConflict jQuery replacement - once you identify the hardcoded jQuery you can use this method to fix it.

  3. styzer
    Member
    Posted 1 year ago #

    You're almost there!

    Could you point me to an example of code? We don't all have this level of knowledge. I have index.php and other files I can modify, and a bunch of *.js files in the library folder, but :

    - what do I modify?
    - what do I replace it with?

    BTW, in the theme folder, the file: theme-options-custom.js had typos. It read lable instead of label. So it's possible we have more problems.

    Thanks!

    Andre

  4. styzer
    Member
    Posted 1 year ago #

    Hi,

    Here is the JSHint report on jquery.jplayer.js. Does that help?

    Errors:
    
        Line 16: /*jshint asi:false, bitwise:false, boss:false, browser:true, curly:true, debug:false, eqeqeq:true, eqnull:false, evil:false, forin:false, immed:false, jquery:true, laxbreak:false, newcap:true, noarg:true, noempty:true, nonew:true, nomem:false, onevar:false, passfail:false, plusplus:false, regexp:false, undef:true, sub:false, strict:false, white:false */
    
        Bad option: 'nomem'.
    
        Line 1553: // Enables use: options(). Returns a copy of options object
    
        Mixed spaces and tabs.
    
        Line 1561: // Enables use: options("someOption") Returns a copy of the option. Supports dot notation.
    
        Mixed spaces and tabs.
    
        Line 1581: // Enables use: options("someOptionObject", someObject}). Creates: {someOptionObject:someObject}
    
        Mixed spaces and tabs.
    
        Line 1582: // Enables use: options("someOption", someValue). Creates: {someOption:someValue}
    
        Mixed spaces and tabs.
    
        Line 1583: // Enables use: options("someOptionObject.someOption", someValue). Creates: {someOptionObject:{someOption:someValue}}
    
        Mixed spaces and tabs.
    
        Line 1598: // Otherwise enables use: options(optionObject). Uses original object (the key)
    
        Mixed spaces and tabs.
    
        Line 893: var ct = 0, d = 0, cpa = 0, sp = 0, cpr = 0;
    
        'd' is defined but never used.
    
        Line 1309: videoPlay: function(e) { // Handles clicks on the play button over the video poster
    
        'e' is defined but never used.
    
        Line 1539: currentTime: function(e) { // Handles clicks on the text
    
        'e' is defined but never used.
    
        Line 1542: duration: function(e) { // Handles clicks on the text
    
        'e' is defined but never used.
    
        Line 1545: gui: function(e) { // Handles clicks on the gui
    
        'e' is defined but never used.
    
        Line 2089: methods = $.jPlayer.emulateMethods;
    
        'methods' is defined but never used.
  5. Maeve Lander
    Member
    Plugin Author

    Posted 1 year ago #

    Um... not really sorry! This plugin is based on jPlayer, so the script you're referring to there is part of the jplayer. If there's a bug somewhere in the plugin causing the ff issue for you then its much more likely in some of the code that I wrote not the code the jplayer guys wrote! ;-p

    But honestly I think it most likely that the problem is a conflict in your theme. The fact that it's working for 10,000+ users on all browsers is a pretty good indication that the plugin itself is pretty solid. Now obviously some issues do only appear in a really specific set of circumstances so there still could be something in the plugin contributing to the problem... but it's almost certainly something you need to fix in the theme, not in the plugin files.

  6. styzer
    Member
    Posted 1 year ago #

    Thank you for the reply... !

    I'm curious to know how sstubbs has something to share on how she fixed the player on her redsummer site, actually. It's working now.

    Darn it's so close I can smell the maple syrup!

  7. styzer
    Member
    Posted 1 year ago #

    The solution to my problem was simple, for someone who knows about these things.
    I asked on WPQuestions.com and here is the reply hat was given to me. I did what was suggested, and now the player is working in FF!

    "The music player you are using is playing .ogg file format which is treated as html by firefox i doubt... Add the following to your .htaccess file : AddType audio/ogg oga ogg

    I did insert this into my htaccess file within the WordPress tags (right before </IfModule> # END WordPress), saved and uploaded via FTP.

    I know this will help someone else, as well as the author, so I had to share the solution.

    Regards,

    Andre

  8. styzer
    Member
    Posted 1 year ago #

    The solution to my problem was simple, for someone who knows about these things.
    I asked on WPQuestions.com and here is the reply hat was given to me. I did what was suggested, and now the player is working in FF!

    "The music player you are using is playing .ogg file format which is treated as html by firefox i doubt... Add the following to your .htaccess file : AddType audio/ogg oga ogg

    I did insert this into my htaccess file within the WordPress tags (right before </IfModule> # END WordPress), saved and uploaded via FTP.

    I know this will help someone else, as well as the author, so I had to share the solution.

    Regards,

    Andre

  9. styzer
    Member
    Posted 1 year ago #

    One thing is strange, is that the file playing sounds distorted, but it shouldn't be. And now when I open the page in IE9, it's all messed up, and the player isn't working now in IE.

    Sorry, I was so happy but although the file is playing in FF, it's distorted, and the site is broken in IE9. So it's not solved.

    Back to my cave...

  10. Maeve Lander
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks Styzer I'm glad it's fixed. Actually this MIME type issue is really common... pretty sure its the first solution I usually suggest! ;-p

    I'm really sorry I must have missed suggesting it earlier to you - because you have posted in a bunch of threads on the forum here I guess I must have assumed you already tried the MIME types in .htaccess because I posted it in most threads as a first step to resolving issues!

    Sorry!

  11. pilixonis
    Member
    Posted 10 months ago #

    Hi i have this post and trying to embed html5 player but apparently doesn't work on any browser. Is there something i am missing?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic