- Inherits:
- Object
- Defined in:
- lib/opentok/broadcasts.rb
Overview
A class for working with OpenTok live streaming broadcasts. See / Live streaming broadcasts.
Instance Method Summary
-
#create(session_id, options = {}) ⇒ Broadcast
Starts a live streaming broadcast of an OpenTok session.
-
#find(broadcast_id) ⇒ Broadcast
Gets a Broadcast object for the given broadcast ID.
-
#layout(broadcast_id, options = {}) ⇒ Object
Dynamically alters the layout an OpenTok broadcast.
-
#stop(broadcast_id) ⇒ Broadcast
Stops an OpenTok broadcast.
Instance Method Details
#create(session_id, options = {}) ⇒ Broadcast
Starts a live streaming broadcast of an OpenTok session.
Clients must be actively connected to the OpenTok session for you to successfully start a broadcast.
This broadcasts the session to an HLS (HTTP live streaming) or to RTMP streams.
#find(broadcast_id) ⇒ Broadcast
Gets a Broadcast object for the given broadcast ID.
#layout(broadcast_id, options = {}) ⇒ Object
Dynamically alters the layout an OpenTok broadcast. For more information, see For more information, see Configuring video layout for OpenTok live streaming broadcasts.
#stop(broadcast_id) ⇒ Broadcast
Stops an OpenTok broadcast
Note that broadcasts automatically stop after 120 minute