@Michael: I played around a bit with the code of the Qobuz plugin to see
if it is possible to allow repositioning the currently played track.
But i don't know how the protocol handlers of the squeezeserver really
work, so this could be complete nonsense. Anyway:
I found out that seeking the stream is - at least on my system -
possible with changing the code in ProtocolHandler.pm to
Code:
--------------------
sub canSeek { 1 }
sub getSeekDataByPosition { undef }
sub getSeekData {
my ( $class, $client, $song, $newtime ) = @_;
return {
sourceStreamOffset => ( 320_000 / 8 ) * $newtime,
timeOffset => $newtime,
};
}
--------------------
(Obviously the fixed value for the bitrate is wrong - but i could not
figure out how to get the bitrate - at least "$song->bitrate()" seems to
return nothing.
If this a valid approach and does not contradict Qobuz terms of service,
it would be really kind of you if you could implement this properly in
the plugin code.
Otherwise please just ignore this post.
Thanks!
------------------------------------------------------------------------
sternenjaeger's Profile: http://forums.slimdevices.com/member.php?userid=57562
View this thread: http://forums.slimdevices.com/showthread.php?t=97146
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins