Posts: 797
Joined: Dec 2010
Reputation:
33
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!
Posts: 797
Joined: Dec 2010
Reputation:
33
Thanks MacGyver,
Just checked the latest nightly - no joy.
Posts: 797
Joined: Dec 2010
Reputation:
33
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!
Posts: 7
Joined: Oct 2015
Reputation:
1
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>
Posts: 797
Joined: Dec 2010
Reputation:
33
Nice one - thanks halikus