Changelogs » Opentok

PyUp Safety actively tracks 268,006 Python packages for vulnerabilities and notifies you when to upgrade.



- Add Broadcast APIs
  Thanks normanargueta!


- Added SIP Dial API
  - Added Set Stream Class Lists API
  Thanks normanargueta!


- List Archives filtration by sessionId (137 )
  - Added Update Archive Layout functionality (139)


Added `resolution` parameter for `start_archive`
  Added `signal` API
  Added `force_disconnect` API
  Added `get_stream` API
  Added `list_streams` API
  Thanks normanargueta and maikthomas


- Add timeout option to opentok constructor (117, 57 Thanks tylergould!)


  - Exceptions now inherit from `Exception` instead of `BaseException` (115, thanks fernandogrd)
  As well as:
  - Update archive documentation (80)
  - Document the `initial_layout_class_list` param for the `generate_token` function (112)
  - Refactor sample app (111)


This updates includes the following changes:
  - [Adds support for the `initial_layout_class_list` field in tokens](
  - [Adds support for JWT `X-OPENTOK-AUTH` header, replacing the deprecated `X-TB-PARTNER-AUTH` header](
  - [Updates the REST API endpoint URL to use `/project/` replacing the deprecated `/partner/`](
  - [Only include connection data in generated token if it's been defined](
  - [Ensure backwards compatibility with Python 2.6](
  - [Removes Python 3.2 from supported version because it's not supported by our dependency](
  As well as:
  - [Updates JS code in samples to use latest API and best practices](
  - [Fix broken image paths in sample](


This update adds support for the `initial_layout_class_list` field in tokens.


This update adds version information to the User-Agent string for analytics (78)


This update adds proxy configuration as a feature of the OpenTok object. (thanks juandebravo!)
  Here is an example of using proxy configuration:
  from opentok import OpenTok
  opentok = OpenTok(api_key, api_secret)
  opentok.proxies = {
  "http": "",
  "https": "",
  session = opentok.create_session()
  The format for the proxy configuration is identical to the format used by the underlying [requests]( library.


New archiving features:
  -  Automatically archived sessions -- See the `archive_mode` parameter of the `opentok.create_session()` method and the `ArchiveModes` class.
  -  Audio-only or video-only archives -- See the `has_audio` and `has_video` parameters of the `opentok.start_archive()` method.
  -  Individual archiving -- See the `output_mode` parameter of the `opentok.start_archive()` method and the `OutputModes` class.
  -  Paused archives -- When no clients are publishing to a session being archived, its status changes to "paused". See `archive.status`.
  Other improvements:
  -  Adds Python 3.4 support


The default setting for the `create_session()` method is to create a session with the media mode set
  to relayed. In previous versions of the SDK, the default setting was to use the OpenTok Media Router
  (media mode set to routed). In a relayed session, clients will attempt to send streams directly
  between each other (peer-to-peer); if clients cannot connect due to firewall restrictions, the
  session uses the OpenTok TURN server to relay audio-video streams.


This version of the SDK includes support for working with OpenTok 2.0 archives. (This API does not
  work with OpenTok 1.0 archives.)
  The `OpenTok.create_session()` method now includes a `media_mode` parameter, instead of a `p2p` parameter.
  For details, see the reference documentation at