Skip to content

Commit 1c72c46

Browse files
committed
improve README for startBroadcast
1 parent f70dac0 commit 1c72c46

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,16 +255,18 @@ You can only start live streaming broadcasts for sessions that use the OpenTok M
255255
Start the live streaming broadcast of an OpenTok Session using the
256256
`startBroadcast($sessionId, $options)` method of the `OpenTok\OpenTok` class.
257257
This 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

0 commit comments

Comments
 (0)