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

Foliovision

Main navigation

  • 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

HLS video quality switching and cookie based protection

[Solved]

Foliovision › Forums › FV Player › How to … › HLS video quality switching and cookie based protection

  • Kendell 3 years, 11 months ago

    Hello,

    I’m using 1080p videos and upon testing, the internet connection is capable to support the 1080p stream on playback. However, I’ve noticed that the quality switching on HLS videos isn’t possible before 30 seconds into the video. It remains on SD quality (360) all the way to 30 seconds. Is this done intentionally or is it a bug on my end? If intentionally, is there a way to reduce the time to allow an earlier switching?

    Finally, I’ll like to look into cookie based protection addressed in this article: https://foliovision.com/player/securing-your-video/cookie-protection

    However, I’m not using AWS or CloudFront to host my videos. I’m using Publitio. Is there a documentation I can look into to get started with other hosts?

    Can you please advise?

    Regards,
    Kendell

Viewing 19 replies - 1 through 19 (of 19 total)
  • Mária Stašová 4 years ago
    Avatar photo

    Hello Kendell,

    thank you for your question!

    Regarding the cookie protection, contrary to the information in the article, FV Player does support signed URLs since November 2020. Thank you for bringing this outdated article to our attention, we will update the information.

    URL Tokens are a better alternative to cookie based signing. To learn more about URL Tokens in FV Player and how to enable them, follow this link: https://foliovision.com/2020/11/hls-download-protection-cloudfront

    This feature works with all CDNs supported by FV Player. However, we do not have any experience with our users using Publitio. It appears the hosting platform also acts as a CDN itself. It could work. Please, follow the guide above and enable the Stream Loader feature. Then send us a link to one of your videos, so that we could test out whether it works.

    As for the HLS quality switching, while the switch does not happen immediately, the 30 seconds time is an issue on your end. I will ask our development team to see if they have any suggestions what could be causing this.

    Thanks,
    Maria

    Martin 4 years ago

    Hello Kendell,

    1) what Maria means is that while we were planning to support the cookie signatures to be able to deliver HLS streams more securely we ended up creating the Stream Loader feature of FV Player Pro.

    One of the reasons is that the cookie signature is not supported by a lot of the CDNs – I only know it’s supported by AWS CloudFront. Another reason is that a single cookie would give you access to all the video files. The advantage is that the cookie is not so obvious – you can’t see it in the video link.

    2) HLS quality switching speed might be affected by the segment duration.

    However we did improve this in upcoming FV Player 7.5 – when I play the video on https://foliovision.com/player/demos/encrypted-hls-stream I get the 1080p version right away. When I play with slower internet, I get 480p. If I choose I want 1080p, then it’s remembered and that’s what I always get in my browser, even if my internet is slow and I have to wait – so no ABR (automated quality selection streaming)

    We have the above routine even in the current FV Player, but it’s not 100% reliable.

    Thanks,
    Martin

    Kendell 4 years ago

    Hello Martin and Maria,

    Many thanks for jumping in on this.

    Happy to hear that the quality switching was addressed in the upcoming version. Any ETA?

    In terms of the stream loader feature, I can try reaching out to Publitio to find out about their CDN and get back to you guys with more appropriate response on the subject.

    Thanks
    Kendell

    Mária Stašová 4 years ago
    Avatar photo

    Hello Kendell,

    while we do not have an exact release date on the 7.5. version, it will be out in the next couple of days.

    Making the web work for you,
    Maria

    Martin 4 years ago

    Hello Kendel,

    FV Player 7.5.0.727 is out now.

    Thanks,
    Martin

    Kendell 4 years ago

    Hello Martin,

    Thanks for the note. I had the chance to check it out.

    I see that it remembers the quality I choose. Nice!

    I was wondering, is there a filter or hook to over ride the default 30 seconds quality switch? Or maybe even force a particular quality to begin with?

    I’m thinking maybe after 10 seconds I can show a 720p video or something of that nature.

    Is it possible to do this? Can you please advise? Thanks!

    Regards,
    Kendell

    Kendell 4 years ago

    Hello,

    Any updates on this?

    Martin 4 years ago

    Hello Kendel,

    we will get to this. It’s not so easy though as the HLS.js library which we use for HLS playback if focused on providing reliable ABR so that the video quality is switched automatically. It doesn’t have the parameters to force a quality reliably.

    You can try to enable the “Force HD Streaming” setting in FV Player.

    Thanks,
    Martin

    Kendell 4 years ago

    Hi Martin,

    Noted.

    I enabled the Force HD Streaming setting and it takes a long time for the player to appear. Just about 10 seconds before the player loads. Is this a known issue when Force HD Streaming is enabled?

    Can you please advise?

    Thanks,
    Kendell

    Martin 4 years ago

    Hello Kendel,

    do you mean that the video takes longer to start playing? Or do you really mean that the player takes longer to appear?

    If it’s the first case then it’s normal, it just takes more time to buffer the higher quality video file(s).

    Thanks,
    Martin

    Kendell 4 years ago

    Hi Martin,

    I meant the video player takes a longer time to appear. I agree if it’s the first case it will take some more time to load.

    Martin 4 years ago

    Hello Kendell,

    do you use the new setting Settings -> FV Player -> Integrations/Compatibility -> “Optimize FV Flowplayer JS loading” ?

    Clould you please share some test page with us?

    Thanks,
    Martin

    Kendell 4 years ago

    Hi,

    Yes I had this setting on as well.

    Please check this link for an example: https://clevered.gd/courses/interpersonal-skills/lesson/communication-skills/

    Martin 4 years ago

    Hello Kendell,

    there are three issues –

    1) because of the “Optimize FV Flowplayer JS loading” setting the player doesn’t appear until you start using the webpage as the dimensions are set to 100%. That way FV Player doesn’t know what aspect ratio should be used, but it assumes 16:9.

    But I see we could fix that to work with the “Optimize FV Flowplayer JS loading”. In the meantime please set the player size to 1920 x 1080 in Settings -> FV Player Pro -> Sitewide FV Player Defaults and it will appear much better.

    2) The transcript doesn’t appear – showing “Error loading trascript. Please try again in a minute. No transcript found”. Please try the latest FV Player Pro Beta: https://foliovision.com/player/basic-setup/switching-fv-player-pro-to-beta That one will hang on to the old cached transcript if it fails to load once. Previously a single failure would make the transcript disappear until it would be available again. So we improved that caching routine.

    3) And last – the HLS stream is indeed quite slow to start. In my testing the first segment jbti6fli_2_0.ts took 30 seconds to load. But once I reloaded the page it only took 3 seconds to load. So perhaps your CDN is slow to pull the files. Actually I’m not sure if you media.c….gd server is a CDN or not.

    Thanks,
    Martin

    Kendell 4 years ago

    Hi Martin,

    Thanks for the feedback.

    1. I followed your instructions and it loads a bit faster.

    2. For that particular video there was no transcript uploaded. So this is fine for now. I have to find a way to hide this message.

    3. I’ll look into my video hosting. I host with Publitio. So maybe it’s their CDN that’s lagging. Quick question. What tool did you use to test the HLS stream? Can you please share? I’ll like to further look into this issue.

    Regards

    Martin 4 years ago

    Hello Kendell,

    there are three issues –

    1) perhaps we should improve that optimization to only work for non-logged in users and only on the first load. Once the scripts are cached in browser it doesn’t make sense to delay their loading.

    3) I was checking these video segment loading times in Google Chrome developer tools. You can get the same stats in Firefox or Safari. Just look at the Network tab of the browser developer console and play the video – you will see these video segments loading.

    Thanks,
    Martin

    Kendell 4 years ago

    Hi Martin,

    Sounds like a nice solution. I’ll keep an eye out for this update.

    Thanks so much, I am able to see stats.

    Regards,
    Kendell

    Kendell 4 years ago

    Hello Martin,

    Any updates on this? Any idea as to when option you discussed in 1 above might get to beta?

    Martin 4 years ago

    Hello Kendell,

    1) I had some time to think about the optimization and if we actually only make it work on the first load it would make troubleshooting any issues nearly impossible. The way it works now seems to be reliable enough, we only had 1 report of some issues where the user wanted the video to autoplay even without user interacting with the website.

    Thanks,
    Martin

Viewing 19 replies - 1 through 19 (of 19 total)
Reply To: HLS video quality switching and cookie based protection



Please Sign in or Register to upload files.

Related Posts

  1. MP4 Video Quality Switching with different URL for each quality

    MP4 Video Quality Switching with different URL for each quality

  2. Quality Switching

  3. Quality switching breaks the video

    Quality switching breaks the video

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

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

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!