How to queue a song?
#1
I cant seam to work out how to Queue a song (instead of playing it straight away)

Code:
<control type="button" id="11"> <!--Queue button-->
            <description>Queue button</description>
            <posx>75</posx>
            <posy>170</posy>
            <width>150</width>
            <height>40</height>
            <label>Add to Queue</label>
            <font>font12_title</font>
            <textcolor>white</textcolor>
            <focusedcolor>white</focusedcolor>
            <align>center</align>
            <texturenofocus border="5">MenuItemNF.png</texturenofocus>
            <texturefocus border="5">button-focus.png</texturefocus>
            <onclick>PlayMedia("$INFO[Skin.String(MyString_Path)]")</onclick>
            <onclick>PreviousMenu</onclick>
            <onleft>10</onleft>
            <onright>10</onright>
            <onup>11</onup>
            <ondown>11</ondown>
        </control>
        <control type="button" id="11"> <!--Play button-->
            <description>Play button</description>
            <posx>230</posx>
            <posy>170</posy>
            <width>150</width>
            <height>40</height>
            <label>Play Now</label>
            <font>font12_title</font>
            <textcolor>white</textcolor>
            <focusedcolor>white</focusedcolor>
            <align>center</align>
            <texturenofocus border="5">MenuItemNF.png</texturenofocus>
            <texturefocus border="5">button-focus.png</texturefocus>
            <onclick>Clear</onclick>
            <onclick>PlayMedia("$INFO[Skin.String(MyString_Path)]")</onclick>
            <onclick>PreviousMenu</onclick>
            <onleft>10</onleft>
            <onright>10</onright>
            <onup>11</onup>
            <ondown>11</ondown>
        </control>

I cant spot the queue song in the skinning manual (might be going blind from looking at the screen all day -- hope not Smile )

Thank you for any assistance Smile
Reply
#2
Far as i know this is only handled by xbmc.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#3
Tried -

Code:
<onclick>Queue</onclick>
Reply
#4
(2013-11-05, 17:46)Hitcher Wrote: Tried -
Code:
<onclick>Queue</onclick>

Yea <onclick>Queue</onclick> doesn't work because it because it doesn't have anything to queue.

How would I code the button to be the song so that <onclick>Queue will work?
Code:
<onclick>Queue($INFO[Skin.String(MyString_Path)])</onclick>????
Reply
#5
it's not possible afaik.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#6
Thanks ronie for the reply
...(scratches head for a good long time) How about adding a song to a playlist
Code:
<onclick>AddToPlaylist((PlaylistName($INFO[Skin.String(MyString_Path)]))</onclick>??? or something like that

Can I do something like that?
Reply
#7
nope... that doesn't exist.

if i understand you correctly, you're copying ListItem.FileNameAndPath from to the main to a dialog
and now you want to queue this song from this dialog?

what if you add a Queue button to the main window and use sendclick(window,id) in your dialog?
no idea if it'll work though...
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
How to queue a song?0