@hippovideo/video-sdk 0.0.37 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/{0-bundle-hippo-acwqipg5w29-56590a568e199cb71b99.js → 0-bundle-hippo-sm6qx2nv6ql-56590a568e199cb71b99.js} +0 -0
- package/app/{0-bundle-hippo-acwqipg5w29-56590a568e199cb71b99.js.gz → 0-bundle-hippo-sm6qx2nv6ql-56590a568e199cb71b99.js.gz} +0 -0
- package/app/{1-bundle-hippo-acwqipg5w29-7f140a6a6ff2785c18b2.js → 1-bundle-hippo-sm6qx2nv6ql-7f140a6a6ff2785c18b2.js} +0 -0
- package/app/{1-bundle-hippo-acwqipg5w29-7f140a6a6ff2785c18b2.js.gz → 1-bundle-hippo-sm6qx2nv6ql-7f140a6a6ff2785c18b2.js.gz} +0 -0
- package/app/{10-bundle-hippo-acwqipg5w29-fb87e34b2fe1b4e17710.js → 10-bundle-hippo-sm6qx2nv6ql-fb87e34b2fe1b4e17710.js} +0 -0
- package/app/{10-bundle-hippo-acwqipg5w29-fb87e34b2fe1b4e17710.js.gz → 10-bundle-hippo-sm6qx2nv6ql-fb87e34b2fe1b4e17710.js.gz} +0 -0
- package/app/{11-bundle-hippo-acwqipg5w29-de896c6a6949d666c569.js → 11-bundle-hippo-sm6qx2nv6ql-de896c6a6949d666c569.js} +0 -0
- package/app/{11-bundle-hippo-acwqipg5w29-de896c6a6949d666c569.js.gz → 11-bundle-hippo-sm6qx2nv6ql-de896c6a6949d666c569.js.gz} +0 -0
- package/app/{12-bundle-hippo-acwqipg5w29-405524d761bc9b3e3e4f.js → 12-bundle-hippo-sm6qx2nv6ql-405524d761bc9b3e3e4f.js} +0 -0
- package/app/{12-bundle-hippo-acwqipg5w29-405524d761bc9b3e3e4f.js.gz → 12-bundle-hippo-sm6qx2nv6ql-405524d761bc9b3e3e4f.js.gz} +0 -0
- package/app/{13-bundle-hippo-acwqipg5w29-8dd08c33a173079b92f6.js → 13-bundle-hippo-sm6qx2nv6ql-8dd08c33a173079b92f6.js} +0 -0
- package/app/{13-bundle-hippo-acwqipg5w29-8dd08c33a173079b92f6.js.gz → 13-bundle-hippo-sm6qx2nv6ql-8dd08c33a173079b92f6.js.gz} +0 -0
- package/app/{14-bundle-hippo-acwqipg5w29-c4c6307a2990be2977a8.js → 14-bundle-hippo-sm6qx2nv6ql-c4c6307a2990be2977a8.js} +0 -0
- package/app/{14-bundle-hippo-acwqipg5w29-c4c6307a2990be2977a8.js.gz → 14-bundle-hippo-sm6qx2nv6ql-c4c6307a2990be2977a8.js.gz} +0 -0
- package/app/{15-bundle-hippo-acwqipg5w29-e5c7ddca6f731abf6030.js → 15-bundle-hippo-sm6qx2nv6ql-e5c7ddca6f731abf6030.js} +0 -0
- package/app/{15-bundle-hippo-acwqipg5w29-e5c7ddca6f731abf6030.js.gz → 15-bundle-hippo-sm6qx2nv6ql-e5c7ddca6f731abf6030.js.gz} +0 -0
- package/app/{16-bundle-hippo-acwqipg5w29-310251b16945bbb6603f.js → 16-bundle-hippo-sm6qx2nv6ql-310251b16945bbb6603f.js} +0 -0
- package/app/{16-bundle-hippo-acwqipg5w29-310251b16945bbb6603f.js.gz → 16-bundle-hippo-sm6qx2nv6ql-310251b16945bbb6603f.js.gz} +0 -0
- package/app/{17-bundle-hippo-acwqipg5w29-1fc94667389d604fa69c.js → 17-bundle-hippo-sm6qx2nv6ql-1fc94667389d604fa69c.js} +0 -0
- package/app/{17-bundle-hippo-acwqipg5w29-1fc94667389d604fa69c.js.gz → 17-bundle-hippo-sm6qx2nv6ql-1fc94667389d604fa69c.js.gz} +0 -0
- package/app/{18-bundle-hippo-acwqipg5w29-089a1d3c61f87ee88056.js → 18-bundle-hippo-sm6qx2nv6ql-089a1d3c61f87ee88056.js} +0 -0
- package/app/{18-bundle-hippo-acwqipg5w29-089a1d3c61f87ee88056.js.gz → 18-bundle-hippo-sm6qx2nv6ql-089a1d3c61f87ee88056.js.gz} +0 -0
- package/app/{19-bundle-hippo-acwqipg5w29-dea6453ac82f93d1dbde.js → 19-bundle-hippo-sm6qx2nv6ql-dea6453ac82f93d1dbde.js} +0 -0
- package/app/{19-bundle-hippo-acwqipg5w29-dea6453ac82f93d1dbde.js.gz → 19-bundle-hippo-sm6qx2nv6ql-dea6453ac82f93d1dbde.js.gz} +0 -0
- package/app/{2-bundle-hippo-acwqipg5w29-492ce8f7c79cefd805ed.js → 2-bundle-hippo-sm6qx2nv6ql-492ce8f7c79cefd805ed.js} +0 -0
- package/app/{2-bundle-hippo-acwqipg5w29-492ce8f7c79cefd805ed.js.gz → 2-bundle-hippo-sm6qx2nv6ql-492ce8f7c79cefd805ed.js.gz} +0 -0
- package/app/{20-bundle-hippo-acwqipg5w29-44ac7d0409add2d16207.js → 20-bundle-hippo-sm6qx2nv6ql-44ac7d0409add2d16207.js} +0 -0
- package/app/{20-bundle-hippo-acwqipg5w29-44ac7d0409add2d16207.js.gz → 20-bundle-hippo-sm6qx2nv6ql-44ac7d0409add2d16207.js.gz} +0 -0
- package/app/{21-bundle-hippo-acwqipg5w29-6f946465fb4e3290e1cc.js → 21-bundle-hippo-sm6qx2nv6ql-6f946465fb4e3290e1cc.js} +0 -0
- package/app/{21-bundle-hippo-acwqipg5w29-6f946465fb4e3290e1cc.js.gz → 21-bundle-hippo-sm6qx2nv6ql-6f946465fb4e3290e1cc.js.gz} +0 -0
- package/app/{22-bundle-hippo-acwqipg5w29-67c1de4a8a309f46e967.js → 22-bundle-hippo-sm6qx2nv6ql-67c1de4a8a309f46e967.js} +0 -0
- package/app/{22-bundle-hippo-acwqipg5w29-67c1de4a8a309f46e967.js.gz → 22-bundle-hippo-sm6qx2nv6ql-67c1de4a8a309f46e967.js.gz} +0 -0
- package/app/{23-bundle-hippo-acwqipg5w29-52b1f59b46ad40217d88.js → 23-bundle-hippo-sm6qx2nv6ql-52b1f59b46ad40217d88.js} +0 -0
- package/app/{23-bundle-hippo-acwqipg5w29-52b1f59b46ad40217d88.js.gz → 23-bundle-hippo-sm6qx2nv6ql-52b1f59b46ad40217d88.js.gz} +0 -0
- package/app/{24-bundle-hippo-acwqipg5w29-f69a61e7a0330a7ee721.js → 24-bundle-hippo-sm6qx2nv6ql-f69a61e7a0330a7ee721.js} +0 -0
- package/app/{24-bundle-hippo-acwqipg5w29-f69a61e7a0330a7ee721.js.gz → 24-bundle-hippo-sm6qx2nv6ql-f69a61e7a0330a7ee721.js.gz} +0 -0
- package/app/{25-bundle-hippo-acwqipg5w29-3bd1821622a2be73d3cc.js → 25-bundle-hippo-sm6qx2nv6ql-3bd1821622a2be73d3cc.js} +0 -0
- package/app/{25-bundle-hippo-acwqipg5w29-3bd1821622a2be73d3cc.js.gz → 25-bundle-hippo-sm6qx2nv6ql-3bd1821622a2be73d3cc.js.gz} +0 -0
- package/app/{26-bundle-hippo-acwqipg5w29-af58c09cc71e041943e3.js → 26-bundle-hippo-sm6qx2nv6ql-af58c09cc71e041943e3.js} +0 -0
- package/app/{26-bundle-hippo-acwqipg5w29-af58c09cc71e041943e3.js.gz → 26-bundle-hippo-sm6qx2nv6ql-af58c09cc71e041943e3.js.gz} +0 -0
- package/app/{27-bundle-hippo-acwqipg5w29-25d118b71c88ae02a6b8.js → 27-bundle-hippo-sm6qx2nv6ql-25d118b71c88ae02a6b8.js} +0 -0
- package/app/{27-bundle-hippo-acwqipg5w29-25d118b71c88ae02a6b8.js.gz → 27-bundle-hippo-sm6qx2nv6ql-25d118b71c88ae02a6b8.js.gz} +0 -0
- package/app/{28-bundle-hippo-acwqipg5w29-b98d1f70ef7a158cc14c.js → 28-bundle-hippo-sm6qx2nv6ql-b98d1f70ef7a158cc14c.js} +0 -0
- package/app/{28-bundle-hippo-acwqipg5w29-b98d1f70ef7a158cc14c.js.gz → 28-bundle-hippo-sm6qx2nv6ql-b98d1f70ef7a158cc14c.js.gz} +0 -0
- package/app/{29-bundle-hippo-acwqipg5w29-a82c751ef5532c450e38.js → 29-bundle-hippo-sm6qx2nv6ql-a82c751ef5532c450e38.js} +0 -0
- package/app/{29-bundle-hippo-acwqipg5w29-a82c751ef5532c450e38.js.gz → 29-bundle-hippo-sm6qx2nv6ql-a82c751ef5532c450e38.js.gz} +0 -0
- package/app/{3-bundle-hippo-acwqipg5w29-654f88d377c339a028bf.js → 3-bundle-hippo-sm6qx2nv6ql-654f88d377c339a028bf.js} +0 -0
- package/app/{3-bundle-hippo-acwqipg5w29-654f88d377c339a028bf.js.gz → 3-bundle-hippo-sm6qx2nv6ql-654f88d377c339a028bf.js.gz} +0 -0
- package/app/{30-bundle-hippo-acwqipg5w29-47318f833cb0a43049b2.js → 30-bundle-hippo-sm6qx2nv6ql-47318f833cb0a43049b2.js} +0 -0
- package/app/{30-bundle-hippo-acwqipg5w29-47318f833cb0a43049b2.js.gz → 30-bundle-hippo-sm6qx2nv6ql-47318f833cb0a43049b2.js.gz} +0 -0
- package/app/{31-bundle-hippo-acwqipg5w29-f20131c9840eaf800611.js → 31-bundle-hippo-sm6qx2nv6ql-f20131c9840eaf800611.js} +0 -0
- package/app/{31-bundle-hippo-acwqipg5w29-f20131c9840eaf800611.js.gz → 31-bundle-hippo-sm6qx2nv6ql-f20131c9840eaf800611.js.gz} +0 -0
- package/app/{32-bundle-hippo-acwqipg5w29-57e50dbe06492a245a1b.js → 32-bundle-hippo-sm6qx2nv6ql-57e50dbe06492a245a1b.js} +0 -0
- package/app/{32-bundle-hippo-acwqipg5w29-57e50dbe06492a245a1b.js.gz → 32-bundle-hippo-sm6qx2nv6ql-57e50dbe06492a245a1b.js.gz} +0 -0
- package/app/{33-bundle-hippo-acwqipg5w29-9784ffcd657108977e05.js → 33-bundle-hippo-sm6qx2nv6ql-9784ffcd657108977e05.js} +0 -0
- package/app/{33-bundle-hippo-acwqipg5w29-9784ffcd657108977e05.js.gz → 33-bundle-hippo-sm6qx2nv6ql-9784ffcd657108977e05.js.gz} +0 -0
- package/app/{34-bundle-hippo-acwqipg5w29-8d63594daab17666f71f.js → 34-bundle-hippo-sm6qx2nv6ql-8d63594daab17666f71f.js} +0 -0
- package/app/{34-bundle-hippo-acwqipg5w29-8d63594daab17666f71f.js.gz → 34-bundle-hippo-sm6qx2nv6ql-8d63594daab17666f71f.js.gz} +0 -0
- package/app/{35-bundle-hippo-acwqipg5w29-102fd8853430653828ba.js → 35-bundle-hippo-sm6qx2nv6ql-102fd8853430653828ba.js} +0 -0
- package/app/{35-bundle-hippo-acwqipg5w29-102fd8853430653828ba.js.gz → 35-bundle-hippo-sm6qx2nv6ql-102fd8853430653828ba.js.gz} +0 -0
- package/app/{4-bundle-hippo-acwqipg5w29-7b24f797800e122d00a2.js → 4-bundle-hippo-sm6qx2nv6ql-50eedd838abde712546a.js} +1 -1
- package/app/{4-bundle-hippo-acwqipg5w29-7b24f797800e122d00a2.js.gz → 4-bundle-hippo-sm6qx2nv6ql-50eedd838abde712546a.js.gz} +0 -0
- package/app/{6-bundle-hippo-acwqipg5w29-48e4fb74a0828a28353a.js → 6-bundle-hippo-sm6qx2nv6ql-48e4fb74a0828a28353a.js} +0 -0
- package/app/{6-bundle-hippo-acwqipg5w29-48e4fb74a0828a28353a.js.gz → 6-bundle-hippo-sm6qx2nv6ql-48e4fb74a0828a28353a.js.gz} +0 -0
- package/app/{7-bundle-hippo-acwqipg5w29-db26d9eb75c10a5c87a5.js → 7-bundle-hippo-sm6qx2nv6ql-db26d9eb75c10a5c87a5.js} +0 -0
- package/app/{7-bundle-hippo-acwqipg5w29-db26d9eb75c10a5c87a5.js.gz → 7-bundle-hippo-sm6qx2nv6ql-db26d9eb75c10a5c87a5.js.gz} +0 -0
- package/app/{8-bundle-hippo-acwqipg5w29-4824b888431f0f0e54ee.js → 8-bundle-hippo-sm6qx2nv6ql-4824b888431f0f0e54ee.js} +0 -0
- package/app/{8-bundle-hippo-acwqipg5w29-4824b888431f0f0e54ee.js.gz → 8-bundle-hippo-sm6qx2nv6ql-4824b888431f0f0e54ee.js.gz} +0 -0
- package/app/{9-bundle-hippo-acwqipg5w29-28423b47aac5fb64e0e0.js → 9-bundle-hippo-sm6qx2nv6ql-28423b47aac5fb64e0e0.js} +0 -0
- package/app/{9-bundle-hippo-acwqipg5w29-28423b47aac5fb64e0e0.js.gz → 9-bundle-hippo-sm6qx2nv6ql-28423b47aac5fb64e0e0.js.gz} +0 -0
- package/app/hv_recorder.js +27 -27
- package/app/hv_recorder.js.gz +0 -0
- package/app/webpack-common-manifest.json +70 -70
- package/package.json +1 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -81,4 +81,4 @@
|
|
|
81
81
|
/*!*****************************!*\
|
|
82
82
|
!*** ./src/utils/logger.js ***!
|
|
83
83
|
\*****************************/
|
|
84
|
-
/*! exports provided: enableLogs, logger */function(e,t,r){"use strict";r.r(t),r.d(t,"enableLogs",(function(){return u})),r.d(t,"logger",(function(){return c}));var i=r(/*! ./get-self-scope */"./src/utils/get-self-scope.js");function a(){}var n={trace:a,debug:a,log:a,warn:a,info:a,error:a},s=n;function o(e,t){return t="["+e+"] > "+t}var l=Object(i.getSelfScope)();function d(e){var t=l.console[e];return t?function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];i[0]&&(i[0]=o(e,i[0])),t.apply(l.console,i)}:a}var u=function(e){if(l.console&&!0===e||"object"==typeof e){!function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];r.forEach((function(t){s[t]=e[t]?e[t].bind(e):d(t)}))}(e,"debug","log","info","warn","error");try{s.log()}catch(e){s=n}}else s=n},c=s}}).default},e.exports=i())},779:function(e,t,r){"use strict";r.r(t);r(73),r(96),r(97),r(23),r(133),r(63),r(134);var i=r(77),a=r.n(i),n=r(
|
|
84
|
+
/*! exports provided: enableLogs, logger */function(e,t,r){"use strict";r.r(t),r.d(t,"enableLogs",(function(){return u})),r.d(t,"logger",(function(){return c}));var i=r(/*! ./get-self-scope */"./src/utils/get-self-scope.js");function a(){}var n={trace:a,debug:a,log:a,warn:a,info:a,error:a},s=n;function o(e,t){return t="["+e+"] > "+t}var l=Object(i.getSelfScope)();function d(e){var t=l.console[e];return t?function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];i[0]&&(i[0]=o(e,i[0])),t.apply(l.console,i)}:a}var u=function(e){if(l.console&&!0===e||"object"==typeof e){!function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];r.forEach((function(t){s[t]=e[t]?e[t].bind(e):d(t)}))}(e,"debug","log","info","warn","error");try{s.log()}catch(e){s=n}}else s=n},c=s}}).default},e.exports=i())},779:function(e,t,r){"use strict";r.r(t);r(73),r(96),r(97),r(23),r(133),r(63),r(134);var i=r(77),a=r.n(i),n=r(37),s=r.n(n),o=r(38),l=r.n(o),d=(r(103),r(285),r(59),r(778)),u=r.n(d);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f=function(){function e(t){var r=t.hlsInstance,i=t.statsJsonSeed;s()(this,e),this.hls=r,this.media=r.media,this.statsJsonSeed=i}return l()(e,[{key:"init",value:function(){this.initLogger(),this.HLSLogger&&this.setupMetrics()}},{key:"initLogger",value:function(){if(window.HippoVideo){var e=window.HippoVideo.Class,t=e.Level;this.generateStatConstants.call(this),this.HLSLogger=e.Logger.getLogger("[HLSAdapter]"),this.HLSLoggerLevel=t.INFO}}},{key:"generateStatConstants",value:function(){var e,t,r,i,a,n,s,o=(null===(e=window.HippoVideo)||void 0===e||null===(t=e.UserProfile)||void 0===t?void 0:t.tenantId)||null,l=(null===(r=window.HippoVideo)||void 0===r||null===(i=r.UserProfile)||void 0===i?void 0:i.userId)||null,d=null===(a=window.HippoVideo)||void 0===a?void 0:a.generateUniqueId(),u=!(null===(n=window.HippoVideo)||void 0===n||!n.isDelivery),c=null===(s=navigator.connection)||void 0===s?void 0:s.rtt,f=Intl.DateTimeFormat().resolvedOptions().timeZone;this.nonIndexedDataString="hlsPlayerMetrics;",u&&(this.nonIndexedDataString+="hlsPlayerMetrics-isDelivery;"),this.statsJsonSeed.mfInVideosPresent&&(this.nonIndexedDataString+="hlsPlayerMetrics-isPersonalised;"),f&&(this.nonIndexedDataString+="hlsPlayerMetrics-timeZone--".concat(f,";")),this.statsConstants=h(h({},this.statsJsonSeed),{},{tenant_id:o,user_id:l,session_id:d,isDelivery:u,rtt:c,timeZone:f})}},{key:"setupMetrics",value:function(){var e=this;e.timeChart={done:!0},e.media.addEventListener("play",(function(){e.timeChart.playClickedAt=Number(performance.now().toFixed(2)),e.timeChart.done=!1})),e.hls.on(u.a.Events.FRAG_LOADED,(function(t,r){e.timeChart.firstFragLoadedAt||(e.timeChart.firstFragLoadedAt=Number(performance.now().toFixed(2)),e.timeChart.done=!1);try{e.timeChart.bandwidthConsumed||(e.timeChart.bandwidthConsumed=0),r&&r.frag&&r.frag.loaded&&(e.timeChart.bandwidthConsumed+=Number(r.frag.loaded))}catch(e){}})),e.hls.on(u.a.Events.LEVEL_SWITCHED,(function(){e.timeChart.levelSwitchedCount||(e.timeChart.levelSwitchedCount=0),e.timeChart.levelSwitchedCount++})),e.media.addEventListener("ended",(function(){e.timeChart.mediaEndedAt||(e.timeChart.mediaEndedAt=Number(performance.now().toFixed(2)),e.timeChart.done=!1)})),e.media.addEventListener("waiting",(function(){e.timeChart.mediaWaitingAtArr||(e.timeChart.mediaWaitingAtArr=[]),e.timeChart.mediaWaitingAtArr.push(Number(performance.now().toFixed(2)))})),e.media.addEventListener("playing",(function(){if(e.timeChart.mediaTimeLagArr||(e.timeChart.mediaTimeLagArr=[]),e.timeChart.mediaWaitingAtArr&&e.timeChart.mediaWaitingAtArr.length>e.timeChart.mediaTimeLagArr.length){var t=e.timeChart.mediaWaitingAtArr,r=t[t.length-1],i=Number(performance.now().toFixed(2));e.timeChart.mediaTimeLagArr.push(i-r),e.timeChart.mediaTimeLag=i-r}e.timeChart.done=!1})),e.media.addEventListener("seeked",(function(){e.timeChart.mediaSeekedAt=Number(performance.now().toFixed(2)),e.timeChart.done=!1})),e.media.onerror=function(){e.timeChart.videoErroredMsg="Error ".concat(e.media.error.code,"; details: ").concat(e.media.error.message),e.timeChart.done=!1},window.addEventListener("beforeunload",(function(){e.timeChart.windowUnloadAt=Number(performance.now().toFixed(2)),e.timeChart.done=!1,e.timeChartEval.call(e)})),setInterval((function(){e.timeChartEval()}),2e3)}},{key:"timeChartEval",value:function(){if(!this.timeChart.done){if(this.timeChart.playClickedAt&&(this.timeChart.firstFragLoadedAt&&(this.logg({metric_name:"time-to-first-frame",metric_value:Math.max(0,this.timeChart.firstFragLoadedAt-this.timeChart.playClickedAt)}),this.timeChart.videoStarted=!0,delete this.timeChart.playClickedAt),this.timeChart.videoPlayIntented=!0),this.timeChart.mediaEndedAt||this.timeChart.windowUnloadAt){var e;this.timeChart.levelSwitchedCount&&(this.logg({metric_name:"number-of-variant-changes",metric_value:this.timeChart.levelSwitchedCount}),delete this.timeChart.levelSwitchedCount),this.timeChart.mediaWaitingAtArr&&(this.logg({metric_name:"video-stalled-count",metric_value:this.timeChart.mediaWaitingAtArr.length}),delete this.timeChart.mediaWaitingAtArr),this.timeChart.bandwidthConsumed&&(this.logg({metric_name:"video-bandwidth-used",metric_value:this.timeChart.bandwidthConsumed}),delete this.timeChart.bandwidthConsumed),this.timeChart.videoPlayIntented&&!this.timeChart.videoStarted&&this.timeChart.windowUnloadAt&&this.logg({metric_name:"video-adandon-before-start",metric_value:this.timeChart.windowUnloadAt}),!this.timeChart.videoPlayIntented&&this.timeChart.windowUnloadAt&&this.logg({metric_name:"page-adandon-before-clicking-play",metric_value:this.timeChart.windowUnloadAt});var t=localStorage.getItem("hv-delivery-loaded");t&&null!==(e=this.statsConstants)&&void 0!==e&&e.isDelivery&&(this.logg({metric_name:"hv-delivery-loaded",metric_value:t}),localStorage.removeItem("hv-delivery-loaded")),delete this.timeChart.mediaEndedAt,delete this.timeChart.windowUnloadAt}this.timeChart.mediaTimeLag&&(this.logg({metric_name:"video-stalled-time-to-resume",metric_value:this.timeChart.mediaTimeLag}),this.timeChart.mediaSeekedAt&&(this.logg({metric_name:"video-stalledBySeek-time-to-resume",metric_value:this.timeChart.mediaTimeLag}),delete this.timeChart.mediaSeekedAt),delete this.timeChart.mediaTimeLag),this.timeChart.videoErroredMsg&&(this.logg({metric_name:"video-errored",metric_value:this.timeChart.videoErroredMsg}),delete this.timeChart.videoErroredMsg),this.timeChart.done=!0}}},{key:"logg",value:function(e){var t=this.hls.currentLevel;this.HLSLogger.log(this.HLSLoggerLevel,this.nonIndexedDataString,h(h(h({},this.statsConstants),e),{},{resolutionPlayed:t}))}}]),e}();t.default=f}}]);
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|