new AFPClient for iOS/OSX <--SOLUTION FOR LION USERS

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Exclamation  new AFPClient for iOS/OSX <--SOLUTION FOR LION USERS
Post: #1
Thanks to the hard work of Memphiz and others, XBMC for Mac and iOS/ATV2 now has an internal AFPClient. So now there are many choices of how to access video content from servers.

ZeroConfig should work and for a fallback you can enter the afp url directly, the format is
Code:
afp://[[user[:password@]]server[/share[/path[/file]]]] .

Needless to say, there might be issues and that's what this thread is all about. We want GOOD feedback regarding the new AFPClient. If you have issues and do not include xbmc.log and detailed info about your setup... you will get ignored Smile

Known issues:
1) The first connect might fail (spinning wheel is spinning for more then 30 secs). In that case abort the connect by pressing "Menu" on the remote and try again. It works after a couple of trys. If its connected once - everything else should work.
2) On a Mac, you need to enable AFP sharing in System Preferences > File Sharing > Options.
3) AFP paths are case sensitive. If you're editing sources.xml directly (not browsing for the path) make sure to pay attention to case. SMB paths are not case sensitive. E.g. afp://192.168.1.7/MyVideos/ and afp://192.168.1.7/MYVIDEOS/ are two different paths under AFP.
4. AFP is generally stable but may crash in a few situations. Unfortunately the upstream developer of the AFP library is no longer around so it's orphaned for now, i.e. no one to do bug fixes... for now. If it crashes for you, probably best to try WebDAV or FTP.

BEWARE

Just wanted to point to this:

http://wiki.xbmc.org/index.php?title=AFP

When using MacOSX and trying to share via AFP only HFS+ formatted drives are shared. There is no warning / nor an error message - it simply doesn't show up that shares then. This is the issue some users already have seen when trying to share FAT32 drives on lion via AFP.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
(This post was last modified: 2012-02-02 21:27 by Memphiz.)
find quote
Ned Scott Offline
Team-Kodi Wiki Guy
Posts: 21,864
Joined: Jan 2011
Reputation: 288
Location: Arizona, USA
Post: #2
Next nightly build will have this in about 6 and a half hours (from this post time)
find quote
canadave Offline
Fan
Posts: 711
Joined: Jul 2011
Reputation: 16
Location: Nova Scotia, Canada
Post: #3
Saw this in the commits and was overjoyed....thank you, thank you!!! Will try it out tomorrow first thing and report back.

- ATV2 4.4.4 (iOS 5.0.1) build 9A406a, running Gotham (latest revision)
- 2011 Macbook Pro, running OSX Mavericks
- Skin: reFocus
- Connecting to MySQL database on Synology DS411+ NAS via NFS.
find quote
Cranial Offline
Fan
Posts: 740
Joined: Aug 2008
Reputation: 3
Location: Sydney, Australia
Post: #4
canadave Wrote:Saw this in the commits and was overjoyed....thank you, thank you!!! Will try it out tomorrow first thing and report back.

And just after we got the NFS wiki all sorted out..... Rolleyes

If I have helped you in any way, please forgive me, it was entirely accidental.
find quote
canadave Offline
Fan
Posts: 711
Joined: Jul 2011
Reputation: 16
Location: Nova Scotia, Canada
Post: #5
Cranial Wrote:And just after we got the NFS wiki all sorted out..... Rolleyes

hahaha....I didn't want to say it, but.....yeah.... Tongue I guess that means we'd better start planning the AFP wiki! Nod

- ATV2 4.4.4 (iOS 5.0.1) build 9A406a, running Gotham (latest revision)
- 2011 Macbook Pro, running OSX Mavericks
- Skin: reFocus
- Connecting to MySQL database on Synology DS411+ NAS via NFS.
find quote
canadave Offline
Fan
Posts: 711
Joined: Jul 2011
Reputation: 16
Location: Nova Scotia, Canada
Post: #6
oh, and davilla, what's a user assword? Wink Rofl

- ATV2 4.4.4 (iOS 5.0.1) build 9A406a, running Gotham (latest revision)
- 2011 Macbook Pro, running OSX Mavericks
- Skin: reFocus
- Connecting to MySQL database on Synology DS411+ NAS via NFS.
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Post: #7
canadave Wrote:oh, and davilla, what's a user assword? Wink Rofl

hrhr, damm wiki, fixed now.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
Cranial Offline
Fan
Posts: 740
Joined: Aug 2008
Reputation: 3
Location: Sydney, Australia
Post: #8
davilla Wrote:hrhr, damm wiki, fixed now.

It's okay, we know there's some pretty complex code required there, you'll get the hang of it Wink

If I have helped you in any way, please forgive me, it was entirely accidental.
find quote
brandonjcreek Offline
Junior Member
Posts: 23
Joined: Jul 2010
Reputation: 0
Post: #9
YAY!!! Of coarse, I'm using NFS at the moment, but it's still nice to know I have more options. Great job Team-XBMC! You guys are effin AWESOME!
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,584
Joined: Feb 2011
Reputation: 116
Location: germany
Post: #10
And first i have to add one known issue.

The first connect might fail (spinning wheel is spinning for more then 30 secs). In that case abort the connect by pressing "Menu" on the remote and try again. It works after a couple of trys. If its connected once - everything else should work.

Needless to say that NFS is much more cleaner in all behalves Big Grin (libnfs is cooler, code is cooler, protocol is cooler, upstream dev is cooler - and even accessable).

hf

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
_-Sky-_ Offline
Junior Member
Posts: 21
Joined: Jun 2011
Reputation: 0
Location: France
Post: #11
Memphiz Wrote:And first i have to add one known issue.

The first connect might fail (spinning wheel is spinning for more then 30 secs). In that case abort the connect by pressing "Menu" on the remote and try again. It works after a couple of trys. If its connected once - everything else should work.

Needless to say that NFS is much more cleaner in all behalves Big Grin (libnfs is cooler, code is cooler, protocol is cooler, upstream dev is cooler - and even accessable).

hf
This behavior is on "Lion compatible" sharing (OS Lion, recently upgraded NAS) only or with every kind of share ?
(This post was last modified: 2011-09-09 12:23 by _-Sky-_.)
find quote
pecinko Offline
Donor
Posts: 3,837
Joined: Dec 2008
Reputation: 52
Location: Prague / Belgrade
Post: #12
Guys, thanks a lot.

My skins:

Amber
Quartz

find quote
activate Offline
Fan
Posts: 603
Joined: Feb 2011
Reputation: 1
Post: #13
First look, running it from multiple usb external volumes of an IMac, part wireless part LAN. Atv2 connected briskly through zeroconfig. Played 24gig mkv with dts ma, no probs. Great start, thanks Smile

Macmini Server 2011 i7 Quad Core, OS 10.8.2, Amp Onkyo TX-SR308 USB WD drives 3x2TB TV Samsung Plasma 720p EyeTV Integration
There are only 10 kinds of people in this world, those who understand binary, and those who don't.



find quote
canadave Offline
Fan
Posts: 711
Joined: Jul 2011
Reputation: 16
Location: Nova Scotia, Canada
Post: #14
OK, it sort of works for me. It's something on my side, with my NAS, that's not working; it works fine on my Mac Pro and my laptop.

http://pastebin.com/a5pKAPKh

It looks to me like it's trying to connect to port 548 on my NAS...not sure if my Synology is listening on port 548 for AFP?

I'll do some more investigating.

*** EDIT ***: the Synology DOES use port 548 for AFP. And it is enabled (have been using it for my own computer LAN connections to the NAS for some time now). But not working in this case with the ATV2. That's strange....hmmmm.........

*** EDIT 2 ***: Duhhrrr...let me try davilla's manual connect and see if that's the issue. I bet it is.

*** EDIT 3 ***: Yep, it works when I manually type in the username : password@IP/sharedfolder to access the share rather than browsing. It's too bad it doesn't "just work", but, oh well Smile It works, bottom line! I'm playing TRON:Legacy 1080p .mkv file from my NAS to the ATV2 via wireless LAN, working great, no buffering/stuttering.

- ATV2 4.4.4 (iOS 5.0.1) build 9A406a, running Gotham (latest revision)
- 2011 Macbook Pro, running OSX Mavericks
- Skin: reFocus
- Connecting to MySQL database on Synology DS411+ NAS via NFS.
(This post was last modified: 2011-09-09 15:06 by canadave.)
find quote
_-Sky-_ Offline
Junior Member
Posts: 21
Joined: Jun 2011
Reputation: 0
Location: France
Post: #15
@canadave : are you sharing something without necessary login/password on your NAS ?
find quote
Post Reply