Shop Forums JW Player 7 for WordPress Issue with Cloudflare RocketLoader on jwplayer 7 v 1.4.0

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2099
    hamzaaboufirass
    Participant

    Hello,
    I am having trouble loading the jwplayer on Safari.
    When inspecting source code, on google chrome browsers the script tag comes out as
    <script type=”text/rocketscript” data-rocketoptimized=”true”>
    which works fine.

    But on Safari the script tag for player is outputted as
    <script type=”text/javascript”>
    only which Cloudflare’s RocketLoader has an issue with.

    I tried to swap out line 671 on jwppp-functions.php to
    echo “<script data-cfasync=\”false\” src=\”$library\”></script>\n”;

    but got errors on output.

    Please provide me with a solution,

    Thanks,

    #2101
    hamzaaboufirass
    Participant

    So I did a bit more digging and troubleshooting, and it seems that when the player library url is inserted in your plugin using the https format it it called fine on safari / mobile but not in chrome. Once the player library url is inserted in your plugin using the http format it is called fine on chrome but not on safari / mobile.
    FYI, my site is being fully called through https and there is a page rule on cloudflare that forces https.
    Please provide me with a fix to this issue.

    Thanks,

    #2102
    ilGherailGhera
    Keymaster

    Hi @hamzaaboufirass.
    The plugin works fine both with http and https, like here on my site.
    I have no idea about the problem you’re having with RocketLoader, since I don’t know it very well, but I can check it out.
    Please, let me have a page link, ok?

    #2105
    hamzaaboufirass
    Participant

    Thank you for the quick reply. The link in question is

    dearrockstar.com/shows/milion
    or
    dearrockstar.com/mompreneurs-vision-community

    The player seems to play fine now when I specified the player library with an https instead. But a fresh look from your end at this issue would be helpful.

    Thanks,
    -Hamza

    #2106
    ilGherailGhera
    Keymaster

    Hi! The first link returns a 404 error.
    I checked the second one and everything works as expected on my side.

    #2107
    hamzaaboufirass
    Participant

    First link typo:

    dearrockstar.com/shows/million/

    Thank you for that reply, wouldn’t mind if you can check this other link as well. If all is good, then maybe it was a caching error somewhere.

    Thank you very much,
    -Hamza

    #2108
    ilGherailGhera
    Keymaster

    Happy that everything is working well!
    Thanks to you @hamzaaboufirass 😉

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.