Skip to content

Commit

Permalink
feat(FEC-11561): add option to set UUID (#5)
Browse files Browse the repository at this point in the history
Set UUID of smartLib if passed in config
  • Loading branch information
OrenMe committed Oct 26, 2021
1 parent 90c3f6d commit 8bcca75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ dist: xenial
language: node_js
node_js:
- 'node'
env:
global:
- NODE_OPTIONS="--openssl-legacy-provider"

addons:
chrome: stable
Expand Down
3 changes: 3 additions & 0 deletions src/broadpeak.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ class BroadPeak extends BasePlugin {
this.eventManager.listen(this.player, this.player.Event.Core.ERROR, () => this.reset());
this._attachSourceChange();
SmartLib.getInstance().init(this.config.analyticsAddress, this.config.nanoCDNHost, this.config.broadpeakDomainNames);
if (this.config.uuid) {
SmartLib.getInstance().setUUID(this.config.uuid);
}
}

srcReady(): Promise<*> {
Expand Down

0 comments on commit 8bcca75

Please sign in to comment.