Add RFC: Separate context bar code into UI and plugins#61
Add RFC: Separate context bar code into UI and plugins#61norihiro wants to merge 1 commit intoobsproject:masterfrom
Conversation
3e126ea to
d14da66
Compare
312f858 to
db44541
Compare
|
I like this approach! I thought of a similar concept (to the first variation of the two) a while back so was happy to see this RFC. Additionally, this doesn't handle what happens to things that are currently custom crafted, like media controls. Sources like the media source currently indicate that they can be media controlled, should those just not implement this new API? What should happen if they both implement this but also can be controlled? |
db44541 to
ed06d84
Compare
The biggest number of items is 3 for the text source. Around 4 would be a maximum I think. Do we need to have a hard-coded maximum number or just recommended by the API document?
I was not considering the media control. Media control toolbar ( The media control toolbar implements some buttons, sliders to indicate and control playing time, and text label indicating slideshow page. To have the buttons from I need more consideration for the slider and the page label. We might add a new variation of |
|
So far, I don't have a concrete idea to implement the media control UI into the property context bar. The slider is the biggest problem. The slider gets updated every second. The slider is not associated with any object in the settings. The slider displays and controls the current duration. However, every property type, except the button, is tied to an object in the settings. This is outside of the architecture made by If adding a new property type that displays the internal state which is not included in the settings, I also want to consider the graphical display of the compressor, expander, and gate filters. I think the rewrite of the context toolbar won't make it more difficult to rewrite the media control. So, we can just rewrite the context toolbar at first. |
Description
This RFC proposes to separate the implementation of the context bar into
UI/andplugins/.Motivation and Context
UI has the implementation of the context-bar for each source type.
As the result, property names are hard-coded in both UI and plugins.
In possible future modification, it might require to change both plugin and UI, which might lead a potential bug.
It is a good implementation to separate the plugin-specific implementation from the UI.
This will also enable 3rd party plugins to have their context bar.
Rendered RFC