(2020-03-11, 03:18)jurialmunkey Wrote: (2020-03-10, 23:20)spl147 Wrote: anyone know how to accomplish this?
perhaps call $INFO[ListItem.VideoAspect] when play is clicked then pass it to $INFO[VideoPlayer.VideoAspect]
but i have no idea howto do that
You would need to override the onclick action which you can't do for normal library containers.
You could try setting a window property onunload of MyVideoNav.xml
Code:
<onunload>SetProperty(nowplaying_videoaspect,$INFO[ListItem.VideoAspect],Home)</onunload>
And then:
Code:
$INFO[Window(Home).Property(nowplaying_videoaspect)]
You would need to couple this approach with custom onclick actions for any widget containers that you use.
Also, this approach is a total hack and likely won't work in many scenarios.
I actually got this working by Creating a Vairable and calling Player.Filenameandpath
im trying to figure out howto add info from the filename to the videofullscreen.xml now, i tried the same as you posted above but i think my syntax is wrong:
in MyVideoNav.xml i have:
Code:
<onunload>SetProperty(nowplaying_videoaspect,$INFO[ListItem.VideoAspect],Home)</onunload>
then in VideoFullScreen.xml i have:
Code:
<texture>$INFO[Window(Home).Property(nowplaying_videoaspect),flags/aspectratio/,.png]</texture>
and it works perfectly. so i tried the same concept to pull audiocodec from the filename using:
Code:
<onunload>SetProperty(nowplaying_audiocodec,$INFO[ListItem.Filenameandpath, Atmos],Home)</onunload>
and
Code:
<texture>$INFO[Window(Home).Property(nowplaying_audiocodec),flags/audiocodec/,.png]</texture>
but it does not work, is my syntax wrong?