Foliovision › Forums › FV Player › Bug Reports › I am getting the error hlsjs-lite: Video not properly encoded error.
-
-
You can view the error at https://drawdaily.com/testing
Hello Keshart,
If you are serving HLS streams from a video CDN which requires the URL token you have to enable the Stream Loader: https://foliovision.com/player/video-security/video-protection-methods/signed-urls-hls-protection
Please let us know if it won’t help.
Thanks,
MartinHello Keshart,
Is
keshartwebsitebucket
configured in wp-admin -> FV Player -> Settings -> Hosting -> Amazon S3 Protected Content? It should have Region, Access Key ID and Secret Access Key as seen in our guide: https://foliovision.com/player/video-hosting/amazon-s3-guideThanks,
MartinHello Keshart,
I see, I was checking the first video on https://drawdaily.com/testing/ – that one loads from AWS S3.
I see that the other two videos are hosted on DigitalOcean Spaces and they don’t play. There is some issue with the decryption key for the HLS stream.
Please go to wp-admin -> FV Player -> Settings and then apped
&debug
to the URL. So it should look like this:https://your-website.com/wp-admin/options-general.php?page=fvplayer&debug
Then look at “Encrypted HLS tokens” box in the “Tools” tab. It should list your IP.
Try to play one of your encypted video on your test page, then reload your wp-admin -> FV Player -> Settings page with the “Encrypted HLS tokens” box and see what shows up in it. You might see a playback request coming in from some other IP address.
I’m attaching a screenshot of what that box looks like when it has some information in it.
Thanks,
MartinThat defeats the purpose of using a load balancer right . For the amount of traffic the website receives we need to use atleast 3 servers. And the load balancer cannot be configured in a way where we can specify a user to be routed to the same server. Does this mean we cannot use fv player in a load balancer configuration with multiple servers under it?
Hello Keshart,
You can use FV Player, the problem is only with the encrypted HLS streams.
These use the
wp_fv_fp_hls_access_tokens
database table, so if you also have 3 database servers it’s going to be cause issues as the encrypted HLS playback might register on one database server and then the playback will be handled by some other.Do you have a way of sharing that database table among all the web servers, or any other mechanism of shared storage like Redis or Memcached?
Thanks,
MartinHello Keshart,
If there is a single database then it should all work. You said:
So the ip address shown in the your ip and the ip address shown in the client column do not match.
Is any of these IP addresses your actual IP address? Or is it the address of the load balancer or one of the servers?
Thanks,
MartinHello Keshart,
So the real problem here seems to be that FV Player Pro fails to detect your IP address properly.
We use the IP address provided by PHP (
REMOTE_ADDR
) or what’s in theCF_CONNECTING_IP
HTTP header.Please install the “WP-ServerInfo” plugin for a minute and check in wp-admin -> Dashboard -> WP-ServerInfo -> Display PHP Information -> scroll down to “Apache Environment” and see if you can see your actual IP anywhere. There might be a
HTTP_...
variable that has it.You can try to look it up on that page using the browser page search too (Ctrl + F or Command + F).
Thanks,
MartinHello Keshart,
What you need to see if your client IP, not the server one.
It seems to me you need to configure your load balancer setup to pass the client IP to the web servers properly. Unless it’s already there.
FV Player Pro could be set to not use IP address for encrypted HLS streams, but that would lower the protection. I did not suggest that yet as it seems to me you should be able to get client IPs to show for PHP.
Thanks,
Martin