2012-11-24, 14:43
I noticed that a lot of streams on my iPad cannot be played with Airplay on XBMC. Looking at the loggings I noticed that some data is appended to the url, removing this fixes quite some streams.
For example: http://www.radio1.nl/ Click on the webcam link on your[/code] iPad. The ipad plays this nicely, but the stream cannot be transferred to xbmc. The server replies with a 404.
Apply this patch to fix it.
For example: http://www.radio1.nl/ Click on the webcam link on your[/code] iPad. The ipad plays this nicely, but the stream cannot be transferred to xbmc. The server replies with a 404.
Apply this patch to fix it.
Code:
--- a/xbmc/network/AirPlayServer.cpp
+++ b/xbmc/network/AirPlayServer.cpp
@@ -801,9 +801,9 @@ int CAirPlayServer::CTCPClient::ProcessRequest( CStdString& responseHeader,
if (status != AIRPLAY_STATUS_NEED_AUTH)
{
- CStdString userAgent="AppleCoreMedia/1.0.0.8F455 (AppleTV; U; CPU OS 4_3 like Mac OS X; de_de)";
- CURL::Encode(userAgent);
- location += "|User-Agent=" + userAgent;
+ //CStdString userAgent="AppleCoreMedia/1.0.0.8F455 (AppleTV; U; CPU OS 4_3 like Mac OS X; de_de)";
+ //CURL::Encode(userAgent);
+ //location += "|User-Agent=" + userAgent;
CFileItem fileToPlay(location, false);
fileToPlay.SetProperty("StartPercent", position*100.0f);