[ATV2] Airplay
#1
Hi guys,

I can't get Airplay Video or Airplay Pictures to work on XBMC on my Apple TV 2's at all. They work fine on XBMC Win and Mac OS X, all running Eden beta 2.

On Youtube.app (iPhone 5.1 beta + iPad 5.0.1), when trying to airplay to ATV2 XBMC I get the following error "The operation could not be completed". Music airplay works fine.

I tried a fresh jailbreak and installation to see if I had broken something however it's not fixed.

Is this a known bug?

This is my log file:

Code:
..
22:17:03 T:97685504  NOTICE: Loaded playercorefactory configuration
22:17:03 T:97685504  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
22:17:03 T:97685504  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
22:17:03 T:97685504  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
22:17:03 T:97685504  NOTICE: Loaded settings file from special://profile/advancedsettings.xml
22:17:03 T:97685504  NOTICE: Contents of special://profile/advancedsettings.xml are...
                                            <advancedsettings>
                                              <gui>
                                                <algorithmdirtyregions>3</algorithmdirtyregions>
                                              </gui>
                                              <videodatabase>
                                                <type>mysql</type>
                                                <host>192.168.0.2</host>
                                                <port>3309</port>
                                                <user>xbmc</user>
                                                <pass>xbmc</pass>
                                                <name>xbmc_video</name>
                                              </videodatabase>
                                              <musicdatabase>
                                                <type>mysql</type>
                                                <host>192.168.0.2</host>
                                                <port>3309</port>
                                                <user>xbmc</user>
                                                <pass>xbmc</pass>
                                                <name>xbmc_music</name>
                                              </musicdatabase>
                                              <pathsubstitution>
                                                <substitute>
                                                  <from>special://masterprofile/Thumbnails/</from>
                                                  <to>smb://MEDIAPORTAL1/Thumbnails/</to>
                                                </substitute>
                                              </pathsubstitution>
                                            </advancedsettings>
22:17:03 T:97685504   DEBUG: Configuring path substitutions
22:17:03 T:97685504   DEBUG:   Registering substition pair:
22:17:03 T:97685504   DEBUG:     From: [/var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/]
22:17:03 T:97685504   DEBUG:     To:   [smb://MEDIAPORTAL1/Thumbnails/]
22:17:03 T:97685504 WARNING: VIDEO database configuration is experimental.
22:17:03 T:97685504  NOTICE: Getting hardware information now...
22:17:03 T:97685504    INFO: Using digital output
22:17:03 T:97685504    INFO: AC3 pass through is enabled
22:17:03 T:97685504    INFO: DTS pass through is enabled
22:17:03 T:97685504    INFO: AAC pass through is disabled
22:17:03 T:97685504    INFO: MP1 pass through is disabled
22:17:03 T:97685504    INFO: MP2 pass through is disabled
22:17:03 T:97685504    INFO: MP3 pass through is disabled
22:17:03 T:97685504   DEBUG: Error: Requested setting (videoscreen.screenmode) was not found.  It must be case-sensitive
22:17:03 T:97685504  NOTICE: Checking resolution 12
22:17:03 T:97685504  NOTICE: Default DVD Player: dvdplayer
22:17:03 T:97685504  NOTICE: Default Video Player: dvdplayer
22:17:03 T:97685504  NOTICE: Default Audio Player: paplayer
22:17:03 T:97685504  NOTICE: Disabled debug logging due to GUI setting. Level 0.
22:17:03 T:97685504  NOTICE: Log level changed to 0
22:17:03 T:97685504  NOTICE: Loading media sources from special://masterprofile/sources.xml
22:17:04 T:97685504  NOTICE: GL_VENDOR = Imagination Technologies
22:17:04 T:97685504  NOTICE: GL_RENDERER = PowerVR SGX 535
22:17:04 T:97685504  NOTICE: GL_VERSION = OpenGL ES 2.0 IMGSGX535-63.14.2
22:17:04 T:97685504  NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 1.0
22:17:04 T:97685504  NOTICE: GL_EXTENSIONS = GL_OES_depth_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_texture_lod GL_EXT_texture_filter_anisotropic GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_IMG_read_format GL_IMG_texture_compression_pvrtc
22:17:04 T:97685504  NOTICE: initializing playlistplayer
22:17:04 T:97685504  NOTICE: DONE initializing playlistplayer
22:17:09 T:97685504   ERROR: ADDON: extension 'downloader/' is not currently supported for service addon
22:17:09 T:97685504   ERROR: Previous line repeats 1 times.
22:17:09 T:97685504  NOTICE: initialize done
22:17:09 T:97685504  NOTICE: Running the application...
22:17:09 T:112803840  NOTICE: -->Python Interpreter Initialized<--
22:17:09 T:97685504  NOTICE: Webserver: Starting...
22:17:09 T:97685504  NOTICE: WebServer: Started the webserver
22:17:09 T:97685504  NOTICE: starting zeroconf publishing
22:17:11 T:134897664  NOTICE: -->Python Interpreter Initialized<--
22:17:19 T:117370880  NOTICE: -->Python Interpreter Initialized<--
22:17:27 T:97685504  NOTICE: Log level changed to 2
22:17:27 T:97685504  NOTICE: Enabled debug logging due to GUI setting. Level 2.
22:17:27 T:97685504   DEBUG: ------ Window Init () ------
22:17:34 T:97685504   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-arm-osx.so)
22:17:34 T:97685504   DEBUG: Unloading: ImageLib-arm-osx.so
22:17:44 T:118026240   DEBUG: AIRPLAY Server: New connection detected
22:17:44 T:118026240    INFO: AIRPLAY Server: New connection added
22:17:44 T:118026240   DEBUG: AIRPLAY: got request /server-info
22:17:44 T:118026240   DEBUG: AIRPLAY Server: New connection detected
22:17:44 T:118026240    INFO: AIRPLAY Server: New connection added
22:17:44 T:118026240   DEBUG: AIRPLAY: got request /play
22:17:44 T:118026240   DEBUG: AIRPLAY: got request /rate with rate 0
22:17:46 T:118026240    INFO: AIRPLAY Server: Disconnection detected
22:17:51 T:136396800    INFO: Previous line repeats 1 times.
22:17:51 T:136396800   DEBUG: Thread Jobworker 136396800 terminating (autodelete)
22:17:51 T:113598464   DEBUG: Thread Jobworker 113598464 terminating (autodelete)
22:17:51 T:119267328   DEBUG: Thread Jobworker 119267328 terminating (autodelete)
22:18:39 T:118026240   DEBUG: AIRPLAY Server: New connection detected
22:18:39 T:118026240    INFO: AIRPLAY Server: New connection added
22:18:39 T:118026240   DEBUG: AIRPLAY: got request /server-info
22:18:39 T:118026240   DEBUG: AIRPLAY Server: New connection detected
22:18:39 T:118026240    INFO: AIRPLAY Server: New connection added
22:18:39 T:118026240   DEBUG: AIRPLAY: got request /play
22:18:39 T:118026240   DEBUG: AIRPLAY: got request /rate with rate 0
22:18:44 T:118026240    INFO: AIRPLAY Server: Disconnection detected
22:18:48 T:97685504    INFO: Previous line repeats 1 times.
22:18:48 T:97685504  NOTICE: Samba is idle. Closing the remaining connections
22:19:09 T:118026240   DEBUG: AIRPLAY Server: New connection detected
22:19:09 T:118026240    INFO: AIRPLAY Server: New connection added
22:19:09 T:118026240   DEBUG: AIRPLAY: got request /server-info
22:19:09 T:118026240    INFO: AIRPLAY Server: Disconnection detected
22:19:10 T:118026240   DEBUG: AIRPLAY Server: New connection detected
22:19:10 T:118026240    INFO: AIRPLAY Server: New connection added
22:19:10 T:118026240   DEBUG: AIRPLAY: got request /server-info
22:19:10 T:118026240   DEBUG: AIRPLAY Server: New connection detected
22:19:10 T:118026240    INFO: AIRPLAY Server: New connection added
22:19:10 T:118026240   DEBUG: AIRPLAY: got request /photo
22:19:22 T:118026240   DEBUG: AIRPLAY: got request /stop
22:19:22 T:118026240    INFO: AIRPLAY Server: Disconnection detected

Full log: http://pastebin.com/raw.php?i=tLRPZVdd
Reply
#2
Have you disabled AirPlay within ATV?

For the Apple TV 2: Be sure to disable the native ATV2 AirPlay server in the ATV2's settings. Using the native AirPlay server will crash XBMC.
Reply
#3
navet Wrote:Have you disabled AirPlay within ATV?

For the Apple TV 2: Be sure to disable the native ATV2 AirPlay server in the ATV2's settings. Using the native AirPlay server will crash XBMC.

Yep, the native AirPlay is disabled.
Reply
#4
Well i've tested atv2 b2 with ipad ios 5.0.1 in youtube app and videos app. This worked for me. Unfortunatly i don't have an ios5 device anymore (only ipad ios4.3) so i'm not able to dig into issues here (nope - i won't ever update to ios5 again - ipad got slow like hell with ios5 and that is not acceptable because its my privat ipad which is not dedicated to development)...

It looks like the airplay client disconnects after sending the play command. Do you see the spinning wheel at least? Do you have password protection on in airplay? (this might be broken with ios5 clients...)
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)
Reply
#5
Memphiz Wrote:Well i've tested atv2 b2 with ipad ios 5.0.1 in youtube app and videos app. This worked for me. Unfortunatly i don't have an ios5 device anymore (only ipad ios4.3) so i'm not able to dig into issues here (nope - i won't ever update to ios5 again - ipad got slow like hell with ios5 and that is not acceptable because its my privat ipad which is not dedicated to development)...

It looks like the airplay client disconnects after sending the play command. Do you see the spinning wheel at least? Do you have password protection on in airplay? (this might be broken with ios5 clients...)

That's strange that your ipad got all slow on 5.0.1. My iPhone 4 has the same processor and it's been its normal zippy self on 5.0.1.
Reply
#6
Ned Scott Wrote:That's strange that your ipad got all slow on 5.0.1. My iPhone 4 has the same processor and it's been its normal zippy self on 5.0.1.

The iphone 4 has twice the memory of the ipad 1
Reply
#7
I can confirm that airplay + IOS has multiple issues... Some apps work great, but others fail (justin.tv and other streaming apps)...

I have the newest firmware/software on all devices.

I disabled XBMC airplay and I allow ATV2 to handle airplay. It just backs out of XBMC and runs perfectly
Reply
#8
Sure it runs perfectly - apple knows the protocol - i don't ...
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)
Reply
#9
Ned Scott Wrote:That's strange that your ipad got all slow on 5.0.1. My iPhone 4 has the same processor and it's been its normal zippy self on 5.0.1.

Google for "ipad ios 5 slow" and you will get a knowledge of what i mean...
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)
Reply
#10
Memphiz Wrote:..It looks like the airplay client disconnects after sending the play command. Do you see the spinning wheel at least? Do you have password protection on in airplay? (this might be broken with ios5 clients...)

Yeah, I saw the spinning wheel sometimes but not always. Password protection was the issue, i've disabled it and now is all working fine! Thanks Memphiz Big Grin

It's kinda odd that it worked for Music though, any idea why? I'd love to get involved with development.
Reply
#11
Password protection for music isn't supported yet. Thats why music worked. Sure get in touch Smile. Grab the code and fix the password protection from iOS5 device for a start :p. (it works from ios4.3 device).
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)
Reply

Logout Mark Read Team Forum Stats Members Help
[ATV2] Airplay0