Example app written for article purpose: How to write video chat app using webrtc and nodejs
simple-chat-app's Introduction
simple-chat-app's People
Forkers
saefullohmaslul tara530991 alexandradellago ddleblanc wikiyodo robinfood90 jmenast belgajohnpauldimaano iamuteti abdullahtariq irfanevrens nicolasilhe mesutcakir raghabananda bitquality srsgores blackyout mwhardesty reza-madani aleksch muhamedpy emersonjsouza sandip20 mercuryrob asotoglez achmadrifaldi nikhil-kumaran zardaloop mderoide omscse lhcdims liebsen lakerolmaker toe-hlaing-win lzamudio vilellaj rioter00 sergeykitchen robertocaiwu iritilopes dhamu143 laurence-trippen yasahmed lekkimworld donovan680 mdaisuke mazemax jncdeve00per cogsandgears ajitha3008 kdzapp bernstein7 subhasiskhatua ottokafka igorbentes atharvagondkar minsungkang929 dkantereivin amir-gorji subwifi midastouchprd hyo-ja beisong7 noctrlz1110 chengjingfeng arunyorker iakirmon kelvin94 meldsza purnimagupta ruisebastiao beebee-ache shyam0917 ryanbekabe tridungle jorgesaldivar liaowc robinmollah aarogrammer sclausen brayoh ruangrith-ri studiefredfredrik dileepnimantha roman-simionov glerms rohitdhore ssssory sylvestre22 msalmanzafar dawndie perfectwebtech bytenaija nandulaperera kishen-ravi chrisk8er krupineg paphra dingkexue dyablohuntersimple-chat-app's Issues
unable to run
always getting error
C:\Users\ajay\Downloads\simple-chat-app-master\simple-chat-app-master> npm run dev
@ dev C:\Users\ajay\Downloads\simple-chat-app-master\simple-chat-app-master
nodemon --watch './src/**/*.ts' --exec 'ts-node' ./src/index.ts
[nodemon] 1.19.4
[nodemon] to restart at any time, enter rs
[nodemon] watching dir(s): '.\src***.ts'
[nodemon] watching extensions: ts,json
[nodemon] starting 'ts-node' ./src/index.ts
''ts-node'' is not recognized as an internal or external command,
operable program or batch file.
[nodemon] app crashed - waiting for file changes before starting...
Question: Why call user after answer made?
On the following snippet (scripts/index.js)
socket.on("answer-made", async data => {
await peerConnection.setRemoteDescription(
new RTCSessionDescription(data.answer)
);
if (!isAlreadyCalling) {
callUser(data.socket); // ??
isAlreadyCalling = true;
}
});
Why does the receiver have to make a call back to the initial caller? I looked through several tutorials, and none of them mentions that.
Deployment Over the network
Great work, I highly appreciate your work and it helps me alot in my work. However, I am facing issues on deploying it over the network. I have successfully deployed node server and everything works fine except audio and video stream. Both callers does not receive audio and video stream of each other. Can you further guide me on this issue that how can I send and receive data or audio, video on peer to peer connection.
rename the repo
Naming is actually one of the most difficult tasks in engineering. Can we put the words "nodejs" or "webrtc" into the name of the repo? I almost passed the project when I was looking through the github for the example from the blog article.
Question: Start video from on click event
Hello,
Thanks for the tutorial.
I couldn't find any other way of contacting you.
I've followed the tutorial, and it works great. However, I would like to start the camera when the user clicks a button. I've tried wrapping the navigator.getUserMedia inside a function, but it seems like the stream is being called last, so the connection is never made.
Also, how would you go and close a connection?
Thanks.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.