Kodi Community Forum
music fullscreen automatically on selecting play - 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: music fullscreen automatically on selecting play (/showthread.php?tid=114822)

Pages: 1 2 3


music fullscreen automatically on selecting play - cuillin - 2011-11-17

I'm modifying my XBMC skin (based loosely on confluence) and I'm getting to the tricky bit of trying to change some of the behaviours rather than just the look. First issue is I'd like to have what I think is the music fullscreen window (the one with the music OSD dialog available) appear automatically when I click on a song to play from my Music list.
Does anyone know how I can do this?
Thanks


RE: music fullscreen automatically on selecting play - Ish020 - 2013-07-22

I'd like to know it too. I'm working on Transparency skin. As far as I know, when I select Music on main menu, it uses the command <onclick>ActivateWindow(Music)</onclick> but... which is the xml file that controls this window? I hope that once knowing that, I must only add another <onclick> event under pressing on a file to play it.


RE: music fullscreen automatically on selecting play - thebearnecessit - 2013-07-30

I was trying to figure this out recently too. anyone have any thoughts/clues/suggestions?


music fullscreen automatically on selecting play - pecinko - 2013-07-30

Can't do that from the skin.


RE: music fullscreen automatically on selecting play - `Black - 2013-07-30

Not quite right, it's possible. Smile

Add this e.g. as Custom_MusicFullscreenEnabler.xml or whatever. Before you add this, check if there is already a custom window with id 3001 and adjust it if necessary.
PHP Code:
<window type="dialog" id="3001">
    <
allowoverlay>no</allowoverlay>
    <
onload condition="!Window.IsActive(visualisation)">FullScreen</onload>
    <
visible>Player.HasAudio</visible>
    <
controls></controls>
</
window

With this nice little trick you can execute actions based on conditions.


music fullscreen automatically on selecting play - pecinko - 2013-07-30

LOL

Interesting hack. Nice idea, kudos.

Btw, how do you get out? Another custom window?


RE: music fullscreen automatically on selecting play - `Black - 2013-07-30

Out? The custom window will be visible and therefore activated if Player.HasAudio is true which is true if you start playing music. If you stop playing, window will be deactivated.


music fullscreen automatically on selecting play - pecinko - 2013-07-30

That was my point - in order to get out you need to stop the playback, no background music would be possible.

Just saying.


RE: music fullscreen automatically on selecting play - `Black - 2013-07-31

The window is just an invisible overlay... it doesn't get focus so no problem. It works just fine, I'm using the same technique in my skin for something else.


RE: music fullscreen automatically on selecting play - manfeed - 2015-03-06

(2013-07-30, 21:07)`Black Wrote: Not quite right, it's possible. Smile

Add this e.g. as Custom_MusicFullscreenEnabler.xml or whatever. Before you add this, check if there is already a custom window with id 3001 and adjust it if necessary.
PHP Code:
<window type="dialog" id="3001">
    <
allowoverlay>no</allowoverlay>
    <
onload condition="!Window.IsActive(visualisation)">FullScreen</onload>
    <
visible>Player.HasAudio</visible>
    <
controls></controls>
</
window

With this nice little trick you can execute actions based on conditions.

I found this wasn't working with Party mode... this did the trick for me...

<window type="dialog" id="5555">
<allowoverlay>no</allowoverlay>
<onload condition="!Window.IsActive(visualisation)">FullScreen</onload>
<visible>IntegerGreaterThan(MusicPlayer.Time,1) + !SubString(Window(videolibrary).Property(TvTunesIsAlive),True)</visible>
<controls></controls>
</window>


RE: music fullscreen automatically on selecting play - Squall13 - 2015-03-19

(2015-03-06, 01:13)manfeed Wrote:
(2013-07-30, 21:07)`Black Wrote: Not quite right, it's possible. Smile

Add this e.g. as Custom_MusicFullscreenEnabler.xml or whatever. Before you add this, check if there is already a custom window with id 3001 and adjust it if necessary.
PHP Code:
<window type="dialog" id="3001">
    <
allowoverlay>no</allowoverlay>
    <
onload condition="!Window.IsActive(visualisation)">FullScreen</onload>
    <
visible>Player.HasAudio</visible>
    <
controls></controls>
</
window

With this nice little trick you can execute actions based on conditions.

I found this wasn't working with Party mode... this did the trick for me...

<window type="dialog" id="5555">
<allowoverlay>no</allowoverlay>
<onload condition="!Window.IsActive(visualisation)">FullScreen</onload>
<visible>IntegerGreaterThan(MusicPlayer.Time,1) + !SubString(Window(videolibrary).Property(TvTunesIsAlive),True)</visible>
<controls></controls>
</window>

Nice trick, but it seemed to mess up my video player though. It exits from full screen to the previous page (episode list, stream list etc.) after about 1 sec.

Any ideas?


RE: music fullscreen automatically on selecting play - Mudislander - 2015-03-19

Keep in the Player.HasAudio eg:
Code:
<visible>Player.HasAudio + IntegerGreaterThan(MusicPlayer.Time,1) + !SubString(Window(videolibrary).Property(TvTunesIsAlive),true)</visible>

Also as a side note - Custom skin windows should be in the 1100 range.


RE: music fullscreen automatically on selecting play - Squall13 - 2015-03-19

(2015-03-19, 11:53)Mudislander Wrote: Keep in the Player.HasAudio eg:
Code:
<visible>Player.HasAudio + IntegerGreaterThan(MusicPlayer.Time,1) + !SubString(Window(videolibrary).Property(TvTunesIsAlive),true)</visible>

Also as a side note - Custom skin windows should be in the 1100 range.

Oh how can I miss that. I'm so dumb. Thanks

I have a follow up question if you guys don't mind. If I want to customize how the lyrics show up in the Music OSD (I mainly want to change the location and make it left justified then lose the blackish backdrop to make it look like it's part of the background) where should I start editing?

Thanks again


RE: music fullscreen automatically on selecting play - jurialmunkey - 2015-03-19

(2015-03-19, 11:53)Mudislander Wrote: Also as a side note - Custom skin windows should be in the 1100 range.
I only realised this the other day when someone pointed out a bug with lcdproc showing the wrong label for a window.


RE: music fullscreen automatically on selecting play - PantsOnFire - 2016-06-15

I've used the code:
Code:
<window type="dialog" id="3001">
    <allowoverlay>no</allowoverlay>
    <onload condition="!Window.IsActive(visualisation)">FullScreen</onload>
    <visible>Player.HasAudio</visible>
    <controls></controls>
</window>

Saved it as: Custom_MusicFullscreenEnabler.xml

And copied it to the eminence skin directory on my OSMC (Pi):
smb://192.168.1.85/osmc/.kodi/addons/skin.eminence/1080i/

But it's not working (no music is launching fullscreen).

EDIT
please ignore this post, as it's working for me now 100%.