Foliovision › Forums › FV Player › Troubleshooting › 49 players on page : Massive violation errors after page loading
-
On https://nl.robotphi.otap1.sier.online/videoclips/ we’ve embedded 49 youtube urls with the fvplayer shortcode. but it’s giving massive violations errors. Rollback to previous (even 7.4 version) does not solve this problem.
How can this be fixed?
-
-
Further information : It looks like the lightbox setting is causing this problem. If audio is turned on, when you close the video it starts playing again (invisible). If another video is started, there are multiple video’s in the background playing. I think the combination of multiple lightbox embeddings is not working correctly
Hello Remco,
please deactivate and delete the FV Player Pro plugin you are using, then hit “Install Pro extension” at the top of the wp-admin -> Settings -> FV Player screen.
Then switch to the Beta release using the steps from here if you are not already using it: https://foliovision.com/player/basic-setup/switching-fv-player-pro-to-beta
That will fix the issue with YouTube videos playing in background when lightbox is closed. I think this was caused by some change in the YouTube Player API.
Please let us know about these violations which you are noticing too. I see 6 violations on my Brave browser console when I open your link. It seems like fv_player_lightbox_bind takes 1,6 seconds to execute on your website. I will test 49 YouTube player in lightbox on my test site to see if I run into the same issue.
Thanks,
MartinThank you for your (quick) fix, i’ve implemented this as suggested. It solves the problem with the youtube playback in the background, as you can see on https://nl.robotphi.otap1.sier.online/videoclips/.
But, the video’s were autoplaying, and on this moment the are not autoplay anymore.
Also, the violation errors still are there after focussing (clicking once) on the page.
Hello Remco,
I found that the YouTube videos do not autoplay when lightbox is opened on our website only when it’s the first click on the page.
On your website it’s a different issue, it appears that the YouTube iframe load is blocked. Could you please try to preview your website with some standard WordPress theme, go to your page and see if the issue still occurs? I wonder if there is some compatibility issue with your theme.
We were also looking into the JavaScript loading speed. We worked on some improvements, like speeding up the preload code a lot (from 400 ms for 50 players to just 12 ms by including the play icon in HTML).
Then we did another 30% speed improvement when the actual FV Player instances are loading.
We will finish some more testing of these improvements and then it should be part of one of the next versions.
Thanks,
MartinHello Remco,
please reinstall FV Player from this link: https://github.com/foliovision/fv-wordpress-flowplayer/archive/master.zip
To do that you will have to first deactivate and delete the current FV Player plugin you are using. WordPress will warn you that you might loose settings and data, but it’s not the case with our plugin, no settings now videos will be lost. Or you can just replace the plugin files via FTP.
Then your page should not require so much processing to load all the players. The ultimate fix would be to only load the players which are using autoplay, which are liked to using the video link feature or which are in viewport. We plan the re-work the autoplay to only work in viewport, so that will be a good time to revisit this.
Thanks,
Martin