Some of the compenents required for a real-time streaming. The actual code is from Bryantsai. A big thanks to him.