opentok / Opentok-Python-SDK

OpenTok Python SDK
https://tokbox.com/developer/sdks/python/
MIT License
73 stars 83 forks source link

API proposal: Update Archive Layout #138

Closed normanargueta closed 6 years ago

normanargueta commented 6 years ago

This is a proposal to add a new OpenTok Python SDK method to change the layout of the archives dynamically.

opentok.set_archive_layout(archive_id, type, stylesheet)

For composed archives, you can change the layout dynamically. See docs.

Usage

# The values for type could be:
# 'custom', 'horizontalPresentation', 'pip' and 'verticalPresentation'
opentok.set_archive_layout('ARCHIVEID', 'horizontalPresentation')

# If you specify a `custom` layout type, set the stylesheet parameter
opentok.set_archive_layout(
   'ARCHIVEID',
   'custom',
   'stream.instructor {position: absolute; width: 100%;  height:50%;}'
)
msach22 commented 6 years ago

Released with 2.8.0