mirror of https://github.com/OpenVidu/openvidu.git
openvidu-testapp (OpenVidu Sample App "Minimal") removed
parent
66d3455263
commit
8d0aefb959
|
@ -1 +0,0 @@
|
|||
/target/
|
|
@ -1,202 +0,0 @@
|
|||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
|
@ -1,13 +0,0 @@
|
|||
(C) Copyright 2016 Kurento (http://kurento.org)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
|
@ -1,11 +0,0 @@
|
|||
[](http://www.apache.org/licenses/LICENSE-2.0)
|
||||
[](http://openvidu.io/docs/home/)
|
||||
[](https://hub.docker.com/r/openvidu/)
|
||||
[](https://groups.google.com/forum/#!forum/openvidu)
|
||||
|
||||
[![][OpenViduLogo]](http://openvidu.io)
|
||||
|
||||
openvidu-testapp
|
||||
===
|
||||
|
||||
[OpenViduLogo]: https://secure.gravatar.com/avatar/5daba1d43042f2e4e85849733c8e5702?s=120
|
|
@ -1,253 +0,0 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>io.openvidu</groupId>
|
||||
<artifactId>openvidu-parent</artifactId>
|
||||
<version>1.0.0-beta.3</version>
|
||||
<relativePath>../</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>openvidu-testapp</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>OpenVidu Sample App "Minimal"</name>
|
||||
<description>
|
||||
This project contains a minimal sample app using OpenVidu platorm.
|
||||
</description>
|
||||
<url>https://github.com/OpenVidu/openvidu</url>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache 2.0</name>
|
||||
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<organization>
|
||||
<name>OpenVidu</name>
|
||||
<url>https://github.com/OpenVidu/openvidu</url>
|
||||
</organization>
|
||||
|
||||
<scm>
|
||||
<url>${openvidu.scm.url}</url>
|
||||
<connection>scm:git:${openvidu.scm.connection}</connection>
|
||||
<developerConnection>scm:git:${openvidu.scm.connection}</developerConnection>
|
||||
<tag>develop</tag>
|
||||
</scm>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>openvidu.io</id>
|
||||
<name>-openvidu.io Community</name>
|
||||
<organization>OpenVidu</organization>
|
||||
<organizationUrl>http://openvidu.io</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<properties>
|
||||
<!-- Main class -->
|
||||
<start-class>io.openvidu.testapp.OpenViduTestApp</start-class>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
<includes>
|
||||
<include>banner.txt</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<mainClass>${start-class}</mainClass>
|
||||
<layout>ZIP</layout>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>java</id>
|
||||
<goals>
|
||||
<goal>java</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<mainClass>${start-class}</mainClass>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<configuration>
|
||||
<descriptor>src/assembly/bin.xml</descriptor>
|
||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<configuration>
|
||||
<tasks>
|
||||
<copy
|
||||
file="${project.build.directory}/target/${project.artifactId}-${project.version}-bin.zip"
|
||||
tofile="${project.build.directory}/target/${project.artifactId}-${project.version}.zip" />
|
||||
</tasks>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<!--This plugin's configuration is used to store Eclipse m2e settings
|
||||
only. It has no influence on the Maven build itself. -->
|
||||
<plugin>
|
||||
<groupId>org.eclipse.m2e</groupId>
|
||||
<artifactId>lifecycle-mapping</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<configuration>
|
||||
<lifecycleMappingMetadata>
|
||||
<pluginExecutions>
|
||||
<pluginExecution>
|
||||
<pluginExecutionFilter>
|
||||
<groupId>
|
||||
org.codehaus.mojo
|
||||
</groupId>
|
||||
<artifactId>
|
||||
exec-maven-plugin
|
||||
</artifactId>
|
||||
<versionRange>
|
||||
[1.0.0,)
|
||||
</versionRange>
|
||||
<goals>
|
||||
<goal>exec</goal>
|
||||
</goals>
|
||||
</pluginExecutionFilter>
|
||||
<action>
|
||||
<ignore />
|
||||
</action>
|
||||
</pluginExecution>
|
||||
<pluginExecution>
|
||||
<pluginExecutionFilter>
|
||||
<groupId>
|
||||
org.apache.maven.plugins
|
||||
</groupId>
|
||||
<artifactId>
|
||||
maven-dependency-plugin
|
||||
</artifactId>
|
||||
<versionRange>
|
||||
[2.8,)
|
||||
</versionRange>
|
||||
<goals>
|
||||
<goal>unpack</goal>
|
||||
</goals>
|
||||
</pluginExecutionFilter>
|
||||
<action>
|
||||
<ignore />
|
||||
</action>
|
||||
</pluginExecution>
|
||||
</pluginExecutions>
|
||||
</lifecycleMappingMetadata>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>io.openvidu</groupId>
|
||||
<artifactId>openvidu-server</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-logging</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.openvidu</groupId>
|
||||
<artifactId>openvidu-browser</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-log4j2</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.openvidu</groupId>
|
||||
<artifactId>openvidu-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars.bower</groupId>
|
||||
<artifactId>system.js</artifactId>
|
||||
<version>0.19.17</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>default</id>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<skipTests>true</skipTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-failsafe-plugin</artifactId>
|
||||
<configuration>
|
||||
<skipTests>true</skipTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>integration</id>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
|
@ -1,27 +0,0 @@
|
|||
<assembly
|
||||
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
|
||||
<id>bin</id>
|
||||
<formats>
|
||||
<format>zip</format>
|
||||
</formats>
|
||||
<!-- <includeBaseDirectory>false</includeBaseDirectory> -->
|
||||
|
||||
<files>
|
||||
<file>
|
||||
<source>target/${project.artifactId}-${project.version}.jar</source>
|
||||
<outputDirectory>lib</outputDirectory>
|
||||
<!-- <destName>${project.artifactId}.jar</destName> -->
|
||||
<destName>kroombasic.jar</destName>
|
||||
</file>
|
||||
</files>
|
||||
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>package</directory>
|
||||
<!-- <filtered>true</filtered> -->
|
||||
<outputDirectory></outputDirectory>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</assembly>
|
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2017 OpenVidu (http://openvidu.io/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package io.openvidu.testapp;
|
||||
|
||||
import org.kurento.commons.ConfigFileManager;
|
||||
import io.openvidu.server.OpenViduServer;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.context.annotation.Import;
|
||||
|
||||
/**
|
||||
* Basic demo application for Kurento Room, uses the Room Server and the Room Client JS libraries.
|
||||
*
|
||||
* @author Micael Gallego (micael.gallego@gmail.com)
|
||||
* @author Radu Tom Vlad (rvlad@naevatec.com)
|
||||
* @since 5.0.0
|
||||
*/
|
||||
@Import(OpenViduServer.class)
|
||||
public class OpenViduTestApp {
|
||||
|
||||
private final static String BASICAPP_CFG_FILENAME = "kroombasic.conf.json";
|
||||
|
||||
static {
|
||||
ConfigFileManager.loadConfigFile(BASICAPP_CFG_FILENAME);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(OpenViduTestApp.class, args);
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
server.port: 8443
|
||||
server.ssl.key-store: classpath:keystore.jks
|
||||
server.ssl.key-store-password: kurento
|
||||
server.ssl.keyStoreType: JKS
|
||||
server.ssl.keyAlias: kurento-selfsigned
|
||||
|
||||
kms.uris=[\"ws://localhost:8888/kurento\"]
|
||||
|
||||
openvidu.secret: MY_SECRET
|
||||
openvidu.publicurl: local
|
|
@ -1,10 +0,0 @@
|
|||
|
||||
==================================================
|
||||
____ _ ___ __
|
||||
/ __ \____ ___ ____| | / (_)___/ /_ __
|
||||
/ / / / __ \/ _ \/ __ \ | / / / __ / / / /
|
||||
/ /_/ / /_/ / __/ / / / |/ / / /_/ / /_/ /
|
||||
\____/ .___/\___/_/ /_/|___/_/\__,_/\__,_/
|
||||
/_/
|
||||
v${project.version}
|
||||
==================================================
|
Binary file not shown.
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
"kms": {
|
||||
"uris": [
|
||||
"ws://127.0.0.1:8888/kurento"
|
||||
]
|
||||
},
|
||||
"kurento": {
|
||||
"client": {
|
||||
//milliseconds
|
||||
"requestTimeout": 20000
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
log4j.rootLogger=WARN,CONSOLE,file
|
||||
log4j.logger.org.kurento=WARN
|
||||
log4j.logger.org.kurento.commons=DEBUG
|
||||
log4j.logger.org.kurento.room=INFO
|
||||
log4j.logger.org.kurento.room.test=DEBUG
|
||||
log4j.logger.io.github.bonigarcia=DEBUG
|
||||
|
||||
# Appenders
|
||||
log4j.threshold=ALL
|
||||
|
||||
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.CONSOLE.layout.ConversionPattern=%d{HH:mm:ss} %-5p %c [%t] (%F:%L) - %m%n
|
||||
|
||||
log4j.appender.file=org.apache.log4j.RollingFileAppender
|
||||
log4j.appender.file.File=target/kurento-room-test.log
|
||||
log4j.appender.file.ImmediateFlush=true
|
||||
log4j.appender.file.MaxFileSize=10MB
|
||||
log4j.appender.file.MaxBackupIndex=50
|
||||
log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.file.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c (%F:%L(%M)) - %m%n
|
|
@ -1,50 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Room Example</title>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<link rel="styleSheet" href="style.css" type="text/css" media="screen">
|
||||
|
||||
<script src="./js/OpenVidu.js"></script>
|
||||
|
||||
<script src="./js/console.js"></script>
|
||||
<script src="./js/testapp.js"></script>
|
||||
<script src="./js/color.js"></script>
|
||||
<script src="./js/stats.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="wrapper">
|
||||
|
||||
<div id="join" class="animate join">
|
||||
<h1>Join a Room</h1>
|
||||
<form onsubmit="joinRoom(); return false;" accept-charset="UTF-8">
|
||||
<p>
|
||||
<label for="userId">User:</label>
|
||||
<input type="text" name="user" value="" id="userId"
|
||||
placeholder="User" required>
|
||||
</p>
|
||||
<p>
|
||||
<label for="roomId">Room:</label>
|
||||
<input type="text" name="room" value="a" id="roomId"
|
||||
placeholder="Room" required>
|
||||
</p>
|
||||
<p class="submit">
|
||||
<input type="submit" name="commit" value="Join!" id="joinBtn">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="room" style="display: none;">
|
||||
<h2 id="room-header"></h2>
|
||||
<input type="button" id="buttonLeaveRoom" onmouseup="leaveRoom();"
|
||||
value="Leave room">
|
||||
<div id="participants"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="console"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,94 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2016 OpenVidu (http://kurento.org/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
var colorMap = {};
|
||||
var initTime;
|
||||
var maxDistance = 60; // Default max distance for color comparison
|
||||
|
||||
window.onload = function() {
|
||||
initTime = new Date();
|
||||
}
|
||||
|
||||
window.requestAnimationFrame = window.requestAnimationFrame
|
||||
|| window.mozRequestAnimationFrame
|
||||
|| window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
|
||||
|
||||
function checkColor(video, canvas, userId) {
|
||||
|
||||
canvas.width = 1;
|
||||
canvas.height = 1;
|
||||
var canvasContext = canvas.getContext("2d");
|
||||
|
||||
video.crossOrigin = 'anonymous';
|
||||
|
||||
function step() {
|
||||
var x = 0;
|
||||
var y = 0;
|
||||
|
||||
try {
|
||||
canvasContext.drawImage(video, x, y, 1, 1, 0, 0, 1, 1);
|
||||
} catch (e) {
|
||||
// NS_ERROR_NOT_AVAILABLE can happen in Firefox due a bug
|
||||
if (e.name != "NS_ERROR_NOT_AVAILABLE") {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
var color = Array.prototype.slice.apply(
|
||||
canvasContext.getImageData(0, 0, 1, 1).data).toString();
|
||||
|
||||
if (colorMap[userId]) {
|
||||
if (colorChanged(color, colorMap[userId].rgba)) {
|
||||
var time = new Date() - initTime;
|
||||
console.info("Detected color change on user " + userId
|
||||
+ " from " + colorMap[userId].rgba + " to " + color
|
||||
+ " at " + time);
|
||||
|
||||
colorMap[userId].rgba = color;
|
||||
colorMap[userId].time = time;
|
||||
}
|
||||
} else {
|
||||
// First time
|
||||
var firstEntry = {
|
||||
rgba : "0,0,0,0",
|
||||
time : null
|
||||
};
|
||||
colorMap[userId] = firstEntry;
|
||||
}
|
||||
|
||||
requestAnimationFrame(step);
|
||||
}
|
||||
requestAnimationFrame(step);
|
||||
}
|
||||
|
||||
function colorChanged(expectedColorStr, realColorStr) {
|
||||
var realColor = realColorStr.split(",");
|
||||
var expectedColor = expectedColorStr.split(",");
|
||||
|
||||
var realRed = realColor[0];
|
||||
var realGreen = realColor[1];
|
||||
var realBlue = realColor[2];
|
||||
|
||||
var expectedRed = expectedColor[0];
|
||||
var expectedGreen = expectedColor[1];
|
||||
var expectedBlue = expectedColor[2];
|
||||
|
||||
var distance = Math.sqrt((realRed - expectedRed) * (realRed - expectedRed)
|
||||
+ (realGreen - expectedGreen) * (realGreen - expectedGreen)
|
||||
+ (realBlue - expectedBlue) * (realBlue - expectedBlue));
|
||||
|
||||
return distance > maxDistance;
|
||||
}
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2013 OpenVidu (http://kurento.org/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Object that piggy-back the browser console and show their messages on a DIV
|
||||
*
|
||||
* Inspired by Node.js ClIM module (https://github.com/epeli/node-clim)
|
||||
*
|
||||
* @constructor
|
||||
*
|
||||
* @param {String}
|
||||
* id: id attribute of the DIV tag where to show the messages
|
||||
* @param console:
|
||||
* reference to the original browser console
|
||||
*/
|
||||
function Console(id, console) {
|
||||
var div = document.getElementById(id);
|
||||
|
||||
function createMessage(msg, color) {
|
||||
// Sanitize the input
|
||||
msg = msg.toString().replace(/</g, '<');
|
||||
var span = document.createElement('SPAN');
|
||||
if (color != undefined) {
|
||||
span.style.color = color;
|
||||
}
|
||||
span.appendChild(document.createTextNode(new Date() +':'+msg));
|
||||
return span;
|
||||
}
|
||||
|
||||
this._append = function(element) {
|
||||
div.appendChild(element);
|
||||
div.appendChild(document.createElement('BR'));
|
||||
// $(window).scrollTo('max', {duration: 500});
|
||||
};
|
||||
|
||||
/**
|
||||
* Show an Error message both on browser console and on defined DIV
|
||||
*
|
||||
* @param msg:
|
||||
* message or object to be shown
|
||||
*/
|
||||
this.error = function(msg) {
|
||||
console.error(msg);
|
||||
this._append(createMessage(msg, "#FF0000"));
|
||||
};
|
||||
|
||||
/**
|
||||
* Show an Warn message both on browser console and on defined DIV
|
||||
*
|
||||
* @param msg:
|
||||
* message or object to be shown
|
||||
*/
|
||||
this.warn = function(msg) {
|
||||
console.warn(msg);
|
||||
this._append(createMessage(msg, "#FFA500"));
|
||||
};
|
||||
|
||||
/**
|
||||
* Show an Info message both on browser console and on defined DIV
|
||||
*
|
||||
* @param msg:
|
||||
* message or object to be shown
|
||||
*/
|
||||
this.info = this.log = function(msg) {
|
||||
console.info(msg);
|
||||
this._append(createMessage(msg));
|
||||
};
|
||||
|
||||
/**
|
||||
* Show an Debug message both on browser console and on defined DIV
|
||||
*
|
||||
* @param msg:
|
||||
* message or object to be shown
|
||||
*/
|
||||
this.debug = function(msg) {
|
||||
console.log(msg);
|
||||
this._append(createMessage(msg, "#0000FF"));
|
||||
};
|
||||
}
|
|
@ -1,96 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2016 OpenVidu (http://kurento.org/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
var rtcStats = {};
|
||||
var rtcStatsSum = {};
|
||||
var rtcStatsAvg = {};
|
||||
var avgMetrics = [ 'video_googCurrentDelayMs', 'audio_googDecodingCNG',
|
||||
'audio_googPreferredJitterBufferMs', 'audio_audioOutputLevel',
|
||||
'video_googFrameRateDecoded', 'video_googFrameHeightReceived',
|
||||
'audio_googDecodingPLC', 'video_googJitterBufferMs',
|
||||
'audio_googDecodingCTSG', 'video_googTargetDelayMs',
|
||||
'video_googMaxDecodeMs', 'audio_googCurrentDelayMs',
|
||||
'audio_googJitterBufferMs', 'video_googFrameWidthReceived',
|
||||
'video_googMinPlayoutDelayMs', 'audio_googJitterReceived',
|
||||
'video_googDecodeMs', 'video_googFrameRateReceived',
|
||||
'video_googRenderDelayMs', 'video_googFrameRateOutput' ];
|
||||
|
||||
function activateRtcStats() {
|
||||
var rate = 100; // by default each 100 ms
|
||||
if (arguments.length) {
|
||||
rate = arguments[0];
|
||||
}
|
||||
setInterval(updateRtcStats, rate);
|
||||
}
|
||||
|
||||
function updateRtcStats() {
|
||||
if (room) {
|
||||
var streams = room.getStreams();
|
||||
var avgCount = 0;
|
||||
|
||||
for ( var index in streams) {
|
||||
var stream = streams[index];
|
||||
var webRtcPeer = stream.getWebRtcPeer();
|
||||
var remoteStream = stream.getWrStream();
|
||||
|
||||
if (webRtcPeer && remoteStream) {
|
||||
var videoTrack = remoteStream.getVideoTracks()[0];
|
||||
var audioTrack = remoteStream.getAudioTracks()[0];
|
||||
updateStats(webRtcPeer, videoTrack, "video_");
|
||||
updateStats(webRtcPeer, audioTrack, "audio_");
|
||||
avgCount++;
|
||||
}
|
||||
}
|
||||
makeAverage(avgCount);
|
||||
}
|
||||
}
|
||||
|
||||
function updateStats(webRtcPeer, track, type) {
|
||||
webRtcPeer.pc.getStats(function(stats) {
|
||||
var result = stats.result()[2];
|
||||
if (result) {
|
||||
result.names().forEach(function(name) {
|
||||
if (isNumber(rtcStatsSum[type + name])) {
|
||||
rtcStatsSum[type + name] += parseInt(result.stat(name));
|
||||
rtcStatsAvg[type + name]++;
|
||||
} else {
|
||||
rtcStatsSum[type + name] = parseInt(result.stat(name));
|
||||
rtcStatsAvg[type + name] = 1;
|
||||
}
|
||||
// console.info(name + "=" + result.stat(name));
|
||||
});
|
||||
}
|
||||
}, track);
|
||||
}
|
||||
|
||||
function isNumber(n) {
|
||||
return !isNaN(parseFloat(n)) && isFinite(n);
|
||||
}
|
||||
|
||||
function makeAverage(count) {
|
||||
for ( var key in rtcStatsSum) {
|
||||
if (avgMetrics.indexOf(key) != -1) {
|
||||
rtcStats[key] = rtcStatsSum[key] / rtcStatsAvg[key];
|
||||
} else {
|
||||
rtcStats[key] = rtcStatsSum[key];
|
||||
}
|
||||
}
|
||||
rtcStatsSum = {};
|
||||
rtcStatsAvg = {};
|
||||
}
|
||||
|
||||
// Uncomment this line to debug
|
||||
// activateRtcStats();
|
|
@ -1,112 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2016 OpenVidu (http://kurento.org/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
var openVidu;
|
||||
var session;
|
||||
|
||||
window.addEventListener('load', function(){
|
||||
console = new Console('console', console);
|
||||
document.getElementById("userId").value = Math.floor(Math.random() * 100);
|
||||
});
|
||||
|
||||
function addVideoTag(stream) {
|
||||
|
||||
var elementId = "video-" + stream.getId();
|
||||
var div = document.createElement('div');
|
||||
div.setAttribute("id", elementId);
|
||||
document.getElementById("participants").appendChild(div);
|
||||
|
||||
stream.playThumbnail(elementId);
|
||||
|
||||
// Check color
|
||||
var videoTag = document.getElementById("native-" + elementId);
|
||||
var userId = stream.getId();
|
||||
var canvas = document.createElement('CANVAS');
|
||||
checkColor(videoTag, canvas, userId);
|
||||
}
|
||||
|
||||
function removeVideoTag(stream){
|
||||
|
||||
var elementId = "video-" + stream.getId();
|
||||
var element = document.getElementById(elementId);
|
||||
if (element) {
|
||||
element.parentNode.removeChild(element);
|
||||
}
|
||||
}
|
||||
|
||||
function joinRoom() {
|
||||
|
||||
var sessionId = document.getElementById('roomId').value;
|
||||
var participantId = document.getElementById('userId').value;
|
||||
|
||||
openVidu = new OpenVidu('wss://' + location.host + '/');
|
||||
|
||||
openVidu.connect(function(error, openVidu) {
|
||||
|
||||
if (error)
|
||||
return console.log(error);
|
||||
|
||||
var camera = openVidu.getCamera();
|
||||
|
||||
camera.requestCameraAccess(function(error, camera) {
|
||||
|
||||
if (error)
|
||||
return console.log(error);
|
||||
|
||||
var sessionOptions = {
|
||||
sessionId : sessionId,
|
||||
participantId : participantId
|
||||
}
|
||||
|
||||
openVidu.joinSession(sessionOptions, function(error, session) {
|
||||
|
||||
if (error)
|
||||
return console.log(error);
|
||||
|
||||
document.getElementById('room-header').innerText = 'ROOM \"'
|
||||
+ session.getId() + '\"';
|
||||
|
||||
document.getElementById('join').style.display = 'none';
|
||||
document.getElementById('room').style.display = 'block';
|
||||
|
||||
addVideoTag(camera);
|
||||
|
||||
camera.publish();
|
||||
|
||||
session.addEventListener("stream-added", function(streamEvent) {
|
||||
addVideoTag(streamEvent.stream);
|
||||
});
|
||||
|
||||
session.addEventListener("stream-removed", function(streamEvent) {
|
||||
removeVideoTag(streamEvent.stream);
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function leaveRoom() {
|
||||
|
||||
document.getElementById('join').style.display = 'block';
|
||||
document.getElementById('room').style.display = 'none';
|
||||
|
||||
openVidu.close();
|
||||
}
|
||||
|
||||
window.onbeforeunload = function() {
|
||||
openVidu.close();
|
||||
};
|
|
@ -1,18 +0,0 @@
|
|||
.participant {
|
||||
float: left;
|
||||
width: 20%;
|
||||
margin: 10;
|
||||
}
|
||||
|
||||
.participant video {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#console {
|
||||
font-size: 14px;
|
||||
border: 1px solid #ccc;
|
||||
overflow-y: auto;
|
||||
width: 100%;
|
||||
height: 175px;
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2017 OpenVidu (http://openvidu.io/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.openvidu.testapp.test;
|
||||
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
import org.kurento.test.browser.WebPageType;
|
||||
import io.openvidu.test.browser.AddRemoveUsers;
|
||||
|
||||
/**
|
||||
* @see AddRemoveUsers
|
||||
* @author Radu Tom Vlad (rvlad@naevatec.com)
|
||||
*/
|
||||
public class AddRemoveUsersBasicTest extends AddRemoveUsers {
|
||||
|
||||
@Override
|
||||
public void setupBrowserTest() throws InterruptedException {
|
||||
webPageType = WebPageType.ROOM;
|
||||
super.setupBrowserTest();
|
||||
}
|
||||
|
||||
@Parameters(name = "{index}: {0}")
|
||||
public static Collection<Object[]> data() {
|
||||
return localChromes(MethodHandles.lookup().lookupClass().getSimpleName(), NUM_USERS,
|
||||
WebPageType.ROOM);
|
||||
}
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2017 OpenVidu (http://openvidu.io/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.openvidu.testapp.test;
|
||||
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
import org.kurento.test.browser.WebPageType;
|
||||
import io.openvidu.test.browser.AddRemoveUsersNoSinkVerify;
|
||||
|
||||
/**
|
||||
* @see AddRemoveUsersNoSinkVerify
|
||||
* @author Radu Tom Vlad (rvlad@naevatec.com)
|
||||
*/
|
||||
public class AddRemoveUsersNoSinkVerifyBasicTest extends AddRemoveUsersNoSinkVerify {
|
||||
|
||||
@Override
|
||||
public void setupBrowserTest() throws InterruptedException {
|
||||
webPageType = WebPageType.ROOM;
|
||||
super.setupBrowserTest();
|
||||
}
|
||||
|
||||
@Parameters(name = "{index}: {0}")
|
||||
public static Collection<Object[]> data() {
|
||||
return localChromes(MethodHandles.lookup().lookupClass().getSimpleName(), NUM_USERS,
|
||||
WebPageType.ROOM);
|
||||
}
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2017 OpenVidu (http://openvidu.io/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.openvidu.testapp.test;
|
||||
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
import org.kurento.test.browser.WebPageType;
|
||||
import io.openvidu.test.browser.NUsersEqualLifetime;
|
||||
|
||||
/**
|
||||
* @see NUsersEqualLifetime
|
||||
* @author Radu Tom Vlad (rvlad@naevatec.com)
|
||||
*/
|
||||
public class NUsersEqualLifetimeBasicTest extends NUsersEqualLifetime {
|
||||
|
||||
@Override
|
||||
public void setupBrowserTest() throws InterruptedException {
|
||||
webPageType = WebPageType.ROOM;
|
||||
super.setupBrowserTest();
|
||||
}
|
||||
|
||||
@Parameters(name = "{index}: {0}")
|
||||
public static Collection<Object[]> data() {
|
||||
return localChromes(MethodHandles.lookup().lookupClass().getSimpleName(), NUM_USERS,
|
||||
WebPageType.ROOM);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2017 OpenVidu (http://openvidu.io/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.openvidu.testapp.test;
|
||||
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
import org.kurento.test.browser.WebPageType;
|
||||
import io.openvidu.test.browser.OneUserQuickReentry;
|
||||
|
||||
/**
|
||||
* @see OneUserQuickReentry
|
||||
* @author Radu Tom Vlad (rvlad@naevatec.com)
|
||||
*/
|
||||
public class OneUserQuickReentryBasicTest extends OneUserQuickReentry {
|
||||
|
||||
@Override
|
||||
public void setupBrowserTest() throws InterruptedException {
|
||||
webPageType = WebPageType.ROOM;
|
||||
super.setupBrowserTest();
|
||||
}
|
||||
|
||||
@Parameters(name = "{index}: {0}")
|
||||
public static Collection<Object[]> data() {
|
||||
return localChromes(MethodHandles.lookup().lookupClass().getSimpleName(), NUM_USERS,
|
||||
WebPageType.ROOM);
|
||||
}
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2017 OpenVidu (http://openvidu.io/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.openvidu.testapp.test;
|
||||
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
import org.kurento.test.browser.WebPageType;
|
||||
import io.openvidu.test.browser.SeqAddRemoveUser;
|
||||
|
||||
/**
|
||||
* @see SeqAddRemoveUser
|
||||
* @author Radu Tom Vlad (rvlad@naevatec.com)
|
||||
*/
|
||||
public class SeqAddRemoveUserBasicTest extends SeqAddRemoveUser {
|
||||
|
||||
@Override
|
||||
public void setupBrowserTest() throws InterruptedException {
|
||||
webPageType = WebPageType.ROOM;
|
||||
super.setupBrowserTest();
|
||||
}
|
||||
|
||||
@Parameters(name = "{index}: {0}")
|
||||
public static Collection<Object[]> data() {
|
||||
return localChromes(MethodHandles.lookup().lookupClass().getSimpleName(), NUM_USERS,
|
||||
WebPageType.ROOM);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2017 OpenVidu (http://openvidu.io/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.openvidu.testapp.test;
|
||||
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
import org.kurento.test.browser.WebPageType;
|
||||
import io.openvidu.test.browser.SeqNUsersEqualLifetime;
|
||||
|
||||
/**
|
||||
* @see SeqNUsersEqualLifetime
|
||||
* @author Radu Tom Vlad (rvlad@naevatec.com)
|
||||
*/
|
||||
public class SeqNUsersEqualLifetimeBasicTest extends SeqNUsersEqualLifetime {
|
||||
|
||||
@Override
|
||||
public void setupBrowserTest() throws InterruptedException {
|
||||
webPageType = WebPageType.ROOM;
|
||||
super.setupBrowserTest();
|
||||
}
|
||||
|
||||
@Parameters(name = "{index}: {0}")
|
||||
public static Collection<Object[]> data() {
|
||||
return localChromes(MethodHandles.lookup().lookupClass().getSimpleName(), NUM_USERS,
|
||||
WebPageType.ROOM);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2017 OpenVidu (http://openvidu.io/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.openvidu.testapp.test;
|
||||
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
import org.kurento.test.browser.WebPageType;
|
||||
import io.openvidu.test.browser.TwoUsersEqualLifetime;
|
||||
|
||||
/**
|
||||
* @see TwoUsersEqualLifetime
|
||||
* @author Radu Tom Vlad (rvlad@naevatec.com)
|
||||
*/
|
||||
public class TwoUsersEqualLifetimeBasicTest extends TwoUsersEqualLifetime {
|
||||
|
||||
@Override
|
||||
public void setupBrowserTest() throws InterruptedException {
|
||||
webPageType = WebPageType.ROOM;
|
||||
super.setupBrowserTest();
|
||||
}
|
||||
|
||||
@Parameters(name = "{index}: {0}")
|
||||
public static Collection<Object[]> data() {
|
||||
return localChromes(MethodHandles.lookup().lookupClass().getSimpleName(), NUM_USERS,
|
||||
WebPageType.ROOM);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2017 OpenVidu (http://openvidu.io/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.openvidu.testapp.test;
|
||||
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
import org.kurento.test.browser.WebPageType;
|
||||
import io.openvidu.test.browser.WebAppAvailability;
|
||||
|
||||
/**
|
||||
* @author Radu Tom Vlad (rvlad@naevatec.com)
|
||||
* @see WebAppAvailability
|
||||
*/
|
||||
public class WebAppAvailabilityBasicTest extends WebAppAvailability {
|
||||
|
||||
@Override
|
||||
public void setupBrowserTest() throws InterruptedException {
|
||||
webPageType = WebPageType.ROOM;
|
||||
super.setupBrowserTest();
|
||||
}
|
||||
|
||||
@Parameters(name = "{index}: {0}")
|
||||
public static Collection<Object[]> data() {
|
||||
return localChromes(MethodHandles.lookup().lookupClass().getSimpleName(), NUM_USERS,
|
||||
WebPageType.ROOM);
|
||||
}
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2017 OpenVidu (http://openvidu.io/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package io.openvidu.testapp.test.fake;
|
||||
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
import org.kurento.test.browser.WebPageType;
|
||||
import io.openvidu.test.fake.ExtraKmsFakeUsers;
|
||||
|
||||
/**
|
||||
* @see ExtraKmsFakeUsers
|
||||
* @author Radu Tom Vlad (rvlad@naevatec.com)
|
||||
*/
|
||||
public class ExtraKmsFakeUsersBasicTest extends ExtraKmsFakeUsers {
|
||||
|
||||
@Override
|
||||
public void setupBrowserTest() throws InterruptedException {
|
||||
webPageType = WebPageType.ROOM;
|
||||
ROOM_ACTIVITY_IN_SECONDS = 20; // shorter idle period
|
||||
super.setupBrowserTest();
|
||||
}
|
||||
|
||||
@Parameters(name = "{index}: {0}")
|
||||
public static Collection<Object[]> data() {
|
||||
return localChromes(MethodHandles.lookup().lookupClass().getSimpleName(), NUM_USERS,
|
||||
WebPageType.ROOM);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
/*
|
||||
* (C) Copyright 2017 OpenVidu (http://openvidu.io/)
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package io.openvidu.testapp.test.fake;
|
||||
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
import org.kurento.test.browser.WebPageType;
|
||||
import io.openvidu.test.fake.ParallelNFakeUsers;
|
||||
|
||||
/**
|
||||
* @see ParallelNFakeUsers
|
||||
* @author Radu Tom Vlad (rvlad@naevatec.com)
|
||||
*/
|
||||
public class ParallelNFakeUsersBasicTest extends ParallelNFakeUsers {
|
||||
|
||||
@Override
|
||||
public void setupBrowserTest() throws InterruptedException {
|
||||
webPageType = WebPageType.ROOM;
|
||||
ROOM_ACTIVITY_IN_SECONDS = 20; // shorter idle period
|
||||
super.setupBrowserTest();
|
||||
}
|
||||
|
||||
@Parameters(name = "{index}: {0}")
|
||||
public static Collection<Object[]> data() {
|
||||
return localChromes(MethodHandles.lookup().lookupClass().getSimpleName(), NUM_USERS,
|
||||
WebPageType.ROOM);
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
log4j.rootLogger=WARN,CONSOLE,file
|
||||
log4j.logger.org.kurento=INFO
|
||||
log4j.logger.org.kurento.client.internal=WARN
|
||||
log4j.logger.org.kurento.room=DEBUG
|
||||
log4j.logger.io.github.bonigarcia=DEBUG
|
||||
log4j.logger.org.kurento.commons=DEBUG
|
||||
log4j.logger.org.kurento.test=DEBUG
|
||||
|
||||
# Appenders
|
||||
log4j.threshold=ALL
|
||||
|
||||
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.CONSOLE.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p %c [%t] (%F:%L) - %m%n
|
||||
|
||||
log4j.appender.file=org.apache.log4j.RollingFileAppender
|
||||
log4j.appender.file.File=target/kurento-room-basicapp-test.log
|
||||
log4j.appender.file.ImmediateFlush=true
|
||||
log4j.appender.file.MaxFileSize=10MB
|
||||
log4j.appender.file.MaxBackupIndex=50
|
||||
log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.file.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%t] %c (%F:%L(%M)) - %m%n
|
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
"kurento": {
|
||||
"client": {
|
||||
//milliseconds
|
||||
"requestTimeout": 20000
|
||||
},
|
||||
"test": {
|
||||
"fake": {
|
||||
//"kmsUri": "ws://127.0.0.1:8888/kurento",
|
||||
"wr": {
|
||||
//absolute path on the KMS's machine or http resource
|
||||
//"files": "/tmp",
|
||||
|
||||
//readable by the user that runs KMS (default is nobody:nogroup)
|
||||
//"filenames": []
|
||||
}
|
||||
},
|
||||
"chrome": {
|
||||
//if not absolute path, is considered relative to user's home
|
||||
//"files": "/tmp",
|
||||
|
||||
//accessible to the user that runs the test
|
||||
"filenames": {
|
||||
"wav": [],
|
||||
"y4m": ["video/15sec/rgbHD.y4m"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
6
pom.xml
6
pom.xml
|
@ -81,7 +81,6 @@
|
|||
<module>openvidu-client</module>
|
||||
<module>openvidu-browser</module>
|
||||
<module>openvidu-test</module>
|
||||
<module>openvidu-testapp</module>
|
||||
<module>openvidu-java-client</module>
|
||||
</modules>
|
||||
</profile>
|
||||
|
@ -208,11 +207,6 @@
|
|||
<artifactId>openvidu-test</artifactId>
|
||||
<version>${version.openvidu}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.openvidu</groupId>
|
||||
<artifactId>openvidu-testapp</artifactId>
|
||||
<version>${version.openvidu}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.openvidu</groupId>
|
||||
<artifactId>openvidu-java-client</artifactId>
|
||||
|
|
Loading…
Reference in New Issue