• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

Youtube Iframe API loading when not needed

[Solved]

Foliovision › Forums › FV Player › Bug Reports › Youtube Iframe API loading when not needed

  • Amir Emami 7 years, 7 months ago

    Hi

    Here:
    https://gtmetrix.com/reports/www.ajibtarin.com/G5sMSc9z

    I have:
    https://i.imgur.com/Z46jyGS.png

    Iframe_api

    Is this loading by your plugin? Because I don’t use youtube at all.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Amir Emami 8 years ago

    My developer said This is part of fv_player_pro.min.js file.

    How can I stop loading this file? Because in Iran, youtube has been filtered by government and slows extremely the website.

    Thanks

    Martin 8 years ago

    Hello Amir,

    it should not be loading if there is no YouTube video on the page. I double checked that and it works that way.

    However I see it loads on your website as fv_player_pro.youtube JS variable is set to true. Are you using the “Load FV Flowplayer JS everywhere” option? That would explain why it’s loaded – our plugin has no way of knowing if there will be some Ajax call which will require YouTube API to be present.

    It could be improved to load YouTube if there is indeed such video during the FV Player initialization process for each player instance (no matter if “Load FV Flowplayer JS everywhere” is enabled or not), but it would take some time to finish that task, as we are working on upgrading to the new Flowplayer 7 core and improving the playlist technology currently.

    Thanks,
    Martin

    Amir Emami 8 years ago

    Hi Martin thanks a lot for your help. Yes this option was checked:
    Load FV Flowplayer JS everywhere

    But in the middle of my testings I noticed none of my videos play.

    For example:
    https://www.ajibtarin.com/strange-metaphysic/11197
    https://i.imgur.com/qGFjtS9.png

    How can I solve this?

    Thanks

    Eduard 8 years ago
    Avatar photo

    Hi Amir,

    This might be happening because you have restricted access to this video on Vimeo to all domains with the exception of yours but you might set the domain wrong. Could you please check that in the video settings on Vimeo?

    Thanks,
    Eduard

    Amir Emami 8 years ago

    Hi thanks Eduard for your response. All of these videos were ok but suddenly today I noticed they are not working.

    https://i.imgur.com/MAWcIKr.png

    Thanks

    Eduard 8 years ago
    Avatar photo

    Hi Amir,

    What version of FV Player Pro are you using? The current versions of our plugins are 6.3.3 (FV Player) and 0.8.36 (FV Player Pro), so please check if your plugins are up to date.

    Thanks,
    Eduard

    Amir Emami 8 years ago

    Yes they are up to date.

    Amir Emami 8 years ago

    I found these all kinds of errors in my error log:

    2017/10/05 06:30:12 [error] 29163#29163: *312142 FastCGI sent in stderr: “PHP message: PHP Warning: Missing argument 3 for set_cache_file(), called in /var/www/ajibtarin.com/htdocs/wp-content/plugins/fv-player-pro/beta/fv-vimeo-ajax.php on line 258 and defined in /var/www/ajibtarin.com/htdocs/wp-content/plugins/fv-player-pro/beta/fv-vimeo-ajax.php on line 298

    PHP message: PHP Notice: Constant FV_PLAYER_VIMEO_KEY already defined in /var/www/ajibtarin.com/htdocs/wp-content/plugins/fv-player-pro/beta/fv-vimeo-ajax.php(335) : eval()’d code on line 1

    PHP message: PHP Notice: unserialize(): Error at offset 74 of 85 bytes in /var/www/ajibtarin.com/htdocs/wp-content/plugins/fv-player-pro/beta/fv-vimeo-ajax.php on line 295

    PHP message: PHP Warning: Missing argument 3 for set_cache_file(), called in /var/www/ajibtarin.com/htdocs/wp-content/plugins/fv-player-pro/beta/fv-vimeo-ajax.php on line 258 and defined in /var/www/ajibtarin.com/htdocs/wp-content/plugins/fv-player-pro/beta/fv-vimeo-ajax.php on line 298

    PHP message: PHP Warning: Attempt to modify property of non-object in /var/www/ajibtarin.com/htdocs/wp-content/plugins/fv-player-pro/beta/fv-vimeo-ajax.php on line 131” while reading response header from upstream, client: 31.58.252.101, server: ajibtarin.com, request: “POST /wp-content/plugins/fv-player-pro/beta/fv-vimeo-ajax.php HTTP/1.1”, upstream: “fastcgi://unix://run/php/php7.0-fpm.sock:”, host: “www.ajibtarin.com”, referrer: “https://www.ajibtarin.com/one-video/3640/%d8%a7%d9%88%d9%84%db%8c%d9%86-%d8%b9%da%a9%d8%b3-%d9%85%d8%a7%d9%87%db%8c%d8%aa-%d9%86%d9%88%d8%b1/”

    Martin 8 years ago

    Hello Amir,

    does it work if you disable the “Turbocharge Ajax Vimeo loading” option? Please let us know.

    In the meantime I’m running some tests now.

    Thanks,
    Martin

    Amir Emami 8 years ago

    Hi Martin, thanks for your message. I disabled this option and video played successfully. What was the problem?

    Martin 8 years ago

    Hello Amir,

    I noticed that your server doesn’t send the protocol in the HTTP_HOST, so it was fixed on the API server to assume https:// and that got it working.

    Thanks,
    Martin

    Amir Emami 8 years ago

    Thanks a lot Martin :)

Viewing 12 replies - 1 through 12 (of 12 total)
Reply To: Youtube Iframe API loading when not needed



Please Sign in or Register to upload files.

Related Posts

  1. YouTube Playlist Embedding

  2. YouTube Playlist Support

    YouTube Playlist Support

  3. YouTube podpora playlistu

    YouTube podpora playlistu

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!