I’m very new to CasparCG, and I must say that first-impressions are really good, once I understood the basics.
I’m now trying to make some basic Lowerthird- html template, but once i add it to Caspar and try to run the template it I get the following in the server console
[0311/111953:ERROR:renderer_main.cc(226)] Running without renderer sandbox
[0311/111953:INFO:CONSOLE(0)] "Uncaught ReferenceError: update is not defined", source: file:///C:/Users/johan/Desktop/CasparCG%20Server%202.0.7%20(1)/CasparCG%20Server/Server/templates//TEST.html (0)
[0311/111953:INFO:CONSOLE(0)] "Uncaught ReferenceError: play is not defined", source: file:///C:/Users/johan/Desktop/CasparCG%20Server%202.0.7%20(1)/CasparCG%20Server/Server/templates//TEST.html (0)
It happens with various HTML files. Thankful for help =)
There need to be JavaScript functions for play()stop() and update() at minimum For Caspar to update the variable data (update), start the intro animation (play) and start the outro animation (stop).
Thank you for helping! I added some functions, and the ReferenceErrors vanished thankfully.
But this Error still remains, you don’t happen to know what causing that?
[0311/125356:ERROR:renderer_main.cc(226)] Running without renderer sandbox
In some versions of CasparCG you get these (misleading) error message when it’s unable to access the HTML template file at all. It’s complaining about missing update() and play() functions, when in fact it’s missing the template file entirely.
If you are using any script file and getting "Uncaught ReferenceError: x is not defined " which means ‘x’ is either a variable or a method which you are trying to use before declaring it using var keyword. This means that there is a non-existent variable referenced somewhere. This variable needs to be declared, or you need to make sure it is available in your current script or scope otherwise , it will endup throwing this ‘x’ is not defined error . This usually indicates that your library is not loaded and JavaScript does not recognize the ‘x’.
To solve this error: Load your library at the beginning of all your scripts.
There can be multiple other reasons for this issue: