File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -255,16 +255,18 @@ You can only start live streaming broadcasts for sessions that use the OpenTok M
255255Start the live streaming broadcast of an OpenTok Session using the
256256` startBroadcast($sessionId, $options) ` method of the ` OpenTok\OpenTok ` class.
257257This will return an ` OpenTok\Broadcast ` instance. The ` $options ` parameter is
258- an optional array used to assign a layout type for the broadcast .
258+ an optional array used to assign broadcast options such as layout, maxDuration, resolution, and more .
259259
260260``` php
261261// Start a live streaming broadcast of a session
262262$broadcast = $opentok->startBroadcast($sessionId);
263263
264264
265- // Start a live streaming broadcast of a session, setting a layout type
265+ // Start a live streaming broadcast of a session, using broadcast options
266266$options = array(
267- 'layout' => Layout::getBestFit()
267+ 'layout' => Layout::getBestFit(),
268+ 'maxDuration' => 5400,
269+ 'resolution' => '1280x720'
268270);
269271$broadcast = $opentok->startBroadcast($sessionId, $options);
270272
You can’t perform that action at this time.
0 commit comments