src/streammap.js
// processStream(stream) - Add some format information to the stream
Add some format information to the stream
Add some format information to the stream
function processStream(stream)
	{
		if (stream.type)
		{
			stream = merge(stream, decodeType(stream.type));
			if (stream.container == "FLV")
				if (stream.flashMajor == 7)
				{
					stream.vcodec = "H.263";
					stream.acodec = "MP3";
				}
				else
				{
					stream.vcodec = "H.264";
					stream.acodec = "AAC";
				}
		}
		return stream;
	}
function processStream ( stream ) { if ( stream . type ) { stream = merge ( stream , decodeType ( stream . type ) ) ; if ( stream . container == "FLV" ) if ( stream . flashMajor == 7 ) { stream . vcodec = "H.263" ; stream . acodec = "MP3" ; } else { stream . vcodec = "H.264" ; stream . acodec = "AAC" ; } } return stream ; }
processStream(stream) - Add some format information to the stream
processStream ( stream ) - Add some format information to the stream