Foliovision › Forums › FV Player › Troubleshooting › autoplay just once?
-
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
-
-
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
BrunoHello 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,
MartinHello 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,
BrunoHello 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,
BrunoHello 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,
MartinHello 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,
BrunoHi 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
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