Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:comet:video:api [2018/04/22 08:21] levhav created |
en:comet:video:api [2019/12/27 12:31] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | <rst>RU::002-API::009-API video of chats </rst> | + | <rst>EN::002-API::009-API video of chats </rst> |
<rst>Header: API video of chats </rst> | <rst>Header: API video of chats </rst> | ||
====== Comet Video API - Entry ====== | ====== Comet Video API - Entry ====== | ||
- | Link to [[https://codepen.io/Levhav/pen/MooOzd/| online demo]] for impatient | + | Link to [[https://codepen.io/Levhav/pen/dRzVZQ| online demo]] for impatient |
---- | ---- | ||
Line 22: | Line 22: | ||
But on the other hand, this opens a number of possibilities. | But on the other hand, this opens a number of possibilities. | ||
- | * More participants in a conference | + | * More participants in a conference |
- | * Possibility of record of conference by a server in video file | + | * Possibility of record of conference by a server in video file |
- | * Less than loading on a network at each of participants | + | * Less than loading on a network at each of participants |
- | * Possibility on a management audio and video by streams by facilities of medias of server (it is possible API by queries to the server to disconnect/to include video and sound for separate users, to determine who other users see, to control duration of conversation, disconnect separate subscribers and other great deal) | + | * Possibility on a management audio and video by streams by facilities of medias of server (it is possible API by queries to the server to disconnect/to include video and sound for separate users, to determine who other users see, to control duration of conversation, disconnect separate subscribers and other great deal) |
====== Video API ====== | ====== Video API ====== | ||
Line 31: | Line 31: | ||
There is an opportunity to commit: | There is an opportunity to commit: | ||
- | * Video/audio calls (On WebRTC) | + | * Video/audio calls (On WebRTC) |
- | * Video/ audio conferences on a few participants (On WebRTC) | + | * Video/ audio conferences on a few participants (On WebRTC) |
- | * Video of translation for streaming one to many (On WebRTC dispatch of video from that who video a stream publishes delivery to the audience in the formats of hls and mpeg - dash time-lagged from 5 seconds (in theory minimum possible delay for a hls stream) to 20 - 40 seconds depending on configuration of repeaters and tuning of quality) | + | * Video of translation for streaming one to many (On WebRTC dispatch of video from that who video a stream publishes delivery to the audience in the formats of hls and mpeg - dash time-lagged from 5 seconds (in theory minimum possible delay for a hls stream) to 20 - 40 seconds depending on configuration of repeaters and tuning of quality) |
<note important> If a problem is found in the setup or in the work, or if there are gaps in the documentation, do not be shy [[https://gitter.im/CppComet/Lobby| to ask questions]] and [[https://github.com/CppComet/comet-server/issues| to write bug reports.]]</note> | <note important> If a problem is found in the setup or in the work, or if there are gaps in the documentation, do not be shy [[https://gitter.im/CppComet/Lobby| to ask questions]] and [[https://github.com/CppComet/comet-server/issues| to write bug reports.]]</note> | ||
Line 45: | Line 45: | ||
* [[https://comet-server.com/wiki/lib/exe/fetch.php/comet:video:video-demo-5.gif|gif demo 3]] | * [[https://comet-server.com/wiki/lib/exe/fetch.php/comet:video:video-demo-5.gif|gif demo 3]] | ||
- | [[https://codepen.io/Levhav/pen/MooOzd/| Online demo]] | + | [[https://codepen.io/Levhav/pen/dRzVZQ/| Online demo]] |
<html> | <html> | ||
- | <p data-height="700" data-theme-id="0" data-slug-hash="MooOzd" data-default-tab="result" data-user="Levhav" data-embed-version="2" data-pen-title="CppComet video chat example" class="codepen">See the Pen <a href="https://codepen.io/Levhav/pen/MooOzd/">CppComet video chat example</a> by Trapenok Victor (<a href="https://codepen.io/Levhav">@Levhav</a>) on <a href="https://codepen.io">CodePen</a>.</p> | + | <p class="codepen" data-height="700" data-theme-id="default" data-default-tab="js,result" data-user="Levhav" data-slug-hash="dRzVZQ" style="height: 265px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="CppComet video chat example"> |
- | <script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script> | + | <span>See the Pen <a href="https://codepen.io/Levhav/pen/dRzVZQ"> |
+ | CppComet video chat example</a> by Trapenok Victor (<a href="https://codepen.io/Levhav">@Levhav</a>) | ||
+ | on <a href="https://codepen.io">CodePen</a>.</span> | ||
+ | </p> | ||
+ | <script async src="https://static.codepen.io/assets/embed/ei.js"></script> | ||
</html> | </html> | ||
Line 55: | Line 59: | ||
{{ :comet:video:video-api.gif |Comet Video API}} | {{ :comet:video:video-api.gif |Comet Video API}} | ||
- | * For work of video of chats of comets a server uses possibilities of FreeSwitch simply co-operating with him on API. | + | * For work of video of chats of comets a server uses possibilities of FreeSwitch simply co-operating with him on API. |
- | * Comets a server is able to distribute video and audio calls on the great number of servers with FreeSwitch. | + | * Comets a server is able to distribute video and audio calls on the great number of servers with FreeSwitch. |
- | * Work with FreeSwitch fully hides after API comets of server. | + | * Work with FreeSwitch fully hides after API comets of server. |
====== CometQL API ====== | ====== CometQL API ====== | ||
Line 67: | Line 71: | ||
</code> | </code> | ||
There are parameters: | There are parameters: | ||
- | * name - the name of conference (consists only of numbers) | + | |
- | * of user _ id is an identifier of the user | + | * name - the name of conference (consists only of numbers) |
- | * of caller _ id added to the conference is an identifier of that user a that initiates call (not required parameter) * of message is an arbitrary report | + | * of user _ id is an identifier of the user |
- | * of profile is the mode of call the variants " of audio" are possible, " video" (In open source of version and on demand in support in a saas version it is possible to create the modes of video of conferences that to add thread-marks, show not simply talking the moment participant of conference in given, and all at once or to influence the rules of show of participants to the conference on a general canvas. All possibilities are enumerated in documentation on [[https://freeswitch.org/confluence/display/FREESWITCH/mod_conference|mod _ conference]]) | + | * of caller _ id added to the conference is an identifier of that user a that initiates call (not required parameter) |
+ | * of message is an arbitrary report | ||
+ | * of profile is the mode of call the variants " of audio" are possible, " video" (In open source of version and on demand in support in a saas version it is possible to create the modes of video of conferences that to add thread-marks, show not simply talking the moment participant of conference in given, and all at once or to influence the rules of show of participants to the conference on a general canvas. All possibilities are enumerated in documentation on [[https://freeswitch.org/confluence/display/FREESWITCH/mod_conference|mod _ conference]]) | ||
To add another participant it is necessary to execute the same query only to pass new user _ id and old name. Accordingly creation of conference from 5 participants will demand 5 queries of insertion in the table of conference | To add another participant it is necessary to execute the same query only to pass new user _ id and old name. Accordingly creation of conference from 5 participants will demand 5 queries of insertion in the table of conference | ||
An example can be viewed in the file [[https://github.com/CppComet/video-chat-example|call.php]] | An example can be viewed in the file [[https://github.com/CppComet/video-chat-example|call.php]] | ||
Line 99: | Line 105: | ||
</code> | </code> | ||
Presently the table 'of conference _ members' is accessible read-only and contains such fields | Presently the table 'of conference _ members' is accessible read-only and contains such fields | ||
- | * of name - the name of conference | + | |
- | * of user _ id is an identifier of user | + | * of name - the name of conference |
- | * of join _ time - the amount of seconds passing from the moment of connecting of user | + | * of user _ id is an identifier of user |
- | * of last _ talking - the amount of seconds passing from that moment when he that talked that in a conference. | + | * of join _ time - the amount of seconds passing from the moment of connecting of user |
+ | * of last _ talking - the amount of seconds passing from that moment when he that talked that in a conference. | ||