-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
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'
shotstack-sdk-php/src/Model/Output.php
Line 737 in 1a46e52
| 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
Labels
No labels