strapi-plugin-mux-video-uploader icon indicating copy to clipboard operation
strapi-plugin-mux-video-uploader copied to clipboard

Can't add custom caption/subtitle file

Open kelihansen opened this issue 1 year ago • 1 comments

Hi! We're so excited to see @hdoro's features merged. Auto-generating captions when we upload a new asset appears to be working beautifully.

Unfortunately, uploading a caption file silently fails. I think this is because strapi.backendURL is meant to be used in the browser - it's undefined on the server. I'm not 100% sure what value should replace it, maybe process.env.STRAPI_ADMIN_BACKEND_URL?

It also appears that, while Language and File are marked as required when you try to add a file, nothing happens if you hit "Finish" without them.

kelihansen avatar Apr 03 '24 00:04 kelihansen

Hi! Thanks for your report. We'll investigate and get back to you soon

daytime-em avatar Apr 10 '24 19:04 daytime-em

Hello @kelihansen , Thank you for filing this issue. You are correct in that we were using the process.env.STRAPI_ADMIN_BACKEND_URL. We've just launched a new version of this plugin (v3.0.1) which is targeted to work with Strapi v5 and have made some enhancements on how this all works. Going forward, you will want to use the url config property in the ./config/server.ts to specify your domain name. Take a look at the following example which is intended Typescript version of Strapi (note that you'll need to change the obviously exampled url value)—

export default ({ env }) => ({
  host: env('HOST', '0.0.0.0'),
  port: env.int('PORT', 1337),
  app: {
    keys: env.array('APP_KEYS'),
  },
  url: 'https://YOUR.COOL.DOMAIN.COM'
});

Please let us know if you have any further questions. Thank you!

erikpena avatar Oct 19 '24 04:10 erikpena