Casparcg-connection Call Loop

Hello everyone,

i’m trying to loop and unloop with casparcg-connection with de Call method but i have this error :

caspar_connection.call(1,1, {loop:true});

node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason “[object Object]”.] {
code: ‘ERR_UNHANDLED_REJECTION’
}

your help would be appreciated

thank’s !

I use

caspar_connection.do(new AMCP.CustomCommand('call 1-1 loop 1')).then((aa1) => console.log(aa1)).catch((aa2) => console.log(aa2));

Thank you for your prompt response ! It’s working !

1 Like
Privacy Policy   Terms of Service