Foliovision › Forums › FV Player › Troubleshooting › Encrypted HLS videos not playing
-
I am streaming from MediaConvert with static key DRM. I have the following settings in my FV Player. The encryption key is the one I used in the MediaConvert key option. It is getting stuck at the first segment. Maybe it is not able to decrypt the content. What am I doing wrong. Please help.
-
-
Hello anshbhawnani,
Can you please check the video with our Admin video checker? If it will show you any error, please copy it into your reply.
Thanks,
JurajIt doesn’t show any errors. The video is properly encrypted, just not able to decrypt it.
Hello anshbhawnani,
does the issue occur in Chrome or Firefox? Does it play in Safari on OS X?
Is your WordPress homepage really https://bittentechsolutions.in? That means https:// and no www.
Do you see any errors on browser JavaScript console when you try to play the video? Here’s how to enable that console in your browser: https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/#step-3-diagnosis Once you open that console, reload your page and try to play the video please. Do any errors appear on that console?
Thanks,
MartinThe wordpress homepage URL is absolutely correct. I checked on both Firefox and Chrome, doesn’t work on either of them.
However, when I checked for errors, there are not much but there was one which said “RangeError: offset is outside the bounds of the DataView” when it is trying to request a blob at “blob:https://bittentechsolutions.in/66543724-d7a5-4901-a90f-17cf3fa9d6d5”. It occurs just after the plugin loads the first video segment, and then the video doesn’t play.
Maybe it has to do something with the playback? Please look at the problem yourself:
https://bittentechsolutions.in/sample-beluga/Also, the URL “https://bittentechsolutions.in/?fv_player_hls_key=module-8/1/” I entered for getting the decryption key doesn’t return anything.
Hello anshbhawnani,
I think I have a fix for your issue.
Please just deactivate and delete the current FV Player Pro plugin and then let wp-admin -> Settings -> FV Player reinstall the Pro pack for you, or grab a fresh ZIP file of FV Player Pro from https://foliovision.com/my-licenses and reinstall from that.
Then switch to Beta, here’s how: https://foliovision.com/player/basic-setup/switching-fv-player-pro-to-beta
Hopefully that will fix the issue.
Thanks,
MartinI did the steps, switched to beta mode. And now it is getting some value for the key from the server, but now it is saying “Video not properly encoded”..
Please check yourself again.
https://bittentechsolutions.in/sample-beluga/Hello anshbhawnani,
I think the problem is that https://bittentechsolutions.in/?fv_player_hls_key=module-8/1/ is redirected to https://bittentechsolutions.in/?fv_player_hls_key=module-8%2F1%2F
Figuring out what’s causing that redirection is not easy. I usually end up logging PHP debug_backtrace(2) in wp_redirect() into some file to see if it’s happening inside of WordPress or not.
I see you are using Cloudflare, perhaps that’s what’s causing the redirection. Can you disable their proxy cache for test?
In the end the easiest solution might be to use fv_player_hls_key= without slashes or any other special chars. Can you edit these m3u8 files to use fv_player_hls_key=8.1+Introduction+to+System+Hacking ? As long as it’s unique it will work.
Although on our websites we are not having any issue with slashes in that query argument. There is no redirection like in your case.
Thanks,
MartinHello anshbhawnani,
please try the troubleshooting steps I mentioned in my last message:
Figuring out what’s causing that redirection is not easy. I usually end up logging PHP debug_backtrace(2) in wp_redirect() into some file to see if it’s happening inside of WordPress or not.
I see you are using Cloudflare, perhaps that’s what’s causing the redirection. Can you disable their proxy cache for test? Are you able to exclude just the fv_player_hls_key addresses from their procesing?
In the end the easiest solution might be to use fv_player_hls_key= without slashes or any other special chars. Can you edit these m3u8 files to use fv_player_hls_key=8.1+Introduction+to+System+Hacking ? As long as it’s unique it will work.
Unfortunately I was not able to identify a possible bug in FV Player Pro which could cause your stream to not play. In the worst case you will have to change the fv_player_hls_key arguments in your m3u8 files.
We are also happy to do these troubleshooting steps for you if you order our pro support: https://foliovision.com/pro-support
Otherwise please do through these steps and let us know the result, then we might have some more ideas if it won’t help already.
Thanks,
Martin