Skip to content
Snippets Groups Projects
Commit be6bfba5 authored by Pierre Lamot's avatar Pierre Lamot
Browse files

wip: qml use FSM to track player state

```plantuml
state playerVisiblity {
    state AudioOnly {
            AudioOnly --> VideoEmbed: updateVideoEmbed\n[mainInterface.hasEmbededVideo]
    }

    state VideoEmbed {
        VideoEmbed -> AudioOnly : updateVideoEmbed\n[!mainInterface.hasEmbededVideo]

        state PinnedControls {
            PinnedControls -> AutoHide: updatePinVideo\n[!mainInterface.pinVideoControls]
        }

        state AutoHide {
            AutoHide -> PinnedControls: updatePinVideo\n[mainInterface.pinVideoControls]

            state AutoHideHidden {
                AutoHideHidden -> AutoHideVisible: raiseToolBar
            }

            state AutoHideVisible {

                 state AutoHideUnlocked {
                    AutoHideUnlocked -> AutoHideHidden : [timeout]
                    AutoHideUnlocked -> AutoHideVisible: raiseToolBar
                    AutoHideUnlocked -> AutoHideLocked: lockAutoHide
                }

                state AutoHideLocked {
                    AutoHideLocked -> AutoHideUnlocked: unlockAutoHide
                }
            }
        }
    }
}
```
parent c8fce1da
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment