@100mslive/hls-stats 0.2.9 → 0.2.10
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/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
"use strict";var H=Object.create;var n=Object.defineProperty,b=Object.defineProperties,g=Object.getOwnPropertyDescriptor,I=Object.getOwnPropertyDescriptors,L=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,y=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var p=(s,t,e)=>t in s?n(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,o=(s,t)=>{for(var e in t||(t={}))f.call(t,e)&&p(s,e,t[e]);if(v)for(var e of v(t))G.call(t,e)&&p(s,e,t[e]);return s},d=(s,t)=>b(s,I(t));var A=(s,t)=>{for(var e in t)n(s,e,{get:t[e],enumerable:!0})},u=(s,t,e,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of L(t))!f.call(s,i)&&i!==e&&n(s,i,{get:()=>t[i],enumerable:!(a=g(t,i))||a.enumerable});return s};var F=(s,t,e)=>(e=s!=null?H(y(s)):{},u(t||!s||!s.__esModule?n(e,"default",{value:s,enumerable:!0}):e,s)),x=s=>u(n({},"__esModule",{value:!0}),s);var P={};A(P,{HlsStats:()=>m});module.exports=x(P);var l=F(require("hls.js"));var h=class{constructor(t,e){this.hlsStatsState={};this.hlsInstance=t,this.videoEl=e}getState(){return this.hlsStatsState}};var c=class extends h{constructor(){super(...arguments);this.timeUpdateHandler=()=>{let e=this.videoEl.buffered.length>0?this.videoEl.buffered.end(0)-this.videoEl.buffered.start(0):0,a=(this.hlsInstance.liveSyncPosition?this.hlsInstance.liveSyncPosition-this.videoEl.currentTime:0)*1e3,r=this.videoEl.getVideoPlaybackQuality().droppedVideoFrames;this.hlsStatsState=d(o({},this.hlsStatsState),{distanceFromLive:a>0?a:0,bufferedDuration:e,droppedFrames:r})};this.levelLoadedHandler=(e,{level:a})=>{let i=this.hlsInstance.levels[a],{bitrate:r,height:S,width:E}=i;this.hlsStatsState=d(o({},this.hlsStatsState),{bitrate:r,videoSize:{height:S,width:E}})};this.fragChangedHandler=(e,{frag:a})=>{let{stats:i,baseurl:r}=a,{bwEstimate:S}=i;this.hlsStatsState=d(o({},this.hlsStatsState),{bandwidthEstimate:S,url:r})}}startGatheringStats(){this.hlsInstance.on(l.default.Events.FRAG_CHANGED,this.fragChangedHandler),this.hlsInstance.on(l.default.Events.LEVEL_LOADED,this.levelLoadedHandler),this.videoEl.addEventListener("timeupdate",this.timeUpdateHandler)}finishGatheringStats(){this.videoEl.removeEventListener("timeupdate",this.timeUpdateHandler),this.hlsInstance.off(l.default.Events.FRAG_CHANGED,this.fragChangedHandler),this.hlsInstance.off(l.default.Events.LEVEL_LOADED,this.levelLoadedHandler)}};var m=class{constructor(t,e){this.intervalFunctionId=-1;this.subscribe=(t,e=2e3)=>(this.adapter.startGatheringStats(),this.intervalFunctionId=setInterval(()=>{t(this.getState())},e),this.unsubscribe);this.unsubscribe=()=>{clearInterval(this.intervalFunctionId),this.adapter.finishGatheringStats()};this.getState=()=>this.adapter.getState();let a=new c(t,e);this.adapter=a}};
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts", "../src/adapters/HlsJsAdapter.ts", "../src/adapters/BaseAdapter.ts", "../src/controllers/HlsStats.ts"],
|
|
4
4
|
"sourcesContent": ["export { HlsStats } from './controllers/HlsStats';\nexport type { IHlsStats } from './interfaces/IHlsStats';\nexport type { HlsPlayerStats } from './interfaces/index';\n", "import Hls from 'hls.js';\nimport { BaseAdapter } from './BaseAdapter';\n\nexport class HlsJsAdapter extends BaseAdapter {\n timeUpdateHandler = () => {\n const bufferedDuration =\n this.videoEl.buffered.length > 0 ? this.videoEl.buffered.end(0) - this.videoEl.buffered.start(0) : 0;\n const distanceFromLive =\n (this.hlsInstance.liveSyncPosition ? this.hlsInstance.liveSyncPosition - this.videoEl.currentTime : 0) * 1000;\n const quality = this.videoEl.getVideoPlaybackQuality();\n const droppedFrames = quality.droppedVideoFrames;\n this.hlsStatsState = {\n ...this.hlsStatsState,\n distanceFromLive: distanceFromLive > 0 ? distanceFromLive : 0,\n bufferedDuration,\n droppedFrames,\n };\n };\n\n levelLoadedHandler = (_: any, { level }: { level: number }) => {\n const currentLevel = this.hlsInstance.levels[level];\n const { bitrate, height, width } = currentLevel;\n this.hlsStatsState = {\n ...this.hlsStatsState,\n bitrate,\n videoSize: {\n height,\n width,\n },\n };\n };\n\n fragChangedHandler = (_: any, { frag }: { frag: { stats: { bwEstimate: number }; baseurl: string } }) => {\n const { stats, baseurl } = frag;\n const { bwEstimate } = stats;\n this.hlsStatsState = {\n ...this.hlsStatsState,\n bandwidthEstimate: bwEstimate,\n url: baseurl,\n };\n };\n\n startGatheringStats(): void {\n this.hlsInstance.on(Hls.Events.FRAG_CHANGED, this.fragChangedHandler);\n this.hlsInstance.on(Hls.Events.LEVEL_LOADED, this.levelLoadedHandler);\n this.videoEl.addEventListener('timeupdate', this.timeUpdateHandler);\n }\n\n finishGatheringStats(): void {\n this.videoEl.removeEventListener('timeupdate', this.timeUpdateHandler);\n this.hlsInstance.off(Hls.Events.FRAG_CHANGED, this.fragChangedHandler);\n this.hlsInstance.off(Hls.Events.LEVEL_LOADED, this.levelLoadedHandler);\n }\n}\n", "import Hls from 'hls.js';\nimport { HlsPlayerStats } from '../interfaces';\nexport abstract class BaseAdapter {\n hlsInstance: Hls;\n videoEl: HTMLVideoElement;\n hlsStatsState: HlsPlayerStats = {};\n constructor(hlsInstance: Hls, videoEl: HTMLVideoElement) {\n this.hlsInstance = hlsInstance;\n this.videoEl = videoEl;\n }\n abstract startGatheringStats(): void;\n abstract finishGatheringStats(): void;\n getState() {\n return this.hlsStatsState;\n }\n}\n", "import Hls from 'hls.js';\nimport { BaseAdapter } from '../adapters/BaseAdapter';\nimport { HlsJsAdapter } from '../adapters/HlsJsAdapter';\nimport { HlsPlayerStats } from '../interfaces';\nimport { IHlsStats } from '../interfaces/IHlsStats';\n\nexport class HlsStats implements IHlsStats {\n adapter: BaseAdapter;\n intervalFunctionId = -1;\n constructor(hlsLibraryInstance: Hls, videoEl: HTMLVideoElement) {\n const hlsJsAdapter = new HlsJsAdapter(hlsLibraryInstance, videoEl);\n this.adapter = hlsJsAdapter;\n }\n\n subscribe = (callback: (state: HlsPlayerStats) => void, interval = 2000) => {\n this.adapter.startGatheringStats();\n //@ts-ignore\n this.intervalFunctionId = setInterval(() => {\n callback(this.getState());\n }, interval);\n return this.unsubscribe;\n };\n unsubscribe = () => {\n clearInterval(this.intervalFunctionId);\n this.adapter.finishGatheringStats();\n };\n\n getState = () => {\n return this.adapter.getState();\n };\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "i5BAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,cAAAE,IAAA,eAAAC,EAAAH,GCAA,IAAAI,EAAgB,qBCET,IAAeC,EAAf,KAA2B,CAIhC,YAAYC,EAAkBC,EAA2B,CADzD,mBAAgC,CAAC,EAE/B,KAAK,YAAcD,EACnB,KAAK,QAAUC,CACjB,CAGA,UAAW,CACT,OAAO,KAAK,aACd,CACF,EDZO,IAAMC,EAAN,cAA2BC,CAAY,CAAvC,kCACL,uBAAoB,IAAM,CACxB,IAAMC,EACJ,KAAK,QAAQ,SAAS,OAAS,EAAI,KAAK,QAAQ,SAAS,IAAI,CAAC,EAAI,KAAK,QAAQ,SAAS,MAAM,CAAC,EAAI,EAC/FC,GACH,KAAK,YAAY,iBAAmB,KAAK,YAAY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,oBAAoB,EAEjC,KAAK,mBAAqB,YAAY,IAAM,CAC1CD,EAAS,KAAK,SAAS,CAAC,CAC1B,EAAGC,CAAQ,EACJ,KAAK,aAEd,iBAAc,IAAM,CAClB,cAAc,KAAK,kBAAkB,EACrC,KAAK,QAAQ,qBAAqB,CACpC,EAEA,cAAW,IACF,KAAK,QAAQ,SAAS,EAlB7B,IAAMC,EAAe,IAAIC,EAAaL,EAAoBC,CAAO,EACjE,KAAK,QAAUG,CACjB,CAkBF",
|
|
6
|
+
"names": ["src_exports", "__export", "HlsStats", "__toCommonJS", "import_hls", "BaseAdapter", "hlsInstance", "videoEl", "HlsJsAdapter", "BaseAdapter", "bufferedDuration", "distanceFromLive", "droppedFrames", "__spreadProps", "__spreadValues", "_", "level", "currentLevel", "bitrate", "height", "width", "frag", "stats", "baseurl", "bwEstimate", "Hls", "HlsStats", "hlsLibraryInstance", "videoEl", "callback", "interval", "hlsJsAdapter", "HlsJsAdapter"]
|
|
7
7
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
var f=Object.defineProperty,u=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var v=(s,e,t)=>e in s?f(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,n=(s,e)=>{for(var t in e||(e={}))H.call(e,t)&&v(s,t,e[t]);if(S)for(var t of S(e))b.call(e,t)&&v(s,t,e[t]);return s},l=(s,e)=>u(s,E(e));import d from"hls.js";var o=class{constructor(e,t){this.hlsStatsState={};this.hlsInstance=e,this.videoEl=t}getState(){return this.hlsStatsState}};var h=class extends o{constructor(){super(...arguments);this.timeUpdateHandler=()=>{let t=this.videoEl.buffered.length>0?this.videoEl.buffered.end(0)-this.videoEl.buffered.start(0):0,a=(this.hlsInstance.liveSyncPosition?this.hlsInstance.liveSyncPosition-this.videoEl.currentTime:0)*1e3,i=this.videoEl.getVideoPlaybackQuality().droppedVideoFrames;this.hlsStatsState=l(n({},this.hlsStatsState),{distanceFromLive:a>0?a:0,bufferedDuration:t,droppedFrames:i})};this.levelLoadedHandler=(t,{level:a})=>{let r=this.hlsInstance.levels[a],{bitrate:i,height:c,width:p}=r;this.hlsStatsState=l(n({},this.hlsStatsState),{bitrate:i,videoSize:{height:c,width:p}})};this.fragChangedHandler=(t,{frag:a})=>{let{stats:r,baseurl:i}=a,{bwEstimate:c}=r;this.hlsStatsState=l(n({},this.hlsStatsState),{bandwidthEstimate:c,url:i})}}startGatheringStats(){this.hlsInstance.on(d.Events.FRAG_CHANGED,this.fragChangedHandler),this.hlsInstance.on(d.Events.LEVEL_LOADED,this.levelLoadedHandler),this.videoEl.addEventListener("timeupdate",this.timeUpdateHandler)}finishGatheringStats(){this.videoEl.removeEventListener("timeupdate",this.timeUpdateHandler),this.hlsInstance.off(d.Events.FRAG_CHANGED,this.fragChangedHandler),this.hlsInstance.off(d.Events.LEVEL_LOADED,this.levelLoadedHandler)}};var m=class{constructor(e,t){this.intervalFunctionId=-1;this.subscribe=(e,t=2e3)=>(this.adapter.startGatheringStats(),this.intervalFunctionId=setInterval(()=>{e(this.getState())},t),this.unsubscribe);this.unsubscribe=()=>{clearInterval(this.intervalFunctionId),this.adapter.finishGatheringStats()};this.getState=()=>this.adapter.getState();let a=new h(e,t);this.adapter=a}};export{m as HlsStats};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/adapters/HlsJsAdapter.ts", "../src/adapters/BaseAdapter.ts", "../src/controllers/HlsStats.ts"],
|
|
4
4
|
"sourcesContent": ["import Hls from 'hls.js';\nimport { BaseAdapter } from './BaseAdapter';\n\nexport class HlsJsAdapter extends BaseAdapter {\n timeUpdateHandler = () => {\n const bufferedDuration =\n this.videoEl.buffered.length > 0 ? this.videoEl.buffered.end(0) - this.videoEl.buffered.start(0) : 0;\n const distanceFromLive =\n (this.hlsInstance.liveSyncPosition ? this.hlsInstance.liveSyncPosition - this.videoEl.currentTime : 0) * 1000;\n const quality = this.videoEl.getVideoPlaybackQuality();\n const droppedFrames = quality.droppedVideoFrames;\n this.hlsStatsState = {\n ...this.hlsStatsState,\n distanceFromLive: distanceFromLive > 0 ? distanceFromLive : 0,\n bufferedDuration,\n droppedFrames,\n };\n };\n\n levelLoadedHandler = (_: any, { level }: { level: number }) => {\n const currentLevel = this.hlsInstance.levels[level];\n const { bitrate, height, width } = currentLevel;\n this.hlsStatsState = {\n ...this.hlsStatsState,\n bitrate,\n videoSize: {\n height,\n width,\n },\n };\n };\n\n fragChangedHandler = (_: any, { frag }: { frag: { stats: { bwEstimate: number }; baseurl: string } }) => {\n const { stats, baseurl } = frag;\n const { bwEstimate } = stats;\n this.hlsStatsState = {\n ...this.hlsStatsState,\n bandwidthEstimate: bwEstimate,\n url: baseurl,\n };\n };\n\n startGatheringStats(): void {\n this.hlsInstance.on(Hls.Events.FRAG_CHANGED, this.fragChangedHandler);\n this.hlsInstance.on(Hls.Events.LEVEL_LOADED, this.levelLoadedHandler);\n this.videoEl.addEventListener('timeupdate', this.timeUpdateHandler);\n }\n\n finishGatheringStats(): void {\n this.videoEl.removeEventListener('timeupdate', this.timeUpdateHandler);\n this.hlsInstance.off(Hls.Events.FRAG_CHANGED, this.fragChangedHandler);\n this.hlsInstance.off(Hls.Events.LEVEL_LOADED, this.levelLoadedHandler);\n }\n}\n", "import Hls from 'hls.js';\nimport { HlsPlayerStats } from '../interfaces';\nexport abstract class BaseAdapter {\n hlsInstance: Hls;\n videoEl: HTMLVideoElement;\n hlsStatsState: HlsPlayerStats = {};\n constructor(hlsInstance: Hls, videoEl: HTMLVideoElement) {\n this.hlsInstance = hlsInstance;\n this.videoEl = videoEl;\n }\n abstract startGatheringStats(): void;\n abstract finishGatheringStats(): void;\n getState() {\n return this.hlsStatsState;\n }\n}\n", "import Hls from 'hls.js';\nimport { BaseAdapter } from '../adapters/BaseAdapter';\nimport { HlsJsAdapter } from '../adapters/HlsJsAdapter';\nimport { HlsPlayerStats } from '../interfaces';\nimport { IHlsStats } from '../interfaces/IHlsStats';\n\nexport class HlsStats implements IHlsStats {\n adapter: BaseAdapter;\n intervalFunctionId = -1;\n constructor(hlsLibraryInstance: Hls, videoEl: HTMLVideoElement) {\n const hlsJsAdapter = new HlsJsAdapter(hlsLibraryInstance, videoEl);\n this.adapter = hlsJsAdapter;\n }\n\n subscribe = (callback: (state: HlsPlayerStats) => void, interval = 2000) => {\n this.adapter.startGatheringStats();\n //@ts-ignore\n this.intervalFunctionId = setInterval(() => {\n callback(this.getState());\n }, interval);\n return this.unsubscribe;\n };\n unsubscribe = () => {\n clearInterval(this.intervalFunctionId);\n this.adapter.finishGatheringStats();\n };\n\n getState = () => {\n return this.adapter.getState();\n };\n}\n"],
|
|
5
|
-
"mappings": "6aAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "6aAAA,OAAOA,MAAS,SCET,IAAeC,EAAf,KAA2B,CAIhC,YAAYC,EAAkBC,EAA2B,CADzD,mBAAgC,CAAC,EAE/B,KAAK,YAAcD,EACnB,KAAK,QAAUC,CACjB,CAGA,UAAW,CACT,OAAO,KAAK,aACd,CACF,EDZO,IAAMC,EAAN,cAA2BC,CAAY,CAAvC,kCACL,uBAAoB,IAAM,CACxB,IAAMC,EACJ,KAAK,QAAQ,SAAS,OAAS,EAAI,KAAK,QAAQ,SAAS,IAAI,CAAC,EAAI,KAAK,QAAQ,SAAS,MAAM,CAAC,EAAI,EAC/FC,GACH,KAAK,YAAY,iBAAmB,KAAK,YAAY,iBAAmB,KAAK,QAAQ,YAAc,GAAK,IAErGC,EADU,KAAK,QAAQ,wBAAwB,EACvB,mBAC9B,KAAK,cAAgBC,EAAAC,EAAA,GAChB,KAAK,eADW,CAEnB,iBAAkBH,EAAmB,EAAIA,EAAmB,EAC5D,iB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W,IACF,KAAK,QAAQ,SAAS,EAlB7B,IAAMC,EAAe,IAAIC,EAAaL,EAAoBC,CAAO,EACjE,KAAK,QAAUG,CACjB,CAkBF",
|
|
6
|
+
"names": ["Hls", "BaseAdapter", "hlsInstance", "videoEl", "HlsJsAdapter", "BaseAdapter", "bufferedDuration", "distanceFromLive", "droppedFrames", "__spreadProps", "__spreadValues", "_", "level", "currentLevel", "bitrate", "height", "width", "frag", "stats", "baseurl", "bwEstimate", "Hls", "HlsStats", "hlsLibraryInstance", "videoEl", "callback", "interval", "hlsJsAdapter", "HlsJsAdapter"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@100mslive/hls-stats",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "A simple library that provides stats for your hls stream",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"hls.js": "^1.3.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "fe8f6b9b3b39b210c46f19c021ccf37c654c32d4"
|
|
40
40
|
}
|