https://img.shields.io/pypi/v/flask-openvidu.svg https://img.shields.io/travis/marcsello/flask-openvidu.svg Documentation Status https://api.codacy.com/project/badge/Grade/2e8c279f75694c92892cb732b574e09c

Adds OpenVidu support to your Flask application through PyOpenVidu.

Simple example

A basic Flask app that lists the currently active sessions on the server:

from flask import Flask
from flask_openvidu import OpenVidu

app = Flask(__name__)

app.config["OPENVIDU_URL"] = "https://example.com:4443/"
app.config["OPENVIDU_SECRET"] = "your_secret"

ov = OpenVidu(app)

def sessions():
    text = ""
    for session in ov.connection.sessions:
        text += session.id + "\n"

    return text