• 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

autoplay just once?

[Solved]

Foliovision › Forums › FV Player › Troubleshooting › autoplay just once?

  • Bruno 9 years, 11 months ago

    Hello,

    how it is possible to use autoplay just once for a user? It’s activated inside the settings (your pro-version). But video starts every time the visitor revisit the page.

    Here is a url (please don’t publish): http://example.com/…

    This is the shortcode I used:

    [fvplayer src="http://url-to-cloudfront.mp4" src1="http://url-to-cloudfront.webm" width="800" height="450" controlbar="no" embed="false" autoplay="true" splashend="show" splash="http://url-to-jpg.jpg"]

    This videos are served via Cloudfront.

    Thank you and best regards
    Bruno

Viewing 14 replies - 1 through 14 (of 14 total)
  • Martin 10 years ago

    Hello Bruno,

    thank you for the bug report.

    It appears we need to fix this for dynamically loaded videos (using Vimeo or CloudFront signed URLs).

    Thanks,
    Martin

    Bruno 10 years ago

    Hello Martin,

    good to know.. Please can you tell me what type of cookie do you use to manage this?

    On some pages I want to use this cookie to make some custom changes on the page, if this cookie is set..

    Thank you and best regards
    Bruno

    Martin 10 years ago

    Hello Bruno,

    the cookie name is “fv_player_autoplay”.

    Thanks,
    Martin

    Bruno 10 years ago

    Hello Martin, thanks..

    1. Do you know when it is fixed? (autoplay)

    2. Do you wanna stay with this jquery cookie plugin, or do you wanna change to it’s fork?

    3. Please don’t publish: Do you have an idea, why the video-width breaks after deactivating fullscreen-mode: /medien/flowplayer/flowplayer.mp4

    I’ve made some changes for background-color and frame color, but I made no changes for width eg.. There are no js-errors inside console ?

    Thank you and best regards
    Bruno

    Martin 10 years ago

    Hello Bruno,

    1) FV Player Pro 0.3.6 was released. It fixes the “Autoplay just once” function for Vimeo videos.

    2) No plans on changing the jQuery plugin. Is there any issue you are having?

    3) I see that the video lightbox doesn’t size properly after you exit fullscreen. Your post is for members only. Could you please check if you get the same behavior here? https://foliovision.com/player/demos/vimeo-autoplay-lightbox

    Thanks,
    Martin

    Bruno 10 years ago

    Hello Martin,

    1. we need it for Cloudfront : )
    2. No, no issues. I just wanna use the cookies you’re setting with autoplay once, for some other functions..
    3. No, this works fine. But it worked on our website 2 weeks ago without any problems, too. Perhaps anything in our code goes wrong..

    Thank you and best regards,
    Bruno

    Martin 10 years ago

    Hello Bruno,

    1) the fix works for any FV player instance which gets the video file URL via Ajax – affecting both our Vimeo integration and CloudFront signed URLs integration.

    Thanks,
    Martin

    Bruno 10 years ago

    Hello Martin,

    Pro 0.3.6 wasn’t available inside our plugin-index. I have download it manually and now autoplay just once works like a charm..

    Thank you and best regards,
    Bruno

    Martin 10 years ago

    Hello Bruno,

    we noticed that the updates are getting cached and they are not as quick as they could be. We will fix the issue. Thank you for the report!

    Thanks,
    Martin

    Bruno 10 years ago

    Hello Martin,

    good to know, thanks..

    Please can I ask, what’s the best way to trigger if cookie for autoload is active and video will not start?

    Your cookie is set on start during the first load (it’s not the same like php-cookies are work) so it makes no sense to hook into it..

    Thank you and best regards,
    Bruno

    Martin 10 years ago

    Hello Bruno,

    that is something we have to improve. We certainly can’t use PHP because of caching plugins, but I guess we could trigger some JS event is autoplay is prevented. What function are you looking for?

    I’m also leaving on a vacation now, please post any issues to forums, so our team can assist you.

    Thanks,
    Martin

    Bruno 10 years ago

    Hello Martin,

    I need to know which event you’re using to trigger, that autoplay is no more active on page-load, cause the user starts the page once before..

    If videos are setup with autoplay, the controlbar is hidden and we use .flowplayer::before {width:100%, height:100%, … } so that no one can click on the video (start, pause)..

    But if autoload is deactived, we need to give back the control to the user..

    So I need to know what’s the best event to use $(‘#element’).removeClass( … );

    I wish you a nice vacation!

    Thank you and best regards,
    Bruno

    Bruno 10 years ago

    Hi Martin,

    please can you erase the Link to the video inside #post-5569?

    There are some problems with the autoplay cookie again. It do not work on our website.

    Please don’t share this links:
    /portfolio-item/balance-stress/
    /portfolio-item/balance-meditation/
    /portfolio-item/balance-traumreise-entdecke-dein-potential/

    All of them should work. We use Zencache, together with Autoptimize. Do you know any issues with it?

    Best regards

    Martin 10 years ago

    Hello Bruno,

    I removed your domains, so the links are not complete but they still serve us for a reference.

    I had a look at your website. Unfortunately Autoptimize appears to cause the issue. The thing is removes any <script> tags and moves everything to a single cached file where all JavaScript files are merged into one.

    However that doesn’t appear to work with wp_localize_script(). It’s a core WP function which we use to set configuration parameters for our players.

    Does the plugin offer any option to not combine inline JavaScript? wp_localize_script() only produces static array definitions, there will be no performance penalty from having it in the HTML. I found that a hook like this can be used to skip combine/minify of inline JavaScript: https://github.com/futtta/autoptimize/blob/master/autoptimize_helper.php_example#L114-L118 Are you able to put that up on your website?

    I tried it on a test site and it helped. Now I posted about this whole Autoptimize issue here as well: https://foliovision.com/player/installation#minify

    I also promised you a JavaScript hook when a video autoplay is skipped if user already autoplayed the video – the “autoplay just once” function. Sorry about the delay, I’ll work on that now and tomorrow.

    Thanks,
    Martin

Viewing 14 replies - 1 through 14 (of 14 total)
Reply To: autoplay just once?



Please Sign in or Register to upload files.

Related Posts

  1. Amazon CloudFront s ochranou proti stahování

    Amazon CloudFront s ochranou proti stahování

  2. Amazon Cloudfront mit Schutz beim Herunterladen

    Amazon Cloudfront mit Schutz beim Herunterladen

  3. Amazon CloudFront con Download Protección (English)

    Amazon CloudFront con Download Protección (English)

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!