MusicOSD
#1
Hi

it is possible to let the musicosd open automatically.
during playback of music, if no buttons are pushed, after 10 seconds automatically opens the OSD. Similar a screen saver.

thx
Reply
#2
try <onload>AlarmClock(music_osd,ActivateWindow(musicosd),0:10,silent)</onload> in MusicVisualisation.xml
you can cancel alarmclock if needed
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
Reply
#3
Settings -> Appearance -> Screensaver -> Use visualization if playing audio

If you really mean the osd ( = music controls), try pieh's solution.
Image
Reply
#4
that's the same as I have already tried
<onload>AlarmClock(music_osd,ActivateWindow(musicosd),0:10,silent)</onload> in MusicVisu and MusicOverlay.

it will open the osd and i can back to the list ... no problem
the problem is: Now i must stop the playback and start to get the osd .

it should be:
start palyback song -> osd open -> press back -> osd close -> wait (10sec) osd open again if = no key was press (up/down) and library ist on songs.

sorry for my terrible english
Reply
#5
(2012-08-23, 16:45)reazorFX Wrote: ... and library ist on songs.

So you don't want to display the controls in the music visualization but in the library?

This could work then:

PHP Code:
<control type="button">
    <
onfocus condition="Player.HasAudio + Container.Content(songs)">CancelAlarm(musicosd)</onfocus>
    <
onfocus condition="Player.HasAudio + Container.Content(songs)">AlarmClock(music_osd,ActivateWindow(musicosd),0:10,silent)</onfocus>
</
control

You have to add the button to the focusedlayout of your list and you may have to cancel the alarm in other areas to avoid unwanted opening of the music osd, e.g. if you go back to the home screen while music is playing. A better approach would be to display a small control widget in the library and make it focusable while music is playing. Or just use player controls which can be accessed anywhere with the 'm' key.
Image
Reply
#6
heureka

after 6 hour work:




MusicOverlay.xml :
PHP Code:
<!-- Foundation -->
<
window id="2903">    
    <
defaultcontrol></defaultcontrol>    
    
    <
visible>!Container(50).OnNext</visible>
    <
visible>!Container(50).OnPrevious</visible>
    <
visible>!ControlGroup(9000).HasFocus()</visible>
    <
visible>Container.Content(songs)</visible>    
    
    <
onload>AlarmClock(MusicOSD,ActivateWindow(musicosd),00:10,silent)</onload>
    <
onunload>CancelAlarm(MusicOSD,true)</onunload>
    
    
    <
controls>    
    
    </
controls>

</
window



a little bit unconventional but i work Big Grin

Image


Reply
#7
(2012-08-23, 17:11)`Black Wrote: You have to add the button to the focusedlayout of your list and you may have to cancel the alarm in other areas to avoid unwanted opening of the music osd, e.g. if you go back to the home screen while music is playing. A better approach would be to display a small control widget in the library and make it focusable while music is playing. Or just use player controls which can be accessed anywhere with the 'm' key.

merci
Reply
#8
Version 2


MusicOverlay.xml:

PHP Code:
<!-- Foundation -->
<
window id="2903">    
    <
defaultcontrol></defaultcontrol>    
    
    <
visible>!Container(50).OnNext</visible>
    <
visible>!Container(50).OnPrevious</visible>
    <
visible>!ControlGroup(9000).HasFocus()</visible>
    <
visible>Container.Content(songs)</visible>
    <
visible>!Window.IsActive(musicosd)</visible>
    <
visible>Player.HasAudio</visible>            
    
    <
onload>AlarmClock(MusicOSD,ActivateWindow(musicosd),00:05,silent)</onload>
    <
onunload>CancelAlarm(MusicOSD,true)</onunload>    

    <
controls>        
    </
controls>

</
window

Now it work perfect Big Grin thx for the suggestions

cheers
Reply
#9
If someone wants to incorporate this.
Here is a description of my Music OSD:

MusicOverlay:
PHP Code:
<!--Avalon-->
<
window id="2903">    
    
    <!------------------------------------------------->
    <!--            
MusicOverlay.xml                 -->
    <!------------------------------------------------->
    
    <!--
start automatically MusicOSD.xml after 10 seconds if no action-->
    
    <
defaultcontrol></defaultcontrol>    
    
    <
visible>!Skin.HasSetting(MyMusicNavGroup9000)</visible>
    
    <
visible>Container.Content(songs)</visible>            
    <
visible>Player.HasAudio</visible>                    
    
    <
visible>!Container(50).OnNext</visible>                    
    <
visible>!Container(50).OnPrevious</visible>    
    
    <
visible>!Window.IsActive(musicosd)</visible>                
    <
visible>!Window.IsActive(contextmenu)</visible>        
    <
visible>!Window.IsActive(songinformation)</visible>        
    <
visible>!Window.IsActive(virtualkeyboard)</visible>        
    
    
    <
onload>AlarmClock(MusicOSD,ActivateWindow(musicosd),00:10,silent)</onload>    
    <
onunload>CancelAlarm(MusicOSD,true)</onunload>                                
    
    
    <!--
In MusicNav.xml: include to the Side-Menu Group 9000 to the buttons -->        
    <!--<
onfocus>Skin.Reset(MyMusicNavMenu)</onfocus>-->
    <!--<
onfocus>Skin.ToggleSetting(MyMusicNavMenu)</onfocus>-->
    <!--<
onunfocus>Skin.Reset(MyMusicNavMenu)</onunfocus>-->
    
    
    <
controls>    
    
    </
controls>

</
window


MyMusicNav:
PHP Code:
<!--Button-->                        
            
        <
control type="button" id="2">
            <
description>View</description>
            <
width>469</width>
            <
align>left</align>
                    
            <
onfocus>Skin.Reset(MyMusicNavGroup9000)</onfocus>
            <
onfocus>Skin.ToggleSetting(MyMusicNavGroup9000)</onfocus>
            <
onunfocus>Skin.Reset(MyMusicNavGroup9000)</onunfocus>
        </
control>                

        <
control type="button" id="3">
            <
description>Sort</description>
            <
width>469</width>
            <
align>left</align>
                    
            <
onfocus>Skin.Reset(MyMusicNavGroup9000)</onfocus>
            <
onfocus>Skin.ToggleSetting(MyMusicNavGroup9000)</onfocus>
            <
onunfocus>Skin.Reset(MyMusicNavGroup9000)</onunfocus>
        </
control>

...... 



<visible>!Skin.HasSetting(MyMusicNavGroup9000)</visible>:
Close MusicOverlay.xml when Side-Menu in MyMusicNav.xml open

<visible>Container.Content(songs)</visible>:
Only visible when list in songs

<visible>Player.HasAudio</visible>:
Only visible when play songs

<visible>!Container(50).OnNext</visible>:
Short "close and open" MusicOverlay.xml when scroll down

<visible>!Container(50).OnPrevious</visible>:
Short "close and open" MusicOverlay.xml when scroll up

<visible>!Window.IsActive(musicosd)</visible>:
Close MusicOverlay.xml when Music-OSD open

<visible>!Window.IsActive(contextmenu)</visible>:
Close MusicOverlay.xml when Contex Menu open

<visible>!Window.IsActive(songinformation)</visible>:
Close MusicOverlay.xml when Song Info open

<visible>!Window.IsActive(virtualkeyboard)</visible>:
Close MusicOverlay.xml when Keybord open

<onload>AlarmClock(MusicOSD,ActivateWindow(musicosd),00:10,silent)</onload>:
When MusicOverlay.xml start alarm counter "10sec then open OSD"

<onunload>CancelAlarm(MusicOSD,true)</onunload>:
When MusicOverlay.xml close stop alarm counter

Reply

Logout Mark Read Team Forum Stats Members Help
MusicOSD1