How Does WebRTC Work? Seriously, How?

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • In this video, you will learn how WebRTC works under the hood. You will get to know about WebRTC terms like SDP, ICE Candidate, STUN and TURN, etc.
    Video Call App with WebRTC, JavaScript Course:
    • A Detailed WebRTC Cour...
    Follow me on social media:
    / heyletscode
    www.github.com...
    / _heyletscode
    / heyletscode

Комментарии • 63

  • @fundifferent1
    @fundifferent1 14 дней назад +3

    Mostly great video, but if I understand correctly (I'm still learning), your final conclusion at 5:55 is not 100% accurate. That's because this video combines STUN & TURN server as if they are the same, when they aren't. The peer to peer connection you describe at 5:55 is the result of the STUN server. However, if you use a TURN server, the TURN server now acts as a middle man between the peers, so it's not a true peer to peer. And for those still learning, a STUN server is for when finding the network information of the peers is easy. However, if peers have firewalls and complicated NAT restrictions, the STUN server will not be able to get through it and thus you need a TURN server, which handles the connection as a middle man and also costs more because now data transfer is being handled via the TURN server and not truly peer to peer.

  • @supmit2k8
    @supmit2k8 Год назад +2

    Very nice introductory video, perfectly explains the basic concepts of webrtc. Thank you for that.

  • @JeffreyLiu8
    @JeffreyLiu8 3 года назад +7

    can we have multiple clients? like people watching a person streaming like twitch?

    • @JeffreyLiu8
      @JeffreyLiu8 2 года назад +1

      @@jnnk-hb thanks for the info, I am willing to share the IP, and I don't mind bandwidth, I probably can just start with 3 people meeting, any docs on how to get it done?

  • @byte2biker
    @byte2biker Год назад

    Thanks for the great explanation. 👏

  • @rreaksmey1
    @rreaksmey1 3 года назад

    Thanks for the explanation, really appreciated.

  • @diegomountain7177
    @diegomountain7177 2 года назад

    The explanation seems to indicate that the ICE Candidates are sent separate to the Offer. Is that the case or are they sent WITH the original Offer?

  • @emanmukherjee9787
    @emanmukherjee9787 3 года назад

    Y University is using webrtc in chrome to enable webcam and audio. Can they also seen the screen of my pc?

    • @Odsku
      @Odsku 3 года назад

      Chrome allows screen sharing so basically yes but im pretty sure u have to give consent for screensharing and it should show a popup that u are sharing ur screen as long as your screensharing

  • @Sal-bm4mw
    @Sal-bm4mw 3 года назад

    Impressive, Good Job!

  • @ShivamThakur-rt6js
    @ShivamThakur-rt6js Год назад +10

    Bro that was the simplest yet clearest explanation. Great work. Thanks a lot

  • @shivankchopra8552
    @shivankchopra8552 3 года назад +12

    Thanks for the high level explanation, much appreciated :)

  • @nombrealetatorioyanonimo553
    @nombrealetatorioyanonimo553 2 года назад +1

    ¿Qué es? Una basura más de tecnología que no necesitas y que encima filtra tu IP real incluso con algunos VPN... Así que lo más sensato es quitar esa basura de tu navegador o usar un navegador sin esa basura, el hecho es simple... Encima te lo venden como que es libre, me importa un huevo si es código libre si me espía, quien quiere ser libre de ser espiado soy yo aunque eso sea muy complicado tirando a imposible para el usuario medio; pero al menos podemos ponérselo un poco más difícil...

  • @iamthirdyt
    @iamthirdyt 3 года назад +3

    Great video. A suggestion for future videos, instead of saying “this client” or “the other client”, say “client 1” and “client 2” instead, or even better use the classic Alice and Bob. :)

  • @preetamsingh147
    @preetamsingh147 3 года назад +7

    This was really well explained. Thanks a lot!

  • @cyberverz
    @cyberverz 4 года назад +3

    1. what if peer1 wants to receive remote peer2 stream only , do both need to send create offer n answer or only one who wants to share media stream ?
    2. what if we don't provide stun turn urls to rtcpeerconnection object ?

    • @heyletscode
      @heyletscode  4 года назад

      yes the offer and answer must be exchanged. If you dont want to send a stream for a peer then dont add any stream for that peer
      If you do not provide STUN & TURN url then the ICECandidates will not be generated which is required for the p2p connection

  • @ahmedsohail9855
    @ahmedsohail9855 2 года назад +3

    It was good enough to clear concepts, much appreciated

  • @larmaysee
    @larmaysee 2 года назад +1

    Thank You Very Much For your explanation. But I have some quest about stun and turn server.
    How do create stun and turn server. I mean do we need to create our own stun/turn server?
    What about if we dev for production can we use public stun/turn server?
    Again, Thank you for your video , which is very helpful.

  • @MorseRalap-r3f
    @MorseRalap-r3f 22 дня назад

    Harris Daniel Moore Robert Brown Sandra

  • @nanduchandran2805
    @nanduchandran2805 3 года назад +1

    Hii... Thank you for this video ....i have a doubt . When i enable hardware acceleration on chrome , my h264 lossless encoded video won't play in chrome but if i turn off hardware acceleration in chrome it is playing....iam using webrtc for data streaming from server directly to chrome Do u have any idea about this?

  • @nextleveltech267
    @nextleveltech267 7 месяцев назад +1

    Nice explanation ❤️🙏

  • @areebrashid6467
    @areebrashid6467 16 дней назад

    Great video man.

  • @nwcoder
    @nwcoder Год назад

    Sir, please make webRtc video calling app in this topics using java language Android

  • @atulparate
    @atulparate 3 года назад

    Need suggestion on how to stream video file or live camera feed -
    1) WebRTC app is already created and i have sender and receiver ends,
    2) From sender's end we can stream the live feed
    However i want to feed it from the code by using any existing video or want to stream it from Camera. [ Reason - I want to do load testing using code]
    Please suggest on this

  • @peberdah
    @peberdah 2 года назад

    Thanks clear, considering a simple chat app, why not append lines to a server file and share it.

  • @cafer12098
    @cafer12098 7 месяцев назад

    the "peer to peer connection without servers" line has been such a massive headache with almost every tutorial or article I started. Thanks for defining what that means at the start.

  • @alexcannizaro3333
    @alexcannizaro3333 10 месяцев назад

    Wow! Very simple and great explanation. Thanks for your contribution pal!!.

  • @limjohnny4156
    @limjohnny4156 3 года назад

    Hi why does WebRtc activity not show up in Chrome's network activity tool?

  • @Lucifer-mq2du
    @Lucifer-mq2du 4 года назад +2

    hey i need youe help...i am 12 years old and I have made a game and it took me 8 months...now i dont have international credit card to buy developer account..so please upload my game in play store.. please

  • @bonniewyrick7771
    @bonniewyrick7771 3 года назад

    Why and how did someone put this one my phone without my knowledge

  • @MihirNaidu-n5v
    @MihirNaidu-n5v 5 месяцев назад

    best explo!! gr8 job from one mihir to another !!!💗

  • @onur7183
    @onur7183 3 года назад +1

    if it fallbacks down to turn, than it aint no p2p anymore or am i wrong?

    • @gelotress479
      @gelotress479 3 года назад

      Based on my initial readings, yes, that is correct. The communication is essentially done through a "proxy" so to speak.

    • @adamfranklin1114
      @adamfranklin1114 3 года назад

      @@gelotress479 so the p2p video chat is free of processing costs (besides the singling) but the non p2p (fall backed) is more cost intensive in cloud
      Is this right? Hmm

    • @fundifferent1
      @fundifferent1 14 дней назад

      @@adamfranklin1114 yes, because the data transfer is happening on the server (which you pay for) instead of peer to peer.

  • @muslim2k
    @muslim2k 3 года назад

    sp the signaling server is just a mutual friend.

  • @arseniykucherenko4960
    @arseniykucherenko4960 3 года назад

    To build hight performed Zoom like app with multiple participants in the video call still require SFU servers and proper STUN/TURN infrastructure.

  • @danushadhaamarasekera7215
    @danushadhaamarasekera7215 2 месяца назад

    Thank you Bro god bless you

  • @vasukannan.s7423
    @vasukannan.s7423 2 года назад

    What is stun and turn servers.. Is signalling server and stun and turn server both are same?

    • @Laptevwalrus
      @Laptevwalrus 6 месяцев назад

      The purpose of stun server is to get your IP/PORT. Signalling server just shares this information between peers

    • @ranuchakravarti3277
      @ranuchakravarti3277 5 месяцев назад

      No they r different

  • @rezahosseini-so7hk
    @rezahosseini-so7hk Год назад

    so we cant make an app like walki talki with webRTC? i mean without need internet or being online?

    • @Laptevwalrus
      @Laptevwalrus 6 месяцев назад

      WebRTC allows clients to communicate with each other without intermediate server, thus increasing internet speed/latency

  • @rohitsarma4226
    @rohitsarma4226 3 года назад

    bro kudos keep up the work u explained like fab

  • @tintrinh4729
    @tintrinh4729 2 года назад

    Many Thanks, great explain

  • @tegasteve8195
    @tegasteve8195 Год назад

    Thank you for the explanation

  • @mehmetmetenak1471
    @mehmetmetenak1471 Год назад

    clear and simple, thanks man

  • @danushadhaamarasekera7215
    @danushadhaamarasekera7215 6 месяцев назад

    thank you brother

  • @laxmanprasadmishra4563
    @laxmanprasadmishra4563 3 года назад

    Sir how to get stun and tun servers

  • @yasirchoudhary824
    @yasirchoudhary824 2 года назад

    Really good explanation

  • @zafariqbal92
    @zafariqbal92 2 года назад

    Thank You

  • @taranjitsingh1689
    @taranjitsingh1689 3 года назад

    Wow wow wow

  • @Cdswjp
    @Cdswjp 2 года назад

    Very good work

  • @dev3269
    @dev3269 3 года назад

    Thanks bro,

  • @001Debjeet
    @001Debjeet 3 года назад

    well explained

  • @crazysumavlogs3075
    @crazysumavlogs3075 3 года назад

    Very clear explanation 👍

  • @abdulhaseeb7081
    @abdulhaseeb7081 Год назад

    WOW! best explanation, I tried many videos, chatgpt, bard, none helped, watching your 6 mins video was worth it, thank you so much

  • @arafatbashir3708
    @arafatbashir3708 4 года назад

    Can you create find my tutor application