Casparcg-connection .scheduleSet -- help needed


#1

Hi all

i am trying to use the scheduleSet command in cacsparcg connection.

const {CasparCG} = require('casparcg-connection')
var CCG1 = new CasparCG({'host': '192.168.100.5'})
CCG1.scheduleSet('08:58:30:00', CCG1.play(1,1,'wipe'))

this is wrong (clip start directly) can any one give a clue what needs to be the 2nd argument in this command. thanks in front Maurice


#2

Think that only works with the NRK fork - you using it?


#3

Yes, the scheduling of commands only works with the NRK fork, found here:


#4

I am using the NRK fork :wink: that’s why i asked


#5

When you do the CCG1.Play( that is sending a play, and you are trying to schedule the result of that play.
The following should work. I havent tested it, so the names may be a little off but hopefully it works.

const {CasparCG, AMCP} = require('casparcg-connection')
var CCG1 = new CasparCG({'host': '192.168.100.5'})
CCG1.scheduleSet('08:58:30:00', new AMCP.PlayCommand({ channel: 1, layer: 1, clip: 'wipe' }))

#6

Thanks Julian

This does the trick !