• 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

Stage enviroment: hlsjs-lite video not properly encoded

Foliovision › Forums › FV Player › Troubleshooting › Stage enviroment: hlsjs-lite video not properly encoded

  • Gregory 1 year, 11 months ago

    Hello,

    I have a stage environment, on the same domain (stage.maindomain.com).
    I clone the main website there.
    After that, all the videos returning hlsjs-lite video not properly encoded.

    I use Digital Ocean, Coconut and BunnyCDN.
    Whatever is made through Bunny Stream plays ok.
    The videos that have hls encryption on, are not playing.

    I have checked the settings and the licenses. Everything seams fine.
    I also notice that coconut was not sending files for encoding. I start a new job, that remained on status started. After that I try to change API for coconut, but after that change coconut started to crash the website.
    Now, if coconut plugin is active, the wp-admin returns error.

    I tried to roll back but is not correcting the issue.

    I check the database and I found on options table that _transient_fv-player-coconut_license has as value O:8:”stdClass”:1:{s:5:”error”;s:11:”Invalid key”;}

    So… I guess I need to reset that field so to add the license again, but the setting page is not loading when the coconut is active so…
    Can you tell me where is it in the database to delete it and force the wizard to come up?
    Is there something else that I may miss?

    Looking forward for your suggestions.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Martin 2 years ago

    Hello Gregory,

    the encrypted HLS streams are set to play on your website domain only. However if you staging domain is a sub-domain of your live domain it should play.

    If that’s not the case, please send a link to your staging website where we can see a video (not) playing.

    I see you setup the staging website license for your FV Player Coconut, you should be able to enter that in wp-admin -> FV Player -> Coconut Jobs -> Settings – even without running the setup wizard again.

    Thanks,
    Martin

    Gregory 2 years ago

    “wp-admin -> FV Player -> Coconut Jobs -> Settings”
    It is not opening. As long as coconut plugin is active, the content crashes.
    I need to make a hard change on the DB. I can’t find the correct field.

    About the hls:
    The video is playing on the main domain, not on the subdomain. The headers are correct from DigitalOcean side but the browser console says are not:
    (Access to XMLHttpRequest at ‘https://domain.com./?stream_optim=/videofilename/index‘ from origin ‘https://dev.domain.com.’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.)

    The above error says that the main domain is blocking the subdomain…?
    It’s coming when you hit play on video.

    Gregory 2 years ago

    Update:
    I try a clean install and when I went for coconut verification API
    on browser console I got:

    XHRPOST
    https://dev.mydomain.com/wp-admin/admin-ajax.php
    [HTTP/2 500 Internal Server Error 343ms]

    Martin 2 years ago

    Hello Gregory,

    is your development website really a sub-domain of your live website, like that dev.domain.com is a sub-domain to domain.com? If both use the same “domain.com”, then it should work.

    Like I said the staging domain should be a sub-domain of your live domain to play these encrypted HLS streams.

    If that’s not the case, please send a link to your staging website where we can see a video (not) playing.

    This seems needlessly complex but we are protecting the videos. If we can make some adjustments to make operating a staging website easier we will – like we did with these staging website subdomains being allowed to play these videos.

    If you get a HTTP 500 code anywhere the please check if anything new appeared in the PHP error log. If you are not sure about how to check the PHP error log, the server technical support should be able to give you a hand.

    Or you can install this plugin which makes a list of these errors available in wp-admin: https://wordpress.org/plugins/error-log-monitor/

    Then try to reproduce the error again and it should be recorded in these logs.

    Thanks,
    Martin

    Gregory 2 years ago

    Hi,

    I found the below error through the plugin.

    Fatal error: Uncaught Error: Call to undefined function Coconut\curl_exec() in /home/mydomain/public_html/dev/stage/cleansetup/wp-content/plugins/fv-player-coconut/vendor/opencoconut/coconut/src/API.php:29
    Stack Trace

    1. Coconut\API->request(‘POST’, ‘/jobs’, Array)/home/mydomain/public_html/dev/stage/cleansetup/wp-content/plugins/fv-player-coconut/vendor/opencoconut/coconut/src/Job.php:25
    2. Coconut\Job->create(Array)/home/mydomain/public_html/dev/stage/cleansetup/wp-content/plugins/fv-player-coconut/wizard/step_2_coconut_key.php:37
    3. FV_Player_Coconut_Wizard_step_2_coconut_key->process()/home/mydomain/public_html/dev/stage/cleansetup/wp-content/plugins/fv-wordpress-flowplayer/includes/class.fv-player-wizard-base.php:63
    4. FV_Player_Wizard_Base_Class->ajax(”)/home/mydomain/public_html/dev/stage/cleansetup/wp-includes/class-wp-hook.php:308
    5. WP_Hook->apply_filters(”, Array)/home/mydomain/public_html/dev/stage/cleansetup/wp-includes/class-wp-hook.php:332
    6. WP_Hook->do_action(Array)/home/mydomain/public_html/dev/stage/cleansetup/wp-includes/plugin.php:517
    7. do_action(‘wp_ajax_fv_play…’)/home/mydomain/public_html/dev/stage/cleansetup/wp-admin/admin-ajax.php:188
    8. {main}
      thrown in /home/mydomain/public_html/dev/stage/cleansetup/wp-content/plugins/fv-player-coconut/vendor/opencoconut/coconut/src/API.php on line 29

    ***This environment is completely clean. With the default theme and no extra plugins.

    Martin 2 years ago

    Hello Gregory,

    it says the cURL library is missing in your PHP. It’s required by the Coconut PHP library.

    Please ask your web hosting support to add that PHP library for you, it’s very common and only missing in rare cases. So it shouldn’t be a problem to add it.

    Thanks,
    Martin

    Gregory 2 years ago

    I| found out a little bit later that the curl was on the Disabled Function of PHP. I remove it for the list and everything started working again. Thanks.

    Martin 2 years ago

    Hello Gregory,

    thank you for confirming, we will add that to the FV Player Coconut compatibility checks.

    Thanks,
    Martin

    Gregory 2 years ago

    Hi there,
    I post here as I am on the same project.
    I had to reconfigure fv player hosts and coconut on main site. I put the host info for Digital ocean, and I am on coconut wizard.
    Coconut API checking – OK.
    On the digital ocean checking, I see the key and the secret I add before,
    and the message:
    “Your FV Player is already configured to use the mydomain-source-videos Space for your videos. Only proceed if you are sure it’s not in use.”
    On the next step where I should see the spaces, the fields are empty.
    On wizard log there is this:
    DigitalOcean Spaces Failed to check mydomain-com-encoded-vids-from-coconut in sgp1 (has more with other country codes)

    I suppose that somehow it is failing to create the new space?

    On web console I have this message:
    Object { key: “322321c6799ece8fb5e02bedca0211fc”, type: “deprecated”, message: “The PSR-0 Requests_... class names in the Request library are deprecated. Switch to the PSR-4 WpOrg\\Requests\\... class names at your earliest convenience.”, file: “wp-includes/class-requests.php”, line: 24, stack: (6) […], component: “Plugin: fv-player-coconut” }
    component: “Plugin: fv-player-coconut”
    file: “wp-includes/class-requests.php”
    key: “322321c6799ece8fb5e02bedca0211fc”
    line: 24
    message: “The PSR-0 Requests_... class names in the Request library are deprecated. Switch to the PSR-4 WpOrg\\Requests\\... class names at your earliest convenience.”
    stack: Array(6) [ “WpOrg\Requests\Autoload::load()”, “FV_Player_Coconut_Wizard_step_4_dos_spaces_api::check_dos_space()”, “FV_Player_Coconut_Wizard_step_4_dos_spaces_api::process_dos_spaces()”, … ]
    type: “deprecated”
    <prototype>: Object { … }.

    • On stage environment (dev.mydomain.com) I had no issue.

    Any ideas?

    Martin 2 years ago

    Hello Gregory,

    please go to wp-admin -> FV Player -> Settings -> Hosting -> DigitalOcean Spaces and clear the “Space Name” field. Then the wizard should work.

    Thanks,
    Martin

    Gregory 2 years ago

    I already tried that. Same behavior.
    Is there a way to skip wizard and see the coconut settings page, so to add the keys?

    Martin 2 years ago

    Hello Gregory,

    please try to change the website name in wp-admin -> Settings -> General temporarily. That will let the FV Player Coconut Wizard try with some other Space name on DigitalOcean.

    Thanks,
    Martin

Viewing 12 replies - 1 through 12 (of 12 total)
Reply To: Stage enviroment: hlsjs-lite video not properly encoded



Please Sign in or Register to upload files.

Related Posts

  1. hlsjs-lite unsupported video / video not properly encoded

    hlsjs-lite unsupported video / video not properly encoded

  2. hlsjs-lite: Video not properly encoded

    hlsjs-lite: Video not properly encoded

  3. FVPlayer-Coconut, DigitalOcean, Bunny: hlsjs-lite video not properly encoded

    FVPlayer-Coconut, DigitalOcean, Bunny: hlsjs-lite video not properly encoded

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!