Viewing 6 replies - 1 through 6 (of 6 total)
  • same here

    It only work when i set the homepage background.

    wp_enqueue_script(‘yt_api_player’, ‘https://www.youtube.com/player_api’, false, $mbYTPlayer_version, false);

    https: missing protocol

    mbYTPlayer.php
    244 line

    Plugin Author pupunzi

    (@pupunzi)

    @freshal @berius

    From that version you can set the “autoplay” option to false also for the background videos (before this update this parameter was ignored and the “autoplay” was always set to true).
    So you need to change the “autoplay” from false to true where you are instancing the component.

    @berius
    The protocol is correct as I wrote; that way it will use the same protocol of the calling page (http or https).

    Bye,
    M

    <script type=’text/javascript’ src=’//www.youtube.com/player_api?ver=1.7.0′></script>

    This is what i see. There is something wrong. I’ve tried it with other themes. The same thing happens.

    Plugin Author pupunzi

    (@pupunzi)

    @berius
    That is not an error; omitting the protocol while including the javascript the browser will use the same document protocol to call that file:

    When a URL’s protocol is omitted, the browser uses the underlying document’s protocol instead.

    Put simply, these “protocol-less” URLs allow a reference like this to work in every browser you’ll try it in:

    //ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js

    It looks strange at first, but this “protocol-less” URL is the best way to reference third party content that’s available via both HTTP and HTTPS.

    You can read more here: https://www.paulirish.com/2010/the-protocol-relative-url/

    Hope this clarify.

    Bye,
    Matteo

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘video not working after upgrading to 1.7’ is closed to new replies.