Video-Call-App | video chat application built with webRTC and Ratchet ( PHP | Chat library
kandi X-RAY | Video-Call-App Summary
kandi X-RAY | Video-Call-App Summary
A one-to-one text, audio and video chat application built with WebRTC and RatchetPHP.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Video-Call-App
Video-Call-App Key Features
Video-Call-App Examples and Code Snippets
Community Discussions
Trending Discussions on Video-Call-App
QUESTION
I set up a pretty simple audio call test utilizing WebRTC based off of another one of my projects, a video chat (also using WebRTC). I thought it would be easy, but once I got it set up, the audio isn't played by the user. That means that both peers receive the respective offer/answer SDP WebSocket event, and the SDP is present, but I cannot hear my voice echo back at me when I talk or make any noise. Their is nothing in my console (I catch all errors, too).
Is their a cause for this?
I based my code off of Amir Sanni's video chat located here. I basically just used getUserAudio
instead of media stream, and deleted the lines where it added a video.
ANSWER
Answered 2021-Mar-10 at 01:33You will need to play the audio back somehow. I would recommend using audio
tags instead of video ones and hiding them with display: none.
QUESTION
I am trying to learn WebRTC in php and have found an App in github: https://github.com/amirsanni/Video-Call-App
In order to run that app i have to run the server.php through command line. I am precisely following what the dev said i.e navigate to the directory and run php server.php however when i run it the CLI returns nothing. It looks something like this:
...P.S: Things i tried till now:
- executing other php files returns atleast errors instead of forever blinking cursor.
- tried running from browser but no success, it keeps loading and shows blank.
ANSWER
Answered 2018-Jul-20 at 08:33Ok, I got it, that It wasn't supposed to be returning anything. Now the reason why I asked it doesn't return anything because when I run localhost:8000 it says 404 not found, so I thought maybe the server isn't running that's why it cannot find the file path.
So the problem was when I extracted the folder ( downloaded from the link in my question ) the folder name had a prefix with "-master" that's why it cannot find the path, removing it solved the problem.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Video-Call-App
Run composer install from the root directory to install dependencies.
Set your app root (base url) in /js/config.js.
Open /ws/bin/server.php and add your domain name and/or ip address to $allowed_origins array, then replace the localhost and PORT in $app = new Ratchet\App('localhost', PORT, '0.0.0.0'); with either your domain name or ip address and Port number respectively.
Set your web socket url in /js/config.js. Ensure the domain name and port matches what you set above. Use wss for secured connection.
Start Ratchet server by executing php ws/bin/server.php from your CLI.
Blam! Good to go. Open the app on two different devices to start chatting.
Works best on Chrome, Firefox and the latest versions of Opera desktop browser.
Xirsys' free STUN/TURN servers were used. If interested, you can get a free xirsys account, rename Server.example.php to Server.php and update it with your free credentials. Alternatively, you can use any STUN/TURN of your choice.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page