Skip to content

Commit

Permalink
add code example
Browse files Browse the repository at this point in the history
  • Loading branch information
wjoosen committed Dec 17, 2024
1 parent e6d32e0 commit d8e02a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conviva/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ The Conviva connector is now ready to start a session once THEOplayer starts pla

Note that the `convivaMetadata` provided to the `ConvivaConnector` constructor is primarily used to pass on to the Conviva SDK's `reportPlaybackRequested`. If a source is set to the player after initialisation the connector, you should always provide the corresponding metadata (again) through the connector's `setContentInfo` method.

```js
player.source = exampleSource;
convivaIntegration.setContentInfo(exampleSourceMetadata);
```

## Usage with Yospace connector

If you have a Yospace SSAI stream and want to also report ad related events to Conviva, you can use this connector in combination with the Yospace connector: [@theoplayer/yospace-connector-web](https://www.npmjs.com/package/@theoplayer/yospace-connector-web)
Expand Down

0 comments on commit d8e02a3

Please sign in to comment.