Re: scanUrl not being called
Paul Webster <Paul.Webster.a1uy8n-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
I know have it working ... but will have to go back through the steps to
see if this really was the solution ....
I added
Code:
--------------------
sub getFormatForURL { 'aac' }
--------------------
Daft thing is that the
Slim::Utils::Scanner::Remote::readRemoteHeaders
had already worked out that it was aac from its connection to the remote
server
and it knew it later as well ...
Code:
--------------------
Slim::Utils::Scanner::Remote::parseAACHeader (714) AAC samplerate: 44100
--------------------
but then it goes on to call Song::open ... and seems to have forgotten
all that it knew
Code:
--------------------
Slim::Player::Song::getNextSong (223) myplugin://test
--------------------
I then pass it back the new URL ... and it goes on to
Code:
--------------------
Slim::Player::Song::open (360) myplugin://test
--------------------
and then
Code:
--------------------
Slim::Player::TranscodingHelper::getConvertCommand2 (490) Error: Didn't find any command matches for type: unk
Slim::Player::Song::open (415) Error: Couldn't create command line for unk playback for [myplugin://test]
--------------------
So ... given that it determined that the type was "unk" I saw that I
could return a type via getFormatForURL ...
and it works ... including the PH being shown rather than the real
remote stream URL.
Seems not to remember what it had already discovered - but anyway ... it
works.
Now I need to change my sub getFormatForURL to return the real format
since I know it can also be mp3.
Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip etc),
planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, supla
finland, abc australia, cbc/radio-canada and rte ireland
------------------------------------------------------------------------
Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=114599