Added maxKeepAway option for live streams, renamed minkeepaway/keepaway to "jitter" externally, added global jitter and bframe checks in all JSON-like metadata outputs
This commit is contained in:
		
							parent
							
								
									7b523d53c7
								
							
						
					
					
						commit
						49ee109b50
					
				
					 7 changed files with 90 additions and 23 deletions
				
			
		|  | @ -953,6 +953,13 @@ namespace Mist{ | |||
|       if (ti->first == INVALID_TRACK_ID){continue;} | ||||
|       if (M.getMinKeepAway(ti->first) > r){r = M.getMinKeepAway(ti->first);} | ||||
|     } | ||||
|     //Limit the value to the maxKeepAway setting
 | ||||
|     //Also lowers extraKeepAway if needed
 | ||||
|     uint64_t maxKeepAway = M.getMaxKeepAway(); | ||||
|     if (maxKeepAway){ | ||||
|       if (r > maxKeepAway){r = maxKeepAway;} | ||||
|       if (r+extraKeepAway > maxKeepAway){extraKeepAway = maxKeepAway - r;} | ||||
|     } | ||||
|     return r; | ||||
|   } | ||||
| 
 | ||||
|  |  | |||
|  | @ -485,10 +485,8 @@ namespace Mist{ | |||
|       if (it->isMember("lang")){ | ||||
|         (*it)["language"] = Encodings::ISO639::decode((*it)["lang"].asStringRef()); | ||||
|       } | ||||
|       if (M.hasBFrames((*it)["idx"].asInt())){(*it)["bframes"] = 1;} | ||||
|     } | ||||
|     json_resp["meta"].removeMember("source"); | ||||
|     json_resp["meta"]["bframes"] = (M.hasBFrames() ? 1 : 0); | ||||
| 
 | ||||
|     // Get sources/protocols information
 | ||||
|     Util::DTSCShmReader rCapa(SHM_CAPA); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma