Skip to content

Commit

Permalink
fix(FEC-9237): add app protocol for kava plugin (#43)
Browse files Browse the repository at this point in the history
add protocol to plugin for Samsung Smart TV bug
  • Loading branch information
Yuvalke authored Jul 21, 2019
1 parent 9ba55f8 commit d84257f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"access": "public"
},
"devDependencies": {
"@playkit-js/playkit-js": "^0.51.0",
"@playkit-js/playkit-js": "^0.51.1",
"babel-cli": "^6.18.0",
"babel-core": "^6.18.2",
"babel-eslint": "^7.1.1",
Expand Down Expand Up @@ -84,7 +84,7 @@
"webpack-dev-server": "latest"
},
"peerDependencies": {
"@playkit-js/playkit-js": "^0.51.0",
"@playkit-js/playkit-js": "^0.51.1",
"playkit-js-providers": "https://github.com/kaltura/playkit-js-providers.git#master"
},
"keywords": [
Expand Down
3 changes: 1 addition & 2 deletions src/kava.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ class Kava extends BasePlugin {
bufferTimeSum: 0.0,
playTimeSum: 0.0
});

// check the Resource Timing API is supported in the browser and we have a uiConfId
if (performance && this.config.uiConfId) {
let entry = performance.getEntriesByType('resource').find(entry => entry.name.match('embedPlaykitJs.*' + this.config.uiConfId));
Expand Down Expand Up @@ -196,7 +195,7 @@ class Kava extends BasePlugin {
*/
sendAnalytics(model: Object): Promise<*> {
return new Promise((resolve, reject) => {
OVPAnalyticsService.trackEvent(this.config.serviceUrl, model)
OVPAnalyticsService.trackEvent(Utils.Http.protocol + this.config.serviceUrl, model)
.doHttpRequest()
.then(
response => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@playkit-js/playkit-js@^0.47.0":
version "0.47.0"
resolved "https://registry.yarnpkg.com/@playkit-js/playkit-js/-/playkit-js-0.47.0.tgz#f6f0c52750b0ba9d0d7306d0bf6e4c281f1bb1c6"
integrity sha512-cBxVXf42Fwn8G5nzvwfbgzYSCrdgi7gkoqZdrb1ILTcXbJm2z9GTOnKXRwLNMxNFP6TCQb8ialzIsmELwDj28w==
"@playkit-js/playkit-js@^0.51.1":
version "0.51.1"
resolved "https://registry.yarnpkg.com/@playkit-js/playkit-js/-/playkit-js-0.51.1.tgz#e3c8b2be386f2102a35e2fe093569b86d5ff9f08"
integrity sha512-osrQUxZ1+1m9QitxvsCvFY036ot1bTgrsoitrFh642vJvYe6Qd3UdTHs9Z5IPTG9LCKgLaAmiaCNeIh+cE8DfQ==
dependencies:
js-logger "^1.3.0"
ua-parser-js "^0.7.13"
Expand Down

0 comments on commit d84257f

Please sign in to comment.