qoollo / kurento-tutorial-node

Kurento tutorials for Node JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Примеры, добавленные в fork:

  • aquamed-kurento-rtsp2webrtc - демо стенд с пакетом для АкваМеда.
  • kurento-chroma - два окошка, пытается вещать из одного в другое с фильтром, фильтр найти не может (наверное надо отдельно ставить)
  • kurento-one2many-call - наш основной пример (мастер - вьюверы)
  • kurento-one2many-with-plumbers - распределенная версия предыдущего примера, не работает (падает на вью)

aquamed-kurento-rtsp2webrtc

Пример расположен в папке ./aquamed-kurento-rtsp2webrtc. Все пути будут даваться относительно этой папки.

Демо стенд состоит из двух примеров: воспроизведение 1 RTSP потока и воспроизведение одновременно 4 потоков. Для запуска примера необходимо выполнить команды:

$ npm install
$ bower install
$ gulp

Для этого, разумеется, у вас должны быть установлены node.js, bower и gulp.

После выполнения команд нужно запустить файл index.html.

После выполнения этих команд также создаётся пакет для АкваМеда. Это 1 js файл и лежит он в папке ./distr/

Original Readme.md from Kurento is below

Copyright © 2014 Kurento. Licensed under LGPL License.

Kurento tutorial for Node.js

Examples on usage of the Kurento Node.js Client.

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

  • kurento-chroma: WebRTC in loopback with a chroma filter.
  • kurento-crowddetector: WebRTC in loopback with a crowd detector filter.
  • kurento-hello-world: WebRTC loopback sending your webcam stream to a Kurento Media Server and back.
  • kurento-magic-mirror: WebRTC loopback with a filter that detect faces and put them an overlayed image of a hat.
  • kurento-one2many-call: This project makes possible one client to upstream to the server a WebRTC stream so that it can be distributed to other clients.
  • kurento-one2many-with-plumbers: Extension of kurento-one2many-call using plumbers to connect different pipelines.
  • kurento-one2one-call: Bidirectional videophone.
  • kurento-platedetector: WebRTC in loopback with a plate detector filter.
  • kurento-pointerdetector: WebRTC in loopback with a pointer detector filter.

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

Installation instructions

Be sure to have installed [Node.js] in your system:

curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodejs

Install node modules and bower components

npm install

Run the application and have fun ...

npm start

Parameters

The Node.js server accept an optional parameter with the URI of the MediaServer WebSocket endpoint, being set by default at ws://localhost:8888/kurento. You can define its value by using the ws_uri flag:

npm start -- --ws_uri=ws://example.com:8888/kurento

It also accept an optional parameter with the URI of the application server root that will serve the overlay image, being by default at http://localhost:8080/. You can define its value by using the as_uri flag:

npm start -- --as_uri=http://example.org:8080/

For example, if you would like to start the node server in the localhost using the port 8081, then the command is the following:

npm start -- --as_uri=http://localhost:8081/

Please notice that the double dash separator (--) is on purpose.

Kurento

What is Kurento

Kurento provides an open platform for video processing and streaming based on standards.

This platform has several APIs and components which provide solutions to the requirements of multimedia content application developers. These include:

  • Kurento Media Server (KMS). A full featured media server providing the capability to create and manage dynamic multimedia pipelines.
  • Kurento Clients. Libraries to create applications with media capabilities. Kurento provides libraries for Java, browser JavaScript, and Node.js.

Source

The source code of this project can be cloned from the GitHub repository. Code for other Kurento projects can be found in the GitHub Kurento Group.

News and Website

Information about Kurento can be found on our website. Follow us on Twitter @kurentoms.

About

Kurento tutorials for Node JS


Languages

Language:TypeScript 44.2%Language:JavaScript 33.8%Language:HTML 16.3%Language:CSS 3.9%Language:PowerShell 1.2%Language:Batchfile 0.5%Language:Shell 0.1%