Posts: 17,245
Joined: Aug 2007
Reputation:
566
Hitcher
Team-Kodi Member
Posts: 17,245
Use onload in the dialog.
Posts: 1,332
Joined: Jan 2016
Reputation:
54
I don't know if it matter but onload normally is on top of the page before the controls section also...Maybe my ignorance but in playmedia infolistem.trailer why do you have the ,1? Is that needed.
Posts: 357
Joined: Oct 2014
Reputation:
40
2017-01-22, 01:19
(This post was last modified: 2017-01-22, 01:35 by Rufoo.)
Then what you have done is correct for edit 2 by the sounds of it, the issue sounds like there are two videowindows, the one you created, and one that is part of the skin which will be fullscreen in size. When the video plays, because both videowindows are "visible" the video plays in both.
EDIT: Again, I'm not sure where this videowindow is located because I don't use the skin and admittedly, I didn't look through your files this time to see if it was there. But there would be some likely places to check first to narrow down where it is being used. First, check your window to see if there is an include or something that alludes to it, more than likely it will sit in the MyPrograms.xml I guess. All you need to do is a set a condition that this is visible when it isn't your special window.
EDIT2: And as smitchell6879 says, normally you'd have the onload conditions at the start of the xml before your controls.
Posts: 17,245
Joined: Aug 2007
Reputation:
566
Hitcher
Team-Kodi Member
Posts: 17,245
A better solution would be to find the code that displays the background video and make it not play when your dialog is visible.
Posts: 1,332
Joined: Jan 2016
Reputation:
54
All you would need to do is find basic the first image control of includes that had background in the windows.xml
Then do a search of all the .XML that have includes until you find it.... Once u find it should be a list of different things... In the list will be a video window control
In the <visible> line add | !Window.Is Active(whatever the I'd of the dialog is)
That should get rid of the video in the background