How can I in node.js read out the fields that I can update in the template?
example.html (221.0 KB)
I need to publish the fields in my client, that i’m working on.
How can I in node.js read out the fields that I can update in the template?
example.html (221.0 KB)
I need to publish the fields in my client, that i’m working on.
For instance to implement GDD Metadataor by using OGraf compatible templstes.
We just made the integration in Falcon Play (www.wearefalcon.tv)
Just read the html in node, search and read the GDD / Ograf JSON, and use the the data the way you want
This graphic is made with GitHub - nxtedition/create-caspar-graphics: A tool for building, testing and packaging HTML graphics for CasparCG using code.
Seems that I cannot find anything in that I can use.
With that tool you get the description of the template in a separate “manifest.json” file. I don’t know if it follows any standard.
When I use the template in SuperConductor it is possible to write to the exact fields, @Nytamin how do you read the template?
Sorry, SuperConductor (or more accurately; the CasparCG Media Scanner) currently supports GDD and soon the new graphics standard OGraf, but the graphics generated by the nxtedition tool is not compatible with either.
Historically, there has been no “proper” way to read the metadata/manifest of a graphic as there have been no standard for defining the input fields. I created GDD a couple of years ago in an attempt to solve this, and that works okay for now.
If you have a graphic that is GDD compatible you can query casparcg for the metadata (using Media Scanner, http://localhost:8000/templates) and get the field info.
Now, with the OGraf initiative, there will be a way to define the graphics in a standardized way so that they’ll be compatible with different Renderers and expose their metadata/manifests etc. The project is ongoing and will publish the 1.0 specification of the graphics definition at the time of IBC. A specification for a control protocol is currently being drafted and will be finalized by the end of the year.
So my tip to you is to modify your templates to be compatible with GDD right now, and when OGraf has been published and support for it in CasparCG has been implemented, to use that.
Sorry, my bad…
Now I had access to SuperConductor.
My memory was not quite well, as you have to type key + value for the template, so in my application, you also have to do that now.