Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pvr] added: attempt to auto-configure pvr clients via avahi #6597

Merged
merged 4 commits into from Mar 5, 2015

Conversation

opdenkamp
Copy link
Member

add these to the xbmc.pvrclient extension point in the addon.xml of the add-on to configure:

  • avahi_type="(avahi type)"
  • avahi_ip_setting="(name of the ip/address setting)"
  • avahi_port_setting="(name of the port setting)"

e.g. for pvr.hts (only one that supports avahi afaik):

  <extension
    point="xbmc.pvrclient"
    avahi_type="_htsp._tcp."
    avahi_ip_setting="host"
    avahi_port_setting="htsp_port" />

When the PVR manager is started without any add-ons being enabled, and when disabled add-ons were found with the entries from above in addon.xml, then it will start the avahi browser, search for the service, and display this dialog:
avahi-addons

Currently only supports services already included in CZeroconfBrowser. CZeroconfBrowser::AddServiceType() has to be made public and implemented so services can be added dynamically.

And only supports the ip address and port, no username/password.

@opdenkamp
Copy link
Member Author

jenkins build this please

@opdenkamp opdenkamp added Type: Feature non-breaking change which adds functionality Component: PVR v15 Isengard labels Mar 4, 2015
…vrclient extension point in the addon.xml of the add-on to configure: avahi_type="(avahi type)" avahi_ip_setting="(name of the ip/address setting)" avahi_port_setting="(name of the port setting)"

e.g. for pvr.hts:
  <extension
    point="xbmc.pvrclient"
    avahi_type="_htsp._tcp."
    avahi_ip_setting="host"
    avahi_port_setting="htsp_port" />
@opdenkamp
Copy link
Member Author

jenkins build this please

/*!
* @return True if this add-on can be auto-configured via avahi, false otherwise
*/
bool CanAutoconfigure(void) const;

This comment was marked as spam.

This comment was marked as spam.

@xhaggi
Copy link
Member

xhaggi commented Mar 5, 2015

nice addition, makes things lot easier.

opdenkamp pushed a commit that referenced this pull request Mar 5, 2015
[pvr] added: attempt to auto-configure pvr clients via avahi
@opdenkamp opdenkamp merged commit cb9d4ba into xbmc:master Mar 5, 2015
@opdenkamp opdenkamp deleted the autoconfigaddons branch March 5, 2015 22:26
@MartijnKaijser MartijnKaijser modified the milestone: I******* 15.0-alpha2 Mar 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: PVR Type: Feature non-breaking change which adds functionality v15 Isengard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants