Skip to content

Instantly share code, notes, and snippets.

@jjd-uk
jjd-uk / DialogSeekBar.xml
Created February 10, 2024 23:56
TEST: $INFO[VideoPlayer.CastAndRole]
<?xml version="1.0" encoding="UTF-8"?>
<window>
<visible>Window.IsActive(fullscreenvideo) | Window.IsActive(visualisation)</visible>
<visible>![Window.IsActive(sliderdialog) | Window.IsActive(pvrosdchannels) | Window.IsActive(pvrchannelguide) | Window.IsActive(pvrguideinfo) | Window.IsActive(1110)]</visible>
<visible>Player.Seeking | Player.HasPerformedSeek(3) | [Player.Paused + !Player.Caching] | Player.Forwarding | Player.Rewinding | Player.ShowInfo | Window.IsActive(fullscreeninfo) | Player.ShowTime | Window.IsActive(videoosd) | Window.IsActive(musicosd) | Window.IsActive(playerprocessinfo) | !String.IsEmpty(Player.SeekNumeric) | !String.IsEmpty(PVR.ChannelNumberInput)</visible>
<include>Animation_BottomSlide</include>
<depth>DepthOSD</depth>
<zorder>0</zorder>
<controls>
<include>PVRChannelNumberInput</include>
@jjd-uk
jjd-uk / MyVideoNav.xml
Created February 3, 2024 14:35
Audio Property Flagging
<?xml version="1.0" encoding="UTF-8"?>
<window>
<defaultcontrol always="true">50</defaultcontrol>
<backgroundcolor>background</backgroundcolor>
<views>50,51,52,53,54,55,500,501,502</views>
<menucontrol>9000</menucontrol>
<controls>
<include>DefaultBackground</include>
<control type="group">
<animation effect="fade" start="100" end="0" time="200" tween="sine" condition="$EXP[infodialog_active]">Conditional</animation>
<control type="list" id="6">
<left>440</left>
<top>100</top>
<width>920</width>
<height>625</height>
<onup>6</onup>
<ondown>6</ondown>
<onleft>9001</onleft>
<onright>61</onright>
<pagecontrol>61</pagecontrol>
<?xml version="1.0" encoding="UTF-8"?>
<window>
<defaultcontrol always="true">3</defaultcontrol>
<include>Animation_DialogPopupOpenClose</include>
<depth>DepthOSD</depth>
<controls>
<include condition="![Window.IsActive(gamesaves) | Window.IsActive(gamestretchmode) | Window.IsActive(gamevideofilter) | Window.IsActive(gamevideorotation) | Window.IsActive(ingamesaves)]">DefaultDialogSelectLayout</include>
<include condition="Window.IsActive(gamesaves)">GameDialogSelectSaveLayout</include>
<include condition="Window.IsActive(gamevideofilter)">GameDialogSelectFilterLayout</include>
<include condition="Window.IsActive(gamestretchmode)">GameDialogSelectViewLayout</include>
case AV_CODEC_ID_TRUEHD:
{
switch (profile)
{
case FF_PROFILE_TRUEHD_ATMOS:
strInfo = "TrueHD Atmos ";
break;
default:
strInfo = "TrueHD ";
break;
@jjd-uk
jjd-uk / DTS:X
Created November 22, 2023 12:42
case AV_CODEC_ID_DTS:
{
switch (profile)
{
case FF_PROFILE_DTS_96_24:
strInfo = "DTS 96/24 ";
break;
case FF_PROFILE_DTS_ES:
strInfo = "DTS ES ";
break;
@jjd-uk
jjd-uk / advancedsettings.xml
Created January 27, 2023 15:28
Add mp3 as video extensions
<advancedsettings version="1.0">
<videoextensions>
<add>.mp3</add>
</videoextensions>
</advancedsettings>
<?xml version="1.0" encoding="UTF-8"?>
<window>
<defaultcontrol>9000</defaultcontrol>
<backgroundcolor>background</backgroundcolor>
<onload condition="String.IsEmpty(Skin.String(background_overlay))">Skin.SetString(background_overlay,1)</onload>
<controls>
<include>DefaultBackground</include>
<control type="multiimage">
<depth>DepthBackground</depth>
<include>FullScreenDimensions</include>
<include name="SongsListLayout">
<focusedlayout height="80" condition="Container.Content(songs)">
<control type="image">
<left>0</left>
<right>0</right>
<height>80</height>
<texture colordiffuse="button_focus">lists/focus.png</texture>
<visible>Control.hasFocus(55)</visible>
</control>
<control type="label">
<?xml version="1.0" encoding="UTF-8"?>
<window>
<depth>DepthOSD</depth>
<defaultcontrol always="true">5550</defaultcontrol>
<animation effect="fade" start="0" end="100" time="300">WindowOpen</animation>
<animation effect="fade" start="100" end="0" time="200">WindowClose</animation>
<controls>
<control type="group">
<bottom>0</bottom>
<height>250</height>