• 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

DRM encrypted hls video not playing

Foliovision › Forums › FV Player › Bug Reports › DRM encrypted hls video not playing

  • Slogin I. 4 years, 8 months ago

    Good Day! We added DRM encryption to safeguard our videos from downloading it but the issue is when we input it in fv player, the video is not playing and will display an error ‘Video not properly encoded’.

    The set-up was made by a contractual developers and they insisted that the set-up is working 4 other sites except ours and we need tor each out to you guys to help. Hope you helps us

    Regards,

Viewing 15 replies - 1 through 15 (of 15 total)
  • Juraj Kacaba 5 years ago
    Avatar photo

    Hello Slogin,

    Thanks for reaching out to us!

    Please turn on our Admin Video checker and let us know what does it say or sent us a screenshot of the report.

    Thanks,
    Juraj

    Slogin I. 5 years ago

    HLS Link:
    https://id.cloudfront.net/1be….b1/hls/test2.m3u8
    HLS Key: bcb5f….9095
    DRM URL: https://site.com/?fv_player_hls_key=test2

    Static Key and URL properly set up in AWS Media Convert as shown in the screenshot attached.

    2020-08-16_10-18-53
    2020-08-16_10-18-53
    2020-08-16_10-23-17
    2020-08-16_10-23-17
    2020-08-16_10-22-29-1
    2020-08-16_10-22-29-1
    Juraj Kacaba 5 years ago
    Avatar photo

    Hello Slogin,

    Is “1beb2ca1-8fce-4110-81ba-843c171a2eb1” name of your bucket?

    If yes, in this case the DRM URL should be: https://everyerotube.com/?fv_player_hls_key=hls/test2

    Thanks,
    Juraj

    Slogin I. 5 years ago

    Bucket is everyerotube-destination-10s96sdmb8eta.
    Folder inside bucket is everyerotube-destination-10s96sdmb8eta
    CloudFront  d129afvtjv2czd.cloudfront.net serves the content of the bucket

    Juraj Kacaba 5 years ago
    Avatar photo

    Hello Slogin,

    Please re-encode the video and fix the DRM URL. Let us know if it has helped.

    Thanks,
    Juraj

    Martin 5 years ago

    Hello Slogin,

    that fv_player_hls_key has to be unique across your entire website (fvplayer shortcodes in post content and FV Player database). Otherwise you might be getting the incorrect decryption key – which is why Juraj is suggesting you to try something better than just “test2”.

    In fasct it would be best to use 1beb2ca1-8fce-4110-81ba-843c171a2eb1/hls/test2 as I believe that first part is a result of using the AWS Video on Demand and it should be really unique for each video: https://aws.amazon.com/solutions/implementations/video-on-demand-on-aws/

    Thanks,
    Martin

    Slogin I. 5 years ago

    Our engineer did a new convert as instructed above but it still having the same issues.

    screen-shot-2020-08-20-at-7-41-38-pm
    Screen-Shot-2020-08-20-at-7.41.38-PM
    Martin 5 years ago

    Hello Slogin,

    please try to open your browser developer console (here’s how https://foliovision.com/player/troubleshooting/javascript-browser-console), then try to play that video again and see if any error appears on the console.

    Also try to actually save the player and use it on some real post or page – will it play there?

    We are also happy to help you troubleshoot the issue with your custom video encoding directly on your website if you purchase our Pro support: https://foliovision.com/pro-support

    Otherwise we can keep sending over some troubleshooting steps.

    Thanks,
    Martin

    Slogin I. 5 years ago

    As instructed, we put the video in page and tried to see if we will caught any errors from the console and we got an error (see attached file below).

    screen-shot-2020-08-21-at-7-06-58-pm
    Screen-Shot-2020-08-21-at-7.06.58-PM
    screen-shot-2020-08-21-at-7-04-30-pm
    Screen-Shot-2020-08-21-at-7.04.30-PM
    Juraj Kacaba 5 years ago
    Avatar photo

    Hello Slogin,

    As you can see in the Error log, CORS headers are missing. Please follow our guide: How to enable CORS

    Thanks,
    Juraj

    Slogin I. 5 years ago

    Good Day! We have added CORS configuration the same with the referred link but the video still don’t play.

    We’re catching “Uncaught TypeError: Cannot read property ‘src’ of undefined” error now instead of the cors config error.

    screen-shot-2020-08-24-at-1-47-55-pm
    Screen-Shot-2020-08-24-at-1.47.55-PM
    screen-shot-2020-08-24-at-1-45-17-pm
    Screen-Shot-2020-08-24-at-1.45.17-PM
    Martin 5 years ago

    Hello Slogin,

    that JavaScript error might be or might not be related to the playback issue you are having. Please post it again, but this time click that tiny triangular arrow on the first line of the error notice to reveal the full error trace. Best if you can do with SCRIPT_DEBUG set to true in wp-config.php – if you have a good enough understanding of PHP and file editing.

    There is still a chance that the playback engine is getting invalid decryption key though. Remember that the fv_player_hls_key argument in the HLS license URL has to match the URL of the stream and it must be the only stream that is matched. Previously you used something that was way too general.

    If you follow our guide you will see that it’s written in a way that avoids these mistakes. I’m sorry to see how much trouble you are running into, but it seems to me it’s mostly because you are working on your own video encryption workflow. So it might take couple more messages back and forth and some additional checks on your end before it all works.

    Thanks,
    Martin

    Slogin I. 5 years ago

    Good day! I enabled SCRIPT_DEBUG but it seems I’m still catching the same error. Our engineer stated that the encryption with same settings and workflow with us is working to other sites aside from ours.

    Slogin I. 5 years ago

    We’re also using worpdress multisite just to be specific with the WordPress environment that we’re using

    Martin 5 years ago

    Hello Slogin,

    I think the Multisite is the key to the issue here. If your blog address is https://site.com/actor-a then you must not use https://site.com/?fv_player_hls_key=1beb2ca1-8fce-4110-81ba-843c171a2eb1/hls/test2 but https://site.com/actor-a/?fv_player_hls_key=1beb2ca1-8fce-4110-81ba-843c171a2eb1/hls/test2 – if the blog runs in a “actor-a” folder, it needs to be part of the DRM URL.

    Thanks,
    Martin

Viewing 15 replies - 1 through 15 (of 15 total)
Reply To: DRM encrypted hls video not playing



Please Sign in or Register to upload files.

Related Posts

  1. Video not playing? How to check if Vimeo video hosting is down or if the issue is with your own website

  2. How to Set up Encrypted HLS with Coconut

  3. Playing YouTube videos in your own player

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!