cpd73 wrote:
> Not currently, as Material does not store the track number - but I could
> easily add. This would just be a number though, and not 0 padded.
>
> [Edit] I lied, Material does have track number! I'll add $TRACKNUM and
> $DISC
>
>
>
> 'lmsCommand returns a 'promise' so you have to wait for it. e.g.
> >
Code:
--------------------
> >
> lmsCommand('d0:63:b4:00:66:d0',['status','-','1','tags:u']).then(({data})
=> {
> let urlfile=data.result.playlist_loop[0].url;
> //....
> });
>
--------------------
> >
>
> You handle the response of 'lmsCommand' in the 'then(...)' block.
>
> To demonstrate, if you had the following:
> >
Code:
--------------------
> >
> console.log('Start');
> lmsCommand('d0:63:b4:00:66:d0',['status','-','1','tags:u']).then(({data})
=> {
> console.log('Response');
> });
> console.log('End')
>
--------------------
> >
>
> You would see the following logged to the console tab:
> >
Code:
--------------------
> >
> Start
> End
> Response
>
--------------------
> >
I used tnum=('$TRACKNUM').padStart(2,'0') to pad with zero - works
great.
One other question - Is there a way with css to override the volume
display? I would like to show volume with -20 dB instead of 20% since I
am using a custom volume algorithm?
Thank you again, the code example is very helpful.
------------------------------------------------------------------------
doodooaudio's Profile: http://forums.slimdevices.com/member.php?userid=71784
View this thread: http://forums.slimdevices.com/showthread.php?t=109624
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins