openairplay / open-airplay

A collection of libraries for Apple's AirPlay protocol
1.76k stars 187 forks source link

Photo Protocol Not Working from Shell on AppleTV3,1 #8

Open loretoparisi opened 9 years ago

loretoparisi commented 9 years ago

The PHP library works fine:

php airplay.php -h 192.168.2.112:7000 -p /Users/admin/Desktop/SPACE.JPG

, but the Shell script none:

curl -D test.txt -X PUT --data-binary @$filename -H 'Connection: keep-alive' -H 'User-Agent: MediaControl/1.0' -H 'X-Apple-Transition: None' -H 'Content-Type:' -H 'Accept:' -H 'Host:' -H 'Expect:' http://192.168.2.112:7000/photo

The result is a black screen /disconnect.

I have found the same issue in Objective-C library LG ConnectSDK ( https://github.com/ConnectSDK/Connect-SDK-iOS/issues/157 ) and AirPlayKit ( https://github.com/rothacr/AirplayKit )