• 1
  • 36
  • 37
  • 38(current)
  • 39
  • 40
  • 41
AirPlay target support integrated into XBMC natively?
Has there ever been a solution to removing the @hostname from the end of the device name? I've seen it mentioned in various posts in this thread, but no solid answer. I'm on the latest nightly on Win 7 and I've edited guisettings.xml, but it makes no difference. I want the device to show up as 'MediaCenter' and not 'MediaCenter@HTPC' Any suggestions would be much appreciated. Smile
maruchan Wrote:Has there ever been a solution to removing the @hostname from the end of the device name? I've seen it mentioned in various posts in this thread, but no solid answer. I'm on the latest nightly on Win 7 and I've edited guisettings.xml, but it makes no difference. I want the device to show up as 'MediaCenter' and not 'MediaCenter@HTPC' Any suggestions would be much appreciated. Smile

Edit the source code. They put that in there for the iOS to distinguish it from the AppleTV's built in AirPlay sink.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
No need to edit the source code. Just edit the friendly name in network settings and you're done.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Spaggi Wrote:I got it runnining in windows smoothly after installing Bonjour printer services

I have the latest pre eden with bonjour installed and have video working fine. I just don't know how to install shairport in order to integrate the music side of Airplay. Can you point me in the right direction?

Thanks
vdrfan Wrote:No need to edit the source code. Just edit the friendly name in network settings and you're done.

Editing the friendly name will not remove the @ symbol. It'll just change the wording before the @ symbol from what I understand. It has to do with the naming for the iOS clients.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
snipah Wrote:try

sudo rc-update add avahi-daemon default

and afterwards

sudo /etc/init.d/avahi-daemon restart

sudo: rc-update: command not found


/Söder
Vero 4K with unRAID server and mysql (mariadb)
sudo update-rc.d avahi-daemon defaults
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
darkscout Wrote:sudo update-rc.d avahi-daemon defaults

http://piclair.com/ta6dp

What does that mean?

/Söder
Vero 4K with unRAID server and mysql (mariadb)
soder Wrote:http://piclair.com/ta6dp

What does that mean?

/Söder

it means avahi-daemon will start on boot ... as you wanted ...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Memphiz Wrote:it means avahi-daemon will start on boot ... as you wanted ...

Great. Thanks. Will try to reboot the htpc then. =)

EDIT: I just reboot:ed the HTPC and AirPlay didn't work after reboot... =(

/Söder
Vero 4K with unRAID server and mysql (mariadb)
Code:
ps auxww | curl -F 'sprunge=<-' http://sprunge.us
avahi-browse -a -r -t | curl -F 'sprunge=<-' http://sprunge.us

You may need to install curl & avahi-utils
Code:
sudo apt-get install curl avahi-utils

From the Windows machine you can also browse the network:
http://hobbyistsoftware.com/bonjourbrowser
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
darkscout Wrote:
Code:
ps auxww | curl -F 'sprunge=<-' http://sprunge.us
avahi-browse -a -r -t | curl -F 'sprunge=<-' http://sprunge.us

You may need to install curl & avahi-utils
Code:
sudo apt-get install curl avahi-utils

From the Windows machine you can also browse the network:
http://hobbyistsoftware.com/bonjourbrowser

Do you mean that I should run the first code to?

But I don't understand why I need to install even more stuff, since it works when I start it manually? Isn't there just a way to run the deamon by its own on startup?

EDIT: That windows program doesn't find anything, even though it works when I run it manually..

/Söder
Vero 4K with unRAID server and mysql (mariadb)
Yes, there is away to run it automatically. Yes you should run that code and give us the URLS it dumps out. We're not installing stuff to fix your installation, we're installing stuff (if you even need it) to debug WTF is going on.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
darkscout Wrote:Yes, there is away to run it automatically. Yes you should run that code and give us the URLS it dumps out. We're not installing stuff to fix your installation, we're installing stuff (if you even need it) to debug WTF is going on.

Thanks for the help.. This is what I got..
http://piclair.com/gblnq

http://sprunge.us/fZej

/Söder
Vero 4K with unRAID server and mysql (mariadb)
I'm at a loss. Check dmesg or syslog to see if there is something about avahi.


I FINALLY found where the code was buried to remove the "@[hostname]" junk. (This is for Linux).

In: ./xbmc/network/linux/ZeroconfAvahi.cpp
Code:
std::string CZeroconfAvahi::assemblePublishedName(const std::string& fcr_prefix)
{
  std::stringstream ss;
  ss << fcr_prefix << '@';
        
  // get our hostname
  char lp_hostname[256];
  if (gethostname(lp_hostname, sizeof(lp_hostname)))
  {    
    //TODO
    CLog::Log(LOGERROR, "CZeroconfAvahi::assemblePublishedName: could not get hostname.. hm... waaaah! PANIC!");
    ss << "DummyThatCantResolveItsName";
  }
  else
  {
    ss << lp_hostname;
  }
  return ss.str();
}

Replace with:
Code:
std::string CZeroconfAvahi::assemblePublishedName(const std::string& fcr_prefix)
{
  std::stringstream ss;
  ss << fcr_prefix;
  return ss.str();
}
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
  • 1
  • 36
  • 37
  • 38(current)
  • 39
  • 40
  • 41

Logout Mark Read Team Forum Stats Members Help
AirPlay target support integrated into XBMC natively?3