Want to make a video chat app? Watch this video for WebRTC!

Sdílet
Vložit
  • čas přidán 16. 07. 2024
  • Learn how to make a live streaming app from scratch in just over an hour! Join Rob, as he breaks down the entire process and provides you with all the tools and knowledge you need. Whether you're a beginner or have some experience, this tutorial will ensure you have a solid understanding of WebRTC. We'll cover the whole gambit, getUserMedia, RTCPeerConnection, STUN servers and ICE candidates, the signaling process, and offer/answer/SDP negotiation. Subscribe now and let's get started!
    Before anyone points it out ... I realize there is no "Chinese" language. There's Mandarin and Cantonese and a guy who has a hard time writing, talking, and thinking at the same time ;)
    If you need help getting your local set up for a project: • Setting up a local wit...
    Link to project code: github.com/robertbunch/webrtc...
    Other videos/playlist if you need them
    Partial WebRTC playlist: • introduction to webRTC
    Socket.io playlist: • Introduction to socket.io
    mkcert Video - • https and React on loc...
    WebRTC & React: • Want to make a video c...
    Scaling WebRTC (more than peer to peer): • How to Scale WebRTC Ap...
    Full WebRTC Course on Udemy if you need more detail (playlist isn't done here yet) (costs $10-$13): www.udemy.com/course/masterin...
    0:00 - How the video is organized
    5:00 - The. 2 Parts of WebRTC
    9:20 - UDP vs. TCP
    12:12 - White-Boarding the Whole Process
    23:25 - White-Boarding Cont. - Signaling
    32:10 - GitHub/Project Instructions
    35:36 - Setting Up Local HTTPS
    39:00 - Running On Local IP
    43:05 - index.html
    45:24 - connect to socket.io
    51:03 - call button and fetchUserMedia()
    57:04 - createPeerConnection()
    63:39 - createOffer()
    66:54 - signaling server gets offer
    69:50 - client handles newOffer and sends answer
    74:49 - server handles new answer
    77:47 - client handles new answer
    78:40 - ice candidate passing
  • Věda a technologie

Komentáře • 154

  • @manishtaker8622
    @manishtaker8622 Před 5 měsíci +18

    this is the same level of teaching that you get on ibm certifications on coursera keep it up man you will blow up

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci +3

      Thanks a ton for the shoutout! I can't believe you think I'm on the same level as IBM. That's some high praise! I'm working on more of these longer form videos and hopefully they do more of the same. Thanks again for the support! It's why I make them :)

  • @devyanshujadon
    @devyanshujadon Před 3 měsíci +9

    This is hands down the best explanation of the protocol. This is exactly I needed to understand. Developers like me don't need tutorials on how to make a zoom clone, just teach us how it works and we will make a better product. I was trying to create an lms with webrtc capability but nobody explained the protocol and how to create a server better than this. Thank you!

  • @BackUp-cz6zn
    @BackUp-cz6zn Před 5 měsíci +6

    THANK YOU, oh my god it's like people are gatekeeping all these extremely valuable information.
    i tried making a chat app with rooms and couldn't find a single article or tutorial on how to actually *Architect* such a thing . all of them either didn't cover the rooms functionality or used a third party tool to handle it. nothing language or tool agnostic ( which is what i was looking for).i ended up spending two days trail and erroring the thing until i had a working prototype which im still not sure if i made the right choices.
    but this video neatly covers the whole process and saves you days of searching and trying. i literally can not thank you enough.

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci +4

      Hah! My goal, initially, was to just make a relevant video on an under-covered topic, but I think my new goal is to try and be a champion to get WebRTC mainstream. I completely agree... it took me just reading the blasted manual to make any sense out of the API because no one would really cover it. Maybe we can knock the doors off the hinges and give Zoom, Twillio, and company a good scare and get it mainstream :)

  • @noobpro3477
    @noobpro3477 Před 5 měsíci +7

    Bro I cant even start explaining how underrated this is

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci +4

      Your comment made my day! Can't tell you how much I appreciate that. Still in the really early phase so I have to stay motivated and great comments do the trick. Let me know if there's anything you'd like to see, but more content is on the way!

  • @aizensoskue3880
    @aizensoskue3880 Před 2 měsíci +4

    First time watching you, and you taught WebRTC in the best way possible

    • @robertbunch-dev
      @robertbunch-dev  Před 2 měsíci

      Really appreciate it. Slow grind getting noticed right now, but mission accomplished if you learned, or are learning, WebRTC! Thanks for commenting.

  • @prithvi3980
    @prithvi3980 Před 5 měsíci +6

    Dude, It's a one of the best explanation in this topic, seriously... Thanks a lot....

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci +1

      You're welcome! I'm glad it helped... I had such a hard time finding a good resource when I started out. Thanks for watching!

    • @prithvi3980
      @prithvi3980 Před 5 měsíci +1

      @@robertbunch-dev After watching your video fully.... Reading documentation felt very easy.... Thanks again...

  • @sozno4222
    @sozno4222 Před měsícem +2

    Fantastic. Really great job with this explanation / tutorial. You seemed to enter turbo mode when you got to the code example. Maybe slow that down a bit. I got dizzy as you flipped from file to file.

  • @peteremad5228
    @peteremad5228 Před 5 měsíci +1

    the most straight forward way to teach any one new Api ...awsome

  • @khalidsayyad9887
    @khalidsayyad9887 Před 4 měsíci +2

    I dont have enough words to appreciate your work. Please never stop teaching, you have that talent and experience for being an amazing teacher which very less people have. Highly appreciated.🤩🤩

    • @robertbunch-dev
      @robertbunch-dev  Před 4 měsíci

      And thank you for such a kind, and generous, compliment. I will keep making content, as long as you keep learning 😊

  • @kerrykreiter445
    @kerrykreiter445 Před 5 měsíci +1

    Loved this tutorial! Great content, easy to follow along, and fun to watch! Loved your teaching style and the ease that you covered a very technical subject. Makes me want to watch your other tutorials. Thanks much!

  • @KingTMK
    @KingTMK Před 5 měsíci +5

    Extremely informative and underrated video! It would also be nice to have a follow-up video where you delve more into the STUN servers and how to set up one yourself using Coturn for example. That's the only thing that's missing to me. I subscribed!

  • @TheCloudShepherd
    @TheCloudShepherd Před 3 měsíci +2

    Just watched in end to end. This is the best webRTC tutorial ever made. I think you set a new standard for how to teach code content on youtube. I feel like this is a great skill with all the AI applications that are being built.

    • @robertbunch-dev
      @robertbunch-dev  Před 3 měsíci

      Thank you for such an amazing compliment! Humans teaching humans effectively... I think that will always be important and I promise I'll never fake my teaching with an AI bot :) Keep coding!

  • @sb-dor
    @sb-dor Před 4 dny

    best explanation of webrtc that I have ever seen. Thank you a lot sir.

  • @sawyersoucie9462
    @sawyersoucie9462 Před 7 měsíci +4

    I love the direction of the channel!

  • @hetoski
    @hetoski Před 20 dny

    the quality of knowledge I gained from this video is awesome what might be the reason this level of talent is still underrated

  • @dantedt3931
    @dantedt3931 Před 4 měsíci +2

    Probably the best WebRTC tutorial.Great job!

  • @Animonearth
    @Animonearth Před 5 měsíci +3

    Best explaination ever 👑

  • @lazartodic5717
    @lazartodic5717 Před 5 měsíci +2

    Damn, this channel needs more attention. You are my friend so assertive and thorough, I've never seen even at my college professors explaining that good. Thanks a bunch! What a material! Please keep going!

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci

      Thanks for the incredible comment! It really means a lot. I promise to keep making videos if you'll keep watching them, and maybe more people will learn from them... don't tell your professors about the channel though ;) Let me know if there are topics you'd like to see covered.

    • @lazartodic5717
      @lazartodic5717 Před 5 měsíci

      @@robertbunch-dev I am looking for good example of webrtc in combination with Vue 3 composition API and Typescript. Still nowhere to find something like that. There is a lot of unclear and wrong examples about the two. Documentation si outdated and therefore some basic usage of webrtc in Vue is misleading. Thanks for hearing our voice! It means a lot.

  • @sankalpsachan9199
    @sankalpsachan9199 Před 4 měsíci +1

    Chill guys All we have to do is just share out SDP and ice Candidate
    Lets make it clear
    1. we create a peer connection we create and sending our SDP (offer) and we set it on local, that guys on the other hand will be doing the same but will be creating and sending SDP (answer)
    2. we got ice candidate (when create PC is occurs automatically) we share it with that guy on the end using signaling server and again he is doing the same
    3. then they both get each other's SDP (offer and answer) and set it as their remote
    and all set!!!!

  • @ROYAL-THUNDER
    @ROYAL-THUNDER Před 5 měsíci

    Reminds me of my college professor lectures. I'm still very grateful for the networks knowledge he gave to us.

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci +1

      It's amazing how much impact a good professor can be. I still carry a lot of that knowledge myself to this day.

  • @idontknowwhattonameit9468
    @idontknowwhattonameit9468 Před 2 měsíci +1

    The explanation is spot on, thank you very much for passing this knowledge. ❤

    • @robertbunch-dev
      @robertbunch-dev  Před 2 měsíci +1

      Glad you enjoyed it! Thank you for watching and learning :)

  • @shineLouisShine
    @shineLouisShine Před 6 měsíci +1

    Thank you very much for sharing your valuable knowledge with such a kind and professional approach.
    Haven't implement this project just yet, but do want to show my appreciation.
    Subscribed!
    If it will be possible to add a geo-location service into this potion in the future, despite the fact that it a bit overwhelmed currently- that will be really awesome..
    Thanks a lot!
    p.s.
    It feels like a hidden gem.
    There's no doubt that this channel deserve more viewers.
    Good luck.

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci

      Thanks for watching. What would you like the geo-location to do? Let the other caller know where you are at and vice-versa?

  • @BartLekens
    @BartLekens Před 2 měsíci +1

    Super helpful. Thanks!

  • @christianstprix7917
    @christianstprix7917 Před měsícem +1

    Wow you are an amazing teacher! Wish people taught coding more like this!

    • @robertbunch-dev
      @robertbunch-dev  Před měsícem

      Thank you! Really appreciate the encouragement. Let me know if there's content you'd like to see.

  • @anand_dudi
    @anand_dudi Před 3 měsíci +1

    Best Description on internet for webrtc. thanks a lot

    • @robertbunch-dev
      @robertbunch-dev  Před 3 měsíci

      Thank you so much for watching and finding the description useful! It's such an amazing api. Let me know what additions you'd like to see!

  • @SodiqAyilara
    @SodiqAyilara Před 3 měsíci +1

    I like the admissions of your own mistakes during your learning process, makes it more realistic. By the way, this stuff is gold so far. I am learning just for fun, but this stuff could be very useful down the road.

    • @robertbunch-dev
      @robertbunch-dev  Před 3 měsíci +1

      Hah... At least you know I'm no deep fake. :) One of the biggest assets as a teacher, in my experience, is having made a lot of mistakes. It means I know how everyone else feels and where to focus attention. Always fun when to find someone learning for fun :) Thanks for watching and commenting.

  • @KazHachiOreki
    @KazHachiOreki Před 4 měsíci +2

    At 1:02:04, you made a mistake here. `remoteStream` is of type `MediaStream`, so this `addTrack` (which is slightly different from the one provided by `RTCPeerConnection`) only accepts one argument, which is track (of `MediaStreamTrack` type). I noticed this because I was coding in TypeScript. Probably, it works without any error because it's JavaScript. I did try it after removing the `remoteStream` argument from your code, and it works the same. However, it's better to mention it if you also didn't notice while writing the code because like me, people can get confused.

    • @robertbunch-dev
      @robertbunch-dev  Před 4 měsíci

      Noted! Trying to figure the best way to make notations like this.

  • @houssemwali5168
    @houssemwali5168 Před 2 měsíci +1

    best lesson on webRTC on the internet , Good Job

    • @robertbunch-dev
      @robertbunch-dev  Před 2 měsíci

      Thank you! It's awesome to find a niche to fill on the over saturated Internet :) WebRTC is such a great tech I'm glad you found it useful. More videos coming!

  • @Jam-ht2ky
    @Jam-ht2ky Před 5 měsíci +1

    Phenomenal video. This really is the highest quality educational content can get.

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci +1

      I really appreciate the comment! These videos are a blast to make but I never know what will be helpful, and these make all the difference :) More are coming (on WebRTC and like stuff).

  • @rajnishkushx
    @rajnishkushx Před 3 měsíci +1

    Let's edit this comment after I watch it completely ❤
    Edit :- I watched it and it is the best video on webRTC.

  • @PalashChitnavis
    @PalashChitnavis Před 4 měsíci +1

    Wow, great tutorial. Thanks for this ❤

    • @robertbunch-dev
      @robertbunch-dev  Před 4 měsíci

      You're welcome! Keep writing WebRTC! The more people are doing it, the better the community will get 😀

  • @flaywar2363
    @flaywar2363 Před 3 měsíci +1

    Thanks for the very detailed video!

    • @robertbunch-dev
      @robertbunch-dev  Před 3 měsíci +1

      Of course! More coming, and thank you for the wonderful comment.

  • @madara_u_chiha
    @madara_u_chiha Před 3 měsíci +1

    Keep doing this great work! Soon you will have millions of subs! You are amazing!

    • @robertbunch-dev
      @robertbunch-dev  Před 3 měsíci

      Thank you so much for your kind words! It's a blast creating content that is both helpful and enjoyable, but that much more when people engage. Let me know if you have requests on what to do next, but more is coming. Code on!

  • @MitrankShah
    @MitrankShah Před 3 měsíci +1

    Super simple explanation, thanks alot!!!!!

  • @ruliasociados9617
    @ruliasociados9617 Před 2 měsíci +1

    You're amazing! Thank you so much for this tutorial

    • @robertbunch-dev
      @robertbunch-dev  Před 2 měsíci

      You're so welcome! It's fun to find a niche that needed explaining. Especially such a fun and useful technology! Keep coding!

  • @lvdanyu
    @lvdanyu Před 2 měsíci +1

    very clarify video, and I run the project successfully in soon ! :) thx~

    • @robertbunch-dev
      @robertbunch-dev  Před 2 měsíci

      Thank you, hope the project goes well! More videos coming.

  • @souravrajput3185
    @souravrajput3185 Před 4 měsíci +1

    Great video. I mean this video is enough for learning about webRTC. Waiting for more stuff like that.

    • @robertbunch-dev
      @robertbunch-dev  Před 4 měsíci

      Thank you for your comment! I will post more on WebRTC, and keep making cool stuff!

  • @user-hg9qy6ny2p
    @user-hg9qy6ny2p Před 5 měsíci

    Thanks!!! This video helped me a lot. Keep up the good work 👍

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci

      You are most welcome! More are coming for sure and let me know how I can help!

  • @user-hc5ns6ee8j
    @user-hc5ns6ee8j Před 4 měsíci +1

    👌Your explanation is really amazing, made me understand, what actually happening behind the code, till now I didn't got any explanation for Web RTC like this, Thankyou so much for clearing the concept👏👏👏

    • @robertbunch-dev
      @robertbunch-dev  Před 4 měsíci

      Thank you so much! It is amazing how rare explanations are... Just keep doing it. The more people riding WebRTC, the stronger the community will become. 😃

  • @shineLouisShine
    @shineLouisShine Před 6 měsíci +1

    Thank you very much for sharing your valuable knowledge with such a kind, clear, and professional approach.
    Haven't implement this project just yet, but do want to show my appreciation.
    Subscribed!
    If it will be possible to add a geo-location service into this potion in the future, despite the fact that it a bit overwhelmed currently- that will be really awesome..
    Thanks a lot!
    p.s.
    It feels like a hidden gem.
    There's no doubt that this channel deserve more viewers.
    Good luck.
    p.p.s (sorry)
    Just remember in a couple of important comments:
    1. A manu of content and dividing the video into episodes could have been really helpful..
    2. A deployment instructions would be great as well..

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci

      Than you for noting the miss on adding chapters to the video! That was a huge oversight and I got them in.
      I do have a deployment video but I haven't rolled it out yet. It is really hard to know how to help people best in this way because there are so many options... AWS/Azure/Digital Ocean, Apache/NGINX, domain management, Linux distro, etc. I will get something out but need to put more thought into it.

  • @alamrubilmaruf
    @alamrubilmaruf Před 2 měsíci +1

    Thanks. I was the newest new to WebRTC. I need to know, in plain language, what WebRTC is, how it works. That 5-32 minutes part did just that perfectly. Nothing fancy. Explaining in the simplest way.

    • @robertbunch-dev
      @robertbunch-dev  Před 2 měsíci

      Thank you so much! Sometimes all you need as a developer is a little overview the API, some examples, and a little guidance on the docs. No need to pound out 1000 line project, just get to the point! More good ones on this coming.

  • @somedude4652
    @somedude4652 Před 2 měsíci +1

    Well explained and highly informative.

  • @TheCloudShepherd
    @TheCloudShepherd Před 3 měsíci +1

    Love it. You just got a new subscriber.

    • @robertbunch-dev
      @robertbunch-dev  Před 3 měsíci +1

      Welcome, and thanks for watching :) More good WebRTC stuff is in the works. Keep coding!

  • @MuhammadAlam-ne9cf
    @MuhammadAlam-ne9cf Před 4 měsíci +1

    wow i remember you i think i took your socket io course years ago! loved it

    • @robertbunch-dev
      @robertbunch-dev  Před 4 měsíci

      Hah! Welcome back then :) You should have no trouble with the socket.io part (I hope)! Let me know how WebRTC goes.

  • @mohamedhassan8260
    @mohamedhassan8260 Před 5 měsíci

    Hey brother,
    السلام عليكم ورحمة الله وبركاته
    I've sent 2 months working in my graduation project that go around the WebRTC and the video chatting as a core challenge. I've seen many and many tutorials but I wanna tell you that this is the most one that is aggregate, simple and effective. It aggregate the whole process in a simple-nice way. I wanna thank you very much and I hope you come to Egypt and see you one day
    ان شاءالله
    🙂❤

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci

      Thank you, Mohamed! That is high praise for someone who's been on the subject in a graduation project for 2 months. I hope to come to Egypt some day, I am pushing more WebRTC videos soon, and keep coding! The world needs more options for video chat :)

  • @vinnin9830
    @vinnin9830 Před 4 měsíci +1

    Great explanation👍

    • @robertbunch-dev
      @robertbunch-dev  Před 4 měsíci

      Thank you so much! Let me know if you have any questions.

  • @rashdanrazak3541
    @rashdanrazak3541 Před 5 dny

    DUDE, THANK YOU!!!!!

  • @yosledev
    @yosledev Před 5 měsíci +1

    great video, new sub here! keep up the good work

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci

      Much appreciated! I will keep them coming, and you keep coding :)

  • @khaledhikmat7991
    @khaledhikmat7991 Před 2 měsíci +1

    This is really great.....thank you sir.

  • @ummerfarooq_
    @ummerfarooq_ Před 5 měsíci +1

    Pure gem 💎

  • @muhammetibrahimkaraman7471
    @muhammetibrahimkaraman7471 Před 3 měsíci +1

    1:22:20 Actual fantastic job is your explanation and teaching level man. Thank you

    • @robertbunch-dev
      @robertbunch-dev  Před 3 měsíci

      Thank you so much! I can't believe the positive reception that this has gotten. Really encouraging to keep content coming and a reminder how little good material there is on an awesome tech. Thanks for watching and commenting. Code on!

  • @amrzakaria5290
    @amrzakaria5290 Před 6 měsíci +1

    Thanks a lot, good job.

  • @dvrk6140
    @dvrk6140 Před měsícem +1

    This is one of the most comprehensive tutorials i have ever watched. explained a lot about webrtc this is mindblowing that it's free. I was wondering if it is possible to connect multiple users together, maybe like a dynamic video conference. just like microsoft teams

    • @robertbunch-dev
      @robertbunch-dev  Před měsícem

      Thank you! Absolutely, you can do that, but it requires another tool. I go over that here: czcams.com/video/V8dIDXTF5Vo/video.html
      The free part ... I'm finding that I'm an instructor, not a CZcamsr. Trying to figure out how to keep putting out content that is helpful, but I'm so glad it helped you so much!

    • @dvrk6140
      @dvrk6140 Před měsícem +1

      @@robertbunch-dev Thank you. I am just getting started with WebRTC and I just understood the idea that webRTC is made to connect 2 peers. To connect more the logic and execution should be handled by me. Just came across MESH, MCU and SFU. I was looking into them now and saw your reply on my comment. Will check it our right now! Thanks again

  • @Alaaja_aj
    @Alaaja_aj Před 4 měsíci +1

    GoodMorning sir , i really liked how u explained the thing 😇

    • @robertbunch-dev
      @robertbunch-dev  Před 4 měsíci

      Glad you liked it! Hope you are able to produce something awesome!

  • @praweewongsa
    @praweewongsa Před 2 měsíci +1

    the best teching!

  • @varunpalsingh3822
    @varunpalsingh3822 Před 3 měsíci +1

    Thank You !!

  • @ahmad-murery
    @ahmad-murery Před 4 měsíci +1

    Very well explained,
    I tried to make a WebRTC project before (after a lot of reading) but got stuck on the STUN server due to some stupid political things that prevent us from accessing a lot of free stuff where I live.
    anyway, I think it's a good time to get back to that project and try again.
    Subscribed, Thanks!

    • @robertbunch-dev
      @robertbunch-dev  Před 4 měsíci +1

      Thank you for the comment, and subscribing! If you need to make a stun server, I can show you how to do that, but I can't overcome politics :) More videos coming on WebRTC, so keep coding!

    • @ahmad-murery
      @ahmad-murery Před 4 měsíci

      @@robertbunch-dev That would be nice,
      Looking forward for the STUN server.
      Thank you

  • @dottorcosmic
    @dottorcosmic Před dnem

    This is GOLD

  • @davidlafontant2973
    @davidlafontant2973 Před 5 měsíci

    Amazing!

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci

      Thank you for watching! More coming, let me know if you have any requests. Keep writing awesome code 😀

  • @luisoliveira1690
    @luisoliveira1690 Před měsícem +1

    Fantastic tutorial and the git repository provided is gold.
    You've gained a follower.
    You mentioned that this is browser based, so will I always need a browser to implement it? Can't I go ‘browserless’ like zoom or teams or do they both use a different approach to WebRTC?

    • @robertbunch-dev
      @robertbunch-dev  Před 28 dny

      Many thanks for the encouragement! The answer is, sort of :) WebRTC is strictly browser based, but the API has been carried over to other areas, so everything might feel the same. As a for instance, both Zoom and Teams are stand alone applications, with browser versions. I think you can use WebRTC with Electron, and make a stand alone app, that would be a Zoom competitor.

    • @luisoliveira1690
      @luisoliveira1690 Před 28 dny

      @@robertbunch-dev thanks for the reply. Keep up with the good work.

  • @kjvisual7
    @kjvisual7 Před 5 měsíci

    Also thanks for showing how to setup https for local testing.

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci

      Sure thing. I'll make a stand alone for that as reference. Thanks for watching and engaging :)

  • @thatsalot3577
    @thatsalot3577 Před 5 měsíci

    I could be wrong but I'm pretty sure you can use TCP yeah it's not very suitable for real time application but you can use them for sending files and stuff, you have that choice.

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci

      You're not wrong, you absolutely could! I'm sure it has been done, but it would need a specific purpose to make sense, because it defies real time by its nature (adding latency for instance)

  • @mornbunthoeun9614
    @mornbunthoeun9614 Před 6 měsíci +1

    Thank you so much for sharing. I'm really love this video. I try your teaching and I try host but but it work only local network(the same network). if I use different network, it's not work. I'm gonna buy your course in Udemy. I'm just hope that I will found problem

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci

      I have a deploy section there for AWS, but it shouldn't be that much different. What issues are you having?

  • @davidtoska7791
    @davidtoska7791 Před 2 dny

    no coding is perfect!! just explain the code is much faster and better experience!!

  • @kjvisual7
    @kjvisual7 Před 5 měsíci

    Can you suggest where I can find documentation that covers SDP codec settings and options?
    I ran into an issue that has nothing to do with the info you provided. WebRTC audio quality seems to be optimized for low bandwidth voice and frequency cancelling. I haven't found documentation to help me change the SDP codec settings.

    • @robertbunch-dev
      @robertbunch-dev  Před 5 měsíci

      You probably saw mdn: developer.mozilla.org/en-US/docs/Glossary/SDP. I'll have to dig for the w3 spec and get back you.

    • @kjvisual7
      @kjvisual7 Před 5 měsíci

      @@robertbunch-dev Yes I saw that page about SDP. It seems WebRTC is intended for speach only. I assume this after watching Kranky Geek's Google Chrome video about WebRTC audio.
      Later today I will try to test a WebRTC project made for musicians. It's on GitHub called "jacktrip-webrtc". CZcams video by "Web Audio Conf" talks about it. This implementation routs the audio through the WebRTC data channel. I think it bypasses echo and noise cancelation. The audio may arrive before the video. I hope this won't affect my use case too much.

  • @user-df2zz4eq8o
    @user-df2zz4eq8o Před 4 měsíci +1

    This is the most Detailed Explanation on Webrtc I have witnessed on CZcams , Keep up the Good Work

    • @robertbunch-dev
      @robertbunch-dev  Před 4 měsíci

      I'm so glad you enjoyed it, and hopefully got a lot out of it! I remember having a hard time when I first started but that was almost 10 years ago. My new mission is to fill in the huge college gap that should not exist. Thanks again!

  • @bookreader7679
    @bookreader7679 Před 6 měsíci +1

    hey make video on your method or way to explore through those all docs and learning quckily did u struggle >

    • @bookreader7679
      @bookreader7679 Před 6 měsíci +1

      also appreciate work !! alot

    • @robertbunch-dev
      @robertbunch-dev  Před 6 měsíci +1

      Thank you! I will make a video on how to read the docs... It's intimidating and easy to struggle!

    • @bookreader7679
      @bookreader7679 Před 6 měsíci

      yes pain @@robertbunch-dev

    • @bookreader7679
      @bookreader7679 Před 6 měsíci

      some time i event dont know what i doing going one page of mdn to another but get no were

  • @user-name-not-really-found
    @user-name-not-really-found Před 3 měsíci

    Hey Rob,
    great intro into WebRTC!
    I wanted to point out that the discount coupon for the course has expired. Would you care to update the link with a valid coupon? I'm looking forward to buying the course!

    • @robertbunch-dev
      @robertbunch-dev  Před 3 měsíci +1

      Here you go: www.udemy.com/course/mastering-webrtc-part-2-real-time-video-and-screen-share/?couponCode=572208D4B41A2280EFC0
      I'm hoping to have a similar, complete playlist here at some point, but that was a ton of work and I have a big back log so this is a good place to go for now, if you can spend $10. Let me know any questions!

    • @user-name-not-really-found
      @user-name-not-really-found Před 3 měsíci

      @@robertbunch-dev just bought it! Thanks Rob!

  • @ozgurgirgin5171
    @ozgurgirgin5171 Před 2 měsíci

    Hi :)
    I have a police camera that can accommodate a SIM card (NVS4-Q 4G). We want the live stream to start from the web browser when the 'Record' button is pressed. We want to do this using the 'WebRTC' technology. Is it possible to accomplish this?

    • @robertbunch-dev
      @robertbunch-dev  Před 2 měsíci

      I'd probably need more information, but if you have a browser with an internet connection and a camera, you can use WebRTC to stream and record :)
      The limits of the SIM card will obviously dictate how much you can store, but the stream should be fine to go wherever it needs to go, secure and fast.
      If you aren't streaming and just want to record, yes, I have used WebRTC to do that on many occasions.

    • @ozgurgirgin5171
      @ozgurgirgin5171 Před 2 měsíci

      @@robertbunch-dev The camera works with the CMSV platform. When you turn on the camera, it supports features such as wifi/4G live streaming, SOS, PTT, GPS, and recording or downloading videos via the CMSV platform. Here's what I'm curious about: I know the IP address of the SIM card in the camera. Is having this address alone sufficient for WebRTC? Additionally, what are the minimum requirements needed to use WebRTC? Thanks a lot :)

  • @b.s.subrahmanyabharadwaaj10
    @b.s.subrahmanyabharadwaaj10 Před 4 měsíci

    How to punch it in my phone.. Should I type the same link?

  • @mrjzkhan
    @mrjzkhan Před 4 měsíci

    There is no audio. How can we get audio?

  • @javlontursunov6527
    @javlontursunov6527 Před 3 měsíci

    You should write the code line by line

    • @robertbunch-dev
      @robertbunch-dev  Před 3 měsíci

      Working on it... It's crazy long being that thorough!

  • @listen10778
    @listen10778 Před 3 měsíci

    Hi does webrtc can run with expo react native?

    • @robertbunch-dev
      @robertbunch-dev  Před 3 měsíci

      Yes, but it requires a few libraries to work. Phones typically use native code for the camera, etc. so there's just a few helpers required

    • @listen10778
      @listen10778 Před 3 měsíci

      @@robertbunch-dev okaay, i tried lately to import webrtc but its not working that I stock there on webrtc, i got this error " super expression must either be null or a function"

    • @robertbunch-dev
      @robertbunch-dev  Před 3 měsíci

      @@listen10778 It's been a little while since I've done it, but try this: github.com/react-native-webrtc/react-native-webrtc
      And you'll have to have the dev client from here as well:
      docs.expo.dev/develop/development-builds/create-a-build/

    • @listen10778
      @listen10778 Před 3 měsíci

      @@robertbunch-dev i fixed it, Thankyou so much 🫡

  • @Unknown-wx3jb
    @Unknown-wx3jb Před 2 měsíci

    how to edit this code for domine address

    • @robertbunch-dev
      @robertbunch-dev  Před 2 měsíci

      I mention it in the demo part, but you need to update the CORS on the server to allow the front end domain (not if they are hosted in the same place) and in your front end connection to socket.io. I have another video on local setup that goes into a little more detail on this

    • @Unknown-wx3jb
      @Unknown-wx3jb Před 2 měsíci

      @@robertbunch-dev I but I have public domain address. My website works in the local network. I want my website to work on the internet and i registered my Computer IP address with the domain which I have bought.

    • @Unknown-wx3jb
      @Unknown-wx3jb Před 2 měsíci

      ​@@robertbunch-devI have one more question. Should I need to add my domain address instead of the local host :8181? To connect the website to my domain address on the internet

    • @Unknown-wx3jb
      @Unknown-wx3jb Před 2 měsíci

      ​@@robertbunch-dev i updated the CORS and Linked the DNS with my Server (laptop ip address) still not coming in my website. kindly help me pls

  • @bookreader7679
    @bookreader7679 Před 6 měsíci +1

    wating so long

  • @Animonearth
    @Animonearth Před 5 měsíci

    Error: ENOENT: no such file or directory, open 'cert.key'
    at Object.openSync (node:fs:581:18)
    at Object.readFileSync (node:fs:457:35)
    at Object. (/Users/macbook/MyAppApi/webrtc-starter/server.js:13:16)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
    errno: -2,
    code: 'ENOENT',
    syscall: 'open',
    path: 'cert.key'
    }
    hello I am getting this error I created the files in MacBook I got these four file after run those two commands
    Commands ( mkcert create-ca
    mkcert create-cert )
    1.create-ca-key.pem
    2. create-ca-pem
    3. create-cert-key.pem
    4. create-cert.pem
    I am using macbook

    • @Animonearth
      @Animonearth Před 5 měsíci +1

      Okay I solved it.
      Solution
      in your server.js
      replace this
      const key = fs.readFileSync('cert-key.key');
      const cert = fs.readFileSync('cert.crt');
      into
      const key = fs.readFileSync('cert-key.pem');
      const cert = fs.readFileSync('cert.pem');