Hi I am migrating over to OH4 and i got up to a road bump.
Below is the snippet of sitemap frame that works fine on OH2.5, it chooses a video feed, and hides other entries.
Frame label=“Kamere”
{
Switch item=Izbor_Kamere icon=“camera” mappings=[1=“Sp”, 2=“Zg”, 3=“Ga”, 4=“Ra”, 5=“Vh”, 6=“Za”, 7=“Tc”,8=“Nič”]
Video url=“http://192.168.1.10:9000” encoding=“mjpeg” visibility=[Izbor_Kamere==1]
//Video url=“http://192.168.1.10:9001” encoding=“mjpeg” visibility=[Izbor_Kamere==1]
Video url=“http://192.168.1.10:9002” encoding=“mjpeg” visibility=[Izbor_Kamere==2]
Video url=“http://192.168.1.10:9003” encoding=“mjpeg” visibility=[Izbor_Kamere==3]
Video url=“http://192.168.1.10:9004” encoding=“mjpeg” visibility=[Izbor_Kamere==4]
Video url=“http://192.168.1.10:9006” encoding=“mjpeg” visibility=[Izbor_Kamere==5]
Video url=“http://192.168.1.10:9007” encoding=“mjpeg” visibility=[Izbor_Kamere==6]
Video url=“http://192.168.1.10:9009” encoding=“mjpeg” visibility=[Izbor_Kamere==7]
}
On OH4 there is an bug within visibility setting as the video resize buttons are escaping the condition of visibility. I see bunch of empty items listed on sitemap with only resize buttons.
It actually clutters up the sitemap badly, so the fix is needed.
The easiest choice for you is first to wait for an approval of my fix by maintainers and then depending on how impatient you are, either install a 4.3 daily snapshot as soon as it will contain the fix or wait for next 4.2 official patch or 4.3 milestone.