Yoooi0 / MultiFunPlayer

flexible application to synchronize various devices with media playback
https://yoooi0.github.io/MultiFunPlayer/
MIT License
105 stars 20 forks source link

Add ability for plugins to read aplication state #139

Closed Yoooi0 closed 7 months ago

Yoooi0 commented 9 months ago

Currently plugins rely on events to get the state, they cant know the current state when starting and have to wait for new events. Could be solution for #124 although not very optimized.

Probably need a system similar to registering actions:

x.RegisterProperty<bool>("Media::IsPlaying", () => IsPlaying);
x.RegisterProperty<DeviceAxis, int>("Axis::Index", axis => AxisState[axis].Index);

Some could be used for #28?