Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set maximum duration #506

Open
RakeshPotnuru opened this issue Oct 26, 2024 · 0 comments
Open

Set maximum duration #506

RakeshPotnuru opened this issue Oct 26, 2024 · 0 comments

Comments

@RakeshPotnuru
Copy link

RakeshPotnuru commented Oct 26, 2024

Is there a way to set maximum duration for videos before uploading?

const { url } = await this.mux.video.uploads.create({
      new_asset_settings: {
        playback_policy: ["public"],
        encoding_tier: "baseline",
       max_duration: 30 // <------ something like this
      },
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant