[mirotalksfu] - first release
@ -0,0 +1,18 @@
|
||||
# mac
|
||||
.DS_Store
|
||||
|
||||
# git folder
|
||||
.git
|
||||
|
||||
# npm
|
||||
node_modules
|
||||
npm-debug.log
|
||||
|
||||
# package
|
||||
package-lock.json
|
||||
|
||||
# cache
|
||||
.cache
|
||||
|
||||
# personal config
|
||||
config.js
|
||||
@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
semi: true,
|
||||
trailingComma: 'all',
|
||||
singleQuote: true,
|
||||
printWidth: 120,
|
||||
tabWidth: 4,
|
||||
};
|
||||
@ -0,0 +1,661 @@
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero General Public License from time to time. Such new versions
|
||||
will be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU Affero General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU Affero General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU Affero General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
@ -1 +1,86 @@
|
||||
# mirotalksfu
|
||||
# mirotalksfu
|
||||
|
||||
`Open Source WebRTC video calls, messaging and screen sharing`
|
||||
|
||||

|
||||
[](https://paypal.me/MiroslavPejic?locale.x=it_IT)
|
||||
[](https://github.com/miroslavpejic85/mirotalk)
|
||||
[](https://github.com/prettier/prettier)
|
||||
|
||||
Powered by `WebRTC` using [SFU](https://mediasoup.org) integrated server.
|
||||
|
||||

|
||||
|
||||
## Features
|
||||
|
||||
- Is `100% Free` - `Open Source` and `Self Hosted`
|
||||
- `No download`, `plug-in` or `login` required, entirely browser based
|
||||
- `Unlimited` number of `conference rooms` and `users`, `without` call `time limitation`
|
||||
- Desktop and Mobile compatible
|
||||
- Optimized Room URL Sharing (share it to your participants, wait them to join)
|
||||
- Webcam Streaming up to 4K quality (Front - Rear for mobile)
|
||||
- Echo cancellation and noise suppression that makes your audio crystal clear
|
||||
- Screen Sharing to present documents, slides, and more ...
|
||||
- Chat with Emoji Picker to show you feeling and possibility to Save the conversations
|
||||
- Select Microphone - Speaker and Video source
|
||||
- Recording your Screen, Audio or Video
|
||||
- Full Screen Mode on mouse click on the Video element
|
||||
- Supports [REST API](api/README.md) (Application Programming Interface)
|
||||
|
||||
## Quick Start
|
||||
|
||||
- You will need to have `Node.js` installed, this project has been tested with Node version [12.X](https://nodejs.org/en/blog/release/v12.22.1/) and [14.X](https://nodejs.org/en/blog/release/v14.17.5/) `not` with `16.X`.
|
||||
|
||||
```bash
|
||||
# clone this repo
|
||||
git clone https://github.com/miroslavpejic85/mirotalksfu.git
|
||||
|
||||
# mirotalk dir
|
||||
cd mirotalksfu
|
||||
|
||||
# copy src/config.template.js src/config.js
|
||||
cp src/config.template.js src/config.js
|
||||
|
||||
# install dependencies
|
||||
npm install
|
||||
|
||||
# start the server
|
||||
npm start
|
||||
```
|
||||
|
||||
- Open https://localhost:3010 in browser
|
||||
|
||||
---
|
||||
|
||||
## API
|
||||
|
||||
The `response` will give you a `entrypoint / Room URL` for `your meeting`.
|
||||
|
||||
```bash
|
||||
curl -X POST "http://localhost:3010/api/v1/meeting" -H "authorization: mirotalksfu_default_secret" -H "Content-Type: application/json"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
Run the project on a `Linux or Mac` system as the `mediasoup` installation could have issues on `Windows`. If you have a Windows system, consider to installing [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to be able to run it.
|
||||
|
||||
---
|
||||
|
||||
## Credits
|
||||
|
||||
- [Davide Pacilio](https://cruip.com/demos/solid/) (html template)
|
||||
- [Dirk Vanbeveren](https://github.com/Dirvann) (sfu logic)
|
||||
- [Mediasoup](https://mediasoup.org) (sfu server)
|
||||
|
||||
---
|
||||
|
||||
## Contributing
|
||||
|
||||
- Contributions are welcome and greatly appreciated!
|
||||
- Just run before `npm run lint`
|
||||
|
||||
## License
|
||||
|
||||
[](LICENSE)
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
const fetch = require('node-fetch');
|
||||
|
||||
const API_KEY = 'mirotalksfu_default_secret';
|
||||
const MIROTALK_URL = 'http://localhost:3010/api/v1/meeting';
|
||||
|
||||
function getResponse() {
|
||||
return fetch(MIROTALK_URL, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
authorization: API_KEY,
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
getResponse().then(async (res) => {
|
||||
console.log('Status code:', res.status);
|
||||
const data = await res.json();
|
||||
console.log('meeting:', data.meeting);
|
||||
});
|
||||
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
$API_KEY = "mirotalksfu_default_secret";
|
||||
$MIROTALK_URL = "http://localhost:3010/api/v1/meeting";
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, $MIROTALK_URL);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($ch, CURLOPT_POST, 1);
|
||||
|
||||
$headers = [
|
||||
'authorization:' . $API_KEY,
|
||||
'Content-Type: application/json'
|
||||
];
|
||||
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
||||
$response = curl_exec($ch);
|
||||
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
|
||||
curl_close($ch);
|
||||
|
||||
echo "Status code: $httpcode \n";
|
||||
$data = json_decode($response);
|
||||
echo "meeting: ", $data->{'meeting'}, "\n";
|
||||
@ -0,0 +1,19 @@
|
||||
import requests
|
||||
import json
|
||||
|
||||
API_KEY = "mirotalksfu_default_secret"
|
||||
MIROTALK_URL = "http://localhost:3010/api/v1/meeting"
|
||||
|
||||
headers = {
|
||||
"authorization": API_KEY,
|
||||
"Content-Type": "application/json",
|
||||
}
|
||||
|
||||
response = requests.post(
|
||||
MIROTALK_URL,
|
||||
headers=headers
|
||||
)
|
||||
|
||||
print("Status code:", response.status_code)
|
||||
data = json.loads(response.text)
|
||||
print("meeting:", data["meeting"])
|
||||
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
API_KEY="mirotalksfu_default_secret"
|
||||
MIROTALK_URL="http://localhost:3010/api/v1/meeting"
|
||||
|
||||
curl $MIROTALK_URL \
|
||||
--header "authorization: $API_KEY" \
|
||||
--header "Content-Type: application/json" \
|
||||
--request POST
|
||||
|
After Width: | Height: | Size: 13 KiB |
@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "mirotalksfu",
|
||||
"version": "1.0.0",
|
||||
"description": "WebRTC SFU browser-based video calls",
|
||||
"main": "Server.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "node src/Server.js",
|
||||
"compile": "npx browserify public/modules/MediasoupClientCompile.js -o public/modules/MediasoupClient.js",
|
||||
"lint": "npx prettier --write ."
|
||||
},
|
||||
"author": "Miroslav Pejic",
|
||||
"license": "AGPLv3",
|
||||
"dependencies": {
|
||||
"compression": "^1.7.4",
|
||||
"cors": "^2.8.5",
|
||||
"express": "^4.17.1",
|
||||
"httpolyglot": "^0.1.2",
|
||||
"mediasoup": "^3.8.3",
|
||||
"mediasoup-client": "^3.6.37",
|
||||
"ngrok": "^4.0.1",
|
||||
"socket.io": "^4.1.3",
|
||||
"uuid": "8.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"node-fetch": "^2.6.1",
|
||||
"prettier": "2.3.2"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,228 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Title and Icon -->
|
||||
|
||||
<title>MiroTalk SFU - Room Video Calls, Messaging and Screen Sharing.</title>
|
||||
<link rel="shortcut icon" href="images/logo.svg" />
|
||||
<link rel="apple-touch-icon" href="images/logo.svg" />
|
||||
|
||||
<!-- Meta Information -->
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta
|
||||
name="description"
|
||||
content="MiroTalk SFU powered by WebRTC and mediasoup, Real-time Simple Secure Fast video calls, messaging and screen sharing capabilities in the browser."
|
||||
/>
|
||||
<meta
|
||||
name="keywords"
|
||||
content="webrtc, mediasoup, mediasoup-client, self hosted, voip, sip, real-time communications, chat, messaging, meet, webrtc stun, webrtc turn, video meeting, video chat, video conference, multi video chat, multi video conference, peer to peer, p2p, rtc, alternative to, zoom, microsoft teams, google meet, jitsi, meeting"
|
||||
/>
|
||||
|
||||
<!-- https://ogp.me -->
|
||||
|
||||
<meta property="og:type" content="app-webrtc" />
|
||||
<meta property="og:site_name" content="MiroTalk SFU" />
|
||||
<meta property="og:title" content="Click the link to make a call." />
|
||||
<meta
|
||||
property="og:description"
|
||||
content="MiroTalk SFU calling provides real-time video calls, messaging and screen sharing."
|
||||
/>
|
||||
<meta property="og:image" content="/images/mirotalksfu.png" />
|
||||
|
||||
<!-- StyleSheet -->
|
||||
|
||||
<link rel="stylesheet" href="/css/Room.css" />
|
||||
|
||||
<!-- https://animate.style 4 using for swal fadeIn-Out -->
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
|
||||
|
||||
<!-- Bootstrap 5 -->
|
||||
|
||||
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css" />
|
||||
|
||||
<link
|
||||
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
|
||||
rel="stylesheet"
|
||||
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
|
||||
crossorigin="anonymous"
|
||||
/>
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
|
||||
<!-- Js scripts -->
|
||||
|
||||
<script src="/socket.io/socket.io.js"></script>
|
||||
<script src="/modules/MediasoupClient.js"></script>
|
||||
<script src="/js/Room.js"></script>
|
||||
<script src="/js/RoomClient.js"></script>
|
||||
<script src="https://kit.fontawesome.com/d2f1016e6f.js" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.rawgit.com/muaz-khan/DetectRTC/master/DetectRTC.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrious/4.0.2/qrious.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.1.2"></script>
|
||||
<script src="https://unpkg.com/emoji-picker-element@1" type="module"></script>
|
||||
<script src="https://unpkg.com/@popperjs/core@2"></script>
|
||||
<script src="https://unpkg.com/tippy.js@6"></script>
|
||||
</head>
|
||||
<body onload="initClient()">
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div class="container-xxl">
|
||||
<div id="control" class="fadein hidden">
|
||||
<button id="exitButton" class="hidden">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</button>
|
||||
<button id="shareButton" class="hidden">
|
||||
<i class="fas fa-users"></i>
|
||||
</button>
|
||||
<div class="dropdown">
|
||||
<button id="devicesButton" class="hidden">
|
||||
<i class="fas fa-cogs"></i>
|
||||
</button>
|
||||
<div id="myDevices" class="dropdown-content fadein">
|
||||
<div id="devicesList">
|
||||
<br />
|
||||
<i class="fas fa-video"></i> Video:
|
||||
<select id="videoSelect" class="form-select text-light bg-dark"></select>
|
||||
<br />
|
||||
<i class="fas fa-microphone"></i> Microphone:
|
||||
<select id="microphoneSelect" class="form-select text-light bg-dark"></select>
|
||||
<br />
|
||||
<i class="fas fa-volume-up"></i> Speaker:
|
||||
<select id="speakerSelect" class="form-select text-light bg-dark"></select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dropdown">
|
||||
<button id="recButton" class="hidden">
|
||||
<i class="fas fa-record-vinyl"></i>
|
||||
</button>
|
||||
<div id="recording" class="dropdown-content fadein">
|
||||
<div id="recordingCommand" class="recording">
|
||||
<br />
|
||||
<button id="startRecButton" class="hidden">
|
||||
<i class="fas fa-record-vinyl"></i>
|
||||
</button>
|
||||
<button id="stopRecButton" class="hidden">
|
||||
<i class="fas fa-stop-circle"></i>
|
||||
</button>
|
||||
<button id="pauseRecButton" class="hidden">
|
||||
<i class="far fa-pause-circle"></i>
|
||||
</button>
|
||||
<button id="resumeRecButton" class="hidden">
|
||||
<i class="far fa-play-circle"></i>
|
||||
</button>
|
||||
<p id="recordingStatus">🔴 REC 0s</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button id="chatButton" class="hidden">
|
||||
<i class="fas fa-comments"></i>
|
||||
</button>
|
||||
<button id="fullScreenButton" class="hidden">
|
||||
<i class="fas fa-expand-alt"></i>
|
||||
</button>
|
||||
<button id="swapCameraButton" class="hidden">
|
||||
<i class="fas fa-sync-alt"></i>
|
||||
</button>
|
||||
<button id="startAudioButton" class="hidden">
|
||||
<i class="fas fa-microphone-slash"></i>
|
||||
</button>
|
||||
<button id="stopAudioButton" class="hidden">
|
||||
<i class="fas fa-microphone"></i>
|
||||
</button>
|
||||
<button id="startVideoButton" class="hidden">
|
||||
<i class="fas fa-video-slash"></i>
|
||||
</button>
|
||||
<button id="stopVideoButton" class="hidden">
|
||||
<i class="fas fa-video"></i>
|
||||
</button>
|
||||
<button id="startScreenButton" class="hidden">
|
||||
<i class="fas fa-desktop"></i>
|
||||
</button>
|
||||
<button id="stopScreenButton" class="hidden">
|
||||
<i class="fas fa-stop-circle"></i>
|
||||
</button>
|
||||
<button id="aboutButton" class="hidden">
|
||||
<i class="fas fa-question"></i>
|
||||
</button>
|
||||
<p id="sessionTime"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container-xxl">
|
||||
<div id="videoMedia" class="hidden">
|
||||
<div id="localMedia" class="containers">
|
||||
<!--<video id="localVideo" autoplay inline class="vid mirror"></video>-->
|
||||
<!--<video id="localScreen" autoplay inline class="vid"></video>-->
|
||||
</div>
|
||||
<div id="remoteVideos" class="containers"></div>
|
||||
<div id="remoteAudios"></div>
|
||||
</div>
|
||||
</div>
|
||||
<section id="chatRoom" class="chat-room center fadein">
|
||||
<section id="msger" class="msger">
|
||||
<header id="chatHeader" class="chat-header">
|
||||
<div class="chat-header-title"><i class="fas fa-comment-alt"></i> Chat</div>
|
||||
<div class="chat-header-options">
|
||||
<button id="chatCleanButton" class="fas fa-trash"></button>
|
||||
<button id="chatSaveButton" class="fas fa-save"></button>
|
||||
<button id="chatCloseButton" class="fas fa-times"></button>
|
||||
</div>
|
||||
</header>
|
||||
<main id="chatMsger" class="chat-msger">
|
||||
<div class="msg left-msg">
|
||||
<div
|
||||
class="msg-img"
|
||||
style="
|
||||
background-image: url('https://eu.ui-avatars.com/api?name=Participant&size=24&background=random&rounded=true');
|
||||
"
|
||||
></div>
|
||||
<div class="msg-bubble">
|
||||
<div class="msg-info">
|
||||
<div class="msg-info-name">Participant</div>
|
||||
<div class="msg-info-time">00:00:00</div>
|
||||
</div>
|
||||
<div class="msg-text">Public message example</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="msg right-msg">
|
||||
<div
|
||||
class="msg-img"
|
||||
style="
|
||||
background-image: url('https://eu.ui-avatars.com/api?name=You&size=24&background=random&rounded=true');
|
||||
"
|
||||
></div>
|
||||
<div class="msg-bubble">
|
||||
<div class="msg-info">
|
||||
<div class="msg-info-name">You</div>
|
||||
<div class="msg-info-time">00:00:00</div>
|
||||
</div>
|
||||
<div class="msg-text">Public message example</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<div class="chat-msger-inputarea">
|
||||
<input
|
||||
id="chatMessage"
|
||||
class="chat-msger-input"
|
||||
type="text"
|
||||
placeholder="💬 Enter your message..."
|
||||
/>
|
||||
<button id="chatEmojiButton" class="hidden">
|
||||
<i class="fas fa-smile"></i>
|
||||
</button>
|
||||
<button id="chatSendButton" class="hidden">
|
||||
<i class="fas fa-paper-plane"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div id="chatEmoji" class="hidden fadein">
|
||||
<emoji-picker class="dark"></emoji-picker>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,575 @@
|
||||
/*--------------------------------------------------------------
|
||||
# Keyframes
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
@-webkit-keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@-moz-keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
:root {
|
||||
--msger-top: 50%;
|
||||
--msger-left: 50%;
|
||||
--msger-height: 680px;
|
||||
--msger-width: 420px;
|
||||
--msger-bg: #16171b;
|
||||
--left-msg-bg: #222328;
|
||||
--right-msg-bg: #0a0b0c;
|
||||
--box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
* {
|
||||
outline: none;
|
||||
font-family: 'Verdana';
|
||||
}
|
||||
|
||||
body {
|
||||
background-image: url('../images/background.jpg');
|
||||
background-repeat: no-repeat;
|
||||
background-attachment: fixed;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Control buttons
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
#control {
|
||||
z-index: 1;
|
||||
position: fixed;
|
||||
padding: 10px;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
background: black;
|
||||
}
|
||||
|
||||
#control button {
|
||||
border-radius: 5px;
|
||||
}
|
||||
#control p {
|
||||
font-size: small;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Room QR
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
#qrRoomContainer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Video grid
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.containers {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
column-gap: 10px;
|
||||
row-gap: 10px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 720px) {
|
||||
.containers {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
column-gap: 10px;
|
||||
row-gap: 10px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.vid {
|
||||
flex: 0 1 auto;
|
||||
height: 360px;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
box-shadow: var(--box-shadow);
|
||||
}
|
||||
|
||||
video:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
video:fullscreen {
|
||||
object-fit: contain; /* cover; */
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.mirror {
|
||||
-webkit-transform: rotateY(180deg);
|
||||
-moz-transform: rotateY(180deg);
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
|
||||
#videoMedia {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
#localMedia,
|
||||
#remoteVideos {
|
||||
margin: 10px;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.pn {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
margin: 10px;
|
||||
width: auto;
|
||||
height: 30px;
|
||||
border-radius: 5px;
|
||||
margin-top: 325px;
|
||||
color: white;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
|
||||
.d,
|
||||
.d video {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.d p {
|
||||
position: absolute;
|
||||
padding: 10px;
|
||||
margin: 10px;
|
||||
width: auto;
|
||||
height: 30px;
|
||||
border-radius: 5px;
|
||||
top: 315px;
|
||||
color: white;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Dropdown menù
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.dropdown {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.dropdown-content {
|
||||
z-index: 2;
|
||||
display: none;
|
||||
position: absolute;
|
||||
margin: auto;
|
||||
padding: 10px;
|
||||
min-width: 200px;
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
color: white;
|
||||
overflow: auto;
|
||||
border-radius: 5px;
|
||||
box-shadow: var(--box-shadow);
|
||||
}
|
||||
|
||||
.dropdown-content select {
|
||||
width: auto;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Recording
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.recording {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.recording button,
|
||||
.recording p {
|
||||
padding: 5px;
|
||||
margin: 1px;
|
||||
font-size: 0.8em;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Chat Room
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.chat-room {
|
||||
z-index: 3;
|
||||
display: none;
|
||||
position: fixed;
|
||||
height: var(--msger-height);
|
||||
width: var(--msger-width);
|
||||
background: var(--msger-bg);
|
||||
border-radius: 5px;
|
||||
border-radius: 10px;
|
||||
box-shadow: var(--box-shadow);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.msger {
|
||||
display: flex;
|
||||
flex-flow: column wrap;
|
||||
justify-content: space-between;
|
||||
top: var(--msger-top);
|
||||
left: var(--msger-left);
|
||||
height: var(--msger-height);
|
||||
width: var(--msger-width);
|
||||
background: var(--msger-bg);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Chat room header
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.chat-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 10px;
|
||||
background: rgb(0, 0, 0);
|
||||
color: #666;
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.chat-header-options button {
|
||||
border: none;
|
||||
font-size: 1.2rem;
|
||||
transition: all 0.3s ease-in-out;
|
||||
background: rgb(0, 0, 0);
|
||||
color: #fff;
|
||||
border-radius: 5px;
|
||||
transition: background 0.23s;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Chat room output area
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.chat-msger {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 10px;
|
||||
background: var(--msger-bg);
|
||||
}
|
||||
|
||||
.chat-msger::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
}
|
||||
|
||||
.chat-msger::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.chat-msger::-webkit-scrollbar-thumb {
|
||||
background: black;
|
||||
/*aqua;*/
|
||||
}
|
||||
|
||||
.msg {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.msg:last-of-type {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Chat room left side
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.left-msg .msg-bubble {
|
||||
background: var(--left-msg-bg);
|
||||
border-bottom-left-radius: 0;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.left-msg .private-msg-bubble {
|
||||
background: var(--private-msg-bg);
|
||||
border-bottom-left-radius: 0;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Chat room right side
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.right-msg {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
.right-msg .msg-bubble {
|
||||
background: var(--right-msg-bg);
|
||||
border-bottom-right-radius: 0;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.right-msg .private-msg-bubble {
|
||||
background: var(--private-msg-bg);
|
||||
border-bottom-right-radius: 0;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.right-msg .msg-img {
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Chat room common
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.msg-img {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-right: 10px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.msg-bubble {
|
||||
max-width: 200px;
|
||||
padding: 15px;
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
.msg-info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.msg-info-name {
|
||||
margin-right: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.msg-info-time {
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
.msg-text {
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
#chat-msg-a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Chat room input area
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.chat-msger-inputarea {
|
||||
display: flex;
|
||||
padding: 10px;
|
||||
background: #222328;
|
||||
}
|
||||
|
||||
.chat-msger-input {
|
||||
flex: 1;
|
||||
padding: 10px;
|
||||
border: none;
|
||||
border-top-left-radius: 10px;
|
||||
background: rgb(0, 0, 0);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.chat-msger-inputarea button {
|
||||
width: 32px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Chat room emoji picker
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
emoji-picker {
|
||||
top: 0px;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
--background: #16171b;
|
||||
--num-columns: 9;
|
||||
--emoji-size: 1.5rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# swal2
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.swal2-validation-message,
|
||||
.swal2-title,
|
||||
.swal2-content,
|
||||
.swal2-input {
|
||||
text-align: center;
|
||||
color: white !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# About
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
#about {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
#about b {
|
||||
color: rgb(0, 180, 50);
|
||||
}
|
||||
|
||||
#about img {
|
||||
cursor: pointer;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#about a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#about a:hover {
|
||||
color: rgb(0, 180, 50);
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
#about button {
|
||||
border: none;
|
||||
width: 170px;
|
||||
height: 40px;
|
||||
font-size: 1.2rem;
|
||||
background: linear-gradient(100deg, #376df9 0, #4b4547 75%, #222222 100%);
|
||||
box-shadow: 0 0 6px 0 rgb(251 255 0 / 82%);
|
||||
color: #ffffff;
|
||||
transition: background 0.23s;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#about button:hover {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Common
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.center {
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.fadein {
|
||||
-webkit-animation: fadeIn ease-in 1;
|
||||
-moz-animation: fadeIn ease-in 1;
|
||||
animation: fadeIn ease-in 1;
|
||||
-webkit-animation-fill-mode: forwards;
|
||||
-moz-animation-fill-mode: forwards;
|
||||
animation-fill-mode: forwards;
|
||||
-webkit-animation-duration: 1s;
|
||||
-moz-animation-duration: 1s;
|
||||
animation-duration: 1s;
|
||||
}
|
||||
|
||||
p,
|
||||
button {
|
||||
background: black;
|
||||
color: white;
|
||||
border: none;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
color: rgb(0, 180, 50);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Pulse class effect
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.pulsate {
|
||||
animation: pulsate 3s ease-out;
|
||||
animation-iteration-count: infinite;
|
||||
-webkit-animation: pulsate 3s ease-out;
|
||||
-webkit-animation-iteration-count: infinite;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
@-webkit-keyframes pulsate {
|
||||
0% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
50% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pulsate {
|
||||
0% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
50% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes pulsate {
|
||||
0% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
50% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 16 KiB |
@ -0,0 +1,590 @@
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1516px" height="1313px" viewBox="-0.5 -0.5 1516 1313">
|
||||
<defs>
|
||||
<linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-e3e3e3-1-9c9c9c-1-s-0">
|
||||
<stop offset="0%" style="stop-color:#E3E3E3"/>
|
||||
<stop offset="100%" style="stop-color:#9C9C9C"/>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-ffffff-1-e3e3e3-1-s-0">
|
||||
<stop offset="0%" style="stop-color:#ffffff"/>
|
||||
<stop offset="100%" style="stop-color:#E3E3E3"/>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-ea6b66-1-ff3333-1-s-0">
|
||||
<stop offset="0%" style="stop-color:#EA6B66"/>
|
||||
<stop offset="100%" style="stop-color:#FF3333"/>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-66cc00-1-4d9900-1-s-0">
|
||||
<stop offset="0%" style="stop-color:#66CC00"/>
|
||||
<stop offset="100%" style="stop-color:#4D9900"/>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-70a9ff-1-2e89ff-1-s-0">
|
||||
<stop offset="0%" style="stop-color:#70A9FF"/>
|
||||
<stop offset="100%" style="stop-color:#2E89FF"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g>
|
||||
<rect x="275" y="21" width="980" height="1240" rx="19.6" ry="19.6" fill="url(#mx-gradient-e3e3e3-1-9c9c9c-1-s-0)" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(743.5,1270.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="42" height="22" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 20px; font-family: Helvetica; color: rgb(120, 120, 120); line-height: 1.2; vertical-align: top; width: 42px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Host</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="21" y="21" fill="#787878" text-anchor="middle" font-size="20px" font-family="Helvetica">Host</text>
|
||||
</switch>
|
||||
</g>
|
||||
<rect x="325" y="71" width="883" height="640" rx="19.2" ry="19.2" fill="url(#mx-gradient-ffffff-1-e3e3e3-1-s-0)" stroke="#616161" stroke-width="2" pointer-events="none"/>
|
||||
<g transform="translate(725.5,721.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="80" height="22" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 20px; font-family: Helvetica; color: rgb(97, 97, 97); line-height: 1.2; vertical-align: top; width: 82px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Worker 1</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="40" y="21" fill="#616161" text-anchor="middle" font-size="20px" font-family="Helvetica">Worker 1</text>
|
||||
</switch>
|
||||
</g>
|
||||
<rect x="357.5" y="121" width="150" height="150" rx="22.5" ry="22.5" fill="#ffffff" stroke="#666666" stroke-width="2" stroke-dasharray="2 4" pointer-events="none"/>
|
||||
<g transform="translate(369.5,278.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="125" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(102, 102, 102); line-height: 1.2; vertical-align: top; width: 125px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">WebRtcTransport</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="63" y="17" fill="#666666" text-anchor="middle" font-size="16px" font-family="Helvetica">WebRtcTransport</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 508 196 L 709.76 196" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 717.76 196 L 709.76 200 L 709.76 192 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 382.5 136 L 472.5 136 L 472.5 136 L 482.5 151 L 472.5 166 L 472.5 166 L 382.5 166 L 392.5 151 Z" fill="url(#mx-gradient-ea6b66-1-ff3333-1-s-0)" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(377.5,172.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="110" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(255, 51, 51); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Audio Producer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="55" y="17" fill="#FF3333" text-anchor="middle" font-size="16px" font-family="Helvetica">Audio Producer</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 382.5 206 L 472.5 206 L 472.5 206 L 482.5 221 L 472.5 236 L 472.5 236 L 382.5 236 L 392.5 221 Z" fill="url(#mx-gradient-ea6b66-1-ff3333-1-s-0)" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(377.5,242.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="110" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(255, 51, 51); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Video Producer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="55" y="17" fill="#FF3333" text-anchor="middle" font-size="16px" font-family="Helvetica">Video Producer</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 820 196 L 1004.85 172.3" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 1012.78 171.28 L 1005.36 176.27 L 1004.34 168.33 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 820 196 L 1011.57 328.19" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 1018.16 332.73 L 1009.3 331.48 L 1013.85 324.89 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<rect x="357.5" y="366" width="150" height="90" rx="13.5" ry="13.5" fill="#ffffff" stroke="#666666" stroke-width="2" stroke-dasharray="2 4" pointer-events="none"/>
|
||||
<g transform="translate(367.5,463.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="129" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(102, 102, 102); line-height: 1.2; vertical-align: top; width: 129px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">PlainRtpTransport</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="65" y="17" fill="#666666" text-anchor="middle" font-size="16px" font-family="Helvetica">PlainRtpTransport</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 382.5 391 L 472.5 391 L 472.5 391 L 482.5 406 L 472.5 421 L 472.5 421 L 382.5 421 L 392.5 406 Z" fill="url(#mx-gradient-ea6b66-1-ff3333-1-s-0)" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(377.5,427.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="110" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(255, 51, 51); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Video Producer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="55" y="17" fill="#FF3333" text-anchor="middle" font-size="16px" font-family="Helvetica">Video Producer</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 483 406 L 709.76 406" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 717.76 406 L 709.76 410 L 709.76 402 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<rect x="555" y="548.5" width="155" height="130" rx="19.5" ry="19.5" fill="#ffffff" stroke="#666666" stroke-width="2" stroke-dasharray="2 4" pointer-events="none"/>
|
||||
<g transform="translate(668.5,613.5)rotate(-90,49.5,0)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="99" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(102, 102, 102); line-height: 1.2; vertical-align: top; width: 101px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">PipeTransport</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="50" y="17" fill="#666666" text-anchor="middle" font-size="16px" font-family="Helvetica">PipeTransport</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 582 598.5 L 672 598.5 L 672 598.5 L 682 613.5 L 672 628.5 L 672 628.5 L 582 628.5 L 592 613.5 Z" fill="url(#mx-gradient-66cc00-1-4d9900-1-s-0)" stroke="none" transform="rotate(90,632,613.5)" pointer-events="none"/>
|
||||
<g transform="translate(602.5,604.5)rotate(-90,59.5,8.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="119" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(77, 153, 0); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Video Consumer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="60" y="17" fill="#4D9900" text-anchor="middle" font-size="16px" font-family="Helvetica">Video Consumer</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 770 456 L 641.47 543.25" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 634.85 547.74 L 639.22 539.94 L 643.72 546.56 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 114 196 L 347.26 196" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 355.26 196 L 347.26 200 L 347.26 192 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<g fill="#999999" font-family="Helvetica" text-anchor="middle" font-size="14px">
|
||||
<rect fill="#ffffff" stroke="none" x="217" y="189" width="39" height="17" stroke-width="0"/>
|
||||
<text x="235" y="200.5">SRTP</text>
|
||||
</g>
|
||||
<path d="M 1175 171 L 1414.76 169.08" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 1422.76 169.02 L 1414.8 173.08 L 1414.73 165.08 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<g fill="#999999" font-family="Helvetica" text-anchor="middle" font-size="14px">
|
||||
<rect fill="#ffffff" stroke="none" x="1280" y="163" width="39" height="17" stroke-width="0"/>
|
||||
<text x="1299" y="174.5">SRTP</text>
|
||||
</g>
|
||||
<path d="M 89.53 210.86 C 90.09 210.86 90.48 210.64 90.37 210.48 L 89.26 208.86 C 89.12 208.61 88.92 208.57 88.59 208.57 L 81.41 208.57 C 81.06 208.57 80.88 208.62 80.71 208.87 L 79.68 210.47 C 79.48 210.72 80.08 210.86 80.51 210.86 Z M 106.32 205.61 L 106.32 181.96 L 63.65 181.96 L 63.65 205.61 Z M 59 213 C 57.87 212.99 56.85 212.62 56.42 212.03 C 56 211.46 56.17 210.89 56.53 210.5 L 60.66 206.35 L 60.66 181.83 C 60.66 180.6 61.78 179 63.63 179 L 106.33 179 C 107.77 179 109.31 180.14 109.31 181.99 L 109.31 206.35 L 113.48 210.54 C 113.83 210.93 114 211.45 113.58 212.01 C 113.03 212.72 111.99 212.95 111.02 213 Z" fill="#505050" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(23.5,219.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="122" height="36" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(120, 120, 120); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Participant<br />
|
||||
(mic/webcam on)<br />
|
||||
</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="61" y="26" fill="#787878" text-anchor="middle" font-size="16px" font-family="Helvetica">Participant<br>(mic/webcam on)<br></text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 1443.63 187.3 L 1484.45 187.3 L 1484.45 167.14 L 1443.63 167.14 Z M 1442.65 190.29 C 1441.41 190.29 1440.08 189.41 1440.08 188.09 L 1440.08 166.3 C 1440.08 165.24 1441.14 164.15 1442.69 164.15 L 1485.4 164.15 C 1486.96 164.15 1488 165.27 1488 166.29 L 1488 188 C 1488 189.32 1486.89 190.29 1485.27 190.29 L 1469.72 190.29 C 1469.41 191.2 1469.11 192.17 1469.05 192.99 C 1468.92 194.69 1470.19 195.17 1472.47 195.44 C 1473.99 195.6 1475.34 195.63 1476.78 195.66 C 1477.66 195.66 1478.5 196.2 1478.5 197.08 C 1478.5 197.92 1477.78 198.5 1476.8 198.5 L 1451.34 198.5 C 1450.44 198.5 1449.67 197.88 1449.67 197.08 C 1449.67 196.36 1450.34 195.66 1451.34 195.66 C 1453.02 195.61 1454.73 195.61 1456.49 195.32 C 1458.19 195.05 1459.23 194.52 1459.04 192.9 C 1458.97 192.17 1458.67 191.2 1458.36 190.29 Z M 1431.21 151.46 L 1450.73 151.46 L 1450.73 149.22 L 1431.21 149.22 Z M 1425 194.77 L 1425 145.43 C 1425 143.74 1426.81 142.5 1428.4 142.5 L 1453.5 142.5 C 1455.25 142.5 1456.94 143.82 1456.94 145.43 L 1456.94 161.91 L 1442.56 161.91 C 1439.86 161.91 1437.42 164.02 1437.42 166.25 L 1437.42 179.83 L 1431.21 179.83 L 1431.21 182.07 L 1437.42 182.07 L 1437.42 186.55 L 1431.21 186.55 L 1431.21 188.79 L 1437.49 188.79 C 1438 191.15 1440.47 192.53 1442.55 192.53 L 1456.23 192.53 C 1456.23 192.71 1456.33 192.9 1456.32 193.04 C 1455.42 193.29 1453.39 193.42 1451.68 193.42 C 1450.92 193.39 1450.27 193.47 1449.61 193.7 C 1448.96 193.92 1448.39 194.28 1447.9 194.77 Z" fill="#505050" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(1418.5,205.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="76" height="36" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(120, 120, 120); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Participant<br />
|
||||
(viewer)<br />
|
||||
</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="38" y="26" fill="#787878" text-anchor="middle" font-size="16px" font-family="Helvetica">[Not supported by viewer]</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 1175 334 L 1423.76 334.44" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 1431.76 334.46 L 1423.76 338.44 L 1423.77 330.44 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<g fill="#999999" font-family="Helvetica" text-anchor="middle" font-size="14px">
|
||||
<rect fill="#ffffff" stroke="none" x="1290" y="327" width="30" height="17" stroke-width="0"/>
|
||||
<text x="1304" y="338.73">RTP</text>
|
||||
</g>
|
||||
<path d="M 1461.13 335.37 C 1461.51 334.99 1461.76 334.05 1461.03 333.31 L 1447.88 320.84 C 1446.97 320.1 1445.62 319.95 1444.53 320.91 C 1443.45 322.03 1443.76 323.6 1444.56 324.37 L 1455.04 334.31 L 1444.68 343.47 C 1443.82 344.27 1443.46 345.56 1444.14 346.7 C 1445.05 348.16 1446.84 348.07 1447.82 347.23 Z M 1468.15 347.92 C 1468.97 347.92 1469.98 347.24 1469.98 346.03 C 1469.98 345.03 1469.22 344.15 1468.13 344.15 L 1457.66 344.15 C 1456.99 344.15 1455.86 344.74 1455.86 345.99 C 1455.86 347.13 1456.74 347.92 1457.69 347.92 Z M 1436.88 357 C 1435.4 357 1434 355.74 1434 354.13 L 1434 314.82 C 1434 313.19 1435.53 312 1436.79 312 L 1476.05 312 C 1477.64 312 1479 313.26 1479 314.91 L 1479 354.11 C 1479 355.9 1477.5 357 1476.21 357 Z" fill="#505050" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(1417.5,363.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="77" height="36" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(120, 120, 120); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">FFmpeg<br />
|
||||
(recording)<br />
|
||||
</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="39" y="26" fill="#787878" text-anchor="middle" font-size="16px" font-family="Helvetica">[Not supported by viewer]</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 89.42 411.87 C 89.8 411.49 90.05 410.55 89.32 409.81 L 76.18 397.34 C 75.27 396.6 73.91 396.45 72.82 397.41 C 71.74 398.53 72.05 400.1 72.85 400.87 L 83.33 410.81 L 72.97 419.97 C 72.11 420.77 71.75 422.06 72.43 423.2 C 73.34 424.66 75.14 424.57 76.12 423.73 Z M 96.44 424.42 C 97.27 424.42 98.28 423.74 98.28 422.53 C 98.28 421.53 97.52 420.65 96.42 420.65 L 85.96 420.65 C 85.28 420.65 84.15 421.24 84.15 422.49 C 84.15 423.63 85.03 424.42 85.99 424.42 Z M 65.17 433.5 C 63.7 433.5 62.29 432.24 62.29 430.63 L 62.29 391.32 C 62.29 389.69 63.83 388.5 65.09 388.5 L 104.35 388.5 C 105.93 388.5 107.29 389.76 107.29 391.41 L 107.29 430.61 C 107.29 432.4 105.79 433.5 104.5 433.5 Z" fill="#505050" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(18.5,440.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="131" height="36" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(120, 120, 120); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">GStreamer<br />
|
||||
(mp4 broadcaster)<br />
|
||||
</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="66" y="26" fill="#787878" text-anchor="middle" font-size="16px" font-family="Helvetica">GStreamer<br>(mp4 broadcaster)<br></text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 107.29 411 L 347.76 411" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 355.76 411 L 347.76 415 L 347.76 407 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<g fill="#999999" font-family="Helvetica" text-anchor="middle" font-size="14px">
|
||||
<rect fill="#ffffff" stroke="none" x="217" y="404" width="30" height="17" stroke-width="0"/>
|
||||
<text x="231.29" y="415.5">RTP</text>
|
||||
</g>
|
||||
<path d="M 780 382 L 794 382 L 794 396 L 800 396 L 800 386 L 820 406 L 800 426 L 800 416 L 794 416 L 794 430 L 780 430 L 780 436 L 790 436 L 770 456 L 750 436 L 760 436 L 760 430 L 746 430 L 746 416 L 740 416 L 740 426 L 720 406 L 740 386 L 740 396 L 746 396 L 746 382 L 760 382 L 760 376 L 750 376 L 770 356 L 790 376 L 780 376 Z" fill="url(#mx-gradient-70a9ff-1-2e89ff-1-s-0)" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(831.5,394.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="77" height="22" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 20px; font-family: Helvetica; color: rgb(46, 137, 255); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Router 2</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="39" y="21" fill="#2E89FF" text-anchor="middle" font-size="20px" font-family="Helvetica">Router 2</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 780 172 L 794 172 L 794 186 L 800 186 L 800 176 L 820 196 L 800 216 L 800 206 L 794 206 L 794 220 L 780 220 L 780 226 L 790 226 L 770 246 L 750 226 L 760 226 L 760 220 L 746 220 L 746 206 L 740 206 L 740 216 L 720 196 L 740 176 L 740 186 L 746 186 L 746 172 L 760 172 L 760 166 L 750 166 L 770 146 L 790 166 L 780 166 Z" fill="url(#mx-gradient-70a9ff-1-2e89ff-1-s-0)" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(731.5,252.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="77" height="22" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 20px; font-family: Helvetica; color: rgb(46, 137, 255); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Router 1</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="39" y="21" fill="#2E89FF" text-anchor="middle" font-size="20px" font-family="Helvetica">Router 1</text>
|
||||
</switch>
|
||||
</g>
|
||||
<rect x="325" y="761" width="425" height="450" rx="12.75" ry="12.75" fill="url(#mx-gradient-ffffff-1-e3e3e3-1-s-0)" stroke="#616161" stroke-width="2" pointer-events="none"/>
|
||||
<g transform="translate(496.5,1221.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="80" height="22" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 20px; font-family: Helvetica; color: rgb(97, 97, 97); line-height: 1.2; vertical-align: top; width: 82px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Worker 2</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="40" y="21" fill="#616161" text-anchor="middle" font-size="20px" font-family="Helvetica">Worker 2</text>
|
||||
</switch>
|
||||
</g>
|
||||
<rect x="819.5" y="548.5" width="155" height="130" rx="19.5" ry="19.5" fill="#ffffff" stroke="#666666" stroke-width="2" stroke-dasharray="2 4" pointer-events="none"/>
|
||||
<g transform="translate(932.5,613.5)rotate(-90,49.5,0)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="99" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(102, 102, 102); line-height: 1.2; vertical-align: top; width: 101px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">PipeTransport</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="50" y="17" fill="#666666" text-anchor="middle" font-size="16px" font-family="Helvetica">PipeTransport</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 846.5 598.5 L 936.5 598.5 L 936.5 598.5 L 946.5 613.5 L 936.5 628.5 L 936.5 628.5 L 846.5 628.5 L 856.5 613.5 Z" fill="url(#mx-gradient-66cc00-1-4d9900-1-s-0)" stroke="none" transform="rotate(90,896.5,613.5)" pointer-events="none"/>
|
||||
<g transform="translate(866.5,604.5)rotate(-90,59.5,8.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="119" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(77, 153, 0); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Video Consumer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="60" y="17" fill="#4D9900" text-anchor="middle" font-size="16px" font-family="Helvetica">Video Consumer</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 770 456 L 888.74 542.95" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 895.2 547.68 L 886.38 546.18 L 891.1 539.73 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 642 1022 L 656 1022 L 656 1036 L 662 1036 L 662 1026 L 682 1046 L 662 1066 L 662 1056 L 656 1056 L 656 1070 L 642 1070 L 642 1076 L 652 1076 L 632 1096 L 612 1076 L 622 1076 L 622 1070 L 608 1070 L 608 1056 L 602 1056 L 602 1066 L 582 1046 L 602 1026 L 602 1036 L 608 1036 L 608 1022 L 622 1022 L 622 1016 L 612 1016 L 632 996 L 652 1016 L 642 1016 Z" fill="url(#mx-gradient-70a9ff-1-2e89ff-1-s-0)" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(593.5,1102.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="77" height="22" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 20px; font-family: Helvetica; color: rgb(46, 137, 255); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Router 3</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="39" y="21" fill="#2E89FF" text-anchor="middle" font-size="20px" font-family="Helvetica">Router 3</text>
|
||||
</switch>
|
||||
</g>
|
||||
<rect x="554.5" y="791" width="155" height="130" rx="19.5" ry="19.5" fill="#ffffff" stroke="#666666" stroke-width="2" stroke-dasharray="2 4" pointer-events="none"/>
|
||||
<g transform="translate(667.5,856.5)rotate(-90,49.5,0)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="99" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(102, 102, 102); line-height: 1.2; vertical-align: top; width: 101px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">PipeTransport</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="50" y="17" fill="#666666" text-anchor="middle" font-size="16px" font-family="Helvetica">PipeTransport</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 582 841 L 672 841 L 672 841 L 682 856 L 672 871 L 672 871 L 582 871 L 592 856 Z" fill="url(#mx-gradient-ea6b66-1-ff3333-1-s-0)" stroke="none" transform="rotate(90,632,856)" pointer-events="none"/>
|
||||
<g transform="translate(606.5,847.5)rotate(-90,55,8.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="110" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(255, 51, 51); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Video Producer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="55" y="17" fill="#FF3333" text-anchor="middle" font-size="16px" font-family="Helvetica">Video Producer</text>
|
||||
</switch>
|
||||
</g>
|
||||
<rect x="785" y="761" width="425" height="450" rx="12.75" ry="12.75" fill="url(#mx-gradient-ffffff-1-e3e3e3-1-s-0)" stroke="#616161" stroke-width="2" pointer-events="none"/>
|
||||
<g transform="translate(956.5,1221.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="80" height="22" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 20px; font-family: Helvetica; color: rgb(97, 97, 97); line-height: 1.2; vertical-align: top; width: 82px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Worker 3</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="40" y="21" fill="#616161" text-anchor="middle" font-size="20px" font-family="Helvetica">Worker 3</text>
|
||||
</switch>
|
||||
</g>
|
||||
<rect x="824.5" y="791" width="150" height="130" rx="19.5" ry="19.5" fill="#ffffff" stroke="#666666" stroke-width="2" stroke-dasharray="2 4" pointer-events="none"/>
|
||||
<g transform="translate(932.5,856.5)rotate(-90,49.5,0)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="99" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(102, 102, 102); line-height: 1.2; vertical-align: top; width: 101px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">PipeTransport</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="50" y="17" fill="#666666" text-anchor="middle" font-size="16px" font-family="Helvetica">PipeTransport</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 847 841 L 937 841 L 937 841 L 947 856 L 937 871 L 937 871 L 847 871 L 857 856 Z" fill="url(#mx-gradient-ea6b66-1-ff3333-1-s-0)" stroke="none" transform="rotate(90,897,856)" pointer-events="none"/>
|
||||
<g transform="translate(871.5,847.5)rotate(-90,55,8.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="110" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(255, 51, 51); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Video Producer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="55" y="17" fill="#FF3333" text-anchor="middle" font-size="16px" font-family="Helvetica">Video Producer</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 907.5 1022 L 921.5 1022 L 921.5 1036 L 927.5 1036 L 927.5 1026 L 947.5 1046 L 927.5 1066 L 927.5 1056 L 921.5 1056 L 921.5 1070 L 907.5 1070 L 907.5 1076 L 917.5 1076 L 897.5 1096 L 877.5 1076 L 887.5 1076 L 887.5 1070 L 873.5 1070 L 873.5 1056 L 867.5 1056 L 867.5 1066 L 847.5 1046 L 867.5 1026 L 867.5 1036 L 873.5 1036 L 873.5 1022 L 887.5 1022 L 887.5 1016 L 877.5 1016 L 897.5 996 L 917.5 1016 L 907.5 1016 Z" fill="url(#mx-gradient-70a9ff-1-2e89ff-1-s-0)" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(858.5,1102.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="77" height="22" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 20px; font-family: Helvetica; color: rgb(46, 137, 255); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Router 4</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="39" y="21" fill="#2E89FF" text-anchor="middle" font-size="20px" font-family="Helvetica">Router 4</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 633 679 L 632.09 780.76" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 632.02 788.76 L 628.09 780.73 L 636.09 780.8 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<g fill="#999999" font-family="Helvetica" text-anchor="middle" font-size="14px">
|
||||
<rect fill="#ffffff" stroke="none" x="618" y="727" width="30" height="17" stroke-width="0"/>
|
||||
<text x="631.5" y="739.5">RTP</text>
|
||||
</g>
|
||||
<path d="M 897 679 L 899.73 780.77" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 899.94 788.76 L 895.73 780.87 L 903.72 780.66 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<g fill="#999999" font-family="Helvetica" text-anchor="middle" font-size="14px">
|
||||
<rect fill="#ffffff" stroke="none" x="883" y="727" width="30" height="17" stroke-width="0"/>
|
||||
<text x="897.5" y="739.48">RTP</text>
|
||||
</g>
|
||||
<path d="M 632 921 L 632 985.76" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 632 993.76 L 628 985.76 L 636 985.76 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 900 921 L 898.27 985.77" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 898.06 993.76 L 894.27 985.66 L 902.27 985.87 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 1443.63 992.8 L 1484.45 992.8 L 1484.45 972.64 L 1443.63 972.64 Z M 1442.65 995.79 C 1441.41 995.79 1440.08 994.91 1440.08 993.59 L 1440.08 971.8 C 1440.08 970.74 1441.14 969.65 1442.69 969.65 L 1485.4 969.65 C 1486.96 969.65 1488 970.77 1488 971.79 L 1488 993.5 C 1488 994.82 1486.89 995.79 1485.27 995.79 L 1469.72 995.79 C 1469.41 996.7 1469.11 997.67 1469.05 998.49 C 1468.92 1000.19 1470.19 1000.67 1472.47 1000.94 C 1473.99 1001.1 1475.34 1001.13 1476.78 1001.16 C 1477.66 1001.16 1478.5 1001.7 1478.5 1002.58 C 1478.5 1003.42 1477.78 1004 1476.8 1004 L 1451.34 1004 C 1450.44 1004 1449.67 1003.38 1449.67 1002.58 C 1449.67 1001.86 1450.34 1001.16 1451.34 1001.16 C 1453.02 1001.11 1454.73 1001.11 1456.49 1000.82 C 1458.19 1000.55 1459.23 1000.02 1459.04 998.4 C 1458.97 997.67 1458.67 996.7 1458.36 995.79 Z M 1431.21 956.96 L 1450.73 956.96 L 1450.73 954.72 L 1431.21 954.72 Z M 1425 1000.27 L 1425 950.93 C 1425 949.24 1426.81 948 1428.4 948 L 1453.5 948 C 1455.25 948 1456.94 949.32 1456.94 950.93 L 1456.94 967.41 L 1442.56 967.41 C 1439.86 967.41 1437.42 969.52 1437.42 971.75 L 1437.42 985.33 L 1431.21 985.33 L 1431.21 987.57 L 1437.42 987.57 L 1437.42 992.05 L 1431.21 992.05 L 1431.21 994.29 L 1437.49 994.29 C 1438 996.65 1440.47 998.03 1442.55 998.03 L 1456.23 998.03 C 1456.23 998.21 1456.33 998.4 1456.32 998.54 C 1455.42 998.79 1453.39 998.92 1451.68 998.92 C 1450.92 998.89 1450.27 998.97 1449.61 999.2 C 1448.96 999.42 1448.39 999.78 1447.9 1000.27 Z" fill="#505050" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(1418.5,1010.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="76" height="36" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(120, 120, 120); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Participant<br />
|
||||
(viewer)<br />
|
||||
</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="38" y="26" fill="#787878" text-anchor="middle" font-size="16px" font-family="Helvetica">[Not supported by viewer]</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 1459.2 1098.25 C 1459.4 1098.25 1459.52 1098.06 1459.52 1097.85 C 1459.52 1097.67 1459.38 1097.5 1459.21 1097.5 L 1453.89 1097.5 C 1453.7 1097.5 1453.55 1097.63 1453.55 1097.85 C 1453.56 1098.11 1453.72 1098.25 1453.87 1098.25 Z M 1458.87 1134.63 C 1459.23 1134.63 1459.52 1134.37 1459.52 1134.18 L 1459.52 1133.57 C 1459.52 1133.26 1459.17 1133.08 1458.76 1133.08 L 1454.16 1133.08 C 1453.77 1133.08 1453.48 1133.34 1453.48 1133.54 L 1453.48 1134.14 C 1453.48 1134.36 1453.76 1134.63 1454.14 1134.63 Z M 1446.68 1130.92 L 1466.33 1130.92 L 1466.33 1100.47 L 1446.68 1100.47 Z M 1444.5 1100.49 C 1444.5 1098.29 1445.73 1096.39 1447.81 1095.52 C 1451.39 1094.36 1460.92 1094 1465.33 1095.64 C 1467.28 1096.49 1468.5 1098.19 1468.5 1100.54 L 1468.5 1131.73 C 1468.5 1133.34 1467.59 1135.58 1465.47 1136.5 C 1461.54 1137.97 1450.96 1138 1447.54 1136.41 C 1445.52 1135.46 1444.58 1133.7 1444.5 1131.85 Z" fill="#505050" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(1418.5,1144.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="76" height="36" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(120, 120, 120); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Participant<br style="font-size: 16px" />
|
||||
(viewer)<br style="font-size: 16px" />
|
||||
</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="38" y="26" fill="#787878" text-anchor="middle" font-size="16px" font-family="Helvetica">[Not supported by viewer]</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 1175 976 L 1414.76 976" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 1422.76 976 L 1414.76 980 L 1414.76 972 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<g fill="#999999" font-family="Helvetica" text-anchor="middle" font-size="14px">
|
||||
<rect fill="#ffffff" stroke="none" x="1281" y="969" width="39" height="17" stroke-width="0"/>
|
||||
<text x="1299" y="980.5">SRTP</text>
|
||||
</g>
|
||||
<path d="M 1175 1116 L 1434.26 1116" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 1442.26 1116 L 1434.26 1120 L 1434.26 1112 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<g fill="#999999" font-family="Helvetica" text-anchor="middle" font-size="14px">
|
||||
<rect fill="#ffffff" stroke="none" x="1291" y="1109" width="39" height="17" stroke-width="0"/>
|
||||
<text x="1309" y="1120.5">SRTP</text>
|
||||
</g>
|
||||
<path d="M 948 1046 L 1012.66 983.14" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 1018.4 977.56 L 1015.45 986 L 1009.87 980.27 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 948 1046 L 1012.66 1108.86" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 1018.4 1114.44 L 1009.87 1111.73 L 1015.45 1106 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 582 1046 L 517.34 983.14" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 511.6 977.56 L 520.13 980.27 L 514.55 986 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 582 1046 L 517.34 1108.86" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 511.6 1114.44 L 514.55 1106 L 520.13 1111.73 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 355 976 L 124.24 976" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 116.24 976 L 124.24 972 L 124.24 980 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<g fill="#999999" font-family="Helvetica" text-anchor="middle" font-size="14px">
|
||||
<rect fill="#ffffff" stroke="none" x="215" y="969" width="39" height="17" stroke-width="0"/>
|
||||
<text x="233" y="980.5">SRTP</text>
|
||||
</g>
|
||||
<path d="M 89.53 992.17 C 90.09 992.17 90.48 991.94 90.37 991.75 L 89.26 990 C 89.12 989.73 88.92 989.67 88.59 989.67 L 81.41 989.67 C 81.06 989.67 80.88 989.74 80.71 990.01 L 79.68 991.74 C 79.48 992.02 80.08 992.17 80.51 992.17 Z M 106.32 986.46 L 106.32 960.72 L 63.65 960.72 L 63.65 986.46 Z M 59 994.5 C 57.87 994.49 56.85 994.08 56.42 993.45 C 56 992.83 56.17 992.2 56.53 991.78 L 60.66 987.26 L 60.66 960.58 C 60.66 959.24 61.78 957.5 63.63 957.5 L 106.33 957.5 C 107.77 957.5 109.31 958.74 109.31 960.75 L 109.31 987.26 L 113.48 991.82 C 113.83 992.25 114 992.82 113.58 993.43 C 113.03 994.2 111.99 994.45 111.02 994.5 Z" fill="#505050" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(46.5,1001.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="76" height="36" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(120, 120, 120); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Participant<br />
|
||||
(viewer)<br />
|
||||
</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="38" y="26" fill="#787878" text-anchor="middle" font-size="16px" font-family="Helvetica">[Not supported by viewer]</text>
|
||||
</switch>
|
||||
</g>
|
||||
<rect x="354.86" y="1071" width="155" height="90" rx="13.5" ry="13.5" fill="#ffffff" stroke="#666666" stroke-width="2" stroke-dasharray="2 4" pointer-events="none"/>
|
||||
<g transform="translate(369.5,1168.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="124" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(102, 102, 102); line-height: 1.2; vertical-align: top; width: 126px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">WebRtcTransport</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="62" y="17" fill="#666666" text-anchor="middle" font-size="16px" font-family="Helvetica">WebRtcTransport</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 382.36 1096 L 472.36 1096 L 472.36 1096 L 482.36 1111 L 472.36 1126 L 472.36 1126 L 382.36 1126 L 392.36 1111 Z" fill="url(#mx-gradient-66cc00-1-4d9900-1-s-0)" stroke="none" transform="translate(432.36,0)scale(-1,1)translate(-432.36,0)" pointer-events="none"/>
|
||||
<g transform="translate(372.5,1132.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="119" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(77, 153, 0); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Video Consumer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="60" y="17" fill="#4D9900" text-anchor="middle" font-size="16px" font-family="Helvetica">Video Consumer</text>
|
||||
</switch>
|
||||
</g>
|
||||
<rect x="354.86" y="931" width="155" height="90" rx="13.5" ry="13.5" fill="#ffffff" stroke="#666666" stroke-width="2" stroke-dasharray="2 4" pointer-events="none"/>
|
||||
<g transform="translate(369.5,1028.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="124" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(102, 102, 102); line-height: 1.2; vertical-align: top; width: 126px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">WebRtcTransport</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="62" y="17" fill="#666666" text-anchor="middle" font-size="16px" font-family="Helvetica">WebRtcTransport</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 382.36 956 L 472.36 956 L 472.36 956 L 482.36 971 L 472.36 986 L 472.36 986 L 382.36 986 L 392.36 971 Z" fill="url(#mx-gradient-66cc00-1-4d9900-1-s-0)" stroke="none" transform="translate(432.36,0)scale(-1,1)translate(-432.36,0)" pointer-events="none"/>
|
||||
<g transform="translate(372.5,992.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="119" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(77, 153, 0); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Video Consumer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="60" y="17" fill="#4D9900" text-anchor="middle" font-size="16px" font-family="Helvetica">Video Consumer</text>
|
||||
</switch>
|
||||
</g>
|
||||
<rect x="1019.86" y="931" width="155" height="90" rx="13.5" ry="13.5" fill="#ffffff" stroke="#666666" stroke-width="2" stroke-dasharray="2 4" pointer-events="none"/>
|
||||
<g transform="translate(1034.5,1028.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="124" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(102, 102, 102); line-height: 1.2; vertical-align: top; width: 126px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">WebRtcTransport</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="62" y="17" fill="#666666" text-anchor="middle" font-size="16px" font-family="Helvetica">WebRtcTransport</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 1047.36 956 L 1137.36 956 L 1137.36 956 L 1147.36 971 L 1137.36 986 L 1137.36 986 L 1047.36 986 L 1057.36 971 Z" fill="url(#mx-gradient-66cc00-1-4d9900-1-s-0)" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(1037.5,992.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="119" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(77, 153, 0); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Video Consumer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="60" y="17" fill="#4D9900" text-anchor="middle" font-size="16px" font-family="Helvetica">Video Consumer</text>
|
||||
</switch>
|
||||
</g>
|
||||
<rect x="1019.86" y="1071" width="155" height="90" rx="13.5" ry="13.5" fill="#ffffff" stroke="#666666" stroke-width="2" stroke-dasharray="2 4" pointer-events="none"/>
|
||||
<g transform="translate(1034.5,1168.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="124" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(102, 102, 102); line-height: 1.2; vertical-align: top; width: 126px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">WebRtcTransport</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="62" y="17" fill="#666666" text-anchor="middle" font-size="16px" font-family="Helvetica">WebRtcTransport</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 1047.36 1096 L 1137.36 1096 L 1137.36 1096 L 1147.36 1111 L 1137.36 1126 L 1137.36 1126 L 1047.36 1126 L 1057.36 1111 Z" fill="url(#mx-gradient-66cc00-1-4d9900-1-s-0)" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(1037.5,1132.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="119" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(77, 153, 0); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Video Consumer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="60" y="17" fill="#4D9900" text-anchor="middle" font-size="16px" font-family="Helvetica">Video Consumer</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 89.53 1127.17 C 90.09 1127.17 90.48 1126.94 90.37 1126.75 L 89.26 1125 C 89.12 1124.73 88.92 1124.67 88.59 1124.67 L 81.41 1124.67 C 81.06 1124.67 80.88 1124.74 80.71 1125.01 L 79.68 1126.74 C 79.48 1127.02 80.08 1127.17 80.51 1127.17 Z M 106.32 1121.46 L 106.32 1095.72 L 63.65 1095.72 L 63.65 1121.46 Z M 59 1129.5 C 57.87 1129.49 56.85 1129.08 56.42 1128.45 C 56 1127.83 56.17 1127.2 56.53 1126.78 L 60.66 1122.26 L 60.66 1095.58 C 60.66 1094.24 61.78 1092.5 63.63 1092.5 L 106.33 1092.5 C 107.77 1092.5 109.31 1093.74 109.31 1095.75 L 109.31 1122.26 L 113.48 1126.82 C 113.83 1127.25 114 1127.82 113.58 1128.43 C 113.03 1129.2 111.99 1129.45 111.02 1129.5 Z" fill="#505050" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(46.5,1136.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="76" height="36" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(120, 120, 120); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Participant<br />
|
||||
(viewer)<br />
|
||||
</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="38" y="26" fill="#787878" text-anchor="middle" font-size="16px" font-family="Helvetica">[Not supported by viewer]</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 355 1116 L 119.24 1114.08" fill="none" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<path d="M 111.24 1114.02 L 119.27 1110.08 L 119.2 1118.08 Z" fill="#999999" stroke="#999999" stroke-width="2" stroke-miterlimit="10" pointer-events="none"/>
|
||||
<g fill="#999999" font-family="Helvetica" text-anchor="middle" font-size="14px">
|
||||
<rect fill="#ffffff" stroke="none" x="213" y="1108" width="39" height="17" stroke-width="0"/>
|
||||
<text x="231" y="1119.5">SRTP</text>
|
||||
</g>
|
||||
<rect x="1015" y="95.5" width="160" height="150" rx="22.5" ry="22.5" fill="#ffffff" stroke="#666666" stroke-width="2" stroke-dasharray="2 4" pointer-events="none"/>
|
||||
<g transform="translate(1031.5,253.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="125" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(102, 102, 102); line-height: 1.2; vertical-align: top; width: 125px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">WebRtcTransport</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="63" y="17" fill="#666666" text-anchor="middle" font-size="16px" font-family="Helvetica">WebRtcTransport</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 1045 109 L 1135 109 L 1135 109 L 1145 124 L 1135 139 L 1135 139 L 1045 139 L 1055 124 Z" fill="url(#mx-gradient-66cc00-1-4d9900-1-s-0)" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(1035.5,145.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="119" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(77, 153, 0); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Audio Consumer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="60" y="17" fill="#4D9900" text-anchor="middle" font-size="16px" font-family="Helvetica">Audio Consumer</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 1045 184 L 1135 184 L 1135 184 L 1145 199 L 1135 214 L 1135 214 L 1045 214 L 1055 199 Z" fill="url(#mx-gradient-66cc00-1-4d9900-1-s-0)" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(1035.5,220.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="119" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(77, 153, 0); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Video Consumer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="60" y="17" fill="#4D9900" text-anchor="middle" font-size="16px" font-family="Helvetica">Video Consumer</text>
|
||||
</switch>
|
||||
</g>
|
||||
<rect x="1020" y="289" width="155" height="90" rx="13.5" ry="13.5" fill="#ffffff" stroke="#666666" stroke-width="2" stroke-dasharray="2 4" pointer-events="none"/>
|
||||
<g transform="translate(1032.5,386.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="128" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(102, 102, 102); line-height: 1.2; vertical-align: top; width: 130px; white-space: nowrap; overflow-wrap: normal; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">PlainRtpTransport</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="64" y="17" fill="#666666" text-anchor="middle" font-size="16px" font-family="Helvetica">PlainRtpTransport</text>
|
||||
</switch>
|
||||
</g>
|
||||
<path d="M 1047.5 314 L 1137.5 314 L 1137.5 314 L 1147.5 329 L 1137.5 344 L 1137.5 344 L 1047.5 344 L 1057.5 329 Z" fill="url(#mx-gradient-66cc00-1-4d9900-1-s-0)" stroke="none" pointer-events="none"/>
|
||||
<g transform="translate(1037.5,350.5)">
|
||||
<switch>
|
||||
<foreignObject style="overflow:visible;" pointer-events="all" width="119" height="17" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(77, 153, 0); line-height: 1.2; vertical-align: top; white-space: nowrap; text-align: center;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">Audio Consumer</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
<text x="60" y="17" fill="#4D9900" text-anchor="middle" font-size="16px" font-family="Helvetica">Audio Consumer</text>
|
||||
</switch>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 213 KiB |
@ -0,0 +1 @@
|
||||
<svg width="160" height="187" xmlns="http://www.w3.org/2000/svg"><g fill="#0270D7" fill-rule="evenodd"><path fill-opacity=".24" d="M110.211 0l49.45 89.211-89.21 49.45L21 49.452z"/><path fill-opacity=".16" d="M33.812 171.385l-18.385 15.427L0 168.427 18.385 153z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 273 B |
|
After Width: | Height: | Size: 2.1 KiB |
@ -0,0 +1 @@
|
||||
<svg width="112" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-90%" y="-90%" width="280%" height="280%" filterUnits="objectBoundingBox" id="a"><feGaussianBlur stdDeviation="12" in="SourceGraphic"/></filter><linearGradient x1="99.316%" y1="21.974%" x2="0%" y2="69.777%" id="b"><stop stop-color="#2C3039" offset="0%"/><stop stop-color="#8A94A7" offset="48.131%"/><stop stop-color="#2C3039" offset="100%"/></linearGradient><linearGradient x1="49.892%" y1=".428%" x2="24.856%" y2="100%" id="d"><stop stop-color="#3B404C" offset="0%"/><stop stop-color="#333843" offset="100%"/></linearGradient><path d="M32.833 63.264c-14.9 1.866-25.108-6.384-22.797-18.428 2.31-12.043 16.264-23.319 31.166-25.184C56.103 17.786 66.31 26.036 64 38.08c-2.311 12.043-16.264 23.319-31.167 25.184z" id="c"/></defs><g fill="none" fill-rule="evenodd"><path fill="#0270D7" d="M35.521 6.938L12.04 35.843l48.939 16.136L84.46 23.073z"/><path fill="#02CBB1" d="M20 65.494L35.822 74 36 26.506 20.176 18z"/><g transform="translate(28 31)"><path fill-opacity=".48" fill="#1D2026" filter="url(#a)" d="M1 0h40v40H1z"/><path d="M11.261 54.752l-9.71-18.785C.096 33.152-.389 29.783.327 26.051 2.637 14.01 16.59 2.732 31.492.867 41.776-.42 49.824 3.11 53.065 9.38l9.71 18.785c-3.242-6.27-11.29-9.8-21.573-8.514C26.3 21.518 12.347 32.793 10.036 44.837c-.716 3.732-.23 7.1 1.225 9.915" fill="url(#b)"/><use fill="url(#d)" xlink:href="#c"/></g><path fill="#00BFFB" d="M22.991 85.677l.826-6.614L7.855 84.8l-.825 6.616z"/><path fill-opacity=".32" fill="#00BFFB" d="M106.721 46.737l4.408-2.801-13.699-6.737L93.022 40z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@ -0,0 +1 @@
|
||||
<svg width="108" height="100" xmlns="http://www.w3.org/2000/svg"><defs><filter x="-90%" y="-90%" width="280%" height="280%" filterUnits="objectBoundingBox" id="a"><feGaussianBlur stdDeviation="12" in="SourceGraphic"/></filter><linearGradient x1="17.713%" y1="0%" x2="77.754%" y2="68.424%" id="b"><stop stop-color="#2C3039" offset="0%"/><stop stop-color="#8A94A7" offset="100%"/></linearGradient><linearGradient x1="49.892%" y1=".428%" x2="24.856%" y2="100%" id="c"><stop stop-color="#3B404C" offset="0%"/><stop stop-color="#333843" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill-opacity=".32" fill="#00BFFB" d="M31.292 84.984l1.313-5.055-14.613 4.415-1.313 5.056z"/><path d="M41.203 74.416L.222 46.516l30.541-21.314 23.908 16.277-11.69 10.84-1.706 22-.072.097z" fill="#0270D7"/><path fill="#00BFFB" d="M103.305 14.443l4.556-4.866-16.287-4.74-4.556 4.867z"/><path fill="#02CBB1" d="M56.9 77.244L54.771 92.89 94.416 77.84l2.128-15.648z"/><path fill-opacity=".48" fill="#1D2026" filter="url(#a)" d="M31.778 38.241h40v40h-40z" transform="translate(.222 -2.241)"/><path d="M88.023 31.352a2.962 2.962 0 0 0-1.296-1.359l-29.464-15.06a2.888 2.888 0 0 0-2.634.001L25.147 30.03a2.972 2.972 0 0 0-1.298 1.361l32.078 16.398 32.096-16.436z" fill="url(#b)" fill-rule="nonzero" transform="rotate(31 66.542 55.443)"/><path d="M43.266 11.908a3.154 3.154 0 0 0-.96.977L23.763 43.707c-.586.974-.605 2.174-.048 3.1l16.423 27.335c.228.379.543.693.917.917l20.09-33.39-17.878-29.76z" fill="#2C3039" fill-rule="nonzero"/><path d="M38.935 50.59v38.956a3.04 3.04 0 0 0 1.35-.3L70.47 74.263a2.994 2.994 0 0 0 1.67-2.697V35.608a2.98 2.98 0 0 0-.342-1.33L38.935 50.59z" fill="url(#c)" transform="rotate(31 66.143 86.153)"/></g></svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@ -0,0 +1 @@
|
||||
<svg width="103" height="100" xmlns="http://www.w3.org/2000/svg"><defs><filter x="-90%" y="-90%" width="280%" height="280%" filterUnits="objectBoundingBox" id="a"><feGaussianBlur stdDeviation="12" in="SourceGraphic"/></filter><linearGradient x1="49.892%" y1=".428%" x2="24.856%" y2="100%" id="b"><stop stop-color="#3B404C" offset="0%"/><stop stop-color="#333843" offset="100%"/></linearGradient><linearGradient x1="17.713%" y1="0%" x2="77.754%" y2="68.424%" id="c"><stop stop-color="#2C3039" offset="0%"/><stop stop-color="#8A94A7" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path d="M48.028 64.452L.086 77.076l3.95-37.033 27.97-7.364c.1 3.076.27 8.387.512 15.934l15.485 15.72.025.119z" fill="#0270D7"/><path fill="#02CBB1" d="M91.767 72.042l2.455-13.396L58.895 70.67 56.44 84.067z"/><path fill="#00BFFB" d="M40.783 98.37l6.378-1.937-11.735-12.248-6.379 1.937z"/><path fill-opacity=".32" fill="#00BFFB" d="M23.783 14.37l6.378-1.937L18.426.185l-6.379 1.937z"/><path fill-opacity=".48" fill="#1D2026" filter="url(#a)" d="M50 43h40v40H50z" transform="translate(-16 -12)"/><path d="M51.759 16.34a.94.94 0 0 1 .922.399l23.35 40.193c.096.151.143.35.143.545-.001.629-.481 1.21-1.067 1.292l-46.872 6.553a.909.909 0 0 1-.527-.081c-.507-.237-.688-.912-.39-1.5L50.84 16.996c.076-.134.183-.262.307-.372.19-.16.403-.255.612-.283" fill="url(#b)" transform="rotate(27 42.978 77.641)"/><path d="M25.338.52c-.01-.006-.022-.01-.033-.017a.893.893 0 0 0-.174-.066c-.01-.002-.022.001-.034-.001a.925.925 0 0 0-.346-.018 1.064 1.064 0 0 0-.315.096l-.004.001c-.06.03-.12.064-.178.105a1.172 1.172 0 0 0-.107.083l-.008.008a1.495 1.495 0 0 0-.295.368L.616 48.344a1.469 1.469 0 0 0-.064.148c-.02.057-.02.113-.033.171-.012.058-.028.116-.033.174-.007.084.002.164.012.246.007.052.006.106.02.156a.99.99 0 0 0 .103.233c.02.037.031.08.056.113a.877.877 0 0 0 .28.25l26.938 14.927a.868.868 0 0 1-.28-.252c-.024-.034-.037-.076-.057-.113-.04-.075-.08-.15-.103-.232-.013-.051-.013-.104-.02-.156-.01-.082-.02-.163-.012-.248.005-.058.021-.115.033-.173.024-.107.046-.216.097-.32L50.78 16.006c.076-.136.18-.265.304-.376.091-.08.19-.142.289-.19a.96.96 0 0 1 .662-.078.95.95 0 0 1 .24.084L25.337.52z" transform="rotate(27 42.028 77.95)" fill="url(#c)" fill-rule="nonzero"/></g></svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
@ -0,0 +1 @@
|
||||
<svg width="98" height="100" xmlns="http://www.w3.org/2000/svg"><defs><filter x="-90%" y="-90%" width="280%" height="280%" filterUnits="objectBoundingBox" id="a"><feGaussianBlur stdDeviation="12" in="SourceGraphic"/></filter><linearGradient x1="49.892%" y1=".428%" x2="24.856%" y2="100%" id="b"><stop stop-color="#3B404C" offset="0%"/><stop stop-color="#333843" offset="100%"/></linearGradient><linearGradient x1="17.713%" y1="0%" x2="77.754%" y2="68.424%" id="c"><stop stop-color="#2C3039" offset="0%"/><stop stop-color="#8A94A7" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path d="M49.028 61.452L1.086 74.076l3.95-37.033 27.97-7.364c.1 3.076.27 8.387.512 15.934l15.485 15.72.025.119z" fill="#0270D7"/><path fill-opacity=".32" fill="#00BFFB" d="M23.725 84.328l-5.66 3.52 14.505 8.794 5.66-3.522z"/><path fill="#02CBB1" d="M89.345 72.466l-1.72-15.697L52.8 80.964l1.72 15.698z"/><path fill-opacity=".48" fill="#1D2026" filter="url(#a)" d="M44 41h40v40H44z" transform="translate(-15 -10)"/><path fill="url(#b)" d="M37.841 71.977L0 54.169 37.231 0z" transform="rotate(-36 55.277 18.264)"/><path fill="url(#c)" fill-rule="nonzero" transform="scale(-1 1) rotate(36 .538 -153.515)" d="M73.788 71.977L37.229 54 74.4 0z"/><path fill-opacity=".32" fill="#00BFFB" d="M58.57 10.221l-1.048 5.117 14.362-5.174 1.047-5.118z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@ -0,0 +1 @@
|
||||
<svg width="98" height="100" xmlns="http://www.w3.org/2000/svg"><defs><filter x="-90%" y="-90%" width="280%" height="280%" filterUnits="objectBoundingBox" id="a"><feGaussianBlur stdDeviation="12" in="SourceGraphic"/></filter><linearGradient x1="7.786%" y1="0%" x2="90.938%" y2="49.407%" id="b"><stop stop-color="#2C3039" offset="0%"/><stop stop-color="#8A94A7" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill-opacity=".48" fill="#1D2026" filter="url(#a)" d="M38 48h40v40H38z" transform="translate(-9 -17)"/><path fill="#02CBB1" d="M86.755 88.926l3.46-15.26-39.363 10.387-3.459 15.261z"/><path fill="#0270D7" d="M90.735 53.81l7.137-28.53-77.08 20.354-7.137 28.533z"/><path fill-opacity=".32" fill="#00BFFB" d="M77.35 14.62l6.442-1.712-11.3-12.65-6.443 1.713z"/><path fill="#474C59" d="M46.63 33.718L28.384 61.923l43.659 19.72 18.244-28.206z"/><path fill="#00BFFB" d="M29.746 92.298l3.792-3.59-14.732-4-3.793 3.59z"/><path fill="#2C3039" fill-rule="nonzero" d="M17.685 36.372l10.7 25.55 18.339-28.026L35.015 8.122z"/><path fill="url(#b)" fill-rule="nonzero" d="M49.401 21.254L1.988 27.601l23.588 15.653 47.412-6.346z" transform="rotate(32 52.468 75.451)"/></g></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
@ -0,0 +1 @@
|
||||
<svg width="115" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter x="-90%" y="-90%" width="280%" height="280%" filterUnits="objectBoundingBox" id="a"><feGaussianBlur stdDeviation="12" in="SourceGraphic"/></filter><path id="b" d="M0 .856h63.533v59.675H0z"/><linearGradient x1="56.146%" y1="10.87%" x2="25.695%" y2="72.649%" id="c"><stop stop-color="#2C3039" offset="0%"/><stop stop-color="#8A94A7" offset="48.131%"/><stop stop-color="#2C3039" offset="100%"/></linearGradient><path id="e" d="M.062.344h40.511v44.1H.062z"/><linearGradient x1="49.892%" y1=".428%" x2="24.856%" y2="100%" id="f"><stop stop-color="#3B404C" offset="0%"/><stop stop-color="#333843" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill="#0270D7" d="M23.302 63.083L.112 44.995l73.273-31.416 23.19 18.091z"/><path fill="#00BFFB" d="M35.902 83.663l1.17-6.562-16.24 4.895-1.17 6.563z"/><path fill-opacity=".32" fill="#00BFFB" d="M41.972 92.478l-2.962 3.376 11.56 2.714 2.961-3.376z"/><path fill-opacity=".48" fill="#1D2026" filter="url(#a)" d="M36.056 33.707h40v40h-40z" transform="rotate(16 55.276 48.942)"/><g transform="rotate(16 -28.89 116.929)"><mask id="d" fill="#fff"><use xlink:href="#b"/></mask><path d="M32.628 40.394c.06-.485.116-.972.204-1.45.055-.295.135-.583.2-.874.096-.427.181-.856.296-1.276.084-.303.192-.596.286-.894.128-.401.246-.808.393-1.202.05-.141.113-.275.169-.414.195-.5.4-.997.624-1.483.103-.22.214-.434.322-.65a28.007 28.007 0 0 1 2.005-3.412c.07-.1.15-.192.219-.29.448-.622.922-1.222 1.418-1.801.172-.198.347-.391.523-.584.464-.508.946-.993 1.444-1.46.175-.162.343-.334.522-.493.13-.113.263-.22.392-.332a25.56 25.56 0 0 1 1.147-.91c.146-.11.291-.22.44-.325.356-.254.723-.49 1.093-.723.212-.134.42-.276.637-.402.428-.252.868-.48 1.311-.702.157-.08.307-.169.465-.244a22.326 22.326 0 0 1 1.727-.721c.162-.06.326-.111.49-.168.45-.155.905-.293 1.366-.417.178-.047.354-.097.532-.14a20.012 20.012 0 0 1 1.862-.362 18.96 18.96 0 0 1 1.675-.155c.175-.01.347-.008.52-.013.382-.008.76-.008 1.134.005a17.935 17.935 0 0 1 1.654.144c.174.022.347.042.518.07.44.071.874.161 1.301.266.075.019.154.03.229.05.508.132 1.003.29 1.49.467.143.05.28.11.42.166.347.136.691.282 1.025.44.288.135.575.268.852.419L31.118 2.89a18.16 18.16 0 0 0-.619-.319c-.075-.038-.156-.065-.233-.1-.337-.16-.68-.305-1.028-.442-.14-.055-.276-.115-.417-.165-.49-.176-.985-.335-1.493-.466l-.03-.01c-.063-.016-.13-.024-.192-.04-.43-.105-.865-.195-1.307-.267-.17-.027-.344-.047-.518-.07a17.934 17.934 0 0 0-1.654-.144 17.699 17.699 0 0 0-1.133-.004c-.174.004-.346.003-.52.012-.554.03-1.112.076-1.678.155a20.56 20.56 0 0 0-1.86.364c-.178.04-.355.09-.532.139-.46.122-.917.262-1.368.417-.162.055-.326.106-.488.168-.566.209-1.126.436-1.674.694l-.054.027c-.155.074-.304.162-.458.24a22.56 22.56 0 0 0-1.318.705c-.215.127-.421.268-.633.401-.276.174-.558.338-.826.524-.093.064-.181.135-.272.2-.148.106-.293.217-.438.325-.39.291-.77.594-1.145.91-.132.112-.264.219-.394.333-.065.058-.136.11-.2.169-.113.102-.21.22-.32.324-.5.465-.982.952-1.445 1.46-.097.106-.208.197-.303.304-.079.09-.143.19-.22.281a26.06 26.06 0 0 0-1.42 1.8c-.057.08-.125.152-.182.233-.013.018-.023.038-.036.057a26.58 26.58 0 0 0-1.459 2.366c-.047.087-.108.167-.156.253-.138.26-.26.528-.391.792-.107.217-.218.43-.32.65-.225.485-.43.98-.625 1.481-.054.14-.118.276-.17.417l-.029.07c-.135.368-.242.749-.361 1.126-.094.3-.204.594-.287.899-.119.425-.204.859-.3 1.29-.065.287-.143.57-.197.86-.09.484-.145.974-.205 1.463-.03.247-.08.488-.102.734-.07.74-.107 1.485-.108 2.233-.014 7.778 3.736 14.079 9.395 17.158L41.813 60.53c-5.66-3.08-9.41-9.38-9.395-17.156.001-.75.037-1.495.107-2.235.024-.25.072-.496.103-.746" fill="url(#c)" mask="url(#d)"/></g><g transform="rotate(16 -109.581 222.973)"><mask id="g" fill="#fff"><use xlink:href="#e"/></mask><path d="M20.358.531C31.545-1.04 40.595 7.473 40.574 19.548c-.023 12.075-9.11 23.137-20.297 24.71C9.09 45.83.04 37.316.062 25.24.084 13.166 9.172 2.103 20.358.531" fill="url(#f)" mask="url(#g)"/></g><path fill="#02CBB1" d="M114.324 47.62l-10.196-8.59-7.761 33.025 10.197 8.59z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 52 KiB |
@ -0,0 +1 @@
|
||||
<svg width="28" height="32" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="a"><stop stop-color="#00BFFB" offset="0%"/><stop stop-color="#0270D7" offset="100%"/></linearGradient><linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="b"><stop stop-color="#1F232A" stop-opacity=".48" offset="0%"/><stop stop-color="#1F2329" stop-opacity="0" offset="100%"/></linearGradient><linearGradient x1="87.665%" y1="103.739%" x2="-3.169%" y2="38.807%" id="c"><stop stop-color="#FFF" stop-opacity="0" offset="0%"/><stop stop-color="#FFF" stop-opacity=".64" offset="100%"/></linearGradient><linearGradient x1="-14.104%" y1="111.262%" x2="109.871%" y2="26.355%" id="d"><stop stop-color="#0270D7" offset="0%"/><stop stop-color="#0270D7" stop-opacity="0" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill="url(#a)" transform="rotate(90 14 16)" d="M6 2l-8 13.999L6 30h16l8-14.001L22 2z"/><path fill="url(#b)" d="M14 0v32L0 24V8z"/><path fill="url(#c)" d="M28 24L0 8l14.001-8L28 8z"/><path fill-opacity=".48" fill="url(#d)" style="mix-blend-mode:multiply" d="M28 8L0 23.978V8l14.001-8L28 8z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 204 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
@ -0,0 +1,734 @@
|
||||
'use strict';
|
||||
|
||||
if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.href.substr(4, location.href.length - 4);
|
||||
|
||||
const RoomURL = window.location.href;
|
||||
|
||||
const swalBackground = 'rgba(0, 0, 0, 0.7)';
|
||||
const swalImageUrl = '../images/pricing-illustration.svg';
|
||||
|
||||
const url = {
|
||||
ipLookup: 'https://extreme-ip-lookup.com/json/',
|
||||
};
|
||||
|
||||
let rc = null;
|
||||
let producer = null;
|
||||
|
||||
let peer_name = 'peer_' + getRandomNumber(5);
|
||||
let peer_geo = null;
|
||||
let peer_info = null;
|
||||
|
||||
let room_id = location.pathname.substring(6);
|
||||
let isEnumerateDevices = false;
|
||||
|
||||
let isAudioAllowed = false;
|
||||
let isVideoAllowed = false;
|
||||
let isAudioOn = true;
|
||||
let isVideoOn = true;
|
||||
|
||||
let recTimer = null;
|
||||
let recElapsedTime = null;
|
||||
|
||||
const socket = io();
|
||||
|
||||
function getRandomNumber(length) {
|
||||
let result = '';
|
||||
let characters = '0123456789';
|
||||
let charactersLength = characters.length;
|
||||
for (let i = 0; i < length; i++) {
|
||||
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function initClient() {
|
||||
if (!DetectRTC.isMobileDevice) {
|
||||
setTippy('sessionTime', 'Session time', 'bottom');
|
||||
setTippy('exitButton', 'Exit room', 'bottom');
|
||||
setTippy('shareButton', 'Share Room', 'bottom');
|
||||
setTippy('devicesButton', 'Devices', 'bottom');
|
||||
setTippy('chatButton', 'Chat', 'bottom');
|
||||
setTippy('chatCleanButton', 'Clean', 'bottom');
|
||||
setTippy('chatSaveButton', 'Save', 'bottom');
|
||||
setTippy('chatCloseButton', 'Close', 'bottom');
|
||||
setTippy('chatMessage', 'Press enter to send', 'top-start');
|
||||
setTippy('chatSendButton', 'Send', 'top');
|
||||
setTippy('chatEmojiButton', 'Emoji', 'top');
|
||||
setTippy('fullScreenButton', 'Full Screen', 'bottom');
|
||||
setTippy('recButton', 'Recording', 'bottom');
|
||||
setTippy('startRecButton', 'Start Recording', 'bottom');
|
||||
setTippy('stopRecButton', 'Stop Recording', 'bottom');
|
||||
setTippy('pauseRecButton', 'Pause Recording', 'bottom');
|
||||
setTippy('resumeRecButton', 'Resume Recording', 'bottom');
|
||||
setTippy('stopAudioButton', 'Stop Audio', 'bottom');
|
||||
setTippy('startAudioButton', 'Start Audio', 'bottom');
|
||||
setTippy('swapCameraButton', 'Swap Camera', 'bottom');
|
||||
setTippy('startVideoButton', 'Start Video', 'bottom');
|
||||
setTippy('stopVideoButton', 'Stop Video', 'bottom');
|
||||
setTippy('startScreenButton', 'Start Screen', 'bottom');
|
||||
setTippy('stopScreenButton', 'Stop Screen', 'bottom');
|
||||
setTippy('aboutButton', 'About', 'bottom');
|
||||
}
|
||||
initEnumerateDevices();
|
||||
}
|
||||
|
||||
function setTippy(elem, content, placement) {
|
||||
tippy(document.getElementById(elem), {
|
||||
content: content,
|
||||
placement: placement,
|
||||
});
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// ENUMERATE DEVICES
|
||||
// ####################################################
|
||||
|
||||
async function initEnumerateDevices() {
|
||||
if (isEnumerateDevices) return;
|
||||
console.log('01 ----> init Enumerate Devices');
|
||||
|
||||
// allow the audio
|
||||
await navigator.mediaDevices
|
||||
.getUserMedia({ audio: true })
|
||||
.then((stream) => {
|
||||
enumerateAudioDevices(stream);
|
||||
isAudioAllowed = true;
|
||||
})
|
||||
.catch(() => {
|
||||
isAudioAllowed = false;
|
||||
});
|
||||
|
||||
// allow the video
|
||||
await navigator.mediaDevices
|
||||
.getUserMedia({ video: true })
|
||||
.then((stream) => {
|
||||
enumerateVideoDevices(stream);
|
||||
isVideoAllowed = true;
|
||||
})
|
||||
.catch(() => {
|
||||
isVideoAllowed = false;
|
||||
});
|
||||
|
||||
if (!isAudioAllowed && !isVideoAllowed) {
|
||||
window.location.href = `/permission?room_id=${room_id}&message=Not allowed both Audio and Video`;
|
||||
} else {
|
||||
getPeerInfo();
|
||||
getPeerGeoLocation();
|
||||
whoAreYou();
|
||||
}
|
||||
}
|
||||
|
||||
function enumerateAudioDevices(stream) {
|
||||
console.log('02 ----> Get Audio Devices');
|
||||
navigator.mediaDevices
|
||||
.enumerateDevices()
|
||||
.then((devices) =>
|
||||
devices.forEach((device) => {
|
||||
let el = null;
|
||||
if ('audioinput' === device.kind) {
|
||||
el = microphoneSelect;
|
||||
} else if ('audiooutput' === device.kind) {
|
||||
el = speakerSelect;
|
||||
}
|
||||
if (!el) return;
|
||||
appenChild(device, el);
|
||||
}),
|
||||
)
|
||||
.then(() => {
|
||||
stopTracks(stream);
|
||||
isEnumerateDevices = true;
|
||||
speakerSelect.disabled = !('sinkId' in HTMLMediaElement.prototype);
|
||||
});
|
||||
}
|
||||
|
||||
function enumerateVideoDevices(stream) {
|
||||
console.log('03 ----> Get Video Devices');
|
||||
navigator.mediaDevices
|
||||
.enumerateDevices()
|
||||
.then((devices) =>
|
||||
devices.forEach((device) => {
|
||||
let el = null;
|
||||
if ('videoinput' === device.kind) {
|
||||
el = videoSelect;
|
||||
}
|
||||
if (!el) return;
|
||||
appenChild(device, el);
|
||||
}),
|
||||
)
|
||||
.then(() => {
|
||||
stopTracks(stream);
|
||||
isEnumerateDevices = true;
|
||||
});
|
||||
}
|
||||
|
||||
function stopTracks(stream) {
|
||||
stream.getTracks().forEach((track) => {
|
||||
track.stop();
|
||||
});
|
||||
}
|
||||
|
||||
function appenChild(device, el) {
|
||||
let option = document.createElement('option');
|
||||
option.value = device.deviceId;
|
||||
option.innerText = device.label;
|
||||
el.appendChild(option);
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// SOME PEER INFO
|
||||
// ####################################################
|
||||
|
||||
function getPeerInfo() {
|
||||
peer_info = {
|
||||
detectRTCversion: DetectRTC.version,
|
||||
isWebRTCSupported: DetectRTC.isWebRTCSupported,
|
||||
isMobileDevice: DetectRTC.isMobileDevice,
|
||||
osName: DetectRTC.osName,
|
||||
osVersion: DetectRTC.osVersion,
|
||||
browserName: DetectRTC.browser.name,
|
||||
browserVersion: DetectRTC.browser.version,
|
||||
};
|
||||
}
|
||||
|
||||
function getPeerGeoLocation() {
|
||||
fetch(url.ipLookup)
|
||||
.then((res) => res.json())
|
||||
.then((outJson) => {
|
||||
peer_geo = outJson;
|
||||
})
|
||||
.catch((ex) => console.warn('IP Lookup', ex));
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// ENTER YOUR NAME | Enable/Disable AUDIO/VIDEO
|
||||
// ####################################################
|
||||
|
||||
function whoAreYou() {
|
||||
console.log('04 ----> Who are you');
|
||||
|
||||
Swal.fire({
|
||||
allowOutsideClick: false,
|
||||
allowEscapeKey: false,
|
||||
background: swalBackground,
|
||||
input: 'text',
|
||||
inputPlaceholder: 'Enter your name',
|
||||
html: `<br />
|
||||
<button id="initAudioButton" class="fas fa-microphone" onclick="handleAudio(event)"></button>
|
||||
<button id="initVideoButton" class="fas fa-video" onclick="handleVideo(event)"></button>`,
|
||||
confirmButtonText: `Join meeting`,
|
||||
showClass: {
|
||||
popup: 'animate__animated animate__fadeInDown',
|
||||
},
|
||||
hideClass: {
|
||||
popup: 'animate__animated animate__fadeOutUp',
|
||||
},
|
||||
inputValidator: (name) => {
|
||||
if (!name) return 'Please enter your name';
|
||||
peer_name = name;
|
||||
},
|
||||
}).then(() => {
|
||||
shareRoom();
|
||||
joinRoom(peer_name, room_id);
|
||||
});
|
||||
|
||||
let initAudioButton = document.getElementById('initAudioButton');
|
||||
let initVideoButton = document.getElementById('initVideoButton');
|
||||
if (!isAudioAllowed) initAudioButton.className = 'hidden';
|
||||
if (!isVideoAllowed) initVideoButton.className = 'hidden';
|
||||
if (!DetectRTC.isMobileDevice) {
|
||||
setTippy('initAudioButton', 'Enable / Disable audio', 'left');
|
||||
setTippy('initVideoButton', 'Enable / Disable video', 'right');
|
||||
}
|
||||
}
|
||||
|
||||
function handleAudio(e) {
|
||||
isAudioOn ? (isAudioOn = false) : (isAudioOn = true);
|
||||
e.target.className = 'fas fa-microphone' + (isAudioOn ? '' : '-slash');
|
||||
}
|
||||
|
||||
function handleVideo(e) {
|
||||
isVideoOn ? (isVideoOn = false) : (isVideoOn = true);
|
||||
e.target.className = 'fas fa-video' + (isVideoOn ? '' : '-slash');
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// SHARE ROOM
|
||||
// ####################################################
|
||||
|
||||
async function shareRoom(useNavigator = false) {
|
||||
if (navigator.share && useNavigator) {
|
||||
try {
|
||||
await navigator.share({ url: RoomURL });
|
||||
userLog('info', 'Room Shared successfully', 'top-end');
|
||||
} catch (err) {
|
||||
share();
|
||||
}
|
||||
} else {
|
||||
share();
|
||||
}
|
||||
function share() {
|
||||
sound('open');
|
||||
|
||||
Swal.fire({
|
||||
background: swalBackground,
|
||||
imageUrl: swalImageUrl,
|
||||
position: 'center',
|
||||
title: '<strong>Hello ' + peer_name + '</strong>',
|
||||
html:
|
||||
`
|
||||
<br/>
|
||||
<div id="qrRoomContainer">
|
||||
<canvas id="qrRoom"></canvas>
|
||||
</div>
|
||||
<br/><br/>
|
||||
<p style="color:white;">Share this meeting invite others to join.</p>
|
||||
<p style="color:rgb(8, 189, 89);">` +
|
||||
RoomURL +
|
||||
`</p>`,
|
||||
showDenyButton: true,
|
||||
showCancelButton: true,
|
||||
confirmButtonText: `Copy meeting URL`,
|
||||
denyButtonText: `Email invite`,
|
||||
cancelButtonText: `Close`,
|
||||
showClass: {
|
||||
popup: 'animate__animated animate__fadeInUp',
|
||||
},
|
||||
hideClass: {
|
||||
popup: 'animate__animated animate__fadeOutUp',
|
||||
},
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
copyRoomURL();
|
||||
} else if (result.isDenied) {
|
||||
let message = {
|
||||
email: '',
|
||||
subject: 'Please join our MiroTalkSfu Video Chat Meeting',
|
||||
body: 'Click to join: ' + RoomURL,
|
||||
};
|
||||
shareRoomByEmail(message);
|
||||
}
|
||||
});
|
||||
makeRoomQR();
|
||||
}
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// ROOM UTILITY
|
||||
// ####################################################
|
||||
|
||||
function makeRoomQR() {
|
||||
let qr = new QRious({
|
||||
element: document.getElementById('qrRoom'),
|
||||
value: RoomURL,
|
||||
});
|
||||
qr.set({
|
||||
size: 128,
|
||||
});
|
||||
}
|
||||
|
||||
function copyRoomURL() {
|
||||
let tmpInput = document.createElement('input');
|
||||
document.body.appendChild(tmpInput);
|
||||
tmpInput.value = RoomURL;
|
||||
tmpInput.select();
|
||||
document.execCommand('copy');
|
||||
document.body.removeChild(tmpInput);
|
||||
userLog('info', 'Room URL copied to clipboard', 'top-end');
|
||||
}
|
||||
|
||||
function shareRoomByEmail(message) {
|
||||
let email = message.email;
|
||||
let subject = message.subject;
|
||||
let emailBody = message.body;
|
||||
document.location = 'mailto:' + email + '?subject=' + subject + '&body=' + emailBody;
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// JOIN TO ROOM
|
||||
// ####################################################
|
||||
|
||||
function joinRoom(peer_name, room_id) {
|
||||
if (rc && rc.isConnected()) {
|
||||
console.log('Already connected to a room');
|
||||
} else {
|
||||
console.log('05 ----> join to Room ' + room_id);
|
||||
rc = new RoomClient(
|
||||
localMedia,
|
||||
remoteVideos,
|
||||
remoteAudios,
|
||||
window.mediasoupClient,
|
||||
socket,
|
||||
room_id,
|
||||
peer_name,
|
||||
peer_geo,
|
||||
peer_info,
|
||||
isAudioAllowed,
|
||||
isVideoAllowed,
|
||||
isAudioOn,
|
||||
isVideoOn,
|
||||
roomIsReady,
|
||||
);
|
||||
handleRoomClientEvents();
|
||||
}
|
||||
}
|
||||
|
||||
function roomIsReady() {
|
||||
control.className = '';
|
||||
show(exitButton);
|
||||
show(shareButton);
|
||||
show(recButton);
|
||||
show(startRecButton);
|
||||
show(chatButton);
|
||||
show(chatSendButton);
|
||||
show(chatEmojiButton);
|
||||
if (DetectRTC.isMobileDevice) {
|
||||
show(swapCameraButton);
|
||||
setChatSize();
|
||||
} else {
|
||||
rc.makeDraggable(chatRoom, chatHeader);
|
||||
show(startScreenButton);
|
||||
}
|
||||
if (DetectRTC.browser.name != 'Safari') {
|
||||
document.onfullscreenchange = () => {
|
||||
if (!document.fullscreenElement) rc.isDocumentOnFullScreen = false;
|
||||
};
|
||||
show(fullScreenButton);
|
||||
}
|
||||
show(devicesButton);
|
||||
if (isAudioAllowed) show(startAudioButton);
|
||||
if (isVideoAllowed) show(startVideoButton);
|
||||
show(videoMedia);
|
||||
show(aboutButton);
|
||||
handleButtons();
|
||||
handleSelects();
|
||||
handleInputs();
|
||||
startSessionTimer();
|
||||
}
|
||||
|
||||
function hide(elem) {
|
||||
elem.className = 'hidden';
|
||||
}
|
||||
|
||||
function show(elem) {
|
||||
elem.className = '';
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// SET CHAT MOBILE
|
||||
// ####################################################
|
||||
|
||||
function setChatSize() {
|
||||
document.documentElement.style.setProperty('--msger-width', '99%');
|
||||
document.documentElement.style.setProperty('--msger-height', '99%');
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// SESSION TIMER
|
||||
// ####################################################
|
||||
|
||||
function startSessionTimer() {
|
||||
sessionTime.style.display = 'inline';
|
||||
let callStartTime = Date.now();
|
||||
setInterval(function printTime() {
|
||||
let callElapsedTime = Date.now() - callStartTime;
|
||||
sessionTime.innerHTML = getTimeToString(callElapsedTime);
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
function getTimeToString(time) {
|
||||
let diffInHrs = time / 3600000;
|
||||
let hh = Math.floor(diffInHrs);
|
||||
let diffInMin = (diffInHrs - hh) * 60;
|
||||
let mm = Math.floor(diffInMin);
|
||||
let diffInSec = (diffInMin - mm) * 60;
|
||||
let ss = Math.floor(diffInSec);
|
||||
let formattedHH = hh.toString().padStart(2, '0');
|
||||
let formattedMM = mm.toString().padStart(2, '0');
|
||||
let formattedSS = ss.toString().padStart(2, '0');
|
||||
return `${formattedHH}:${formattedMM}:${formattedSS}`;
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// RECORDING TIMER
|
||||
// ####################################################
|
||||
|
||||
function secondsToHms(d) {
|
||||
d = Number(d);
|
||||
let h = Math.floor(d / 3600);
|
||||
let m = Math.floor((d % 3600) / 60);
|
||||
let s = Math.floor((d % 3600) % 60);
|
||||
let hDisplay = h > 0 ? h + 'h' : '';
|
||||
let mDisplay = m > 0 ? m + 'm' : '';
|
||||
let sDisplay = s > 0 ? s + 's' : '';
|
||||
return hDisplay + ' ' + mDisplay + ' ' + sDisplay;
|
||||
}
|
||||
|
||||
function startRecordingTimer() {
|
||||
recElapsedTime = 0;
|
||||
recTimer = setInterval(function printTime() {
|
||||
if (rc.isRecording()) {
|
||||
recElapsedTime++;
|
||||
recordingStatus.innerHTML = '🔴 REC ' + secondsToHms(recElapsedTime);
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
function stopRecordingTimer() {
|
||||
clearInterval(recTimer);
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// HTML BUTTONS
|
||||
// ####################################################
|
||||
|
||||
function handleButtons() {
|
||||
exitButton.onclick = () => {
|
||||
rc.exit();
|
||||
};
|
||||
shareButton.onclick = () => {
|
||||
shareRoom(true);
|
||||
};
|
||||
devicesButton.onclick = () => {
|
||||
rc.toggleDevices();
|
||||
};
|
||||
chatButton.onclick = () => {
|
||||
rc.toggleChat();
|
||||
};
|
||||
chatCleanButton.onclick = () => {
|
||||
rc.chatClean();
|
||||
};
|
||||
chatSaveButton.onclick = () => {
|
||||
rc.chatSave();
|
||||
};
|
||||
chatCloseButton.onclick = () => {
|
||||
rc.toggleChat();
|
||||
};
|
||||
chatSendButton.onclick = () => {
|
||||
rc.sendMessage();
|
||||
};
|
||||
chatEmojiButton.onclick = () => {
|
||||
rc.toggleChatEmoji();
|
||||
};
|
||||
fullScreenButton.onclick = () => {
|
||||
rc.toggleFullScreen();
|
||||
};
|
||||
recButton.onclick = () => {
|
||||
rc.toggleRecording();
|
||||
};
|
||||
startRecButton.onclick = () => {
|
||||
rc.startRecording();
|
||||
};
|
||||
stopRecButton.onclick = () => {
|
||||
rc.stopRecording();
|
||||
};
|
||||
pauseRecButton.onclick = () => {
|
||||
rc.pauseRecording();
|
||||
};
|
||||
resumeRecButton.onclick = () => {
|
||||
rc.resumeRecording();
|
||||
};
|
||||
swapCameraButton.onclick = () => {
|
||||
rc.closeThenProduce(RoomClient.mediaType.video, null, true);
|
||||
};
|
||||
startAudioButton.onclick = () => {
|
||||
rc.produce(RoomClient.mediaType.audio, microphoneSelect.value);
|
||||
// rc.resumeProducer(RoomClient.mediaType.audio);
|
||||
};
|
||||
stopAudioButton.onclick = () => {
|
||||
rc.closeProducer(RoomClient.mediaType.audio);
|
||||
// rc.pauseProducer(RoomClient.mediaType.audio);
|
||||
};
|
||||
startVideoButton.onclick = () => {
|
||||
rc.produce(RoomClient.mediaType.video, videoSelect.value);
|
||||
// rc.resumeProducer(RoomClient.mediaType.video);
|
||||
};
|
||||
stopVideoButton.onclick = () => {
|
||||
rc.closeProducer(RoomClient.mediaType.video);
|
||||
// rc.pauseProducer(RoomClient.mediaType.video);
|
||||
};
|
||||
startScreenButton.onclick = () => {
|
||||
rc.produce(RoomClient.mediaType.screen);
|
||||
};
|
||||
stopScreenButton.onclick = () => {
|
||||
rc.closeProducer(RoomClient.mediaType.screen);
|
||||
};
|
||||
aboutButton.onclick = () => {
|
||||
showAbout();
|
||||
};
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// HTML SELECTS
|
||||
// ####################################################
|
||||
|
||||
function handleSelects() {
|
||||
microphoneSelect.onchange = () => {
|
||||
rc.closeThenProduce(RoomClient.mediaType.audio, microphoneSelect.value);
|
||||
};
|
||||
speakerSelect.onchange = () => {
|
||||
rc.attachSinkId(localMedia, speakerSelect.value);
|
||||
};
|
||||
videoSelect.onchange = () => {
|
||||
rc.closeThenProduce(RoomClient.mediaType.video, videoSelect.value);
|
||||
};
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// HTML INPUTS
|
||||
// ####################################################
|
||||
|
||||
function handleInputs() {
|
||||
chatMessage.onkeyup = (e) => {
|
||||
if (e.keyCode === 13) {
|
||||
e.preventDefault();
|
||||
chatSendButton.click();
|
||||
}
|
||||
};
|
||||
rc.getId('chatEmoji').addEventListener('emoji-click', (e) => {
|
||||
chatMessage.value += e.detail.emoji.unicode;
|
||||
rc.toggleChatEmoji();
|
||||
});
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// ROOM CLIENT EVENT LISTNERS
|
||||
// ####################################################
|
||||
|
||||
function handleRoomClientEvents() {
|
||||
rc.on(RoomClient.EVENTS.startRec, () => {
|
||||
hide(startRecButton);
|
||||
show(stopRecButton);
|
||||
show(pauseRecButton);
|
||||
startRecordingTimer();
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.pauseRec, () => {
|
||||
hide(pauseRecButton);
|
||||
show(resumeRecButton);
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.resumeRec, () => {
|
||||
hide(resumeRecButton);
|
||||
show(pauseRecButton);
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.stopRec, () => {
|
||||
hide(stopRecButton);
|
||||
hide(pauseRecButton);
|
||||
hide(resumeRecButton);
|
||||
show(startRecButton);
|
||||
stopRecordingTimer();
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.startAudio, () => {
|
||||
hide(startAudioButton);
|
||||
show(stopAudioButton);
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.pauseAudio, () => {
|
||||
console.log('Room Client pause audio');
|
||||
hide(stopAudioButton);
|
||||
show(startAudioButton);
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.resumeAudio, () => {
|
||||
console.log('Room Client resume audio');
|
||||
hide(startAudioButton);
|
||||
show(stopAudioButton);
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.stopAudio, () => {
|
||||
hide(stopAudioButton);
|
||||
show(startAudioButton);
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.startVideo, () => {
|
||||
hide(startVideoButton);
|
||||
show(stopVideoButton);
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.pauseVideo, () => {
|
||||
console.log('Room Client pause video');
|
||||
hide(stopVideoButton);
|
||||
show(startVideoButton);
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.resumeVideo, () => {
|
||||
console.log('Room Client resume video');
|
||||
hide(startVideoButton);
|
||||
show(stopVideoButton);
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.stopVideo, () => {
|
||||
hide(stopVideoButton);
|
||||
show(startVideoButton);
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.startScreen, () => {
|
||||
hide(startScreenButton);
|
||||
show(stopScreenButton);
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.pauseScreen, () => {
|
||||
console.log('Room Client pause screen');
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.resumeScreen, () => {
|
||||
console.log('Room Client resume screen');
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.stopScreen, () => {
|
||||
hide(stopScreenButton);
|
||||
show(startScreenButton);
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.exitRoom, () => {
|
||||
window.location.href = '/newroom';
|
||||
});
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// SHOW LOG
|
||||
// ####################################################
|
||||
|
||||
function userLog(icon, message, position) {
|
||||
const Toast = Swal.mixin({
|
||||
background: swalBackground,
|
||||
toast: true,
|
||||
position: position,
|
||||
showConfirmButton: false,
|
||||
timer: 3000,
|
||||
});
|
||||
Toast.fire({
|
||||
icon: icon,
|
||||
title: message,
|
||||
});
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// SOUND
|
||||
// ####################################################
|
||||
|
||||
async function sound(name) {
|
||||
let sound = '../sounds/' + name + '.wav';
|
||||
let audioToPlay = new Audio(sound);
|
||||
try {
|
||||
await audioToPlay.play();
|
||||
} catch (err) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// ABOUT
|
||||
// ####################################################
|
||||
|
||||
function showAbout() {
|
||||
sound('open');
|
||||
|
||||
Swal.fire({
|
||||
background: swalBackground,
|
||||
imageUrl: swalImageUrl,
|
||||
position: 'center',
|
||||
html: `
|
||||
<br/>
|
||||
<div id="about">
|
||||
<b>Open Source</b> project on
|
||||
<a href="https://github.com/miroslavpejic85/mirotalksfu" target="_blank"><br/><br />
|
||||
<img alt="mirotalksfu-github" src="../images/github.png"></a><br/><br />
|
||||
<button class="far fa-heart pulsate" onclick="window.open('https://github.com/sponsors/miroslavpejic85?o=esb')"> Sponsor</button>
|
||||
<br /><br />
|
||||
Contact: <a href="https://www.linkedin.com/in/miroslav-pejic-976a07101/" target="_blank"> Miroslav Pejic</a>
|
||||
</div>
|
||||
`,
|
||||
showClass: {
|
||||
popup: 'animate__animated animate__fadeInUp',
|
||||
},
|
||||
hideClass: {
|
||||
popup: 'animate__animated animate__fadeOutUp',
|
||||
},
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
!(function () {
|
||||
window;
|
||||
const e = document.documentElement;
|
||||
if ((e.classList.remove('no-js'), e.classList.add('js'), document.body.classList.contains('has-animations'))) {
|
||||
(window.sr = ScrollReveal()).reveal('.feature, .pricing-table-inner', {
|
||||
duration: 600,
|
||||
distance: '20px',
|
||||
easing: 'cubic-bezier(0.5, -0.01, 0, 1.005)',
|
||||
origin: 'bottom',
|
||||
interval: 100,
|
||||
}),
|
||||
e.classList.add('anime-ready'),
|
||||
anime
|
||||
.timeline({ targets: '.hero-figure-box-05' })
|
||||
.add({
|
||||
duration: 400,
|
||||
easing: 'easeInOutExpo',
|
||||
scaleX: [0.05, 0.05],
|
||||
scaleY: [0, 1],
|
||||
perspective: '500px',
|
||||
delay: anime.random(0, 400),
|
||||
})
|
||||
.add({ duration: 400, easing: 'easeInOutExpo', scaleX: 1 })
|
||||
.add({
|
||||
duration: 800,
|
||||
rotateY: '-15deg',
|
||||
rotateX: '8deg',
|
||||
rotateZ: '-1deg',
|
||||
}),
|
||||
anime
|
||||
.timeline({ targets: '.hero-figure-box-06, .hero-figure-box-07' })
|
||||
.add({
|
||||
duration: 400,
|
||||
easing: 'easeInOutExpo',
|
||||
scaleX: [0.05, 0.05],
|
||||
scaleY: [0, 1],
|
||||
perspective: '500px',
|
||||
delay: anime.random(0, 400),
|
||||
})
|
||||
.add({ duration: 400, easing: 'easeInOutExpo', scaleX: 1 })
|
||||
.add({ duration: 800, rotateZ: '20deg' }),
|
||||
anime({
|
||||
targets:
|
||||
'.hero-figure-box-01, .hero-figure-box-02, .hero-figure-box-03, .hero-figure-box-04, .hero-figure-box-08, .hero-figure-box-09, .hero-figure-box-10',
|
||||
duration: anime.random(600, 800),
|
||||
delay: anime.random(600, 800),
|
||||
rotate: [
|
||||
anime.random(-360, 360),
|
||||
function (e) {
|
||||
return e.getAttribute('data-rotation');
|
||||
},
|
||||
],
|
||||
scale: [0.7, 1],
|
||||
opacity: [0, 1],
|
||||
easing: 'easeInOutExpo',
|
||||
});
|
||||
}
|
||||
})();
|
||||
@ -0,0 +1,155 @@
|
||||
'use strict';
|
||||
|
||||
let adjectives = [
|
||||
'small',
|
||||
'big',
|
||||
'large',
|
||||
'smelly',
|
||||
'new',
|
||||
'happy',
|
||||
'shiny',
|
||||
'old',
|
||||
'clean',
|
||||
'nice',
|
||||
'bad',
|
||||
'cool',
|
||||
'hot',
|
||||
'cold',
|
||||
'warm',
|
||||
'hungry',
|
||||
'slow',
|
||||
'fast',
|
||||
'red',
|
||||
'white',
|
||||
'black',
|
||||
'blue',
|
||||
'green',
|
||||
'basic',
|
||||
'strong',
|
||||
'cute',
|
||||
'poor',
|
||||
'nice',
|
||||
'huge',
|
||||
'rare',
|
||||
'lucky',
|
||||
'weak',
|
||||
'tall',
|
||||
'short',
|
||||
'tiny',
|
||||
'great',
|
||||
'long',
|
||||
'single',
|
||||
'rich',
|
||||
'young',
|
||||
'dirty',
|
||||
'fresh',
|
||||
'brown',
|
||||
'dark',
|
||||
'crazy',
|
||||
'sad',
|
||||
'loud',
|
||||
'brave',
|
||||
'calm',
|
||||
'silly',
|
||||
'smart',
|
||||
];
|
||||
|
||||
let nouns = [
|
||||
'dog',
|
||||
'bat',
|
||||
'wrench',
|
||||
'apple',
|
||||
'pear',
|
||||
'ghost',
|
||||
'cat',
|
||||
'wolf',
|
||||
'squid',
|
||||
'goat',
|
||||
'snail',
|
||||
'hat',
|
||||
'sock',
|
||||
'plum',
|
||||
'bear',
|
||||
'snake',
|
||||
'turtle',
|
||||
'horse',
|
||||
'spoon',
|
||||
'fork',
|
||||
'spider',
|
||||
'tree',
|
||||
'chair',
|
||||
'table',
|
||||
'couch',
|
||||
'towel',
|
||||
'panda',
|
||||
'bread',
|
||||
'grape',
|
||||
'cake',
|
||||
'brick',
|
||||
'rat',
|
||||
'mouse',
|
||||
'bird',
|
||||
'oven',
|
||||
'phone',
|
||||
'photo',
|
||||
'frog',
|
||||
'bear',
|
||||
'camel',
|
||||
'sheep',
|
||||
'shark',
|
||||
'tiger',
|
||||
'zebra',
|
||||
'duck',
|
||||
'eagle',
|
||||
'fish',
|
||||
'kitten',
|
||||
'lobster',
|
||||
'monkey',
|
||||
'owl',
|
||||
'puppy',
|
||||
'pig',
|
||||
'rabbit',
|
||||
'fox',
|
||||
'whale',
|
||||
'beaver',
|
||||
'gorilla',
|
||||
'lizard',
|
||||
'parrot',
|
||||
'sloth',
|
||||
'swan',
|
||||
];
|
||||
|
||||
function getRandomNumber(length) {
|
||||
let result = '';
|
||||
let characters = '0123456789';
|
||||
let charactersLength = characters.length;
|
||||
for (let i = 0; i < length; i++) {
|
||||
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
let adjective = adjectives[Math.floor(Math.random() * adjectives.length)];
|
||||
let noun = nouns[Math.floor(Math.random() * nouns.length)];
|
||||
let num = getRandomNumber(5);
|
||||
noun = noun.charAt(0).toUpperCase() + noun.substring(1);
|
||||
adjective = adjective.charAt(0).toUpperCase() + adjective.substring(1);
|
||||
document.getElementById('roomName').value = '';
|
||||
|
||||
// ####################################################
|
||||
// TYPPING EFECT
|
||||
// ####################################################
|
||||
|
||||
let i = 0;
|
||||
let txt = num + adjective + noun;
|
||||
let speed = 100;
|
||||
|
||||
function typeWriter() {
|
||||
if (i < txt.length) {
|
||||
document.getElementById('roomName').value += txt.charAt(i);
|
||||
i++;
|
||||
setTimeout(typeWriter, speed);
|
||||
}
|
||||
}
|
||||
|
||||
typeWriter();
|
||||
@ -0,0 +1,246 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="no-js">
|
||||
<head>
|
||||
<!-- Title and Icon -->
|
||||
|
||||
<title>MiroTalk SFU a Free Video Calls and Screen Sharing.</title>
|
||||
<link rel="shortcut icon" href="images/logo.svg" />
|
||||
<link rel="apple-touch-icon" href="images/logo.svg" />
|
||||
|
||||
<!-- Meta Information -->
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<meta
|
||||
name="description"
|
||||
content="MiroTalk SFU powered by WebRTC and mediasoup, Real-time Simple Secure Fast video calls, messaging and screen sharing capabilities in the browser."
|
||||
/>
|
||||
<meta
|
||||
name="keywords"
|
||||
content="webrtc, mediasoup, mediasoup-client, self hosted, voip, sip, real-time communications, chat, messaging, meet, webrtc stun, webrtc turn, video meeting, video chat, video conference, multi video chat, multi video conference, peer to peer, p2p, rtc, alternative to, zoom, microsoft teams, google meet, jitsi, meeting"
|
||||
/>
|
||||
|
||||
<!-- https://ogp.me -->
|
||||
|
||||
<meta property="og:type" content="app-webrtc" />
|
||||
<meta property="og:site_name" content="MiroTalk SFU" />
|
||||
<meta property="og:title" content="Click the link to make a call." />
|
||||
<meta
|
||||
property="og:description"
|
||||
content="MiroTalk SFU calling provides real-time video calls, messaging and screen sharing."
|
||||
/>
|
||||
<meta property="og:image" content="images/mirotalksfu.png" />
|
||||
|
||||
<!-- StyleSheet -->
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,600" />
|
||||
<link rel="stylesheet" href="css/landing.css" />
|
||||
|
||||
<!-- Js scripts -->
|
||||
|
||||
<script src="https://unpkg.com/animejs@3.0.1/lib/anime.min.js"></script>
|
||||
<script src="https://unpkg.com/scrollreveal@4.0.0/dist/scrollreveal.min.js"></script>
|
||||
</head>
|
||||
<body class="is-boxed has-animations">
|
||||
<div class="body-wrap">
|
||||
<header class="site-header">
|
||||
<div class="container">
|
||||
<div class="site-header-inner">
|
||||
<div class="brand header-brand">
|
||||
<h1 class="m-0">
|
||||
<a href="/">
|
||||
<img class="header-logo-image" src="images/logo.svg" alt="mirotalk-logo" />
|
||||
</a>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section class="hero">
|
||||
<div class="container">
|
||||
<div class="hero-inner">
|
||||
<div class="hero-copy">
|
||||
<h1 class="hero-title mt-0">
|
||||
MiroTalk SFU<br />Free browser based real-time video calls.<br />
|
||||
Simple, Secure, Fast.
|
||||
</h1>
|
||||
<p class="hero-paragraph">
|
||||
Start your next video call with a single click. No download, plug-in or login
|
||||
required. Just get straight to talking, messaging and sharing your screen.
|
||||
</p>
|
||||
<div class="hero-cta">
|
||||
<a class="button button-primary pulse" href="/newroom">TRY NOW</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hero-figure anime-element">
|
||||
<svg class="placeholder" width="528" height="396" viewBox="0 0 528 396">
|
||||
<rect width="528" height="396" style="fill: transparent" />
|
||||
</svg>
|
||||
<div class="hero-figure-box hero-figure-box-01" data-rotation="45deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-02" data-rotation="-45deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-03" data-rotation="0deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-04" data-rotation="-135deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-05"></div>
|
||||
<div class="hero-figure-box hero-figure-box-06"></div>
|
||||
<div class="hero-figure-box hero-figure-box-07"></div>
|
||||
<div class="hero-figure-box hero-figure-box-08" data-rotation="-22deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-09" data-rotation="-52deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-10" data-rotation="-50deg"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="features section">
|
||||
<div class="container-sm">
|
||||
<div class="pricing-inner section-inner">
|
||||
<div class="pricing-header text-center">
|
||||
<h2 class="section-title mt-0">
|
||||
Unlimited number of conference rooms and users without call time limitation!
|
||||
</h2>
|
||||
<p class="section-paragraph mb-0">
|
||||
MiroTalk with SFU integrated Server. We engineered a platform with maximum video
|
||||
quality lowest latency that makes your calls crystal clear.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="features-inner section-inner has-bottom-divider">
|
||||
<div class="features-wrap">
|
||||
<div class="feature text-center is-revealing">
|
||||
<div class="feature-inner">
|
||||
<div class="feature-icon">
|
||||
<img src="images/feature-icon-01.svg" alt="mirotalksfu-screen" />
|
||||
</div>
|
||||
<h4 class="feature-title mt-24">Screen Sharing</h4>
|
||||
<p class="text-sm mb-0">
|
||||
Share your screen, application window, present your documents, slides and
|
||||
more.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="feature text-center is-revealing">
|
||||
<div class="feature-inner">
|
||||
<div class="feature-icon">
|
||||
<img src="images/feature-icon-02.svg" alt="mirotalksfu-webcam" />
|
||||
</div>
|
||||
<h4 class="feature-title mt-24">WebCam Streaming</h4>
|
||||
<p class="text-sm mb-0">
|
||||
Having the webcam on, allows participants to make a deeper connection with
|
||||
you. Up to 4k resolution.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="feature text-center is-revealing">
|
||||
<div class="feature-inner">
|
||||
<div class="feature-icon">
|
||||
<img src="images/feature-icon-03.svg" alt="mirotalksfu-audio" />
|
||||
</div>
|
||||
<h4 class="feature-title mt-24">Audio Streaming</h4>
|
||||
<p class="text-sm mb-0">
|
||||
Echo cancellation and noise suppression that makes your audio crystal clear.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="feature text-center is-revealing">
|
||||
<div class="feature-inner">
|
||||
<div class="feature-icon">
|
||||
<img src="images/feature-icon-04.svg" alt="mirotalksfu-chat" />
|
||||
</div>
|
||||
<h4 class="feature-title mt-24">Chat</h4>
|
||||
<p class="text-sm mb-0">
|
||||
Chat with others in meeting with integrated emoji picker to show you
|
||||
feeling.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="feature text-center is-revealing">
|
||||
<div class="feature-inner">
|
||||
<div class="feature-icon">
|
||||
<img src="images/feature-icon-05.svg" alt="mirotalksfu-recording" />
|
||||
</div>
|
||||
<h4 class="feature-title mt-24">Recording meeting</h4>
|
||||
<p class="text-sm mb-0">
|
||||
Record your Screen, Video and Audio on Your browser Blobs. Save it for use
|
||||
it in future or to share with others.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="feature text-center is-revealing">
|
||||
<div class="feature-inner">
|
||||
<div class="feature-icon">
|
||||
<img src="images/feature-icon-06.svg" alt="mirotalksfu-recording" />
|
||||
</div>
|
||||
<h4 class="feature-title mt-24">Total privacy</h4>
|
||||
<p class="text-sm mb-0">
|
||||
Data stays between you and your participants. MiroTalk SFU don't collect or
|
||||
share personal information.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="cta section">
|
||||
<div class="container">
|
||||
<h1 align="center">Meet the team</h1>
|
||||
<div align="center">
|
||||
<img src="images/miroslav-pejic.png" alt="Team member author" width="180" height="180" />
|
||||
<br />
|
||||
<a target="_blank" href="https://www.linkedin.com/in/miroslav-pejic-976a07101/">
|
||||
<h5 class="mt-0 mb-4">Miroslav Pejic</h5>
|
||||
</a>
|
||||
Full Stack Developer
|
||||
<br />
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="brand footer-brand">
|
||||
<a href="/">
|
||||
<img class="header-logo-image" src="images/logo.svg" alt="Logo" />
|
||||
</a>
|
||||
</div>
|
||||
<ul class="footer-links list-reset">
|
||||
<li>
|
||||
Contact:
|
||||
<a target="_blank" href="https://www.linkedin.com/in/miroslav-pejic-976a07101/"
|
||||
>Miroslav Pejic</a
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="footer-social-links list-reset">
|
||||
<li>
|
||||
<a target="_blank" href="https://github.com/miroslavpejic85/mirotalksfu">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<title>GitHub</title>
|
||||
<path
|
||||
d="M7.95 0C3.578 0 0 3.578 0 7.95c0 3.479 2.286 6.46 5.466 7.553.397.1.497-.199.497-.397v-1.392c-2.187.497-2.683-.994-2.683-.994-.398-.894-.895-1.192-.895-1.192-.696-.497.1-.497.1-.497.795.1 1.192.795 1.192.795.696 1.292 1.888.894 2.286.696.1-.497.298-.895.497-1.093-1.79-.2-3.578-.895-3.578-3.976 0-.894.298-1.59.795-2.087-.1-.198-.397-.993.1-2.086 0 0 .695-.2 2.186.795a6.408 6.408 0 0 1 1.987-.299c.696 0 1.392.1 1.988.299 1.49-.994 2.186-.795 2.186-.795.398 1.093.199 1.888.1 2.086.496.597.795 1.292.795 2.087 0 3.081-1.889 3.677-3.677 3.876.298.398.596.895.596 1.59v2.187c0 .198.1.496.596.397C13.714 14.41 16 11.43 16 7.95 15.9 3.578 12.323 0 7.95 0z"
|
||||
fill="#0270D7"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="footer-copyright">© 2021 MiroTalk SFU, all rights reserved</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="js/landing.js"></script>
|
||||
<script src="js/gtag.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,2 @@
|
||||
const client = require('mediasoup-client');
|
||||
window.mediasoupClient = client;
|
||||
@ -0,0 +1,159 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="no-js">
|
||||
<head>
|
||||
<!-- Title and Icon -->
|
||||
|
||||
<title>MiroTalk SFU - Create your Room name and start the new call.</title>
|
||||
<link rel="shortcut icon" href="images/logo.svg" />
|
||||
<link rel="apple-touch-icon" href="images/logo.svg" />
|
||||
|
||||
<!-- Meta Information -->
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<meta
|
||||
name="description"
|
||||
content="MiroTalk SFU powered by WebRTC and mediasoup, Real-time secure video calls, messaging and screen sharing capabilities in the browser."
|
||||
/>
|
||||
<meta
|
||||
name="keywords"
|
||||
content="webrtc, mediasoup, mediasoup-client, self hosted, voip, sip, real-time communications, chat, messaging, meet, webrtc stun, webrtc turn, video meeting, video chat, video conference, multi video chat, multi video conference, peer to peer, p2p, rtc, alternative to, zoom, microsoft teams, google meet, jitsi, meeting"
|
||||
/>
|
||||
|
||||
<!-- https://ogp.me -->
|
||||
|
||||
<meta property="og:type" content="app-webrtc" />
|
||||
<meta property="og:site_name" content="MiroTalk SFU" />
|
||||
<meta property="og:title" content="Click the link to make a call." />
|
||||
<meta
|
||||
property="og:description"
|
||||
content="MiroTalk SFU calling provides real-time video calls, messaging and screen sharing."
|
||||
/>
|
||||
<meta property="og:image" content="images/mirotalksfu.png" />
|
||||
|
||||
<!-- StyleSheet -->
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,600" />
|
||||
<link rel="stylesheet" href="css/landing.css" />
|
||||
|
||||
<!-- Js scripts -->
|
||||
|
||||
<script src="https://unpkg.com/animejs@3.0.1/lib/anime.min.js"></script>
|
||||
<script src="https://unpkg.com/scrollreveal@4.0.0/dist/scrollreveal.min.js"></script>
|
||||
</head>
|
||||
<body class="is-boxed has-animations">
|
||||
<div class="body-wrap">
|
||||
<header class="site-header">
|
||||
<div class="container">
|
||||
<div class="site-header-inner">
|
||||
<div class="brand header-brand">
|
||||
<h1 class="m-0">
|
||||
<a href="/">
|
||||
<img class="header-logo-image" src="images/logo.svg" alt="Logo" />
|
||||
</a>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section class="hero">
|
||||
<div class="container">
|
||||
<div class="hero-inner">
|
||||
<div class="hero-copy">
|
||||
<h1 class="hero-title mt-0">
|
||||
Pick name. <br />
|
||||
Share URL. <br />
|
||||
Start conference.
|
||||
</h1>
|
||||
<p class="hero-paragraph">
|
||||
Each room has its own disposable URL. Just pick a room name and share your custom
|
||||
URL. It's really that easy.
|
||||
</p>
|
||||
</div>
|
||||
<div class="hero-figure anime-element">
|
||||
<svg class="placeholder" width="528" height="396" viewBox="0 0 528 396">
|
||||
<rect width="528" height="396" style="fill: transparent" />
|
||||
</svg>
|
||||
<div class="hero-figure-box hero-figure-box-01" data-rotation="45deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-02" data-rotation="-45deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-03" data-rotation="0deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-04" data-rotation="-135deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-05"></div>
|
||||
<div class="hero-figure-box hero-figure-box-06"></div>
|
||||
<div class="hero-figure-box hero-figure-box-07"></div>
|
||||
<div class="hero-figure-box hero-figure-box-08" data-rotation="-22deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-09" data-rotation="-52deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-10" data-rotation="-50deg"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<hr />
|
||||
|
||||
<section class="cta section">
|
||||
<div class="container">
|
||||
<div class="cta-inner section-inner">
|
||||
<h3 class="section-title mt-0">
|
||||
Pick a room name.<br />
|
||||
How about this one?
|
||||
</h3>
|
||||
<div>
|
||||
<div class="mb-24">
|
||||
<label for="roomName"></label>
|
||||
<input class="button" type="text" id="roomName" value="" />
|
||||
<button
|
||||
class="button button-primary button-wide-mobile pulse"
|
||||
onclick="{window.location.href = '/join/' + document.getElementById('roomName').value}"
|
||||
>
|
||||
Join to room
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="brand footer-brand">
|
||||
<a href="/">
|
||||
<img class="header-logo-image" src="images/logo.svg" alt="Logo" />
|
||||
</a>
|
||||
</div>
|
||||
<ul class="footer-links list-reset">
|
||||
<li>
|
||||
Contact:
|
||||
<a target="_blank" href="https://www.linkedin.com/in/miroslav-pejic-976a07101/"
|
||||
>Miroslav Pejic</a
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="footer-social-links list-reset">
|
||||
<li>
|
||||
<a target="_blank" href="https://github.com/miroslavpejic85/mirotalksfu">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<title>GitHub</title>
|
||||
<path
|
||||
d="M7.95 0C3.578 0 0 3.578 0 7.95c0 3.479 2.286 6.46 5.466 7.553.397.1.497-.199.497-.397v-1.392c-2.187.497-2.683-.994-2.683-.994-.398-.894-.895-1.192-.895-1.192-.696-.497.1-.497.1-.497.795.1 1.192.795 1.192.795.696 1.292 1.888.894 2.286.696.1-.497.298-.895.497-1.093-1.79-.2-3.578-.895-3.578-3.976 0-.894.298-1.59.795-2.087-.1-.198-.397-.993.1-2.086 0 0 .695-.2 2.186.795a6.408 6.408 0 0 1 1.987-.299c.696 0 1.392.1 1.988.299 1.49-.994 2.186-.795 2.186-.795.398 1.093.199 1.888.1 2.086.496.597.795 1.292.795 2.087 0 3.081-1.889 3.677-3.677 3.876.298.398.596.895.596 1.59v2.187c0 .198.1.496.596.397C13.714 14.41 16 11.43 16 7.95 15.9 3.578 12.323 0 7.95 0z"
|
||||
fill="#0270D7"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="footer-copyright">© 2021 MiroTalk SFU, all rights reserved</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="js/landing.js"></script>
|
||||
<script src="js/newroom.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,139 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="no-js">
|
||||
<head>
|
||||
<!-- Title and Icon -->
|
||||
|
||||
<title>MiroTalk SFU - Allow Video or Audio access to join in the Room.</title>
|
||||
<link rel="shortcut icon" href="images/logo.svg" />
|
||||
<link rel="apple-touch-icon" href="images/logo.svg" />
|
||||
|
||||
<!-- Meta Information -->
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<!-- https://ogp.me -->
|
||||
|
||||
<meta property="og:type" content="app-webrtc" />
|
||||
<meta property="og:site_name" content="MiroTalk SFU" />
|
||||
<meta property="og:title" content="Click the link to make a call." />
|
||||
<meta
|
||||
property="og:description"
|
||||
content="MiroTalk SFU calling provides real-time HD quality and latency simply not available with traditional technology."
|
||||
/>
|
||||
<meta property="og:image" content="/images/mirotalksfu.png" />
|
||||
|
||||
<!-- StyleSheet -->
|
||||
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,600" />
|
||||
<link rel="stylesheet" href="css/landing.css" />
|
||||
|
||||
<!-- Js scripts -->
|
||||
|
||||
<script src="https://unpkg.com/animejs@3.0.1/lib/anime.min.js"></script>
|
||||
<script src="https://unpkg.com/scrollreveal@4.0.0/dist/scrollreveal.min.js"></script>
|
||||
</head>
|
||||
<body class="is-boxed has-animations">
|
||||
<div class="body-wrap">
|
||||
<header class="site-header">
|
||||
<div class="container">
|
||||
<div class="site-header-inner">
|
||||
<div class="brand header-brand">
|
||||
<h1 class="m-0">
|
||||
<a href="/">
|
||||
<img class="header-logo-image" src="images/logo.svg" alt="Logo" />
|
||||
</a>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section class="hero">
|
||||
<div class="container">
|
||||
<div class="hero-inner">
|
||||
<div class="hero-copy">
|
||||
<h1 class="hero-title mt-0">Access denied.</h1>
|
||||
<p class="hero-paragraph" id="message"></p>
|
||||
<p class="hero-paragraph">
|
||||
This app will not work without camera or microphone access. Please Try again and
|
||||
allow it.
|
||||
</p>
|
||||
<script>
|
||||
let qs = new URLSearchParams(window.location.search);
|
||||
let room_id = qs.get('room_id');
|
||||
let message = qs.get('message');
|
||||
console.log('Allow Camera or Audio', {
|
||||
room_id: room_id,
|
||||
message: message,
|
||||
});
|
||||
document.getElementById('message').innerHTML = message;
|
||||
</script>
|
||||
<div class="hero-cta">
|
||||
<a
|
||||
class="button button-primary pulse"
|
||||
onclick="room_id ? window.location.href = '/join/' + room_id : window.location.href = '/newroom';"
|
||||
>TRY AGAIN</a
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hero-figure anime-element">
|
||||
<svg class="placeholder" width="528" height="396" viewBox="0 0 528 396">
|
||||
<rect width="528" height="396" style="fill: transparent" />
|
||||
</svg>
|
||||
<div class="hero-figure-box hero-figure-box-01" data-rotation="45deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-02" data-rotation="-45deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-03" data-rotation="0deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-04" data-rotation="-135deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-05"></div>
|
||||
<div class="hero-figure-box hero-figure-box-06"></div>
|
||||
<div class="hero-figure-box hero-figure-box-07"></div>
|
||||
<div class="hero-figure-box hero-figure-box-08" data-rotation="-22deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-09" data-rotation="-52deg"></div>
|
||||
<div class="hero-figure-box hero-figure-box-10" data-rotation="-50deg"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="brand footer-brand">
|
||||
<a href="/">
|
||||
<img class="header-logo-image" src="images/logo.svg" alt="Logo" />
|
||||
</a>
|
||||
</div>
|
||||
<ul class="footer-links list-reset">
|
||||
<li>
|
||||
Contact:
|
||||
<a target="_blank" href="https://www.linkedin.com/in/miroslav-pejic-976a07101/"
|
||||
>Miroslav Pejic</a
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="footer-social-links list-reset">
|
||||
<li>
|
||||
<a target="_blank" href="https://github.com/miroslavpejic85/mirotalksfu">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<title>GitHub</title>
|
||||
<path
|
||||
d="M7.95 0C3.578 0 0 3.578 0 7.95c0 3.479 2.286 6.46 5.466 7.553.397.1.497-.199.497-.397v-1.392c-2.187.497-2.683-.994-2.683-.994-.398-.894-.895-1.192-.895-1.192-.696-.497.1-.497.1-.497.795.1 1.192.795 1.192.795.696 1.292 1.888.894 2.286.696.1-.497.298-.895.497-1.093-1.79-.2-3.578-.895-3.578-3.976 0-.894.298-1.59.795-2.087-.1-.198-.397-.993.1-2.086 0 0 .695-.2 2.186.795a6.408 6.408 0 0 1 1.987-.299c.696 0 1.392.1 1.988.299 1.49-.994 2.186-.795 2.186-.795.398 1.093.199 1.888.1 2.086.496.597.795 1.292.795 2.087 0 3.081-1.889 3.677-3.677 3.876.298.398.596.895.596 1.59v2.187c0 .198.1.496.596.397C13.714 14.41 16 11.43 16 7.95 15.9 3.578 12.323 0 7.95 0z"
|
||||
fill="#0270D7"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="footer-copyright">© 2021 MiroTalk SFU, all rights reserved</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="js/landing.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,3 @@
|
||||
# Allow crawling of all content
|
||||
User-agent: *
|
||||
Disallow:
|
||||
@ -0,0 +1,25 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = class Logger {
|
||||
constructor(appName, debugOn = true) {
|
||||
if (appName) this.appName = appName;
|
||||
else this.appName = 'mirotalk';
|
||||
this.debugOn = debugOn;
|
||||
}
|
||||
|
||||
debug(msg, op = '') {
|
||||
if (this.debugOn === false) return;
|
||||
let dataTime = new Date().toISOString().replace(/T/, ' ').replace(/Z/, '');
|
||||
console.log('[' + dataTime + '] [' + this.appName + '] ' + msg, op);
|
||||
}
|
||||
|
||||
warn(msg, op = '') {
|
||||
let dataTime = new Date().toISOString().replace(/T/, ' ').replace(/Z/, '');
|
||||
console.warn('[' + dataTime + '] [' + this.appName + '] ' + msg, op);
|
||||
}
|
||||
|
||||
error(msg, op = '') {
|
||||
let dataTime = new Date().toISOString().replace(/T/, ' ').replace(/Z/, '');
|
||||
console.error('[' + dataTime + '] [' + this.appName + '] ' + msg, op);
|
||||
}
|
||||
};
|
||||
@ -0,0 +1,133 @@
|
||||
'use strict';
|
||||
|
||||
const Logger = require('./Logger');
|
||||
const log = new Logger('Peer');
|
||||
|
||||
module.exports = class Peer {
|
||||
constructor(socket_id, data) {
|
||||
this.id = socket_id;
|
||||
this.peer_name = data.peer_name;
|
||||
this.peer_audio = data.peer_audio;
|
||||
this.peer_video = data.peer_video;
|
||||
this.peer_info = data.peer_info;
|
||||
this.transports = new Map();
|
||||
this.consumers = new Map();
|
||||
this.producers = new Map();
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// TRANSPORT
|
||||
// ####################################################
|
||||
|
||||
addTransport(transport) {
|
||||
this.transports.set(transport.id, transport);
|
||||
}
|
||||
|
||||
async connectTransport(transport_id, dtlsParameters) {
|
||||
if (!this.transports.has(transport_id)) return;
|
||||
|
||||
await this.transports.get(transport_id).connect({
|
||||
dtlsParameters: dtlsParameters,
|
||||
});
|
||||
}
|
||||
|
||||
close() {
|
||||
this.transports.forEach((transport) => transport.close());
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// PRODUCER
|
||||
// ####################################################
|
||||
|
||||
getProducer(producer_id) {
|
||||
return this.producers.get(producer_id);
|
||||
}
|
||||
|
||||
async createProducer(producerTransportId, rtpParameters, kind) {
|
||||
let producer = await this.transports.get(producerTransportId).produce({
|
||||
kind,
|
||||
rtpParameters,
|
||||
});
|
||||
|
||||
this.producers.set(producer.id, producer);
|
||||
|
||||
producer.on(
|
||||
'transportclose',
|
||||
function () {
|
||||
log.debug('Producer transport close', {
|
||||
peer_name: this.peer_name,
|
||||
consumer_id: producer.id,
|
||||
});
|
||||
producer.close();
|
||||
this.producers.delete(producer.id);
|
||||
}.bind(this),
|
||||
);
|
||||
|
||||
return producer;
|
||||
}
|
||||
|
||||
closeProducer(producer_id) {
|
||||
try {
|
||||
this.producers.get(producer_id).close();
|
||||
} catch (ex) {
|
||||
log.warn('Close Producer', ex);
|
||||
}
|
||||
this.producers.delete(producer_id);
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// CONSUMER
|
||||
// ####################################################
|
||||
|
||||
async createConsumer(consumer_transport_id, producer_id, rtpCapabilities) {
|
||||
let consumerTransport = this.transports.get(consumer_transport_id);
|
||||
let consumer = null;
|
||||
|
||||
try {
|
||||
consumer = await consumerTransport.consume({
|
||||
producerId: producer_id,
|
||||
rtpCapabilities,
|
||||
paused: false,
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Consume failed', error);
|
||||
return;
|
||||
}
|
||||
|
||||
if (consumer.type === 'simulcast') {
|
||||
await consumer.setPreferredLayers({
|
||||
spatialLayer: 2,
|
||||
temporalLayer: 2,
|
||||
});
|
||||
}
|
||||
|
||||
this.consumers.set(consumer.id, consumer);
|
||||
|
||||
consumer.on(
|
||||
'transportclose',
|
||||
function () {
|
||||
log.debug('Consumer transport close', {
|
||||
peer_name: this.peer_name,
|
||||
consumer_id: consumer.id,
|
||||
});
|
||||
this.consumers.delete(consumer.id);
|
||||
}.bind(this),
|
||||
);
|
||||
|
||||
return {
|
||||
consumer,
|
||||
params: {
|
||||
producerId: producer_id,
|
||||
id: consumer.id,
|
||||
kind: consumer.kind,
|
||||
rtpParameters: consumer.rtpParameters,
|
||||
type: consumer.type,
|
||||
producerPaused: consumer.producerPaused,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
removeConsumer(consumer_id) {
|
||||
this.consumers.delete(consumer_id);
|
||||
}
|
||||
};
|
||||
@ -0,0 +1,203 @@
|
||||
'use strict';
|
||||
|
||||
const config = require('./config');
|
||||
const Logger = require('./Logger');
|
||||
const log = new Logger('Room');
|
||||
|
||||
module.exports = class Room {
|
||||
constructor(room_id, worker, io) {
|
||||
this.id = room_id;
|
||||
this.worker = worker;
|
||||
this.router = null;
|
||||
this.io = io;
|
||||
this.peers = new Map();
|
||||
this.createTheRouter();
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// ROUTER
|
||||
// ####################################################
|
||||
|
||||
createTheRouter() {
|
||||
const mediaCodecs = config.mediasoup.router.mediaCodecs;
|
||||
this.worker
|
||||
.createRouter({
|
||||
mediaCodecs,
|
||||
})
|
||||
.then(
|
||||
function (router) {
|
||||
this.router = router;
|
||||
}.bind(this),
|
||||
);
|
||||
}
|
||||
|
||||
getRtpCapabilities() {
|
||||
return this.router.rtpCapabilities;
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// PEERS
|
||||
// ####################################################
|
||||
|
||||
addPeer(peer) {
|
||||
this.peers.set(peer.id, peer);
|
||||
}
|
||||
|
||||
getPeers() {
|
||||
return this.peers;
|
||||
}
|
||||
|
||||
toJson() {
|
||||
return {
|
||||
id: this.id,
|
||||
peers: JSON.stringify([...this.peers]),
|
||||
};
|
||||
}
|
||||
|
||||
getProducerListForPeer() {
|
||||
let producerList = [];
|
||||
this.peers.forEach((peer) => {
|
||||
peer.producers.forEach((producer) => {
|
||||
producerList.push({
|
||||
producer_id: producer.id,
|
||||
peer_name: peer.peer_name,
|
||||
peer_info: peer.peer_info,
|
||||
});
|
||||
});
|
||||
});
|
||||
return producerList;
|
||||
}
|
||||
|
||||
async connectPeerTransport(socket_id, transport_id, dtlsParameters) {
|
||||
if (!this.peers.has(socket_id)) return;
|
||||
await this.peers.get(socket_id).connectTransport(transport_id, dtlsParameters);
|
||||
}
|
||||
|
||||
async removePeer(socket_id) {
|
||||
this.peers.get(socket_id).close();
|
||||
this.peers.delete(socket_id);
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// WEBRTC TRANSPORT
|
||||
// ####################################################
|
||||
|
||||
async createWebRtcTransport(socket_id) {
|
||||
const { maxIncomingBitrate, initialAvailableOutgoingBitrate } = config.mediasoup.webRtcTransport;
|
||||
|
||||
const transport = await this.router.createWebRtcTransport({
|
||||
listenIps: config.mediasoup.webRtcTransport.listenIps,
|
||||
enableUdp: true,
|
||||
enableTcp: true,
|
||||
preferUdp: true,
|
||||
initialAvailableOutgoingBitrate,
|
||||
});
|
||||
|
||||
if (maxIncomingBitrate) {
|
||||
try {
|
||||
await transport.setMaxIncomingBitrate(maxIncomingBitrate);
|
||||
} catch (error) {}
|
||||
}
|
||||
|
||||
transport.on(
|
||||
'dtlsstatechange',
|
||||
function (dtlsState) {
|
||||
if (dtlsState === 'closed') {
|
||||
log.debug('Transport close', { peer_name: this.peers.get(socket_id).peer_name });
|
||||
transport.close();
|
||||
}
|
||||
}.bind(this),
|
||||
);
|
||||
|
||||
transport.on('close', () => {
|
||||
log.debug('Transport close', { peer_name: this.peers.get(socket_id).peer_name });
|
||||
});
|
||||
|
||||
log.debug('Adding transport', { transportId: transport.id });
|
||||
this.peers.get(socket_id).addTransport(transport);
|
||||
return {
|
||||
params: {
|
||||
id: transport.id,
|
||||
iceParameters: transport.iceParameters,
|
||||
iceCandidates: transport.iceCandidates,
|
||||
dtlsParameters: transport.dtlsParameters,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// PRODUCE
|
||||
// ####################################################
|
||||
|
||||
async produce(socket_id, producerTransportId, rtpParameters, kind) {
|
||||
return new Promise(
|
||||
async function (resolve, reject) {
|
||||
let producer = await this.peers.get(socket_id).createProducer(producerTransportId, rtpParameters, kind);
|
||||
resolve(producer.id);
|
||||
this.broadCast(socket_id, 'newProducers', [
|
||||
{
|
||||
producer_id: producer.id,
|
||||
producer_socket_id: socket_id,
|
||||
peer_name: this.peers.get(socket_id).peer_name,
|
||||
},
|
||||
]);
|
||||
}.bind(this),
|
||||
);
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// CONSUME
|
||||
// ####################################################
|
||||
|
||||
async consume(socket_id, consumer_transport_id, producer_id, rtpCapabilities) {
|
||||
if (
|
||||
!this.router.canConsume({
|
||||
producerId: producer_id,
|
||||
rtpCapabilities,
|
||||
})
|
||||
) {
|
||||
log.error('can not consume');
|
||||
return;
|
||||
}
|
||||
|
||||
let { consumer, params } = await this.peers
|
||||
.get(socket_id)
|
||||
.createConsumer(consumer_transport_id, producer_id, rtpCapabilities);
|
||||
|
||||
consumer.on(
|
||||
'producerclose',
|
||||
function () {
|
||||
log.debug('Consumer closed due to producerclose event', {
|
||||
peer_name: this.peers.get(socket_id).peer_name,
|
||||
consumer_id: consumer.id,
|
||||
});
|
||||
this.peers.get(socket_id).removeConsumer(consumer.id);
|
||||
|
||||
// tell client consumer is dead
|
||||
this.io.to(socket_id).emit('consumerClosed', {
|
||||
consumer_id: consumer.id,
|
||||
});
|
||||
}.bind(this),
|
||||
);
|
||||
|
||||
return params;
|
||||
}
|
||||
|
||||
closeProducer(socket_id, producer_id) {
|
||||
this.peers.get(socket_id).closeProducer(producer_id);
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// SENDER
|
||||
// ####################################################
|
||||
|
||||
broadCast(socket_id, peer_name, data) {
|
||||
for (let otherID of Array.from(this.peers.keys()).filter((id) => id !== socket_id)) {
|
||||
this.send(otherID, peer_name, data);
|
||||
}
|
||||
}
|
||||
|
||||
send(socket_id, peer_name, data) {
|
||||
this.io.to(socket_id).emit(peer_name, data);
|
||||
}
|
||||
};
|
||||
@ -0,0 +1,362 @@
|
||||
'use strict';
|
||||
|
||||
const express = require('express');
|
||||
const cors = require('cors');
|
||||
const app = express();
|
||||
const compression = require('compression');
|
||||
const https = require('httpolyglot');
|
||||
const fs = require('fs');
|
||||
const mediasoup = require('mediasoup');
|
||||
const config = require('./config');
|
||||
const path = require('path');
|
||||
const ngrok = require('ngrok');
|
||||
const Room = require('./Room');
|
||||
const Peer = require('./Peer');
|
||||
const ServerApi = require('./ServerApi');
|
||||
const Logger = require('./Logger');
|
||||
const log = new Logger('Server');
|
||||
|
||||
const options = {
|
||||
key: fs.readFileSync(path.join(__dirname, config.sslKey), 'utf-8'),
|
||||
cert: fs.readFileSync(path.join(__dirname, config.sslCrt), 'utf-8'),
|
||||
};
|
||||
|
||||
const httpsServer = https.createServer(options, app);
|
||||
const io = require('socket.io')(httpsServer);
|
||||
const localHost = 'https://' + 'localhost' + ':' + config.listenPort; // config.listenIp
|
||||
|
||||
// all mediasoup workers
|
||||
let workers = [];
|
||||
let nextMediasoupWorkerIdx = 0;
|
||||
|
||||
// all Room lists
|
||||
let roomList = new Map();
|
||||
|
||||
app.use(cors());
|
||||
app.use(compression());
|
||||
app.use(express.static(path.join(__dirname, '..', 'public')));
|
||||
|
||||
// Remove trailing slashes in url handle bad requests
|
||||
app.use((err, req, res, next) => {
|
||||
if (err instanceof SyntaxError && err.status === 400 && 'body' in err) {
|
||||
log.debug('Request Error', {
|
||||
header: req.headers,
|
||||
body: req.body,
|
||||
error: err.message,
|
||||
});
|
||||
return res.status(400).send({ status: 404, message: err.message }); // Bad request
|
||||
}
|
||||
if (req.path.substr(-1) === '/' && req.path.length > 1) {
|
||||
let query = req.url.slice(req.path.length);
|
||||
res.redirect(301, req.path.slice(0, -1) + query);
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
});
|
||||
|
||||
// all start from here
|
||||
app.get(['/'], (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '..', 'public/landing.html'));
|
||||
});
|
||||
|
||||
// set new room name and join
|
||||
app.get(['/newroom'], (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '..', 'public/newroom.html'));
|
||||
});
|
||||
|
||||
// if not allow video/audio
|
||||
app.get(['/permission'], (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '..', 'public/permission.html'));
|
||||
});
|
||||
|
||||
// no room name specified to join
|
||||
app.get('/join/', (req, res) => {
|
||||
res.redirect('/');
|
||||
});
|
||||
|
||||
// join to room
|
||||
app.get('/join/*', (req, res) => {
|
||||
if (Object.keys(req.query).length > 0) {
|
||||
log.debug('redirect:' + req.url + ' to ' + url.parse(req.url).pathname);
|
||||
res.redirect(url.parse(req.url).pathname);
|
||||
} else {
|
||||
res.sendFile(path.join(__dirname, '..', 'public/Room.html'));
|
||||
}
|
||||
});
|
||||
|
||||
// ####################################################
|
||||
// API
|
||||
// ####################################################
|
||||
|
||||
// Api parse body data as json
|
||||
app.use(express.json());
|
||||
|
||||
// request meeting room endpoint
|
||||
app.post(['/api/v1/meeting'], (req, res) => {
|
||||
// check if user was authorized for the api call
|
||||
let host = req.headers.host;
|
||||
let authorization = req.headers.authorization;
|
||||
let api = new ServerApi(host, authorization);
|
||||
if (!api.isAuthorized()) {
|
||||
log.debug('MiroTalk get meeting - Unauthorized', {
|
||||
header: req.headers,
|
||||
body: req.body,
|
||||
});
|
||||
return res.status(403).json({ error: 'Unauthorized!' });
|
||||
}
|
||||
// setup meeting URL
|
||||
let meetingURL = api.getMeetingURL();
|
||||
res.setHeader('Content-Type', 'application/json');
|
||||
res.end(JSON.stringify({ meeting: meetingURL }));
|
||||
// log.debug the output if all done
|
||||
log.debug('MiroTalk get meeting - Authorized', {
|
||||
header: req.headers,
|
||||
body: req.body,
|
||||
meeting: meetingURL,
|
||||
});
|
||||
});
|
||||
|
||||
// ####################################################
|
||||
// NGROK
|
||||
// ####################################################
|
||||
|
||||
async function ngrokStart() {
|
||||
try {
|
||||
await ngrok.authtoken(config.ngrokAuthToken);
|
||||
await ngrok.connect(config.listenPort);
|
||||
let api = ngrok.getApi();
|
||||
let data = await api.listTunnels();
|
||||
let pu0 = data.tunnels[0].public_url;
|
||||
let pu1 = data.tunnels[1].public_url;
|
||||
let tunnel = pu0.startsWith('https') ? pu0 : pu1;
|
||||
log.debug('Listening on', {
|
||||
https: localHost,
|
||||
ngrok: tunnel,
|
||||
});
|
||||
} catch (err) {
|
||||
console.error('Ngrok Start error: ', err);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// START SERVER
|
||||
// ####################################################
|
||||
|
||||
httpsServer.listen(config.listenPort, () => {
|
||||
if (config.ngrokAuthToken !== '') {
|
||||
ngrokStart();
|
||||
return;
|
||||
}
|
||||
log.debug('Listening on', {
|
||||
https: localHost,
|
||||
});
|
||||
});
|
||||
|
||||
// ####################################################
|
||||
// WORKERS
|
||||
// ####################################################
|
||||
|
||||
(async () => {
|
||||
await createWorkers();
|
||||
})();
|
||||
|
||||
async function createWorkers() {
|
||||
let { numWorkers } = config.mediasoup;
|
||||
|
||||
for (let i = 0; i < numWorkers; i++) {
|
||||
let worker = await mediasoup.createWorker({
|
||||
logLevel: config.mediasoup.worker.logLevel,
|
||||
logTags: config.mediasoup.worker.logTags,
|
||||
rtcMinPort: config.mediasoup.worker.rtcMinPort,
|
||||
rtcMaxPort: config.mediasoup.worker.rtcMaxPort,
|
||||
});
|
||||
worker.on('died', () => {
|
||||
console.error('Mediasoup worker died, exiting in 2 seconds... [pid:%d]', worker.pid);
|
||||
setTimeout(() => process.exit(1), 2000);
|
||||
});
|
||||
workers.push(worker);
|
||||
}
|
||||
}
|
||||
|
||||
async function getMediasoupWorker() {
|
||||
const worker = workers[nextMediasoupWorkerIdx];
|
||||
if (++nextMediasoupWorkerIdx === workers.length) nextMediasoupWorkerIdx = 0;
|
||||
return worker;
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// SOCKET IO
|
||||
// ####################################################
|
||||
|
||||
io.on('connection', (socket) => {
|
||||
socket.on('createRoom', async ({ room_id }, callback) => {
|
||||
socket.room_id = room_id;
|
||||
|
||||
if (roomList.has(socket.room_id)) {
|
||||
callback('already exists');
|
||||
} else {
|
||||
log.debug('Created room', { room_id: socket.room_id });
|
||||
let worker = await getMediasoupWorker();
|
||||
roomList.set(socket.room_id, new Room(socket.room_id, worker, io));
|
||||
callback(socket.room_id);
|
||||
}
|
||||
});
|
||||
|
||||
socket.on('join', (data, cb) => {
|
||||
log.debug('User joined', data);
|
||||
|
||||
if (!roomList.has(socket.room_id)) {
|
||||
return cb({
|
||||
error: 'Room does not exist',
|
||||
});
|
||||
}
|
||||
|
||||
roomList.get(socket.room_id).addPeer(new Peer(socket.id, data));
|
||||
cb(roomList.get(socket.room_id).toJson());
|
||||
});
|
||||
|
||||
socket.on('getRouterRtpCapabilities', (_, callback) => {
|
||||
log.debug('Get RouterRtpCapabilities', getPeerName());
|
||||
try {
|
||||
callback(roomList.get(socket.room_id).getRtpCapabilities());
|
||||
} catch (err) {
|
||||
callback({
|
||||
error: err.message,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
socket.on('getProducers', () => {
|
||||
if (!roomList.has(socket.room_id)) return;
|
||||
|
||||
log.debug('Get producers', getPeerName());
|
||||
|
||||
// send all the current producer to newly joined member
|
||||
let producerList = roomList.get(socket.room_id).getProducerListForPeer();
|
||||
|
||||
socket.emit('newProducers', producerList);
|
||||
});
|
||||
|
||||
socket.on('createWebRtcTransport', async (_, callback) => {
|
||||
log.debug('Create webrtc transport', getPeerName());
|
||||
try {
|
||||
const { params } = await roomList.get(socket.room_id).createWebRtcTransport(socket.id);
|
||||
callback(params);
|
||||
} catch (err) {
|
||||
console.error('Create WebRtc Transport error: ', err);
|
||||
callback({
|
||||
error: err.message,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
socket.on('connectTransport', async ({ transport_id, dtlsParameters }, callback) => {
|
||||
log.debug('Connect transport', getPeerName());
|
||||
|
||||
if (!roomList.has(socket.room_id)) return;
|
||||
await roomList.get(socket.room_id).connectPeerTransport(socket.id, transport_id, dtlsParameters);
|
||||
|
||||
callback('success');
|
||||
});
|
||||
|
||||
socket.on('produce', async ({ kind, rtpParameters, producerTransportId }, callback) => {
|
||||
if (!roomList.has(socket.room_id)) {
|
||||
return callback({ error: 'Room not found' });
|
||||
}
|
||||
|
||||
let producer_id = await roomList
|
||||
.get(socket.room_id)
|
||||
.produce(socket.id, producerTransportId, rtpParameters, kind);
|
||||
|
||||
log.debug('Produce', {
|
||||
kind: kind,
|
||||
peer_name: getPeerName(false),
|
||||
producer_id: producer_id,
|
||||
});
|
||||
|
||||
callback({
|
||||
producer_id,
|
||||
});
|
||||
});
|
||||
|
||||
socket.on('consume', async ({ consumerTransportId, producerId, rtpCapabilities }, callback) => {
|
||||
if (!roomList.has(socket.room_id)) {
|
||||
return callback({ error: 'Room not found' });
|
||||
}
|
||||
|
||||
let params = await roomList
|
||||
.get(socket.room_id)
|
||||
.consume(socket.id, consumerTransportId, producerId, rtpCapabilities);
|
||||
|
||||
log.debug('Consuming', {
|
||||
peer_name: getPeerName(false),
|
||||
producer_id: producerId,
|
||||
consumer_id: params.id,
|
||||
});
|
||||
|
||||
callback(params);
|
||||
});
|
||||
|
||||
socket.on('producerClosed', ({ producer_id }) => {
|
||||
log.debug('Producer close', getPeerName());
|
||||
|
||||
roomList.get(socket.room_id).closeProducer(socket.id, producer_id);
|
||||
});
|
||||
|
||||
socket.on('resume', async (_, callback) => {
|
||||
await consumer.resume();
|
||||
callback();
|
||||
});
|
||||
|
||||
socket.on('getMyRoomInfo', (_, cb) => {
|
||||
cb(roomList.get(socket.room_id).toJson());
|
||||
});
|
||||
|
||||
socket.on('message', (data) => {
|
||||
log.debug('message', data);
|
||||
roomList.get(socket.room_id).broadCast(socket.id, 'message', {
|
||||
peer_name: data.peer_name,
|
||||
peer_msg: data.peer_msg,
|
||||
});
|
||||
});
|
||||
|
||||
socket.on('disconnect', () => {
|
||||
if (!socket.room_id) return;
|
||||
|
||||
log.debug('Disconnect', getPeerName());
|
||||
|
||||
roomList.get(socket.room_id).removePeer(socket.id);
|
||||
});
|
||||
|
||||
socket.on('exitRoom', async (_, callback) => {
|
||||
if (!roomList.has(socket.room_id)) {
|
||||
callback({
|
||||
error: 'Not currently in a room',
|
||||
});
|
||||
return;
|
||||
}
|
||||
log.debug('Exit room', getPeerName());
|
||||
|
||||
// close transports
|
||||
await roomList.get(socket.room_id).removePeer(socket.id);
|
||||
if (roomList.get(socket.room_id).getPeers().size === 0) {
|
||||
roomList.delete(socket.room_id);
|
||||
}
|
||||
|
||||
socket.room_id = null;
|
||||
|
||||
callback('Successfully exited room');
|
||||
});
|
||||
|
||||
// common
|
||||
function getPeerName(json = true) {
|
||||
if (json) {
|
||||
return {
|
||||
peer_name:
|
||||
roomList.get(socket.room_id) && roomList.get(socket.room_id).getPeers().get(socket.id).peer_name,
|
||||
};
|
||||
}
|
||||
return roomList.get(socket.room_id) && roomList.get(socket.room_id).getPeers().get(socket.id).peer_name;
|
||||
}
|
||||
});
|
||||
@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
const config = require('./config');
|
||||
const { v4: uuidV4 } = require('uuid');
|
||||
|
||||
module.exports = class ServerApi {
|
||||
constructor(host, authorization) {
|
||||
this._host = host;
|
||||
this._authorization = authorization;
|
||||
this._api_key_secret = config.apiKeySecret;
|
||||
}
|
||||
|
||||
isAuthorized() {
|
||||
if (this._authorization != this._api_key_secret) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
getMeetingURL() {
|
||||
return 'https://' + this._host + '/join/' + uuidV4();
|
||||
}
|
||||
};
|
||||
@ -0,0 +1,78 @@
|
||||
'use strict';
|
||||
|
||||
const os = require('os');
|
||||
const ifaces = os.networkInterfaces();
|
||||
|
||||
const getLocalIp = () => {
|
||||
let localIp = '127.0.0.1';
|
||||
Object.keys(ifaces).forEach((ifname) => {
|
||||
for (const iface of ifaces[ifname]) {
|
||||
// Ignore IPv6 and 127.0.0.1
|
||||
if (iface.family !== 'IPv4' || iface.internal !== false) {
|
||||
continue;
|
||||
}
|
||||
// Set the local ip to the first IPv4 address found and exit the loop
|
||||
localIp = iface.address;
|
||||
return;
|
||||
}
|
||||
});
|
||||
return localIp;
|
||||
};
|
||||
|
||||
// https://api.ipify.org
|
||||
|
||||
module.exports = {
|
||||
listenIp: '0.0.0.0',
|
||||
listenPort: 3010,
|
||||
// ssl/README.md
|
||||
sslCrt: '../ssl/cert.pem',
|
||||
sslKey: '../ssl/key.pem',
|
||||
/*
|
||||
Ngrok
|
||||
1. Goto https://ngrok.com
|
||||
2. Get started for free
|
||||
3. Copy YourNgrokAuthToken: https://dashboard.ngrok.com/get-started/your-authtoken
|
||||
*/
|
||||
ngrokAuthToken: '',
|
||||
apiKeySecret: 'mirotalksfu_default_secret',
|
||||
mediasoup: {
|
||||
// Worker settings
|
||||
numWorkers: Object.keys(os.cpus()).length,
|
||||
worker: {
|
||||
rtcMinPort: 40000,
|
||||
rtcMaxPort: 41000,
|
||||
logLevel: 'warn',
|
||||
logTags: ['info', 'ice', 'dtls', 'rtp', 'srtp', 'rtcp'],
|
||||
},
|
||||
// Router settings
|
||||
router: {
|
||||
mediaCodecs: [
|
||||
{
|
||||
kind: 'audio',
|
||||
mimeType: 'audio/opus',
|
||||
clockRate: 48000,
|
||||
channels: 2,
|
||||
},
|
||||
{
|
||||
kind: 'video',
|
||||
mimeType: 'video/VP8',
|
||||
clockRate: 90000,
|
||||
parameters: {
|
||||
'x-google-start-bitrate': 1000,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
// WebRtcTransport settings
|
||||
webRtcTransport: {
|
||||
listenIps: [
|
||||
{
|
||||
ip: '0.0.0.0',
|
||||
announcedIp: getLocalIp(), // replace by public static IP address https://api.ipify.org
|
||||
},
|
||||
],
|
||||
maxIncomingBitrate: 1500000,
|
||||
initialAvailableOutgoingBitrate: 1000000,
|
||||
},
|
||||
},
|
||||
};
|
||||
@ -0,0 +1,18 @@
|
||||
## Self-signed certificate
|
||||
|
||||

|
||||
|
||||
```bash
|
||||
# install openssl 4 ubuntu
|
||||
apt install openssl
|
||||
# install openssl 4 mac
|
||||
brew install openssl
|
||||
|
||||
# self-signed certificate
|
||||
openssl genrsa -out key.pem
|
||||
openssl req -new -key key.pem -out csr.pem
|
||||
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
|
||||
rm csr.pem
|
||||
|
||||
# https://www.sslchecker.com/certdecoder
|
||||
```
|
||||
@ -0,0 +1,22 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIDlTCCAn0CFBM91H+g2aRKsaRrCmo3NdYjwfWUMA0GCSqGSIb3DQEBCwUAMIGG
|
||||
MQswCQYDVQQGEwJJVDEOMAwGA1UECAwFSXRhbHkxETAPBgNVBAoMCE1pcm9UYWxr
|
||||
MQ8wDQYDVQQLDAZXZWJSVEMxFzAVBgNVBAMMDk1pcm9zbGF2IFBlamljMSowKAYJ
|
||||
KoZIhvcNAQkBFhttaXJvc2xhdi5wZWppYy44NUBnbWFpbC5jb20wHhcNMjEwODEx
|
||||
MTUwOTUzWhcNNDgxMjI2MTUwOTUzWjCBhjELMAkGA1UEBhMCSVQxDjAMBgNVBAgM
|
||||
BUl0YWx5MREwDwYDVQQKDAhNaXJvVGFsazEPMA0GA1UECwwGV2ViUlRDMRcwFQYD
|
||||
VQQDDA5NaXJvc2xhdiBQZWppYzEqMCgGCSqGSIb3DQEJARYbbWlyb3NsYXYucGVq
|
||||
aWMuODVAZ21haWwuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
|
||||
rn2tC9W6wqjDI7B/4LfEnE4ILBOdwa9889QjmWUToKua7iXTpaSNP3SefKY50Q8T
|
||||
BFfkZXEGyqAESBUn2rYeHtebgLQTKHsixhSCdHqpBDOyYFeTywGiRP4gQHFKbExd
|
||||
X2AAD1ptTjHVuSlg/ojWstESBh/4TktifKzy3PKVKX6p889eDfyJtlv0PADAkon/
|
||||
rZp3hHq0FORhvQEER1sm6g58WyIfqGWjW7bb7/bkyS1baQI16fPeexfu1Rs7y4kx
|
||||
gX7+9/oA40D3rz0Wf378PTwVzbYCF+hZo/H9yJGTUAZSz84zNbSLvKBZFPfabA2A
|
||||
l92uPgNWoct06uf7ubEJhwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQAyH68yi+mf
|
||||
2HNwEscSLN1oU9uXNC4hwHi2xoPrpxoLsbhoc/aVhgd5peOEmIlOQPQofCO/JSKt
|
||||
HqidURSt8U+WrcsXz3HTdq+m/Qw3E/BA5CDXL/LUmIh43cZzkWSawx2EocJr7g1W
|
||||
JeAtUt8xpDtuLlTMjoGGmTsKQG7ub8NcYN7EEqWa2v+2qSTqvhASMs+cf7DT2HZI
|
||||
I3q2v6l1N+DcpO8ey8dbLhbhd4d+bGjyjEcT+clDHFrKsqiYDCS99sOmedmHoyZk
|
||||
+h+CzXICtqFSrAAGE/PoetQtJlojwnu9mJN/xj3i/zJTZTRh3jOGF8Hfg2bvwgdg
|
||||
vMYRLwtknqya
|
||||
-----END CERTIFICATE-----
|
||||
|
After Width: | Height: | Size: 6.2 KiB |
@ -0,0 +1,27 @@
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEpAIBAAKCAQEArn2tC9W6wqjDI7B/4LfEnE4ILBOdwa9889QjmWUToKua7iXT
|
||||
paSNP3SefKY50Q8TBFfkZXEGyqAESBUn2rYeHtebgLQTKHsixhSCdHqpBDOyYFeT
|
||||
ywGiRP4gQHFKbExdX2AAD1ptTjHVuSlg/ojWstESBh/4TktifKzy3PKVKX6p889e
|
||||
DfyJtlv0PADAkon/rZp3hHq0FORhvQEER1sm6g58WyIfqGWjW7bb7/bkyS1baQI1
|
||||
6fPeexfu1Rs7y4kxgX7+9/oA40D3rz0Wf378PTwVzbYCF+hZo/H9yJGTUAZSz84z
|
||||
NbSLvKBZFPfabA2Al92uPgNWoct06uf7ubEJhwIDAQABAoIBAAhskNota2LSevlS
|
||||
IBpdROS277YRDGC5dDLhXwac1qG/Jy+wK9OnahpSKwShkdECBU0EYUZ0ent11j8U
|
||||
pmPsvu+GQT+pcfNWXotpmhK9iUNmq4nzMHNwlMD3896omYs49JkSLW6QUw6fYU4b
|
||||
LU+ck6D2bwRUrsw433xdbSw1mfXyzyCIWfPNzRmkEcUkCe1RHkGqFv8FrePhezOB
|
||||
tByAwQQLtBt7FMioTSCedOe7B+tuxwqj5Px7Vr8K3x/PKccSId6hS2ihnptYB+n7
|
||||
3eAxoa049wazsW3SXJQrTxUB1z2bh2p2lA0AedgVNme1FCq4zzA7qa2WppcV2ava
|
||||
Gu+dCgECgYEA1xjLFQmiUqCJVqA99DZNvgiPecuHSe2+2QRIk10uUQcxQAF8K9XT
|
||||
ORpO05lc0ccPZt7tIbQytsnt/NxL2mnvXQ+dzzrQCsPu/HH8fLEaJ4xBdxuIFeDU
|
||||
qCBKYlckCQkDwnNYUqCZCNfxb0Csx98RBDYlwDwZa0hFsLPbGen538cCgYEAz6wh
|
||||
iRXZVTqfhy3meWYFmHqeMb0agFugl4d0Lwl/kI/0M62Jc1u1OU+uI6u5fuevEeBB
|
||||
xYjnaDpBuCWccLw6R5luc98QIbxldbx2A07rUGo2JlQafmDX8wI1GVBXgzOw7HAK
|
||||
jHhCw+ZgtvF2c1XjaTPaunKDomPX6Pjt6R23CEECgYEArRRvPbNt4Wz6djElCSC1
|
||||
N+ftg4TJjSx4eGog+CtvvJW8BJPtVdyORZGswknSzZ6O/yj8yTUV5c3g6apegxbh
|
||||
HBIX2wupIjB9WrdiAvgDYrVSbEREIc6zb8Hj+PPDtF2Dn/FurbY6zkntJad2ILKX
|
||||
H7tubxwtHA2gvkpLULPcdDsCgYAxm3WbUHvM7ycCXIWMhEFb7hZx3TFCbiDLcZDg
|
||||
V42AU9LKsW5+/u4oVY9MeA3kcaWRSJeNfyl/7UKboWhgSaZGSjFnPmaVGHLIEA/E
|
||||
tIpjeCudNkPp4mpTYziZ5mYxMhzWLeFnMqcIMrTxnnZkEKU1ESzzkr09AkqmHSh/
|
||||
ohiBwQKBgQCvaDQS7aBS/1+iBrOyMwxARwFirReJHdgEtkBVrB+sasbj1B4Jd3zO
|
||||
gL6FzxKCKBMIF+sSAjKs0XoRG1K6OPGFg1b5naEq023gObO6aBZqSXhHCajGK790
|
||||
Xhrvj6BojWkJUnc8T0cocrwhMJrTFC0u00KgAnRNyNYw1vccd5q2uQ==
|
||||
-----END RSA PRIVATE KEY-----
|
||||