• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

  • 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 2 years, 8 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 3 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 3 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 3 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 3 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 3 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 3 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 3 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 3 years ago

    Hello Gregory,

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

    Thanks,
    Martin

    Gregory 3 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 3 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 3 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 3 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

Troubleshooting

    Categories

    • Business
    • Camera Reviews
    • Case Studies
    • Design
    • FV Player
    • Internet Marketing
    • IT
    • Life
    • SEO
    • Slovak
    • Video of the Week
    • WordPress

    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 © 2026 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‬