webrtc hands-on (React hooks)

  Рет қаралды 12,701

Amir Eshaq

Amir Eshaq

Күн бұрын

Пікірлер: 69
@andrewndotela7407
@andrewndotela7407 3 жыл бұрын
First of all thanks again for this knowledge contribution to the community... I personally benefits a lot,
@amireshaq
@amireshaq 3 жыл бұрын
I am happy to hear that. Thanks
@adrianriedel5954
@adrianriedel5954 2 жыл бұрын
If you get an error like "ICE failed, add a TURN server and see about:webrtc for more details" you have to add the candidates right after you set remote description. At least that's what happened to me and how i fixed it. This method works best if have already set up the socket-server (finished at 48:31) and just put addCandidate() at the end of setRemoteDescription(). Tank you very much for your video, I finally understood how WebRTC works and was able to build it my own. I love that you stay basic and don't use libaries (like simple-peer) or some fancy styled components.
@thefuntech2810
@thefuntech2810 2 жыл бұрын
Thankyou Sir for creating this wonderfull Lesson on webRTC .
@SSango-hk9sm
@SSango-hk9sm 3 жыл бұрын
Your explanations are on point. Thank you.
@6ocram
@6ocram Жыл бұрын
Thank you very much, I learned a lot. You explain really well.
@kevinz1991
@kevinz1991 Жыл бұрын
Thank you!
@kevinz1991
@kevinz1991 Жыл бұрын
Fantastic video
@saoussenslii
@saoussenslii 2 жыл бұрын
thank you for this wonderful tutorial
@amireshaq
@amireshaq 2 жыл бұрын
I am elated
@saoussenslii
@saoussenslii 2 жыл бұрын
@@amireshaq do you know if we can crop a webrtc stream from x start position to x end position? I need this in my project please
@amireshaq
@amireshaq 2 жыл бұрын
@@saoussenslii as you may know, the media when transported between peers is encrypted. So, you would have to do it before the encryption, say for instance display and crop the video using a canvas object. you may also want to look at Offscreen canvas. check this video out: kzbin.info/www/bejne/qp63pWuOn6aIb6c
@saoussenslii
@saoussenslii 2 жыл бұрын
@@amireshaq thank you so much for your response
@worldhack.1201
@worldhack.1201 2 жыл бұрын
Thank you thank you ❤
@AnjaliKumari-bs9oo
@AnjaliKumari-bs9oo 2 жыл бұрын
Thanks a lot Sir. You made my day. Really nice explanation and hands on code.
@amireshaq
@amireshaq 2 жыл бұрын
I am glad you found it useful. I hope to the next part soon.
@AnjaliKumari-bs9oo
@AnjaliKumari-bs9oo 2 жыл бұрын
@@amireshaq I was stuck with this thing for 2 weeks but yesterday I made it with help of your video. Waiting for your next video. Thanks
@amireshaq
@amireshaq 2 жыл бұрын
​Hi @@AnjaliKumari-bs9oo, I am glad it helped. I was not going to continue on this series because the rest is covered in the other webRTC series. I just wanted to kind implement it with Hooks. Once you understand then the rest is in the other videos. Hope that helps.
@BioxyTube
@BioxyTube 2 жыл бұрын
I haven't finished to watch but ....SUBSCRIBED big time !! thanks for this clear tutorial
@amireshaq
@amireshaq 2 жыл бұрын
Thanks Lou H
@SACKO0731
@SACKO0731 2 жыл бұрын
@@amireshaq Can this be done on react-native mobile application, or is there any other ways to solve it, mobile devices can't pass the "getUserMedia" objects. Thanks just sub
@amireshaq
@amireshaq 2 жыл бұрын
Hi @@SACKO0731, yeah it can, have a look at the other webrtc series I have done, includes RN too.
@amireshaq
@amireshaq 2 жыл бұрын
​ @NTINU NSAKU NE KONGO ​, check kzbin.info/www/bejne/q4PCamWAoLiYsKM and kzbin.info/www/bejne/r5uVoXiKoLCKeZo
@SACKO0731
@SACKO0731 2 жыл бұрын
@@amireshaq thank you very much, be blessed brother
@shahemhaddad2717
@shahemhaddad2717 2 жыл бұрын
So much informative! thanks a ton!
@elhadede6
@elhadede6 3 жыл бұрын
may god bless you
@amireshaq
@amireshaq 3 жыл бұрын
May God bless you too, Amin! Thanks
@laithsaleem580
@laithsaleem580 Жыл бұрын
that is very smooth thanks for the awesome lesson !!
@jamalhassouni
@jamalhassouni 3 жыл бұрын
Thank you sir 😊
@akayogeshsirsat
@akayogeshsirsat Жыл бұрын
Great explanation!!
@huuvo272
@huuvo272 2 жыл бұрын
great, thank you
@toshvelaga
@toshvelaga 2 жыл бұрын
Great video! Was wondering if there was a github repo for this video?
@MariaElenaVazquezFlores-x6q
@MariaElenaVazquezFlores-x6q Жыл бұрын
Hello, thank you very much for this valuable video, a question, when I answer the call I get the following error Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote answer sdp: Called in wrong state: stable could you help me?
@amireshaq
@amireshaq Жыл бұрын
This simply means that you have moved to another step in the process before the previous one finishing; e.g. you create an offer => wait for offer sdp and then setLocalDescription => send to peer who will first add to setRemoteDescription then do the same when creating an Answer SDP, setLocalDescription and send the SDP to the offerer who will setRemoteDescription. These steps must not jump to the next before the current one completing/returning. I hope I make sense. You may be missing an await; createOffer and createAnswer return a promise which you must wait for them to return with an SDP.
@Krishna_Bansal
@Krishna_Bansal 11 ай бұрын
hey , what's was the solution ? I am still facing the same issue inspite checking all the mandotrary steps
@abdullahaboayesha
@abdullahaboayesha Жыл бұрын
May Allah reward you for sharing beneficial knowledge with world. Would love to have consulting session with you , is that viable ?
@amireshaq
@amireshaq Жыл бұрын
Amin. It's easier to connect via LinkedIn, I use the same name as my KZbin Channel. Thanks
@shanjidhasan4515
@shanjidhasan4515 3 жыл бұрын
SIr, will you please make a tutorial for many to many conference without using any media server. I mean only by using webrtc.
@amireshaq
@amireshaq 3 жыл бұрын
I think I covered that in the other webrtc series
@freeman2340
@freeman2340 Жыл бұрын
Thanks a lot! Could you share code please?
@dota2content755
@dota2content755 Жыл бұрын
It doesn't work I set up the signalling server the sdp details were received but I wasn't able to set them up to the local Description etc
@amireshaq
@amireshaq Жыл бұрын
so you mean you get SDP after createOffer/createAnswer?
@ajohnjebaraj9638
@ajohnjebaraj9638 4 ай бұрын
can i get the code?
@volodymyrsypko9729
@volodymyrsypko9729 2 жыл бұрын
Hi Amir. Could you please advise what I need to do or which mediaserver has to be used for an audio (only!) multiuser chat where will be many-to-many connections? I expect up to 11 users in chat simultaneously. Thanks anyway.
@amireshaq
@amireshaq 2 жыл бұрын
Hi, have you looked at mediasoup? with mediasoup, you have to write your own code - its available as a node moduel
@aliezadkhaha9439
@aliezadkhaha9439 2 жыл бұрын
Connection is working local, but it is not working by publishing in the internet
@amireshaq
@amireshaq 2 жыл бұрын
Hi Ali, are you deploying to a FQDN with HTTPS?
@zayhalo3964
@zayhalo3964 2 жыл бұрын
Is there a way I can just copy and paste the code to function in the particular areas on my website with the functions set to operate my backend components.
@amireshaq
@amireshaq 2 жыл бұрын
I dont think it is easy to answer because depending on the generated front-end code, you may have to rewrite some parts of the code to function properly.
@tonygeorge7482
@tonygeorge7482 2 жыл бұрын
what is the use of janus webrtc in these cases..?
@amireshaq
@amireshaq 2 жыл бұрын
with webrtc, you achieve direct one-to-one or more than two participants secure audio/video communication; however it may work well up to 3 or 4 participants after which call quality may start to degrade. If you are lucky this may work without the need for a TURN server. If you intend to support larger groups of participants, then you need communication servers like Janus, mediasoup, etc. as your Selective Forwarding Units (SFUs) - this means that now all media from/to each participant flows to/from the SFU.
@tonygeorge7482
@tonygeorge7482 2 жыл бұрын
@@amireshaq thanks for your replay can you make one video about janus
@worldhack.1201
@worldhack.1201 2 жыл бұрын
Please create remaining part of this series I mean multi peer connections using react hooks kindly
@amireshaq
@amireshaq 2 жыл бұрын
I wish I had a lot of time, I'd love to do this stuff
@kevinz1991
@kevinz1991 Жыл бұрын
Code?
@zayhalo3964
@zayhalo3964 2 жыл бұрын
I need help. I already created my website. The code for my website was automatically generated for me I just need to know how I can enter the code you have enter to for the functions of my backend and for the areas I have designated for RTC
@amireshaq
@amireshaq 2 жыл бұрын
Hi Zey, I am not sure I understand - what is important really is to understand the concept and then be able to adopt in your own solution.
@MD_x95
@MD_x95 8 ай бұрын
I am facing issue with proxy address which you set in pakage.json file to remove 404 error BUT i am, still facing the error
@amireshaq
@amireshaq 8 ай бұрын
let me review the code again to understand your issue.
@MD_x95
@MD_x95 8 ай бұрын
@@amireshaq there is some sort of url blocked by cors..
@pujanshrestha5900
@pujanshrestha5900 2 жыл бұрын
will it work on different network?
@amireshaq
@amireshaq 2 жыл бұрын
I did not go further in this tutorial but if you look at the other videos from part 1 - 7, you can access fro different networks. In certain situations you may have to use a TURN server
@amireshaq
@amireshaq Жыл бұрын
@@neb542 yes, I have configured coturn for my own use as a docker container;
@lukaakhalbedashvili7167
@lukaakhalbedashvili7167 2 жыл бұрын
can u publish source code ?
@sonnyjordan6554
@sonnyjordan6554 3 жыл бұрын
Hi Amir. Is it possible to get in contact with you some how ?
@amireshaq
@amireshaq 3 жыл бұрын
Hi Sonny, you can search my name up on LinkedIn.
@dota2content755
@dota2content755 Жыл бұрын
youre not using a stun server that is gonna create ICE agents for you
@amireshaq
@amireshaq Жыл бұрын
on LAN you dont need - if I understand your issue
WebRTC One To Many Broadcast (SFU)
12:41
Coding With Chaim
Рет қаралды 45 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
How Does WebRTC Work? | Crash Course
1:10:42
Dennis Ivy
Рет қаралды 58 М.
Want to make a video chat app? Watch this video for WebRTC!
1:22:35
Good Morning Developers
Рет қаралды 51 М.
WebRTC: mediasoup (SFU)  N - N hands on - Part 4
30:43
Amir Eshaq
Рет қаралды 13 М.
Servers for WebRTC: It is not all Peer to Peer (Kranky Geek WebRTC Brazil 2016)
40:39
React Group Video Chat | simple-peer webRTC
21:39
Coding With Chaim
Рет қаралды 71 М.
WebRTC: mediasoup (SFU) hands on - Part 2
40:37
Amir Eshaq
Рет қаралды 31 М.
WebRTC in 100 Seconds // Build a Video Chat app from Scratch
11:19
SFUs and MCUs (WebRTC Tips from WebRTC.ventures)
17:08
WebRTC.ventures
Рет қаралды 7 М.
WebRTC tutorial
20:19
Google for Developers
Рет қаралды 174 М.