• This repository has been archived on 23/Mar/2023
  • Stars
    star
    126
  • Rank 284,543 (Top 6 %)
  • Language
    JavaScript
  • Created over 10 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[ARCHIVED] Repository moved to the new monorepo: https://github.com/Kurento/kurento

License badge Documentation badge Docker badge Support badge

Copyright © 2013-2016 Kurento. Licensed under Apache 2.0 License.

Kurento JavaScript Tutorial

Kurento Client JavaScript demos.

This project contains a set of simple applications built with JavaScript Kurento Client APIs (kurento-client-js and kurento-utils-js).

The source code of this project can be cloned from the GitHub repository.

Installation instructions

Be sure to have installed Node.js and Bower in your system:

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g bower

Each demo is located in a single folder (e.g. kurento-hello-world, kurento-magic-mirror, and so on). For example, to install the kurento-hello-world demo dependencies, run:

cd kurento-hello-world
bower install

An HTTP server is required for these demos. A very simple way of doing this is by means of a Node.js server. This server can be installed as follows:

sudo npm install -g http-server

Then, in each demo folder execute this command:

http-server -p 8443 -S -C keys/server.crt -K keys/server.key

Finally, open https://localhost:8443/ in your browser to access to the demo.

Take into account that one demo with Generators (kurento-hello-world-recorder-generator) require co, a generator based flow-control for Node.js and browser. In these demos, the experimental JavaScript support must be enabled. In Chrome, this can done in the flags configuration page:

chrome://flags/#enable-javascript-harmony

After enabling this flag, you'll need to restart your browser.

Optional parameters

The demos accept some optional GET parameters given on the URL, you only need to add them to the query string in the same way you would add them to the Node.js executable on your command line:

https://example.com/index.html?ws_uri=wss://example.org/kurento

All demos accept following parameters:

  • ws_uri: the WebSocket Kurento MediaServer endpoint. By default it connects to a Kurento MediaServer instance listening on the port 8433 on the same machine where it's being hosted the demo. The KMS must allow WSS (WebSocket Secure).

  • ice_servers: the TURN and STUN servers to use, formatted as a JSON string holding an array of RTCIceServer objects (the same structure used when configuring a PeerConnection object), or an empty array to disabled them (this is faster and more reliable when doing tests on a local machine or LAN network). By default it use some random servers from a pre-defined list.

    https://example.com/index.html?ice_servers=[{"urls":"stun:stun1.example.net"},{"urls":"stun:stun2.example.net"}]
    https://example.com/index.html?ice_servers=[{"urls":"turn:turn.example.org","username":"user","credential":"myPassword"}]
    

Other parameters specific to each demo can be found defined at the top of their index.js file.

Kurento

What is Kurento

Kurento is an open source software project providing a platform suitable for creating modular applications with advanced real-time communication capabilities. For knowing more about Kurento, please visit the Kurento project website: https://kurento.openvidu.io/.

Kurento is part of FIWARE. For further information on the relationship of FIWARE and Kurento check the Kurento FIWARE Catalog Entry

Kurento is part of the NUBOMEDIA research initiative.

Documentation

The Kurento project provides detailed documentation including tutorials, installation and development guides. A simplified version of the documentation can be found on readthedocs.org. The Open API specification a.k.a. Kurento Protocol is also available on apiary.io.

Source

Code for other Kurento projects can be found in the GitHub Kurento Group.

News and Website

Check the Kurento blog Follow us on Twitter @kurentoms.

Issue tracker

Issues and bug reports should be posted to the GitHub Kurento bugtracker

Licensing and distribution

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.

Contribution policy

You can contribute to the Kurento community through bug-reports, bug-fixes, new code or new documentation. For contributing to the Kurento community, drop a post to the Kurento Public Mailing List providing full information about your contribution and its value. In your contributions, you must comply with the following guidelines

  • You must specify the specific contents of your contribution either through a detailed bug description, through a pull-request or through a patch.
  • You must specify the licensing restrictions of the code you contribute.
  • For newly created code to be incorporated in the Kurento code-base, you must accept Kurento to own the code copyright, so that its open source nature is guaranteed.
  • You must justify appropriately the need and value of your contribution. The Kurento project has no obligations in relation to accepting contributions from third parties.
  • The Kurento project leaders have the right of asking for further explanations, tests or validations of any code contributed to the community before it being incorporated into the Kurento code-base. You must be ready to addressing all these kind of concerns before having your code approved.

Support

The Kurento project provides community support through the Kurento Public Mailing List and through StackOverflow using the tags kurento and fiware-kurento.

Before asking for support, please read first the Kurento Netiquette Guidelines

More Repositories

1

kurento-media-server

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
C++
3,066
star
2

kurento-tutorial-java

[ARCHIVED] Repository moved to the new monorepo: https://github.com/Kurento/kurento
Java
372
star
3

kms-core

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
C
298
star
4

kurento

Kurento WebRTC Media Server
C
255
star
5

kurento-tutorial-node

[ARCHIVED] Repository moved to the new monorepo: https://github.com/Kurento/kurento
JavaScript
213
star
6

kurento-java

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
Java
200
star
7

kurento-docker

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
Dockerfile
124
star
8

kurento-room

[UNMAINTAINED] Kurento Room related projects
Java
112
star
9

kurento-client-js

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
JavaScript
107
star
10

mediasoup-demos

Demos that show how to use mediasoup
JavaScript
107
star
11

kurento-utils-js

[UNMAINTAINED][ARCHIVED] Repository moved to the new monorepo: https://github.com/Kurento/kurento
JavaScript
92
star
12

kms-elements

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
C
68
star
13

doc-kurento

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
Python
49
star
14

bugtracker

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
46
star
15

doc-kurento-readthedocs

[READ-ONLY] Auto-generated documentation sources for ReadTheDocs
HTML
38
star
16

kurento-jsonrpc-js

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
JavaScript
17
star
17

gstreamer

C
16
star
18

kms-opencv-plugin-sample

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
C++
15
star
19

gst-plugins-bad

C
15
star
20

kms-omni-build

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
Shell
15
star
21

kurento-client-bower

[READ-ONLY] Auto-generated JavaScript Client API for Kurento Media Server
JavaScript
14
star
22

kms-filters

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
C
14
star
23

kms-gstreamer-plugin-sample

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
C++
11
star
24

libusrsctp

A portable SCTP userland stack
C
11
star
25

kms-cmake-utils

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
CMake
10
star
26

kms-jsonrpc

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
C++
9
star
27

experiments

Experiments, tests, and proof of concepts
JavaScript
8
star
28

gst-plugins-good

C
8
star
29

openwebrtc-gst-plugins

OpenWebRTC specific GStreamer plugins
C
7
star
30

adm-scripts

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
Shell
7
star
31

openh264-gst-plugin

OpenH264 plugin for GStreamer
7
star
32

kurento-tree

[UNMAINTAINED]
Java
7
star
33

kurento-client-core-js

[READ-ONLY] Auto-generated JavaScript Client API for Kurento Media Server
JavaScript
6
star
34

jsoncpp

C++
6
star
35

gst-plugins-base

C
5
star
36

kms-chroma

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
C
5
star
37

libsrtp

Library for SRTP (Secure Realtime Transport Protocol)
5
star
38

kurento-module-creator

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
Java
5
star
39

kurento-demos-java

Java Client Application demos for Kurento
Java
5
star
40

doc-kurento-room-readthedocs

[UNMAINTAINED][READ-ONLY] Auto-generated documentation sources for ReadTheDocs
CSS
4
star
41

kurento-demos-js

Javascript Client Application demos for Kurento
JavaScript
4
star
42

kms-markerdetector

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
C++
4
star
43

kurento-maven-plugin

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
Java
4
star
44

adm-kurento-ansible

Ansible playbooks
Jinja
4
star
45

gst-plugins-ugly

C
4
star
46

kms-crowddetector

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
C
4
star
47

openh264

Open Source H.264 Codec
C
4
star
48

kurento-utils-bower

[READ-ONLY] Auto-generated kurento-utils JavaScript code for Bower
JavaScript
4
star
49

kurento-qa-pom

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
Shell
3
star
50

kurento-client-elements-js

[READ-ONLY] Auto-generated JavaScript Client API for Kurento Media Server
JavaScript
3
star
51

kurento-client-filters-js

[READ-ONLY] Auto-generated JavaScript Client API for Kurento Media Server
JavaScript
3
star
52

kurento-tutorial-test

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
Java
3
star
53

kms-platedetector

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
C
3
star
54

kurento-module-chroma-js

[READ-ONLY] Auto-generated JavaScript Client API for Kurento Media Server
JavaScript
2
star
55

libnice

GLib based Interactive Connectivity Establishment (ICE) implementation (RFC 5245)
C
2
star
56

kurento-jsonrpc-bower

[READ-ONLY] Auto-generated kurento-jsonrpc JavaScript code for Bower
2
star
57

doc-fiware-readthedocs

[READ-ONLY] Auto-generated documentation sources for ReadTheDocs
API Blueprint
2
star
58

gst-libav

C
2
star
59

kms-datachannelexample

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
C
2
star
60

kurento-module-pointerdetector-js

[READ-ONLY] Auto-generated JavaScript Client API for Kurento Media Server
JavaScript
2
star
61

kms-pointerdetector

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
C
2
star
62

kurento-module-platedetector-js

[READ-ONLY] Auto-generated JavaScript Client API for Kurento Media Server
JavaScript
2
star
63

adm-docker-selenium-repo

Shell
2
star
64

doc-kurento-jsonrpc-readthedocs

[READ-ONLY] Auto-generated documentation sources for ReadTheDocs
CSS
1
star
65

kurento-module-crowddetector-bower

[READ-ONLY] Auto-generated JavaScript Client API for Kurento Media Server
JavaScript
1
star
66

kurento-module-platedetector-bower

[READ-ONLY] Auto-generated JavaScript Client API for Kurento Media Server
JavaScript
1
star
67

kurento-module-crowddetector-js

[READ-ONLY] Auto-generated JavaScript Client API for Kurento Media Server
JavaScript
1
star