Re: Adding a new protocol handler
Michael Herger <slim-b/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Message-ID | <[email protected]> |
> Some have done this by having a file
> ProtocolHandler.pm and then having something like this in the code of
> that module
> Slim::Player::ProtocolHandlers->registerHandler('radiogroup',
> __PACKAGE__);
>
> I am trying something similar but not seeing my code get called.
>
> So ... does LMS automatically look for
> ProtocolHandler.pm
> to load in on plugin startup or is there something else that I have to
> do to get my ProtocolHandler.pm to be invoked?
No, you'll have to do it in your Plugin.pm. I'd register there, and LMS
will then load the protocol handler if needed.