GithubHelp home page GithubHelp logo

kevinj90825 / pykurento Goto Github PK

View Code? Open in Web Editor NEW

This project forked from minervaproject/pykurento

0.0 2.0 0.0 47 KB

A Kurento client written in python using websocket-client

License: GNU Lesser General Public License v2.1

Python 100.00%

pykurento's Introduction

Pykurento

##We are no longer actively developing this project. Sorry to those who were interested. Feel free to fork.

Pykurento is a Kurento client written in python and uses the websocket-client library for its transport layer.

Installing

pip install git+https://github.com/minervaproject/pykurento.git#egg=pykurento

Usage

Here's a simple example of a loopback pipeline created in a tornado request handler.

from pykurento import KurentoClient, media

kurento = KurentoClient("ws://localhost:8888/kurento")

class LoopbackHandler(tornado.web.RequestHandler):
  def get(self):
    with open("loopback.html","r") as f:
      self.finish(f.read())

  def post(self):
    sdp_offer = self.request.body
    pipeline = kurento.create_pipeline()
    wrtc_pub = media.WebRtcEndpoint()
    sdp_answer = wrtc_pub.process_offer(sdp_offer)
    wrtc_pub.connect(wrtc_pub)
    self.finish(str(sdp_answer))

Source for loopback.html

Developing

Source and deps

git clone https://github.com/minervaproject/pykurento
cd ./pykurento
pip install -r examples/requirements.txt

Running the examples

./examples/app.py

or

PORT=8080 ./examples/app.py

There is an assumption in the examples that your KMS address is localhost:8888. The easiest way during development to make this work is to setup an ssh tunnel to your media server.

ssh -nNT -i <identity file> -L 8888:localhost:8888 <user>@<server address>

License

As with Kurento, this client is released under the terms of LGPL version 2.1 license.

pykurento's People

Contributors

genehallman avatar gitter-badger avatar vaibhavmule avatar

Watchers

Kevin Johnson avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.