CrazyEngineers Archive
Old, but evergreen and popular discussions on CrazyEngineers, presented to you in read-only mode.
@Sachin Jain • 05 Dec, 2010 • 1 like
Hey folks,
We know http run over tcp.
And 2nd fact that online video streaming use udp.

I am little bit confused that youtube contains videos.
And when we watch video they come to us as http.

More precisely,
I wanna know how does youtube manage the server ?
Which protocol it uses?😛
@Leo • 06 Dec, 2010 • 2 likes Hi Blunberboy of course youtube page uses http. The real thing does not happens via http page but the flash object that is embedded in that page. The flash object which appear on youtube is video flash player. The video flash player acts as iframe(technically incorrect term) for contents that would be called for streaming via flash object. For storing media contents a media sever have been installed by youtube whose contents get called when you press play button.

For streaming media to flash player Real Time Streaming Protocol(RTSP) is used. The play button on flash player acts as RTSP invoker for media being called and media is streamed via UDP packets. In fact you don't need to migrate anywhere from page because the embedded object calls for video not the http page but as the object is embedded on http page once you close it, object also get closed.

Convey if that information is useful or not.
@HirenBarbhaya • 06 Dec, 2010 Very Nice Explanation!!!
@Sachin Jain • 07 Dec, 2010 Hey thanx Leo..
Very nice explanation...I will study RTSP and will get clarified more.
Your explanation helps.
I have just one more doubt....
Since those videos use UDP.
So now suppose i have clicked on play button to play a video.
Since it is using UDP transmission, server does not bother whether i am getting video file or not
Hence i just close my browser. Still then packets will come to me or not ?

May be i am over questioning...But thats the only way to learn...
Thanx,,😀
@Leo • 07 Dec, 2010 The answer is no, reason as i told earlier the play button on flash object invokes RTSP for media being called and media is delivered via UDP packets. As you close connection flash object closes, and as flash object closes RSTP connection drops and since no media invoking entity is there media server will automatically stop sending as soon as RSTP dies.

May be i am over questioning...But thats the only way to learn...
Never say something like that, questioning doesn't make you look fool, people who ask questions are more smarter than people who don't question or answers questions, don't ever feel awkward to ask questions no matter what others think. Let them go in hell because the person who knows to ask one day becomes master of his own game. So feel free to ask, if i can't answer there'll be someone who will answer,
@Sahithi Pallavi • 08 Dec, 2010 Verily said Leo!
Nice!
@Sachin Jain • 09 Dec, 2010 Thanks Leo....
Your words are of great help...
I have got the point now...

Thanks a lot...😀
@Gyanendro • 28 May, 2014 • 1 like Thanks @Leo ... Your valuable ideas and thought are inspiring.. "Questioning doesn't make you look fool, people who ask questions are more smarter than people who don't question or answers questions"
@Ankita Katdare • 29 May, 2014 ^ Could not agree more. Welcome to CE @Gyanendro and we hope @Leo comes back soon.
@John Espresso • 09 May, 2015 You are the best, Leo. I have a job interview about TCP, UDP and RTSP next week... I hope not to get to nervous....
@Mohana Chandra • 03 Mar, 2020

Youtube uses Real time Server Protocol.It is the real time network application protocol that transfers multimedia from server to the end-users or endpoints, by using data streaming servers.

The components or objects that invokes http request from enduser to the server are play,pause,teardown,Redirect,Setup etc.

@Abhishek Rawal • 04 Mar, 2020

Based on RTSP RFC 2326 :
pcom-rfc2326.jpg

23.4k views

Related Posts

@Sharvari Panchbhai · Jul 19, 2014

Researchers at Massachusetts Institute of Technology have developed a novel wrist-mounted robot that will aid human hand for carrying out simple day to day activities such as lifting heavy objects,...
3.4k views

@sai krishna · Dec 13, 2007

I'm looking for the major difference between compiler and interpreter - the terms commonly used in computer programming and computer science. As the title suggests can any one briefly explain...
4.2k views

@atul-namdeo · Nov 18, 2013

Hello, i have searched alot in google about the PSU's recruiting without Gate score 2014 card but i got nothing .. please help me.. can anyone tell me the name...
48.2k views

@Sharvari Panchbhai · Feb 24, 2015

Automobile manufacturer, Maruti Suzuki has launched the refreshed edition of its bestseller sedan, Swift DZire with several comfort and convenience features in India. The 2015 Swift Dzire is priced between...
3.1k views

@Guneet Khanuja · Feb 25, 2014

Saurabh Singh founded AppStudioz in 2011 with an aim to "deliver apps well and deliver them fast". AppStudioz is a Noida based App development company. AppStudioz develops apps for all...
3.3k views