WordPress.org

Ready to get started?Download WordPress

Forums

MP3-jPlayer
[resolved] Works on my machine at home - doesn't work on my boss's machine at work! (6 posts)

  1. DonaldScott
    Member
    Posted 1 year ago #

    Hello Jplayer users and developers -

    Last night I installed the JPlayer plugin on my WordPress site and uploaded some audio clips on a page, and it was working fine on my machine (Chrome Version 25.0.1364.97 beta-m, Windows 7).

    However my boss called me from work this morning and he says it's not playing on his machine (also a fairly recent version of Chrome, on Windows XP).

    He clicks the arrow and sees the 'cursor' sliding along the music clip (we're just using the default player layout for the moment), but he doesn't hear any audio. (His audio is "on" because he's able to go to other sites and listen to audio.)

    We've watched YouTube on his machine in Chrome and it works fine. I'm not sure if his Chrome is using Flash or HTML5 - I'm pretty sure it has Flash installed, and his Chrome probably also has HTML5.

    Now I've lost faith that this JPlayer plugin is going to be able to work across all types of machines. I tested it in a recent version of Chrome on Windows 7 at home - and then it doesn't work on a recent version of Chrome on Windows XP on my boss's machine (which has Flash and probably HTML5)??

    I don't get it. How can I possibly test for this scenario? How can I invite users to my website and be sure that (as long as they have a reasonably modern platform), JPlayer will work? Is adding MP3 to a WordPress site gonna be like brain surgery, like rocket science?

    JPlayer seems like it's one of the more mature MP3 players out there. It's been around for many years and it supports most platforms. That's why I picked it. It seemed like a sure thing.

    Now I don't know how much I'm going to have to test it in order to be sure that it actually works on most platforms.

    Of course, I'm happy to test all the typical combinations of hardware (PC, Tablet, Smartphone) operating systems (Windows, iOS, Android), and media support (Flash, HTML5) - but here we have a case of two very similar platforms, my machine running the latest (beta) Chrome on Windows 7, and my boss's machine on WinXP running a fairly recent version of Chrome (because I assume his Chrome has been automatically updating itself over the past few months, as Chrome tends to do)... and yet, the JPlayer plugin works on my Windows/Chrome combo and not on his.

    I am at a loss as to what I should look for in this case. Even if I make my boss upgrade his Chrome to the absolute latest version (the same as mine), that doesn't really solve the problem, does it? Because, remember: we need to be able have some sort of confidence that JPlayer will run on most "typical" platforms - and because of this early glitch, I no longer have this confidence.

    By the way, this implies that if fixing this involves upgrading my boss's fairly-modern browser, then we can't really consider that to be a real "solution". Because, ideally, the JPlayer plugin should "just work" on any typical platform in the first place - with no need to upgrade the browser (as long at it's a fairly modern browser). So I really really hope that this problem is due to some coding error on my part.

    The shortcode I used on the Page in WordPress is as follows:

    [mp3j title="Ele precisa de um m├ędico." track="He-needs-a-doctor.mp3"]

    Thank you for any help on how to resolve this - hopefully without upgrading the browser.

    Here is a page from my site (an English learning site in Brazil), with some audio clips:

    http://gotakefive.com/checkup-online/ele-precisa-de/

    plugin:

    http://wordpress.org/extend/plugins/mp3-jplayer/

  2. DonaldScott
    Member
    Posted 1 year ago #

    PS - I just tested it now on my tablet (Google Nexus 7 running Android 4.2.1, using the built-in Chrome browser) and JPlayer worked fine.

    So... I guess there must be something wrong with my boss's browser.

    But his browser doesn't seem like it would be that old. He's on WinXP using Chrome (which probably upgrades itself periodically in the background), and he watches YouTube all the time.

    So he's using what would normally be considered a "reasonably modern platform" and if I have to upgrade his browser in order to get JPlayer to work, then it seems likely that JPlayer might not run on many other platforms out there.

  3. DonaldScott
    Member
    Posted 1 year ago #

    PPS - I was just on the phone with my boss, and he emailed me his version of Chrome:

    Version 24.0.1312.57

    I think that's the latest stable version, and he often watches YouTube on his Chome (using Flash or HTML5, I don't know).

    So it seems like JPlayer should also work on his Chrome - but it doesn't :(

  4. simon.ward
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Donald, does the demo page work on your boss's machine?

  5. DonaldScott
    Member
    Posted 1 year ago #

    Yeah, the demo page plays the audio fine on my boss's machine.

    So... I guess there's something conflicting between JPlayer and the other plugins on my WordPress page?

    But only in the case of certain machines?

    Or maybe I need to clear the cache or the browsing history on my boss's machine?

    My WordPress site has just a few plugins:
    - a theme from CyberChimps called iFeature Pro 5
    - WPML for i18n
    - two quiz plugins: MTouch Quiz and SlickQuiz
    - Nginx Helper

    Also, my webserver is nginx.

    Maybe there's some conflict between the JavaScript code added by those plugins, and the JavaScript code added by JPlayer?

    Or maybe there's something weird that nginx is doing?

    I went into the nginx.conf file and searched for 'mp3' and didn't find it.

    The closest thing are these lines:

    location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
                    access_log off; log_not_found off; expires max;
            }

    In the nginx.conf file, the operator ~* does case-insensitive matching on the following regex.

    It seems strange to me that 'mp3' is not one of the suffixes in this nginx.conf file.

    It doesn't seem like the problem would involve the nginx.conf file - since the audio plays fine on my machine (Win7+Chrome25) and on my tablet (Android 4.2.1 + built-in Chrome), as well as on Firefox and IE on various machines tested.

    So I don't think I should start messing with the nginx.conf file. (Except perhaps to add 'mp3' to the above list - it seems like it's the only extension missing.)

    I found some discussion online about people trying to stream mp3 with nginx:

    http://serverfault.com/questions/233068/can-you-stream-an-mp3-file-with-nginx

    I'm not sure how relevant that might be to this situation.

    Thanks for any help.

  6. simon.ward
    Member
    Plugin Author

    Posted 1 year ago #

    >> So... I guess there's something conflicting between JPlayer and the other plugins on my WordPress page?

    There seems to be something conflicting, but not necessarily the player. This may just be a symptom.

    >> But only in the case of certain machines?

    Possibly. The fact that demo page is ok suggests that something on the site is causing a subtle problem, but the conflict could be anything.

    >> Or maybe there's something weird that nginx is doing?

    Tbh the server is unlikely to be the issue here.

    There's some help at the bottom of this thread for pin pointing a conflict.

    Let me know how it goes.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic