PlayerControl(Next) & PlayerControl(Previous) not working on MusicOSD when in a list
#1
Question 
I was wondering if anyone else has had problems getting the onclick actions "PlayerControl(Next)" and "PlayerControl(Previous)" to work on the musicOSD.xml page when they are called from buttons in a list...

The "PlayerControl(Play)", "PlayerControl(Stop)", etc all work fine in the list but the ones I mentioned seem like the only ones that don't. If I turn on debugging the logs seem to show that the commands are not fully completed. Here are the two cases;the first one is being called from a single button, and the second from a button in a list:

Separate Button
14:26:30 T:5904 M:982290432 DEBUG: ------ Window Init (MusicOSD.xml) ------
14:26:30 T:5904 M:982290432 INFO: Loading skin file: MusicOSD.xml
14:26:31 T:5904 M:989302784 DEBUG: CApplication::ExecuteXBMCAction : Translating PlayerControl(Previous)
14:26:31 T:5904 M:989302784 DEBUG: CApplication::ExecuteXBMCAction : To PlayerControl(Previous)
14:26:31 T:5904 M:989302784 DEBUG: CAnnouncementManager - Announcement: PlaybackSeek from xbmc
14:26:31 T:5904 M:989302784 DEBUG: PAPlayer::Seeking to time 0.000000
14:26:31 T:5904 M:989302784 DEBUG: ------ Window Init (DialogSeekBar.xml) ------
14:26:31 T:5904 M:989302784 INFO: Loading skin file: DialogSeekBar.xml
14:26:31 T:5904 M:989364224 DEBUG: ------ Window Init (MusicOverlay.xml) ------
14:26:31 T:5904 M:989364224 INFO: Loading skin file: MusicOverlay.xml
14:26:31 T:4128 M:989335552 DEBUG: Seek to time 0.000000 took 11 ms
14:26:31 T:4128 M:988196864 DEBUG: CWin32DirectSound::CheckPlayStatus: Resuming Playback
14:26:32 T:5904 M:988770304 DEBUG: CWinEventsWin32::WndProcWindow is active
14:26:32 T:5904 M:988786688 DEBUG: CWinEventsWin32::WndProcWindow lost focus


List Button
14:26:49 T:5904 M:990838784 DEBUG: ------ Window Init (MusicOSD.xml) ------
14:26:49 T:5904 M:990838784 INFO: Loading skin file: MusicOSD.xml
14:26:50 T:5904 M:990875648 DEBUG: CApplication::ExecuteXBMCAction : Translating playercontrol(Previous)
14:26:50 T:5904 M:990875648 DEBUG: CApplication::ExecuteXBMCAction : To playercontrol(Previous)
14:26:52 T:5904 M:991531008 DEBUG: CWinEventsWin32::WndProcWindow is active
14:26:52 T:5904 M:991547392 DEBUG: CWinEventsWin32::WndProcWindow lost focus


Here's the code I'm using to do both:

List Button
Code:
<control type="list">
    <posx>200</posx>
    <posy>100</posy>
    <width>100</width>
    <height>680</height>
    <itemgap>0</itemgap>
    <orientation>vertical</orientation>
    <itemlayout width="100" height="85">
        <control type="image">
            <width>95</width>
            <height>85</height>
            <texture>$INFO[ListItem.Thumb]</texture>
            <aspectratio>stretch</aspectratio>
        </control>        
    </itemlayout>
    <focusedlayout width="100" height="85">
        <control type="image">
            <description>Curve line tan</description>
            <width>95</width>
            <height>85</height>
            <texture>$INFO[ListItem.Thumb]</texture>
            <aspectratio>stretch</aspectratio>
        </control>
    </focusedlayout>            
    <content>
        <item>
            <thumb>PlayerControlsPrev.png</thumb>
            <visible>MusicPlayer.HasPrevious</visible>
            <onclick>playercontrol(Previous)</onclick>
        </item>
        <item>
            <thumb>PlayerControlsStop.png</thumb>
            <onclick>playercontrol(stop)</onclick>
        </item>    
                
        <item>
            <thumb>PlayerControlsNext.png</thumb>
            <visible>MusicPlayer.HasNext</visible>
            <onclick>PlayerControl(Next)</onclick>
        </item>                
    </content>

</control>

Separate Button
Code:
                <control type="button">
    <width>95</width>
    <height>85</height>
    <label>210</label>
    <posx>800</posx>
    <texturefocus>PlayerControlsPrev.png</texturefocus>
    <texturenofocus>PlayerControlsPrev.png</texturenofocus>
    <onclick>PlayerControl(Previous)</onclick>
</control>


Note that this does work perfectly fine on PlayerControls.xml. On that page the list in in an include but if I put that include on musicOSD.xml the previous and next open the visualization dialog.

Thanks for any help!
Reply
#2
me...

same problem.
they're useless if put in a list...

Rolleyes ..this is me going to rewrite musicOSD... again. damn.

Image Image
Did I Help? Add to my reputation
Reply
#3
You could use:
<onclick>Playlist.PlayOffset(1)</onclick>

Working example:
http://forum.xbmc.org/showthread.php?tid=141437
Includes_Music.xml
list id="300"
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#4
works like a charm thanks.

but there's another inconvinience i can't explain... in musicOSD if i control the player with independents control tags ,"ESC" makes the osd disappear, if I build the OSD as a list then "ESC" doesn't work. like it's disabled. BACKSPACE keeps working.

it's messing with my head. ideas?
BTW. Your skin looks very nice... very very.
Image Image
Did I Help? Add to my reputation
Reply
#5
No, i haven't been able to solve this either. At least not without creating a new problem.

And thnx Smile
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply

Logout Mark Read Team Forum Stats Members Help
PlayerControl(Next) & PlayerControl(Previous) not working on MusicOSD when in a list0