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

Foliovision

  • 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 10 years, 8 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 11 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 11 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 11 years ago

    Hello Bruno,

    the cookie name is “fv_player_autoplay”.

    Thanks,
    Martin

    Bruno 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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í

  2. Amazon Cloudfront mit Schutz beim Herunterladen

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

Primary Sidebar

Troubleshooting

    Categories

    • Business
    • Camera Reviews
    • Case Studies
    • Design
    • FV Player
    • Internet Marketing
    • IT
    • Life
    • SEO
    • Slovak
    • Video of the Week
    • WordPress

    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 © 2026 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‬