Foliovision › Forums › FV Player › How to … › Autoplay multiple videos at once
-
Is possible to set all streaming videos to automatically start playing when the page is loaded, similar to how video.js plugin works https://www.socialite-media.com/videojs-hls-player-for-wordpress? That plugin also has an inline feature for mobile ios browsers? Is that possible with FV?
-
-
Hello Charles,
autoplay is one of the global FV Player settings, but it can also be enabled on a per-player basis: https://foliovision.com/player/basic-setup/autoplay
Here is a video which is set to autoplay and it’s streaming from Vimeo using MPEG-DASH or HLS: https://foliovision.com/player/demos/autoplay
The inline video playback on iPhone is supported since iOS version 10 and FV Player supports that.
Please let us know if you have any other question.
Thanks,
MartinThanks, for the reply and I realized the iPhone inline was working after I posted my first message, thanks for the follow.
I still have issues/questions regarding autoplay. I have autoplay enabled on each stream, but ALL of them won’t autoplay at the same time and none of them will autoplay in Chrome. In Firefox and IE Edge, the first stream plays. I can set the autoplay as I scroll option and that auto plays the first stream in Chrome and as I scroll, but that’s not exactly what I’m wanting. My site streams weather cameras and my preference is that the streams play as soon as the user loads the page. https://coffeesevereweather.com/live-cameras/
Hello Charles,
latest Chrome doesn’t permit video autoplay unless specific conditions are met, so in FV Player 6 we had to disable it: https://foliovision.com/2018/05/video-autoplay-issues
This is fixed in FV Player 7 Beta which you can get as a Pro user: https://foliovision.com/2018/06/fv-player-7-beta
Are you looking to play multiple videos at once? Please let us know. FV Player doesn’t work that way unfortunately.
I’m trying to think how we could make a feature like this part of the core FV Player plugin. We had a request to pause the previously playing video when clicking another one to play, but this one is one step further.
If you know HTML you can save the HTML of https://coffeesevereweather.com/live-cameras/ to a file and get rid of the is-splash classes there and see if it works the way you imagined. It might not autoplay all of the videos, but at least you would see if they all play at once if you click them one by one. You might need o save it on https://coffeesevereweather.com to a file like https://coffeesevereweather.com/test.html.
If you know a bit about PHP and editing of files you could try to put code like this into your theme functions.php to see if it helps, but I would consider it highly experimental – meaning you should test all the different FV Player video setups you are using:
add_filter( 'fv_flowplayer_attributes', 'tweak_fv_flowplayer_class' ); function tweak_fv_flowplayer_class( $attributes ) { $attributes['class'] = str_replace( 'is-splash', '', $attributes['class'] ); return $attributes; }
Thanks,
MartinThanks, for the update on the beta version. I’ll upgrade to it.
Yeah, I’d like for all of the videos to play at the same time. This was a feature in the videojs-hls plugin that was useful. Their autoplay shortcode would autoplay the video file on page load, I set this on all of my video streams and they all started playing on load. I was hoping it was similar with your plugin. If it’s something that could be added, that would be great. I can test the php code on my functions.php file.
Update: The PHP tweak keeps the videos playing after clicking on them, which is a step forward. I’ll probably remove it for now because it seems to be slowing my website loads some.
In chrome, there is a little stutter after clicking the next video and it acts like it’s going to load and goes to a black screen with the play button again. I click it again and it starts playing. Probably an issue with the release version as you mentioned above.
I swapped to the beta version, but it removed my logo and has the fv player watermark on my videos now and it didn’t autoplay.