Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
wjoosen committed May 24, 2024
1 parent 27ef3bd commit ba94cf7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions yospace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,10 @@ await yospaceConnector.setupYospaceSession(source, sessionProperties);
```

Once the setup of the Yospace session is done, you can continue to use the player and the connector will handle everything related to Yospace.

To shutdown the current Yospace session, use the connector's `destroy()` method. The connector automatically calls `session.shutdown()` on session initialization errors and when creating a new session. If you, however, set a non-yospace source to the player after using this connector, it is your responsibility to do this through `destroy()`.

```javascript
yospaceConnector.destroy();
player.source = SOME_NON_YOSPACE_SOURCE;
```

0 comments on commit ba94cf7

Please sign in to comment.