Re: scanUrl not being called
expectingtofly <expectingtofly.a1ud4n-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
Paul Webster wrote:
> In a plugin, I am trying to replace the display of a stream URL with a
> local protocol handler version.
> I have seen that @expectingtofly VirginRadio plugin does this.
>
> e.g.
> myplugin:StationA
> translated by my explodePlaylist to
> h t t p: // radiostation.com/stream.mp3
>
> but I want LMS / players to show the URL as
> myplugin:StationA
> not
> h t t p: // radiostation.com/stream.mp3
>
>
> Any ideas why my scanUrl is not being called then the stream is set to
> start?
I don't think my virgin radio plugin uses the explodeplaylist??
In fact virginradio protocol handler is probably a good example as it
uses scan url :
https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin/blob/e65ccccb91f29f219c25b85b3268f0eb566c9448/VirginRadio/ProtocolHandler.pm#L638
I can't remember that exact order of doing things, I did make a note of
it somewhere. But getNextTrack is where you work out the real stream
url. So you can probably follow it through on the virgin radio or times
radio plugins. (I think I had to do some jiggery pokery in the scanUrl
override to make sure it used the real stream url.)
Meanwhile, I'll try and find my notes.....
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