flask_openvidu package¶
OpenVidu Class¶
Main module.
-
class
flask_openvidu.flask_openvidu.
OpenVidu
(app=None)[source]¶ Bases:
object
This class provides an OpenVidu object configured by Flask.
Initialize the OpenVidu object according to Flask config. Factory pattern is supported as well. See init_app().
Note: If app provided, an initial fetch() will be issued, as the OpenVidu object is created.
Parameters: app – Optional Flask application to be bound. -
connect
() → pyopenvidu.openvidu.OpenVidu[source]¶ Creates a new openvidu session instance that belongs to the current Flask application.
Returns: an OpenVidu instance configured according to the Flask configuration.
-
connection
¶ Get or create the OpenVidu instance belongs to the current Flask application.
Because of constructing a new object for every request, fetch() will be automatically called at the first time accessing to it in the request context. This means only a single fetch() call during the handle of each request.
Returns: an OpenVidu instance configured according to the Flask configuration.
-