Issue with Cloudflare RocketLoader on jwplayer 7 v 1.4.0

da

Home Forum JW Player 7 for WordPress Issue with Cloudflare RocketLoader on jwplayer 7 v 1.4.0

Stai vedendo 7 articoli - dal 1 a 7 (di 7 totali)
  • Autore
    Articoli
  • #2099
    hamzaaboufirass
    Partecipante

    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
    Partecipante

    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
    ilGhera
    Amministratore del forum

    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
    Partecipante

    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
    ilGhera
    Amministratore del forum

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

    #2107
    hamzaaboufirass
    Partecipante

    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
    ilGhera
    Amministratore del forum

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

Stai vedendo 7 articoli - dal 1 a 7 (di 7 totali)
  • Devi essere connesso per rispondere a questo topic.