Hi,
i built a custom client of casparcg in dotnet which i’m using for playout, cg and atem switcher synchronously and in some cases i’m using it for some automation and currently i’m using osc with some registered methods for getting file time/frame of specific channel and layer
but i’m looking for right way to register and filter osc messages for individual channels and layers instead of registered 100 methods of channel 1 and layer 1-100 for file time/frame
what i’m trying to achieve is register osc method only when i need to get time/frame and after that remove it for example
when client user going to play a file on channel 2 and layer 24 then before playing register osc method “/channel/2/stage/layer/24/file/frame” and remove it when layer is empty
so i’m thinking to define a class with channel, layer and frames properties and list it with registered methods data
and for usage filter it with specific channel and layer
but i’m confuse if this is the right way or if there is something better then this
Thanks
I’ll try with it to implement will you please share the right way for implementation
For example while using CasparCG at some point i need osc for file time of channel 2 layer 42 ?
Wow I’m using your library and it’s very simple and clean
Is it ok to create new instance of Osc listener for every player in my application with filtered method or should I use only one static instance
Actually I have multiple players and multiple layers in every player in my application
Right now I’m not able to test it soon but yeah sure I’ll share with you multiple instance result.
and I think we should add another filter to whitelist for getting specific channel and layer data with event manager instead of adding another instance.
It’ll be nice if you add this in your class this will make it more useful.
I just add the lib on nuget. I need to make demo and fill the readme. You can find the lib on nuget. Note that it’s an alpha version. All your remarks are welcome.