For statistics and to help our support team debug integrations with a custom player, we have added the possibility to pass some player information:
- name - string
- version - string
This option is available for the following Media Engines
For the other players, this is already done by our plugins.
Add a custom playerInfo
The following example demonstrates how to do so
const wrapperConfig = {
...
playerInfo: {
name: 'your-player-name',
version: 'your-player-version'
},
...
}
Pass the wrapperConfig to the wrapper
At the wrapper instantiation, add the wrapperConfig
object.
An example when using the Hls.js DNA Wrapper
var wrapper = new HlsjsDnaWrapper(hls, streamrootKey, dnaConfig, wrapperConfig)