[videoosd.xml] <onclick>action(aspectratio)</onclick> - not possible?
#1
Hi all,

I've trying to set a custom button on videoosd.xml to cycle through aspect ratios without having to go through the video options menu.

Setting <onclick>action(aspectratio)</onclick> doesn't seem to do anything, though it works fine on dialogfullscreeninfo.xml... Other actions seem to work ok. Am I missing something obvious or does videoosd.xml block this action deliberately?

Cheers!
Bitcoin donations: 1Hvo9rWzhAVbuPrshgaGZaD7qcLFTCPuiv
[Skin] Pellucid
[Skin] Maximinimalism
Reply
#2
http://forum.xbmc.org/showthread.php?tid...onclick%3E

It's still broken for me too.
http://forum.xbmc.org/showthread.php?tid...pid1012543
had a working example.
Code:
<onclick>Dialog.Close(VideoOSD,true)</onclick>
      <onclick>NextSubtitle</onclick>
works from VideoOSD.xml
Using a NUC7PJYHN and a 2820FYKH0 Intel NUC running LibreELEC, and two FireTVs.:)
Reply
#3
Thanks MacGyver,

Just checked the latest nightly - no joy.
Bitcoin donations: 1Hvo9rWzhAVbuPrshgaGZaD7qcLFTCPuiv
[Skin] Pellucid
[Skin] Maximinimalism
Reply
#4
I'd like to bump this please.

From what I can gather, if VideoOSD is active, the aspect ratio cannot be changed: be that through a button or from the keyboard (z).

Extending the playercontrol function to include aspect ratio cycling would certainly solve the problem. Does anyone else know of a workaround?

Cheers!
Bitcoin donations: 1Hvo9rWzhAVbuPrshgaGZaD7qcLFTCPuiv
[Skin] Pellucid
[Skin] Maximinimalism
Reply
#5
Add to around line 200 in VideoOSD.xml for it to cycle to 16x9 stretch


<!-- Custom Aspect Ratio -->
<control type="button" id="2511">
<width>55</width>
<height>55</height>
<label>Aspect</label>
<font>-</font>
<!--<texturefocus>OSDVideoFO.png</texturefocus>
<texturenofocus>OSDVideoNF.png</texturenofocus>-->
<texturefocus>special://skin/backgrounds/icon-tv.png</texturefocus>
<texturenofocus>special://skin/backgrounds/icon-tv.png</texturenofocus>
<onup>1000</onup>
<ondown>1000</ondown>
<onclick>Dialog.Close(VideoOSD,true)</onclick>
<onclick>aspectratio</onclick>
<onclick>aspectratio</onclick>
<onclick>aspectratio</onclick>
<onclick>aspectratio</onclick>
<onclick>aspectratio</onclick>
<onclick>aspectratio</onclick>
<onclick>aspectratio</onclick>
</control>
Reply
#6
Nice one - thanks halikus
Bitcoin donations: 1Hvo9rWzhAVbuPrshgaGZaD7qcLFTCPuiv
[Skin] Pellucid
[Skin] Maximinimalism
Reply

Logout Mark Read Team Forum Stats Members Help
[videoosd.xml] <onclick>action(aspectratio)</onclick> - not possible?0