search for: rangeproblem

Displaying 2 results from an estimated 2 matches for "rangeproblem".

2008 Aug 25
2
patch for native iphone support
...int rangenumber; + int rangenumber2; if (client_mp3 == NULL) return -1; @@ -657,7 +660,44 @@ remaining -= bytes; ptr += bytes; } + range = httpp_getvar (client->parser, "range"); + if (range != NULL) { + int ret = 0; + int rangeproblem = 0; + ret = sscanf(range, "bytes=%d-%d", &rangenumber, &rangenumber2); + if (ret != 2) { + rangeproblem = 1; + } + if (rangenumber < 0) { + rangeproblem = 1; + } + if (!rangeproblem) { + char currenttim...
2008 Nov 29
0
Icecast Streaming to an iPhone or iPod touch
...int appledevicesupp = 0; + if (useragent && strstr(useragent, "CoreMedia")) { + appledevicesupp = 1; + } + if (appledevicesupp) + { + int rangenumber; + int rangenumber2; + if (range != NULL) { + int ret = 0; + int rangeproblem = 0; + ret = sscanf(range, "bytes=%d-%d", &rangenumber, &rangenumber2); + if (ret != 2) { + rangeproblem = 1; + } + if (rangenumber < 0) { + rangeproblem = 1; + } + if (!ra...