Kodi Community Forum
Can not stay DialogVideoInfo view after playing trailer video. - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Can not stay DialogVideoInfo view after playing trailer video. (/showthread.php?tid=372847)



Can not stay DialogVideoInfo view after playing trailer video. - kenmoon - 2023-04-03

I have some customized "DialogVideoInfo.xml"  - adding youtube search result to show trailer.
Code:

DialogVideoInfo.xml

<control type="panel" id="20054">
    <itemlayout width="586" height="489">
    ...
    </itemlayout>
    <focusedlayout width="586" height="489">
    ...
    </focusedlayout>
    <content>plugin://plugin.video.youtube/search/?hide_folders=true&q=($INFO[ListItem.label]+trailer+Teaser)</content>
</control>

It works but it does not close current windows (playing youtube videos behind windows), so I gave the close command below
Code:

<control type="panel" id="20054">
    <itemlayout width="586" height="489">
    ...
    </itemlayout>
    <focusedlayout width="586" height="489">
    ...
    </focusedlayout>
    <content>plugin://plugin.video.youtube/search/?hide_folders=true&q=($INFO[ListItem.label]+trailer+Teaser)</content>
    <onclick>close</onclick>
    <onclick>PlayMedia($INFO[ListItem.FileNameAndPath])</onclick>
</control>
It works as well but when I stop the video(it plays fullscreen), it CAN NOT return to the DialogVideoInfo screen(I means my panel list) . It returns home screen. How to stay DialogVideoInfo view?


RE: Can not stay DialogVideoInfo view after playing trailer video. - mardukL - 2023-04-03

first ,
prepare n use a "videowindow" control type inside the dialog.
avoid close action.
adjust the playback action to force a windowed playback
xml:
PlayMedia($INFO[ListItem.FileNameAndPath],1)



RE: Can not stay DialogVideoInfo view after playing trailer video. - kenmoon - 2023-04-08

thank you, It works.