summaryrefslogtreecommitdiff
path: root/httptnt
diff options
context:
space:
mode:
authormethodus <methodus@web.de>2012-11-09 07:07:13 +0100
committermethodus <methodus@web.de>2012-11-09 07:07:13 +0100
commit7a71b12fc7bde08feaeb6ee2391283174fef9685 (patch)
treee907d0322e795e5a6ca6cc4b4fef99758e585262 /httptnt
parent5510375bdfdca7b73ac6c51920702d38b79ffcca (diff)
downloadvdr-plugin-upnp-7a71b12fc7bde08feaeb6ee2391283174fef9685.tar.gz
vdr-plugin-upnp-7a71b12fc7bde08feaeb6ee2391283174fef9685.tar.bz2
Fixed WMP12 support.
Diffstat (limited to 'httptnt')
-rw-r--r--httptnt/resourceStreamer.ecpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/httptnt/resourceStreamer.ecpp b/httptnt/resourceStreamer.ecpp
index ef9a011..a7afdac 100644
--- a/httptnt/resourceStreamer.ecpp
+++ b/httptnt/resourceStreamer.ecpp
@@ -38,7 +38,8 @@ using namespace upnp;
int code = HTTP_OK;
string codeText = "OK";
- //reply.setKeepAliveHeader();
+ // DLNA requires KeepAlive timeout of 60s.
+ reply.setKeepAliveTimeout(60000);
reply.setContentType(streamer->GetContentType());
reply.setHeader("friendlyName.dlna.org ", server->GetServerDescription().friendlyName);
reply.setHeader("contentFeatures.dlna.org ", streamer->GetContentFeatures());
@@ -53,7 +54,7 @@ using namespace upnp;
reply.setHeader("Accept-Ranges ", "bytes");
if(request.hasHeader("getAvailableSeekRange.dlna.org:")){
std::stringstream availableRangeHeader;
- availableRangeHeader << "0 bytes=0-" << contentLength;
+ availableRangeHeader << "1 bytes=0-" << contentLength;
reply.setHeader("availableSeekRange.dlna.org ", availableRangeHeader.str());
}
}
@@ -96,8 +97,6 @@ using namespace upnp;
codeText = "Partial Content";
}
- // DLNA requires KeepAlive timeout of 60s.
- reply.setKeepAliveTimeout(60000);
reply.setDirectMode(code, codeText.c_str());
size_t bytesRead = 0;