I just released a nuget package to control CasparCG.
I provide also a lib to receive OSC message.
I started from the old .net library provide by the SVT Team. I added some enhancement to allow Dependency Injection, and a better mechanism for the tcp reconnection.
I separed also the models into a nuget package.
Yes it is possible to use net core or net standard libraries in ‘full framework’ applications. I do this myself with other libs to create small windows desktop applications.
Do you declare a channel in your Server config ?
What is the version of CasparCG Server ?
Can you type the INFO command on the casparCG server prompt and send me the result ?
Hi
I’m having issues with the cg.update command.
I can see it takes the layer number and an ICGDataContainer.
How can I feed the string into that ICGDataContainer?
I fix the problem in the new version, the update command didn’t work.
I add example in the demo project.
type cg add and then cg update in the console app if you want to test
I copy the code if you want to test directly in your app
channel.CG.Add(20, "CASPARCG_FLASH_TEMPLATES_EXAMPLE_PACK_1/ADVANCEDTEMPLATE2");
channel.CG.Play(20);
var data = new CasparCGDataCollection();
data.Add("f0", "my awesome text");
channel.CG.Update(20, data);
The people operating it are not very tech oriented, and this way they won’t have to mess with rundowns in the official client.
Current features:
Loading text files from a folder, splitting it every couple of lines and feeding it to a custom template.
You can control the progress of this template with buttons: next, back, stop, restart.
You can also play any video on the server, complete with loop toggle
Bottom bar with currently playing video info, and a progress bar.
Display lower thids, with an option to auto-stop after x seconds (UI configurable).
Emergency button triggers a complete channel wipe.
The UI is kind of messy now, but it gets the job done!
As far as I can tell, the only difference for a string that is handled OK by my template (sent from official client) and a string sent by the lib, is spaces, or at least some kind of character after each of the xml tags end.
Just to keep you guys all updated, i figured out my cg.update syntax was wrong.
Also refactored my template to parse xml using jQuery, and now everything is running ok.
Thanks @rom1!
New issue has arised.
Using the latest library versions my code no longer works.
Asking for the media files on casparcg server will never return data.