Merge branch 'development' into LTS_development
This commit is contained in:
		
						commit
						51a65209fa
					
				
					 20 changed files with 59389 additions and 249 deletions
				
			
		|  | @ -612,4 +612,19 @@ namespace Mist { | |||
|   void OutHLS::sendTS(const char * tsData, unsigned int len) { | ||||
|     H.Chunkify(tsData, len, myConn); | ||||
|   } | ||||
| 
 | ||||
|   void OutHLS::onFail(const std::string & msg, bool critical){ | ||||
|     if (H.url.find(".m3u") == std::string::npos){ | ||||
|       HTTPOutput::onFail(msg, critical); | ||||
|       return; | ||||
|     } | ||||
|     H.Clean(); //make sure no parts of old requests are left in any buffers
 | ||||
|     H.SetHeader("Server", "MistServer/" PACKAGE_VERSION); | ||||
|     H.setCORSHeaders(); | ||||
|     H.SetHeader("Content-Type", "application/vnd.apple.mpegurl"); | ||||
|     H.SetHeader("Cache-Control", "no-cache"); | ||||
|     H.SetBody("#EXTM3U\r\n#EXT-X-ERROR: "+msg+"\r\n#EXT-X-ENDLIST\r\n"); | ||||
|     H.SendResponse("200", "OK", myConn); | ||||
|     Output::onFail(msg, critical); | ||||
|   } | ||||
| } | ||||
|  |  | |||
|  | @ -11,6 +11,7 @@ namespace Mist { | |||
|       void sendNext(); | ||||
|       void onHTTP();       | ||||
|       bool isReadyForPlay(); | ||||
|       virtual void onFail(const std::string & msg, bool critical = false); | ||||
|     protected: | ||||
|       std::string h264init(const std::string & initData); | ||||
|       std::string h265init(const std::string & initData); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma