Solved Q: musicvisualisation : toggle bool behaviour of 'Player.ShowInfo'
#1
I noticed when the musicvisualisation is loaded , the bool Player.ShowInfo will be true for ca. 10000 ms, then toggles itself to false

if
a - first load / playback
b - if Player.ShowInfo is set to false before/in last playback (e.g. via osd button)

if i toggled it true ( via 'Action(info)' or 'I' Key ) before/on previous playback , i get the wished effect that it doesnt toggle to off when activate the musicvisualisation.

The issue for me is that i cannot produce a 'workin' visible condition to have my 'control' visible on Player.ShowInfo without the unwanted auto toggle.

If i try to circumstance with a double onload action (toggle off and on again onload ) like
   
xml:
<onload condition="Player.ShowInfo">Action(info)</onload>
    <onload condition="Player.ShowInfo">Action(info)</onload>
i will get other issues due to the action (e.g. it also opens the musicinfodialog in 'previous' instance in mymusicnav)

As last resort in hope i tried also its just supossed to work with skinsettings
    <onload condition="Player.ShowInfo">Skin.SetBool(Player.ShowInfo)</onload>

Does anyone have an idea?

Edit :
i add a visible condition based on Custom Property also not solve my issue, as i cannot clear that prop with common key actions (i)

<onload>SetProperty(PlayerShowInfo,true,home)</onload>
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#2
You can control the duration showinfo is active using advancedsettings.xml
https://kodi.wiki/view/Advancedsettings....foduration
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#3
(2020-03-03, 13:11)jurialmunkey Wrote: You can control the duration showinfo is active using advancedsettings.xml
https://kodi.wiki/view/Advancedsettings....foduration

Ok. Thanks. That has helped to understand the behaviour.

Now I found the solution now.

In a case someone else need it...

Set a property onload, to get conditional visibility
xml:
<onload>SetProperty(PlayerShowInfo,true,home)</onload>

Used for the Control
aml:
<visible>Player.ShowInfo | String.IsEqual(Window(home).Property(PlayerShowInfo),true) | [Window.IsActive(script-cu-lrclyrics-main.xml) + Player.ShowInfo</visible>

Used a Custom Dialog as workaround
xml:
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1195">
    <onload>Action(info)</onload>
    <visible>Player.HasAudio + String.IsEqual(Window(Home).Property(PlayerShowInfo),true) + !Player.ShowInfo</visible>
    <onunload>ClearProperty(PlayerShowInfo,home)</onunload>
    <controls />
</window>
Skins |  Titan M O D   •   S W A N (WIP)
Reply

Logout Mark Read Team Forum Stats Members Help
Q: musicvisualisation : toggle bool behaviour of 'Player.ShowInfo'0