Skip to content

Validation error with setFps when call getRender  #33

@wirabelle

Description

@wirabelle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions