{"id":13691977,"url":"https://github.com/amirsanni/Video-Call-App","last_synced_at":"2025-05-02T16:30:59.663Z","repository":{"id":41510601,"uuid":"77185690","full_name":"amirsanni/Video-Call-App","owner":"amirsanni","description":"A text, audio and video chat application built with webRTC and Ratchet (PHP WebSocket)","archived":false,"fork":false,"pushed_at":"2023-04-19T21:14:49.000Z","size":1459,"stargazers_count":230,"open_issues_count":10,"forks_count":144,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-11-09T20:38:34.146Z","etag":null,"topics":["javascript","php","ratchet","video-call","webrtc"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amirsanni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-12-23T00:43:01.000Z","updated_at":"2024-11-06T03:20:49.000Z","dependencies_parsed_at":"2024-04-08T01:55:22.139Z","dependency_job_id":"d835ab9b-bd6d-4b9c-942b-43394c08f4d5","html_url":"https://github.com/amirsanni/Video-Call-App","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirsanni%2FVideo-Call-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirsanni%2FVideo-Call-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirsanni%2FVideo-Call-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirsanni%2FVideo-Call-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amirsanni","download_url":"https://codeload.github.com/amirsanni/Video-Call-App/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224319510,"owners_count":17291855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","php","ratchet","video-call","webrtc"],"created_at":"2024-08-02T17:00:52.189Z","updated_at":"2024-11-12T17:32:32.581Z","avatar_url":"https://github.com/amirsanni.png","language":"JavaScript","funding_links":[],"categories":["Samples"],"sub_categories":[],"readme":"# Video Call App\nA one-to-one text, audio and video chat application built with WebRTC and [RatchetPHP](https://github.com/ratchetphp/Ratchet).\n\n# Requirements\n- PHP \u003e= 5.4\n- Composer\n\n# Features\n- Video call\n- Audio call\n- Recording\n- Text chat\n- Two participants only\n\nIf you require more than two participants, check out [this](https://github.com/amirsanni/video-call-app-nodejs) and [this](https://github.com/amirsanni/conference-call-ratchet).\n\n# Getting Started\nTo test this app on your local server:\n- Run `composer install` from the root directory to install dependencies.\n- Set your app root (base url) in `/js/config.js`.\n- 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.\n- 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.\n- Start Ratchet server by executing `php ws/bin/server.php` from your CLI.\n- Blam! Good to go. Open the app on two different devices to start chatting.\n- Works best on Chrome, Firefox and the latest versions of Opera desktop browser.\n- Xirsys' free STUN/TURN servers were used. If interested, you can get a free [xirsys](https://xirsys.com/) 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.\n\n\n## Note\nTo host this online, you'll need to set up a few things:\n- Create Ratchet as a service so it can run persistently on your server. Check the file *create-ratchet-as-a-service-with-daemon.txt* for the guide on how to do this on linux servers.\n- If on SSL, Ratchet won't work unless you make some changes on your server.\n  - Enable mod_proxy.so\n  - Enable mod_proxy_wstunnel.so\n  - Open your apache SSL config file and add this: `ProxyPass /wss-secured/ ws://WEB_SOCKET_DOMAIN:WEB_SOCKET_PORT/`\n   \n    e.g. `ProxyPass /wss-secured/ ws://www.abc.xyz:PORT/`\n\n    Note that you can substitute the `wss-secured` above with any path of your choice but you have to use the same path while connecting from the front-end as shown below.\n    \n  - Update your web socket url in `/js/config.js`:\n    \n    `const wsUrl = 'wss://YOUR_WEB_SOCKET_DOMAIN/wss-secured';`\n    \n - Please note that most browsers will not allow access to media devices except the application is running on SSL or localhost (127.0.0.1).\n \n \n \n # Demo\n You can test at https://1410inc.xyz/video-call-app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirsanni%2FVideo-Call-App","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirsanni%2FVideo-Call-App","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirsanni%2FVideo-Call-App/lists"}