Foliovision › Forums › FV Player › How to … › multiple src in playlist
-
-
Hello Meir,
Yes, this is possible with our paid Alternative sources add-on. You can learn more about it, how it works and how to purchase in our guide: https://foliovision.com/player/video-hosting/fallback-video-hosting
Making the web work for you,
MariaHello Meir,
you only need the FV Player Alternative Sources extension if you intend to use these src2 or src3 as the backups.
If you would like to provide alternative formats for different browsers, then you do not need that extension.
The format of the playlist=”…” argument for multiple video sources goes like this:
playlist="video-2.mp4,video-2.webm,video-2.jpg;video-3.mp4,video-3.webm,video-3.jpg"
So each item is separated by
;
and the last value is the splash image and what’s before that are the different video versions:- video-2.mp4 – first video
- video-2.webm – second video
- video-2.jpg – splash
Please let us know what video formats you would like to use. MP4 is supported by practically every browser. And so is HLS if you want the automated quality switching, with the HLS.js library in FV Player.
Thanks,
MartinHello Meir,
By “as backups” Martin means having, for example, two .mp4 videos on two separate sources. Should the source number one fail, the second source starts loading up. This is what the paid Alternative Sources add-on does.
If you want to just provide different formats to ensure maximal coverage across browsers and devices, for example one .mp4 file and one .webm file, that can be done in the base FV Player plugin as well.
Thanks,
MariaHello Meir,
Sadly, that will not work. For example, if your first video is a broken mp4, it just shows as broken and doesn’t search for others. The second video only starts playing, if the primary format is not supported.
As for the Alternative Sources add-on, you can see how it functions and everything you’d need to know (including syntax) here: https://foliovision.com/player/video-hosting/fallback-video-hosting
Thanks,
Maria