SuperFlyTV / casparcg-connection

node.js Javascript/TypeScript library for CasparCG connection and commands.
https://www.npmjs.com/package/casparcg-connection
MIT License
87 stars 22 forks source link

Param inverted in Mixer commands #199

Closed fgraux closed 9 months ago

fgraux commented 9 months ago

Hi there here is a report about a bug I found while sending transformation commands to a Channel / Layer: It seems that duration & tween params are swapped in your exellent module.

Ex: When I send const { error, request } = await CasparCG_Connection.mixerFill({ channel: ccgC, layer: ccgL, x: options[0], y: options[1], xScale: options[2], yScale: options[2], duration: 25, tween: 'EaseInSine'}) (where options is an array containing geometrical stuff) CasparCG returns "Exception: Dynamic exception type: class std::invalid_argument"

And when I send const { error, request } = await CasparCG_Connection.mixerFill({ channel: ccgC, layer: ccgL, x: options[0], y: options[1], xScale: options[2], yScale: options[2], duration: 'EaseInSine', tween: 25}), it works perfectly.

Therefore I gess both params "tween" & "duration" are inverted somewhere in the code. My best

Julusian commented 9 months ago

Thanks for reporting, v6.2.1 will be published in the next few minutes that fixes this