# Video Conference WebRTC

Lib for quickly creating a web video chat with using [RTCMultiConnection](https://github.com/muaz-khan/RTCMultiConnection) lib.

[![Generic badge](https://img.shields.io/badge/release-v1.0.0-blue.svg)](https://shields.io/) [![Generic badge](https://img.shields.io/badge/size-58.9kB-green.svg)](https://shields.io/)

### Последние обновления

26.12.2020

* Добавлено изменение устройства&#x20;
* Добавлено тестирование устройства
* Добавлен функционал для изменения настроек видео (ширина, высота, частота кадров)

22.12.2020

* Добавлен функционал "Поделиться контентом" от гостя к владельцу комнаты

19.12.2020

* Добавлен чат с возможностью отправлять личные сообщения внутри общего чата (пример, **`@student1234 Привет!`**)
* Изменения в вёрстке в демоверсии

12.12.2020

* Исправлены ошибки с записью экрана
* Исправлены ошибки на стороне владельца связанные с отключением
* Исправлены ошибки на стороне гостя связанные с отключением
* Исправлена ошибка связанная с определение текущего статуса у гостей

11.12.2020

* Исправлены ошибки с включение/отключением видео
* Исправлены ошибки с эхо при разговоре

2.12.2020

* Исправлены ошибки записи экрана
* Добавлен функционал "Поделиться контентом"

01.12.2020

* Исправлена ошибка с определение количество гостей в комнате
* Добавлена функция записи экрана

30.11.2020

* Исправлены ошибки с переподключением к комнате на IOS и OS X
* Исправлены ошибки со слышимостью гостей
* Добавлен обработчик ошибок для подключающихся гостей
* Добавлен определитель 2G сети

28.11.2020

* Fixed bug with restart screen sharing
* Added IOS/OS X UI (prefix styles)
* Fixed bug with the display of guests at the guest
* Fixed bug with disconnection
* Edit example code

27.11.2020

* Fixed bug with callback button status UI
* Add mobile version UI
* Added a setting to change the audibility of other participants in the room
* Fixed a bug with visual container overflow
* Added the ability to change the audibility of room guests for the guests themselves (whether the guest will hear other guests)

### Установка

1. Перед установкой, необходимо подключить библиотеку [RTCMultiConnection](https://github.com/muaz-khan/RTCMultiConnection). На данный момент, (25.11.2020) добавьте этот код в Ваш код:

   ```
   <script src="https://rtcmulticonnection.herokuapp.com/dist/RTCMultiConnection.min.js"></script>
   <script src="https://rtcmulticonnection.herokuapp.com/socket.io/socket.io.js"></script>
   ```
2. Склонируйте или скачайте репозиторий
3. Запустите веб-сервер (например, XAMPP или Nginx)

### Описание файлов

* webrtc.js - описание классов и методов для работы с видео чатом
* student.html - UI гостя
* teacher.html - UI владельца&#x20;
* studentExample.js - пример использование класса для гостя
* teacherExample.js - ример использование класса для владельца


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://viksnamax.gitbook.io/video-conference-webrtc-ru/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
