Re: scanUrl not being called

expectingtofly <expectingtofly.a1ug3b-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
mherger wrote: 
> > In a plugin, I am trying to replace the display of a stream URL with a
> > local protocol handler version.
> 
> What do you mean by "the display of a stream URL"? A protocol handler 
> (PH) would deal with a URL of a specific protocol. Eg. your protocol 
> would be "myplugin". So myplugin:someStation would be handled by your 
> PH. A PH is not there to customize behaviour of http://mystation/stream,
> 
> but to "mask" it. Eg. radioparadise://1.flac would be the Mellow 
> station. Only once the PH is called to getNextTrack() it would return 
> the real http URL. But in LMS you'd almost always see 
> radioparadise://1.flac, and not the http URL.
> 
> I probably don't understand what you're trying to do.

I think paul added an "explodeplaylist" to treate the customized url as
a playlist, which would convert it to the real https:// playlist item.  
That means that the real https would then be used and his protocol
handler would not be used from that point onwards.
As you say, he needs to remove that explodeplaylist and use getNextTrack
to resolve the real url (he should be able to follow my example in the
virgin radio plugin).



Stuart McLean   

EXPECTINGTOFLY PLUGINS :
    
- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds Wiki'
(https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki).
------------------------------------------------------------------------
expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263
View this thread: http://forums.slimdevices.com/showthread.php?t=114599
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.