Should fix HTTP "stream not found" issues.
This commit is contained in:
parent
9413e8661d
commit
b2500d90e1
2 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ namespace Connector_HTTP{
|
|||
std::cout << "Received request: " << HTTP_R.url << std::endl;
|
||||
#endif
|
||||
if (HTTP_R.url.find("f4m") == std::string::npos){
|
||||
Movie = HTTP_R.url.substr(1,HTTP_R.url.find("/",1)-1);
|
||||
streamname = HTTP_R.url.substr(1,HTTP_R.url.find("/",1)-1);
|
||||
Quality = HTTP_R.url.substr( HTTP_R.url.find("/",1)+1 );
|
||||
Quality = Quality.substr(0, Quality.find("Seg"));
|
||||
temp = HTTP_R.url.find("Seg") + 3;
|
||||
|
@ -124,7 +124,7 @@ namespace Connector_HTTP{
|
|||
#endif
|
||||
Flash_RequestPending++;
|
||||
}else{
|
||||
Movie = HTTP_R.url.substr(1,HTTP_R.url.find("/",1)-1);
|
||||
streamname = HTTP_R.url.substr(1,HTTP_R.url.find("/",1)-1);
|
||||
HTTP_S.Clean();
|
||||
HTTP_S.SetHeader("Content-Type","text/xml");
|
||||
HTTP_S.SetHeader("Cache-Control","no-cache");
|
||||
|
|
|
@ -51,7 +51,7 @@ namespace Connector_HTTP{
|
|||
#endif
|
||||
//we assume the URL is the stream name with a 3 letter extension
|
||||
std::string extension = HTTP_R.url.substr(HTTP_R.url.size()-4);
|
||||
Movie = HTTP_R.url.substr(0, HTTP_R.url.size()-4);//strip the extension
|
||||
streamname = HTTP_R.url.substr(0, HTTP_R.url.size()-4);//strip the extension
|
||||
/// \todo VoD streams will need support for position reading from the URL parameters
|
||||
ready4data = true;
|
||||
HTTP_R.Clean(); //clean for any possible next requests
|
||||
|
|
Loading…
Add table
Reference in a new issue