Fixed slow embed code (internal HTTP output) problem
This commit is contained in:
		
							parent
							
								
									903786df60
								
							
						
					
					
						commit
						ea18815676
					
				
					 3 changed files with 7 additions and 0 deletions
				
			
		|  | @ -139,6 +139,7 @@ namespace Mist { | |||
|     } | ||||
|     return false; | ||||
|   } | ||||
| 
 | ||||
|   /// Connects or reconnects to the stream.
 | ||||
|   /// Assumes streamName class member has been set already.
 | ||||
|   /// Will start input if not currently active, calls onFail() if this does not succeed.
 | ||||
|  |  | |||
|  | @ -39,6 +39,11 @@ namespace Mist { | |||
|     Output::onFail(); | ||||
|   } | ||||
| 
 | ||||
|   /// We assume it's ready to play if there is at least one track available
 | ||||
|   bool OutHTTP::isReadyForPlay() { | ||||
|     return myMeta.tracks.size(); | ||||
|   } | ||||
|    | ||||
|   void OutHTTP::init(Util::Config * cfg){ | ||||
|     HTTPOutput::init(cfg); | ||||
|     capa.removeMember("deps"); | ||||
|  |  | |||
|  | @ -10,6 +10,7 @@ namespace Mist { | |||
|       static bool listenMode(); | ||||
|       virtual void onFail(); | ||||
|       void onHTTP(); | ||||
|       bool isReadyForPlay(); | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma