Kodi Community Forum
Playing a video from DialogVideoInfo - 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: Playing a video from DialogVideoInfo (/showthread.php?tid=332532)



Playing a video from DialogVideoInfo - firewater - 2018-06-06

What's the command for doing this? I have:

xml:
                <control type="grouplist">
                    <control type="button" id="97">
                        <onclick></onclick>
                    </control>
                </control>

but I'm not sure what to put in there. I've tried a couple that seemed likely, like Play or Select to no avail. The skin came with SendClick(movieinformation,8), which works, but as much as I've looked I don't see anywhere listing what the 8 stands for (other than it being an "id"), and most importantly, it closes the Info dialog, which I really don't want. I know it's possible to open the video without closing the dialog because that's how it works on the skin sio2, but the syntax in there confuses me (plus it seems to be the same, just SendClick(8) instead, so I really don't know how it's done).


RE: Playing a video from DialogVideoInfo - Hitcher - 2018-06-06

https://kodi.wiki/index.php?title=List_of_Built_In_Controls#DialogVideoInfo.xml

8 is the play video button.


RE: Playing a video from DialogVideoInfo - firewater - 2018-06-06

Oh, right, thanks. That's too bad then, because it seems there is no way to circumvent how it closes the info dialog, or is there? I was wrong about the skin I mentioned, it, too, closes it. Maybe with some other function? Some script-calling magic?


RE: Playing a video from DialogVideoInfo - ronie - 2018-06-07

nope, dialogs must be closed before kodi can switch to another window (ie. fullscreen playback).


RE: Playing a video from DialogVideoInfo - sualfred - 2018-06-07

<onclick>close</onlick>
<onclick>Dotheotherstuff</onclick>
<onclick>Andthisstufftoo</onclick>


RE: Playing a video from DialogVideoInfo - firewater - 2018-06-10

(2018-06-07, 09:35)ronie Wrote: nope, dialogs must be closed before kodi can switch to another window (ie. fullscreen playback).
 Damn... is there no way around this at all? Any hope for it to be included someday if I request it as a feature - or is it like this by design? Maybe if instead of using DialogVideoInfo to display all this, I use an <onclick> on the "main view", that changes the entire view to the DialogVideoInfo? Does that sound doable?
Quote:<onclick>close</onlick>
<onclick>Dotheotherstuff</onclick>
<onclick>Andthisstufftoo</onclick>

I feel like this could also be a workaround for a smoother transition. My idea with this would be for the first onclick to fade the screen to black, and then the second one opens the video... the idea being that the video opens "from" the dark screen. For this to be possible I'd need a way for the black screen image to be over all other controls, so that when the video is opened it stays on top of DialogVideoInfo closing. Doable?