Help - Search - Members - Calendar
Full Version: SDK feature request: associate protocols with foobar2000
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
nausea
It's currently possible to declare a file type and corresponding extension and make it associatable, but I'm not aware of an equivalent for url protocols (such as lastfm:// or mms://) in the current SDK.

It's obviously possible to implement this on a per-component basis, but would be nice as part of the core as it could be integrated into the File Types preferences page (and the program associations control panel in Vista).

Thanks for considering this, however briefly... smile.gif
Peter
Request noted, I'll see what I can do about it.
Thanks for posting about it instead of trying to hack it in yourself one way or another.
Peter
Feature implemented in foobar2000 v0.9.6.4 (exact release date not yet determined).

You can support it in your components by implementing this service:
CODE
//! Service for registering protocol types that can be associated with foobar2000.
class input_protocol_type : public service_base {
     FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT(input_protocol_type)
public:
     //! Returns the name of the protocol, such as "ftp" or "http".
     virtual void get_protocol_name(pfc::string_base & out) = 0;
     //! Returns a human-readable description of the protocol.
     virtual void get_description(pfc::string_base & out) = 0;
};

FOOGUIDDECL const GUID input_protocol_type::class_guid = { 0x6a03c4ee, 0xf87b, 0x49d7, { 0x81, 0xdb, 0x66, 0xb, 0xe8, 0xc1, 0x0, 0x7e } };
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.