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

Validation error with setFps when call getRender #33

Open
wirabelle opened this issue Oct 28, 2024 · 0 comments
Open

Validation error with setFps when call getRender #33

wirabelle opened this issue Oct 28, 2024 · 0 comments

Comments

@wirabelle
Copy link

Hello, I have an error when I call getRender.

$this->editApi->getRender($id)->getResponse();

Invalid value '25' for 'fps', must be one of '12', '15', '23.976', '24', '25', '29.97', '30', '48', '50', '59.94', '60'

if (!in_array($fps, $allowedValues, true)) {

Dump

$allowedValues
array:11 [▼
  0 => 12
  1 => 15
  2 => 23.976
  3 => 24
  4 => 25
  5 => 29.97
  6 => 30
  7 => 48
  8 => 50
  9 => 59.94
  10 => 60
]
$fps
25.0

$fps float don't match with int in array.

Raw API data
Data after http call

            "output": {
                "format": "jpg",
                "fps": 25,
                "size": {
                    "width": 1920,
                    "height": 1080
                }
            },

Temp fix
I have changed fps value in my template to a float, now when I get new renders it works.

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