• 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

hlsjs-lite: Network error

[Solved]

Foliovision › Forums › FV Player › Bug Reports › hlsjs-lite: Network error

  • Aaron S. 1 year, 2 months ago

    Hi, am running into jlsjs-lite: Network error when trying to play a video. I have posted it on the page below:

    https://ballstrikingblueprint.com/members/fv-player-test/

    Seems to be happening in all browsers.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Aaron S. 1 year ago

    The chrome browser console is showing the error “Access to XMLHttpRequest at ‘…..’ from origin ‘…’ has been blocked by CORS policy: No fv-player-test/:1 ‘Access-Control-Allow-Origin’ header is present on the requested resource.

    I did follow the instructions here: https://foliovision.com/player/video-hosting/how-to-enable-cors-headers for both the S3 bucket and the Cloudfront distribution. I am seeing now the note that this can take some time to update… I will check back later.

    Aaron S. 1 year ago

    UPDATE: I tried the AWS settings recommended here to enable CORS headers: https://foliovision.com/player/video-hosting/how-to-enable-cors-headers

    As it still did not work I continued to research online and found this, which looked promising.

    https://serverfault.com/questions/856904/chrome-s3-cloudfront-no-access-control-allow-origin-header-on-initial-xhr-req

    NOTE: the top answer on that page looks like it could answer why the CORS header wasn’t working, but the solution presented also appears to be no longer needed due to updates at AWS described in the next 2 answers (see attached).

    I did however try the solution from the attached and it is not working either (it is what is currently deployed on my test page): https://ballstrikingblueprint.com/members/fv-player-test/

    screen-shot-2024-02-26-at-12-59-59-am
    Screen-Shot-2024-02-26-at-12.59.59-AM
    Aaron S. 1 year ago

    With this latest test, the error being thrown in the chrome browser console no longer mentions a CORS policy… it now just says “Get …..cloudfrontURL….. 403 forbidden”

    Martin 1 year ago

    Hello Aaron,

    Are you using “Restrict viewer access” for your Cloudfront?

    If yes, then you need to use the Stream Loader feature to make sure the HLS streams play: https://foliovision.com/player/video-security/video-protection-methods/signed-urls-hls-protection

    I added a mention of that in our Cloudflare guide now.

    Thanks,
    Martin

    Aaron S. 1 year ago

    Thanks Martin. Enabling the Stream Loader feature does allow it to play, although it still won’t play for me in Safari for some reason.

    Also, the load time is quite slow (maybe 5 seconds from clicking play until anything starts). Doesn’t sound like a ton, but here is a page for comparison sake where I have the FV Player version and the same video hosted through Vimeo right below it:

    https://ballstrikingblueprint.com/members/fvplayer-bunker-test/

    Could that extra time be because of the “restrict viewer access” setup on Cloudfront… or something I can adjust?

    Martin 1 year ago

    Hello Aaron,

    Please use the Speed-up option in Settings -> FV Player Pro -> Setup tab -> Stream Loader as the FV Player Pro Stream Loader speed might be slower if your WordPress is slowed down by running too many plugins, or if there’s some plugin which slows down any general WordPress response.

    That might save even 2-3 seconds in your video load times.

    Thanks,
    Martin

    Aaron S. 1 year ago

    Thanks Martin, that setting is actually already turned on and it’s still taking the 5 seconds or so. Any other reason it might be slow?

    On the Safari issue, I have noticed now that if you click the video just once to play it will sit there forever on a black screen… if you click the black screen a second time it does start to play. Any idea why it would require a second click?

    Finally, is having just the HLS version of the video generally sufficient to play on all devices or is it best practice to have some other fallback format?

    Aaron S. 1 year ago

    Hi Martin, still haven’t been able to get the above resolved, but figured I’d try setting it up with Coconut/DigitalOcean as that looked like it might be easier.

    Went through the Wizard and followed the instructions on these pages:
    https://foliovision.com/player/video-security/encoding/encrypted-hls-coconut
    https://foliovision.com/player/video-security/encoding/encrypt-encode-videos-wordpress

    But I can’t get it to play anywhere, here is the test page I set up:
    https://ballstrikingblueprint.com/members/fvplayer-coconutdigitalocean-test/

    The instructions seemed very simple, I’m not sure where I could have gone wrong. It looks like the CORS settings were set up automatically.

    One thing that was kinda strange… every time I uploaded a file, instead of showing just the one file processing it showed (and created) 3 files with the same file name. I did try creating separate shortcodes for each one and tested them all but got the same error message each time.

    Martin 1 year ago

    Hello Aaron,

    I see that with the Speed-up setting each Stream Loader response takes 1 seconds or 0.7 seconds when it’s cached. On foliovision.com and our other websites it’s just 0.4 seconds or 0.24 when cached.

    I’m not sure why it’s slower on your website as your test page HTML code loads within 0.5 to 1 second which is not bad when you consider that there is no WordPress cache plugin. So it does not seems that you use too many plugins.

    I see that the video encoded with FV Player Coconut does not play. The Stream Loader shows an error that the access to your DigitalOcean Space the-ballstriking-blueprint-encoded-videos is denied.

    Could you please double check the Access Key and Secret Key in wp-admin -> FV Player -> Settings -> Hosting -> DigitalOcean Spaces?

    Please also open wp-admin -> FV Player -> Coconut Jobs -> Add New. It should bring up a modal window with the content of your DigitalOcean Space for your source videos – the videos which you uploaded. Will that work? It depends on these Keys I mentioned in the previous paragraph.

    We have a bug report of the duplicate FV Player Coconut jobs. It seems to only occur randomly, so it’s taking us more time than expected to fix it.

    Thanks,
    Martin

    Martin 1 year ago

    Hello Aaron,

    Also – regarding Cloudfront video serving speed:

    I tried to play your video at 360p quality. Individual video segments which are about 500 kB each load in 1.4 seconds. So the download speed is just 356 kB/s or so. If I switch to 1080p, it’s about 1.5 MB/s. If I seek into an un-buffered part of video I wait for 2-3 seconds for it to continue playing.

    For Vimeo the 1.4 MB video segments load in 0.08 to 0.5 seconds. Which is of course much faster – about 3 to 17 MB/s. The seeking takes 1-2 seconds.

    I wonder what speeds we will get with DigitalOcean Spaces CDN – used by FV Player Coconut. For our videos it runs at 6 to 12 MB/s.

    Thanks,
    Martin

    Martin 1 year ago

    Hello Aaron,

    Could you please reinstall FV Player from this link? https://foliovision.com/downloads/fv-wordpress-flowplayer.zip

    Then the issue with duplicate issues will be fixed.

    Thanks,
    Martin

    Aaron S. 1 year ago

    Hi Martin,

    1. double-checked that the Access Key and Secret Key are correct for DigitalOcean Spaces

    2. the videos I have uploaded do indeed show in the modal window when I go to wp-admin -> Coconut Jobs -> Add New

    3. uninstalled and reinstalled FV Player from the link provided

    Coconut/Digital ocean Spaces video still not playing: https://ballstrikingblueprint.com/members/fvplayer-coconutdigitalocean-test/

    What can I try next?

    Martin 1 year ago

    Hello Aaron,

    It’s a strange issue. I see that your Access Key and Secret Key really has to work as even the video splash image shows on your test page – it’s loaded from DigitalOcean Spaces as well.

    It seems that something prevents your server from loading the m3u8 files from DigitalOcean Spaces. We do that to be able to increase the video download protection by adding the URL signatures – each link to any video (or its segment) times out, making it harder to re-distribute.

    The URL which it’s trying to load is:

    https://nyc3.digitaloceanspaces.com/the-ballstriking-blueprint-encoded-videos/Bunker-Blueprint-2-27/index.m3u8

    The response which it gets back is:

    <?xml version="1.0" encoding="UTF-8"?><Error><Code>AccessDenied</Code><Message></Message><BucketName>the-ballstriking-blueprint-encoded-videos</BucketName><RequestId>tx00000fc7b1bec7ae3ecfa-0065defb2d-717cbb9-nyc3d</RequestId><HostId>717cbb9-nyc3d-nyc3-zg04</HostId></Error>

    Please try to disable the Speed-up setting to see if that help. If it won’t we can tweak the way our FV Player Pro Stream Loader technology loads these m3u8 files.

    However there is also a slight chance that your server is just blocked by DigitalOcean. So please submit the above details to DigitalOcean support if it still won’t work.

    You can also try to insert this URL as a new video in wp-admin -> FV Player: https://nyc3.digitaloceanspaces.com/the-ballstriking-blueprint-encoded-videos/Bunker-Blueprint-2-27/media-1/stream.m3u8

    It will not play as the URL signatures on the individual video segments will be missing, but I wonder if it will analyze the file properly and show its duration.

    Thanks,
    Martin

    Aaron S. 1 year ago

    Hi Martin, disabled the speed-up setting and it appears to be working, and still faster than the amazon load time (and also isn’t having the double-click issue in safari)… so that’s all good. I’ll keep testing and let you know if we have any more issues.

    One last question – is having just the HLS/m3u8 version considered sufficient to serve across all devices? Or should I also have a webm or other version as well for maximum coverage?

    Thanks,

    Martin 1 year ago

    Hello Aaron,

    It’s strange that it won’t work with Speed-up.

    But it’s good it’s much faster than before than with AWS, even if the stream is encrypted. The encryption adds about half second delay.

    HLS plays in Safari – both desktop (macOS) and mobile (iOS).

    FV Player includes the HLS.js library which allows the other browsers to play it as well. It’s any Chrome version in last 10 years, any Firefox in last 9 years. That includes all the Chromium (open-source core of Chrome) browsers like Opera or Brave. We also use it for Microsoft Edge and all the Android browsers, even though these do support HLS streams, but the support is not great in the older versiosn.

    Thanks,
    Martin

Viewing 15 replies - 1 through 15 (of 15 total)
Reply To: hlsjs-lite: Network error



Please Sign in or Register to upload files.

Related Posts

  1. Admin: Video OK… But hlsjs-lite: Network error

    Admin: Video OK… But hlsjs-lite: Network error

  2. hlsjs-lite: Network error

    hlsjs-lite: Network error

  3. got hlsjs-lite: Network error after update to

    got hlsjs-lite: Network error after update to

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!