DialogVideoinfo.xml in the OSD
#1
Hello, so I managed to change the window that opens when I click on the i (information) button in the OSD. To do that, I created a new custom window where I pasted the whole DialogVideoInfo.xml. But for some reasons that I don't know, the cast doesn't appear, it says "no cast available" while there is a cast. Do you know what could be the reason ?

Thanks
Reply
#2
(2021-07-06, 11:05)Bungee_G Wrote: Hello, so I managed to change the window that opens when I click on the i (information) button in the OSD. To do that, I created a new custom window where I pasted the whole DialogVideoInfo.xml. But for some reasons that I don't know, the cast doesn't appear, it says "no cast available" while there is a cast. Do you know what could be the reason ?

Thanks


there is a native dialog for that case, documentation mussing it.

file = DialogFullScreenInfo.xml
name = fullscreeninfo
id=10142
internal name = WINDOW_DIALOG_FULLSCREEN_INFO
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#3
(2021-07-06, 12:05)mardukL Wrote:
(2021-07-06, 11:05)Bungee_G Wrote: Hello, so I managed to change the window that opens when I click on the i (information) button in the OSD. To do that, I created a new custom window where I pasted the whole DialogVideoInfo.xml. But for some reasons that I don't know, the cast doesn't appear, it says "no cast available" while there is a cast. Do you know what could be the reason ?

Thanks


there is a native dialog for that case, documentation mussing it.

file = DialogFullScreenInfo.xml
name = fullscreeninfo
id=10142
internal name = WINDOW_DIALOG_FULLSCREEN_INFO

No, if I change the line to :
xml:
<onclick>ActivateWindow(fullscreeninfo)</onclick>
the window doesn't open
Reply
#4
(2021-07-06, 12:14)Bungee_G Wrote:
(2021-07-06, 12:05)mardukL Wrote:
(2021-07-06, 11:05)Bungee_G Wrote: Hello, so I managed to change the window that opens when I click on the i (information) button in the OSD. To do that, I created a new custom window where I pasted the whole DialogVideoInfo.xml. But for some reasons that I don't know, the cast doesn't appear, it says "no cast available" while there is a cast. Do you know what could be the reason ?

Thanks


there is a native dialog for that case, documentation mussing it.

file = DialogFullScreenInfo.xml
name = fullscreeninfo
id=10142
internal name = WINDOW_DIALOG_FULLSCREEN_INFO

No, if I change the line to :
xml:
<onclick>ActivateWindow(fullscreeninfo)</onclick>
the window doesn't open

Did you got the xml defined PLACED and DEFINIED in the skin??

i tested and worked fine...
SOURCE : https://github.com/xbmc/xbmc/blob/master...indowIDs.h


when using
<onclick condition="player.hasvideo">ActivateWindow(10142)</onclick>
or
<onclick condition="player.hasvideo">ActivateWindow(fullscreeninfo)</onclick>

look at top left - debug overlay

Image
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#5
(2021-07-06, 12:20)mardukL Wrote:
(2021-07-06, 12:14)Bungee_G Wrote:
(2021-07-06, 12:05)mardukL Wrote: there is a native dialog for that case, documentation mussing it.

file = DialogFullScreenInfo.xml
name = fullscreeninfo
id=10142
internal name = WINDOW_DIALOG_FULLSCREEN_INFO

No, if I change the line to :
xml:
<onclick>ActivateWindow(fullscreeninfo)</onclick>
the window doesn't open

Did you got the xml defined PLACED and DEFINIED in the skin??

i tested and worked fine...
SOURCE : https://github.com/xbmc/xbmc/blob/master...indowIDs.h


when using
<onclick condition="player.hasvideo">ActivateWindow(10142)</onclick>
or
<onclick condition="player.hasvideo">ActivateWindow(fullscreeninfo)</onclick>

look at top left - debug overlay

Image
I am using the Estuary Skin, and there is only this in the dialogfullscreeninfo.xml file : 

xml:
<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol always="true">999</defaultcontrol>
    <controls>
        <control type="button" id="999">
            <left>0</left>
            <top>0</top>
            <width>100%</width>
            <height>100%</height>
            <texturefocus />
            <texturenofocus />
            <onright>StepForward</onright>
            <onleft>StepBack</onleft>
            <onup>ChapterOrBigStepForward</onup>
            <ondown>ChapterOrBigStepBack</ondown>
            <onclick>OSD</onclick>
        </control>
    </controls>
</window>

It is the dialogvideoinfo.xml file that permit to display the full screen informations. It is normally displayed when you press and hold a movie then click on information but not in the OSD but that's what I want to do. But I managed to get this in the OSD by clicking on the i button, without cast and the button at the bottom do not work :Image
And I think it's this whole panel in the DialogVideoInfo.xml file that permits to display the cast :
xml:
<control type="panel" id="50">
                    <top>158</top>
                    <width>1235</width>
                    <height>370</height>
                    <onup condition="System.AddonIsEnabled(script.embuary.info) + Control.HasFocus(50) + !String.IsEqual(ListItem.DBType,set)">RunScript(script.embuary.info,call=person,query='$ESCINFO[Container(50).ListItem.Label]')</onup>
                    <onup condition="System.HasAddon(script.embuary.info) + !System.AddonIsEnabled(script.embuary.info) + !String.IsEqual(ListItem.DBType,set)">EnableAddon(script.embuary.info)</onup>
                    <onup condition="!System.HasAddon(script.embuary.info) + !String.IsEqual(ListItem.DBType,set)">InstallAddon(script.embuary.info)</onup>
                    <onleft>50</onleft>
                    <onright>50</onright>
                    <ondown>140</ondown>
                    <scrolltime>200</scrolltime>
                    <orientation>horizontal</orientation>
                    <itemlayout height="317" width="245" condition="!Container.Content(Sets)">
                        <control type="group">
                            <top>10</top>
                            <control type="image">
                                <top>0</top>
                                <width>264</width>
                                <height>317</height>
                                <texture>DefaultActorSolid.png</texture>
                                <aspectratio aligny="center">scale</aspectratio>
                                <bordertexture border="21">overlays/shadow.png</bordertexture>
                                <bordersize>20</bordersize>
                            </control>
                            <control type="image">
                                <top>20</top>
                                <left>20</left>
                                <width>224</width>
                                <height>277</height>
                                <texture background="true">$INFO[ListItem.Thumb]</texture>
                                <aspectratio aligny="center">scale</aspectratio>
                            </control>
                            <control type="image">
                                <left>20</left>
                                <width>224</width>
                                <height>80</height>
                                <bottom>10</bottom>
                                <texture>overlays/overlayfade.png</texture>
                                <animation effect="fade" start="100" end="80" time="0" condition="true">Conditional</animation>
                            </control>
                            <control type="label">
                                <left>25</left>
                                <width>214</width>
                                <height>67</height>
                                <top>218</top>
                                <align>center</align>
                                <aligny>center</aligny>
                                <font>font12</font>
                                <label>$INFO[ListItem.Label]</label>
                            </control>
                            <control type="label">
                                <left>25</left>
                                <width>214</width>
                                <height>67</height>
                                <top>245</top>
                                <align>center</align>
                                <aligny>center</aligny>
                                <font>font12</font>
                                <textcolor>grey</textcolor>
                                <label>$INFO[ListItem.Label2]</label>
                            </control>
                        </control>
                    </itemlayout>
                    <focusedlayout height="317" width="245" condition="!Container.Content(Sets)">
                        <control type="group">
                            <left>0</left>
                            <top>10</top>
                            <control type="image">
                                <top>0</top>
                                <width>264</width>
                                <height>317</height>
                                <texture>DefaultActorSolid.png</texture>
                                <aspectratio aligny="center">scale</aspectratio>
                                <bordertexture border="21">overlays/shadow.png</bordertexture>
                                <bordersize>20</bordersize>
                            </control>
                            <control type="image">
                                <top>20</top>
                                <left>20</left>
                                <width>224</width>
                                <height>277</height>
                                <texture background="true">$INFO[ListItem.Thumb]</texture>
                                <aspectratio aligny="center">scale</aspectratio>
                            </control>
                            <control type="image">
                                <left>20</left>
                                <width>224</width>
                                <height>80</height>
                                <bottom>10</bottom>
                                <texture>overlays/overlayfade.png</texture>
                                <animation effect="fade" start="100" end="80" time="0" condition="true">Conditional</animation>
                            </control>
                            <control type="label">
                                <left>25</left>
                                <width>214</width>
                                <height>67</height>
                                <top>218</top>
                                <align>center</align>
                                <aligny>center</aligny>
                                <font>font12</font>
                                <scroll>true</scroll>
                                <label>$INFO[ListItem.Label]</label>
                            </control>
                            <control type="label">
                                <left>25</left>
                                <width>214</width>
                                <height>67</height>
                                <top>245</top>
                                <align>center</align>
                                <aligny>center</aligny>
                                <font>font12</font>
                                <textcolor>grey</textcolor>
                                <scroll>true</scroll>
                                <label>$INFO[ListItem.Label2]</label>
                            </control>
                            <control type="image">
                                <left>16</left>
                                <top>16</top>
                                <width>232</width>
                                <height>285</height>
                                <texture border="8" colordiffuse="button_focus">buttons/thumbnail_focused.png</texture>
                            </control>
                        </control>
                    </focusedlayout>
                    <itemlayout height="317" width="210" condition="Container.Content(Sets)">
                        <control type="group">
                            <left>-10</left>
                            <top>10</top>
                            <control type="image">
                                <top>0</top>
                                <width>224</width>
                                <height>317</height>
                                <texture>DefaultMovies.png</texture>
                                <aspectratio aligny="center">scale</aspectratio>
                                <bordertexture border="21">overlays/shadow.png</bordertexture>
                                <bordersize>20</bordersize>
                            </control>
                            <control type="image">
                                <top>20</top>
                                <left>20</left>
                                <width>204</width>
                                <height>277</height>
                                <texture background="true">$INFO[ListItem.Art(poster)]</texture>
                                <aspectratio aligny="center">keep</aspectratio>
                            </control>
                            <control type="image">
                                <left>30</left>
                                <width>184</width>
                                <height>180</height>
                                <bottom>10</bottom>
                                <texture>overlays/overlayfade.png</texture>
                                <animation effect="fade" start="100" end="80" time="0" condition="true">Conditional</animation>
                            </control>
                            <control type="textbox">
                                <left>30</left>
                                <width>182</width>
                                <height>84</height>
                                <top>210</top>
                                <align>center</align>
                                <aligny>center</aligny>
                                <font>font23_narrow</font>
                                <label>$INFO[ListItem.Label]</label>
                                <visible>String.IsEmpty(ListItem.Art(poster))</visible>
                            </control>
                        </control>
                    </itemlayout>
                    <focusedlayout height="317" width="210" condition="Container.Content(Sets)">
                        <control type="group">
                            <left>-10</left>
                            <top>10</top>
                            <control type="image">
                                <top>0</top>
                                <width>224</width>
                                <height>317</height>
                                <texture>DefaultMovies.png</texture>
                                <aspectratio aligny="center">scale</aspectratio>
                                <bordertexture border="21">overlays/shadow.png</bordertexture>
                                <bordersize>20</bordersize>
                            </control>
                            <control type="image">
                                <top>20</top>
                                <left>20</left>
                                <width>204</width>
                                <height>277</height>
                                <texture background="true">$INFO[ListItem.Art(poster)]</texture>
                                <aspectratio aligny="center">keep</aspectratio>
                            </control>
                            <control type="image">
                                <left>30</left>
                                <width>184</width>
                                <height>180</height>
                                <bottom>10</bottom>
                                <texture>overlays/overlayfade.png</texture>
                                <animation effect="fade" start="100" end="80" time="0" condition="true">Conditional</animation>
                            </control>
                            <control type="textbox">
                                <left>30</left>
                                <width>182</width>
                                <height>84</height>
                                <top>210</top>
                                <align>center</align>
                                <aligny>center</aligny>
                                <font>font23_narrow</font>
                                <label>$INFO[ListItem.Label]</label>
                                <visible>String.IsEmpty(ListItem.Art(poster))</visible>
                            </control>
                            <control type="image">
                                <left>27</left>
                                <top>16</top>
                                <width>190</width>
                                <height>285</height>
                                <texture border="8" colordiffuse="button_focus">buttons/thumbnail_focused.png</texture>
                            </control>
                        </control>
                    </focusedlayout>
                </control>
Reply
#6
My understand is that is not what Bungee_G wants. In Estuary fullscreen info triggers a info overlay, it seems Bungee_G wants to retain that and have the option of displaying the full detailed info that DialogVideoInfo.xml displays.

@Bungee_G DialogVideoInfo.xml uses ListItem infolabels as it displays details for the selected item, if creating a similar window to show details for a playing item then you have to change the infolabels to their VideoPlayer equivalents e.g. ListItem.Cast to VideoPlayer.Cast
Reply
#7
(2021-07-06, 12:55)jjd-uk Wrote: My understand is that is not what Bungee_G wants. In Estuary fullscreen info triggers a info overlay, it seems Bungee_G wants to retain that and have the option of displaying the full detailed info that DialogVideoInfo.xml displays.

@Bungee_G DialogVideoInfo.xml uses ListItem infolabels as it displays details for the selected item, if creating a similar window to show details for a playing item then you have to change the infolabels to their VideoPlayer equivalents e.g. ListItem.Cast to VideoPlayer.Cast

Yes that's what I want to do. I already changed all of the ListItem (all of the listitem) by VideoPlayer and that's how I got the poster and plot displayed... But the cast still doesn't appear
Reply
#8
Left reply open as work distracted before hitting Reply button, so only now see your latest post @Bungee_G

So the infolabels for cast haven't been changed, I'm not immediatly sure how they could transformed to VideoPlayer equivalents.
Reply
#9
(2021-07-06, 13:00)jjd-uk Wrote: Left reply open as work distracted before hitting Reply button, so only now see your latest post @Bungee_G

So the infolabels for cast haven't been changed, I'm not immediatly sure how they could transformed to VideoPlayer equivalents.

Okay thanks, I tried to change to videoplayer but didn't work... So there is no equivalents, is there ?
Reply
#10
VideoPlayer.Cast will return cast as a list I think, not able to test at moment, if so I'm not sure if there someway to transform that into an actor poster type display. You might be better posting in the skin dev forum, or I can move thread.
Reply
#11
(2021-07-06, 13:15)jjd-uk Wrote: VideoPlayer.Cast will return cast as a list I think, not able to test at moment, if so I'm not sure if there someway to transform that into an actor poster type display. You might be better posting in the skin dev forum, or I can move thread.

Okay, move thread please
Reply
#12
(2021-07-06, 13:00)Bungee_G Wrote:
(2021-07-06, 12:55)jjd-uk Wrote: My understand is that is not what Bungee_G wants. In Estuary fullscreen info triggers a info overlay, it seems Bungee_G wants to retain that and have the option of displaying the full detailed info that DialogVideoInfo.xml displays.

@Bungee_G DialogVideoInfo.xml uses ListItem infolabels as it displays details for the selected item, if creating a similar window to show details for a playing item then you have to change the infolabels to their VideoPlayer equivalents e.g. ListItem.Cast to VideoPlayer.Cast

Yes that's what I want to do. I already changed all of the ListItem (all of the listitem) by VideoPlayer and that's how I got the poster and plot displayed... But the cast still doesn't appear

I am not sure, if the cast get a native id for use at fullscreeninfo , but if not you can use a script for the content path. e.g. script.embuary.helper

id 50 is default id for cast content in dialogvideoinfo so maybe

eg. add a custom container
<visible> may a condition if !Integer.IsGreater(Container(50).NumItems,0) </visible>
<content>$VAR[videoplayer_cast_content]</content>

<variable name="videoplayer_cast_content">
     <value condition="Integer.IsGreater(VideoPlayer.DBID,0) + VideoPlayer.Content(episodes)">plugin://script.embuary.helper?info=getcast&amp;type=tvshow&amp;dbid=$INFO[VideoPlayer.DBID]&amp;idtype=episode</value>
     <value condition="Integer.IsGreater(VideoPlayer.DBID,0) + VideoPlayer.Content(movies)">plugin://script.embuary.helper?info=getcast&amp;type=movie&amp;dbid=$INFO[VideoPlayer.DBID]</value>
 <variable>
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#13
Ah it most likely that

RunScript(script.embuary.info,call=person,query='$ESCINFO[Container(50).ListItem.Label]')

doesn't reurn anything when in fullscreen video.

Looking at https://github.com/sualfred/script.embuary.info I'm not sure if the script can return details for the playing item rather than selected item.
Reply
#14
(2021-07-06, 13:25)jjd-uk Wrote: Ah it most likely that

RunScript(script.embuary.info,call=person,query='$ESCINFO[Container(50).ListItem.Label]')

doesn't reurn anything when in fullscreen video.

Looking at https://github.com/sualfred/script.embuary.info I'm not sure if the script can return details for the playing item rather than selected item.
May Try
xml:
<variable name="videoplayer_cast_content">
     <value condition="Integer.IsGreater(VideoPlayer.DBID,0) + VideoPlayer.Content(episodes)">plugin://script.embuary.helper?info=getcast&amp;type=tvshow&amp;dbid=$INFO[VideoPlayer.DBID]&amp;idtype=episode</value>
     <value condition="Integer.IsGreater(VideoPlayer.DBID,0) + VideoPlayer.Content(movies)">plugin://script.embuary.helper?info=getcast&amp;type=movie&amp;dbid=$INFO[VideoPlayer.DBID]</value>
 <variable>
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#15
Ok moved to Skin dev forum in case what mardukL suggestion doesn't work, so other devs can put forth suggestions.

Perhaps @sualfred could give guidance on what may work.
Reply

Logout Mark Read Team Forum Stats Members Help
DialogVideoinfo.xml in the OSD0