@hippovideo/video-sdk 0.0.0-experimental-dfd7580a5e35-20250617 → 0.0.0-experimental-70be67a40809-20250618
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/484-bundle-hippo-oab9gft41ks-9d91c7a4cb0eb048ab31.js +1 -0
- package/app/577-bundle-hippo-oab9gft41ks-04d31d5f7b4fbbfb20bf.js +2 -0
- package/app/585-bundle-hippo-oab9gft41ks-77e42eaf66dfd92a039f.js +1 -0
- package/app/777-bundle-hippo-oab9gft41ks-1e316ccad72e315cf254.js +847 -0
- package/app/812-bundle-hippo-oab9gft41ks-f3185237c14f832daae0.js +1 -0
- package/app/956-bundle-hippo-oab9gft41ks-b79a3cab965745c86fdf.js +2 -0
- package/app/hv_recorder.js +59 -59
- package/app/webpack-common-manifest.json +6 -6
- package/package.json +1 -1
- package/app/484-bundle-hippo-d6lcepuzfrf-a880c48ec40f3893dc58.js +0 -1
- package/app/577-bundle-hippo-d6lcepuzfrf-2526748f24aa2a976b43.js +0 -2
- package/app/585-bundle-hippo-d6lcepuzfrf-ea0973697ca9c4ce1327.js +0 -1
- package/app/777-bundle-hippo-d6lcepuzfrf-f686806c6dc230e947aa.js +0 -847
- package/app/812-bundle-hippo-d6lcepuzfrf-fb6d883259a84fd3cd0d.js +0 -1
- package/app/956-bundle-hippo-d6lcepuzfrf-ee108b308501f294b12b.js +0 -2
- /package/app/{577-bundle-hippo-d6lcepuzfrf-2526748f24aa2a976b43.js.LICENSE.txt → 577-bundle-hippo-oab9gft41ks-04d31d5f7b4fbbfb20bf.js.LICENSE.txt} +0 -0
- /package/app/{777-bundle-hippo-d6lcepuzfrf-f686806c6dc230e947aa.js.LICENSE.txt → 777-bundle-hippo-oab9gft41ks-1e316ccad72e315cf254.js.LICENSE.txt} +0 -0
- /package/app/{956-bundle-hippo-d6lcepuzfrf-ee108b308501f294b12b.js.LICENSE.txt → 956-bundle-hippo-oab9gft41ks-b79a3cab965745c86fdf.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[812],{48080:(e,t,r)=>{r.r(t),r.d(t,{default:()=>s}),r(25746);var n=r(96763);let a;function o(){let e,t=dashjs.FactoryMaker,r=t.getClassFactoryByName("SwitchRequest"),a=t.getSingletonFactoryByName("MetricsModel"),s=t.getSingletonFactoryByName("DashMetrics"),i=t.getSingletonFactoryByName("DashManifestModel"),l=t.getSingletonFactoryByName("StreamController"),c=this.context;function g(e){return e.trace.reduce((e,t)=>e+t.b[0],0)}return e={getMaxIndex:function(e){let t,u,f,d,m,h,R,y,p,T=e.getMediaInfo().type,_=a(c).getInstance(),I=s(c).getInstance(),M=i(c).getInstance(),N=_.getReadOnlyMetricsFor(T),F=l(c).getInstance(),C=e.getAbrController().getQualityFor(T,F.getActiveStreamInfo()),S=I.getHttpRequests(N),w="true"===function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}("log"),b=null,E=null,D=[],k=r.NO_CHANGE,q=r.PRIORITY.DEFAULT,x=0;if(m=!1,h=1.5,!N)return r(c).create();for(p=S.length-1;p>=0&&null===b;)E=S[p],E._tfinish&&E.trequest&&E.tresponse&&E.trace&&E.trace.length>0&&(b=S[p]),p--;if(null===b)return r(c).create();if("MediaSegment"!==b.type)return r(c).create();if(u=(b._tfinish.getTime()-b.trequest.getTime())/1e3,t=(b._tfinish.getTime()-b.tresponse.getTime())/1e3,u<=0)return r(c).create();for(x=g(b),w&&(n.log("REQUESTED SEGMENT ["+T+"]: ",b.url.split("/").slice(-2)[0]),n.log("LATENCY: "+Number(b.tresponse.getTime()-b.trequest.getTime())+"ms"),n.log("[CustomRules]["+T+"][DownloadRatioRule] DL: "+Number(t.toFixed(3))+"s, Total: "+Number(u.toFixed(3))+"s, Length: "+x)),y=1;p>=0&&y<3;)E=S[p],"MediaSegment"!==E.type&&E._tfinish&&E.trequest&&E.tresponse&&E.trace&&E.trace.length>0&&(u+=(E._tfinish.getTime()-E.trequest.getTime())/1e3,t+=(E._tfinish.getTime()-E.tresponse.getTime())/1e3,x+=g(E),y+=1),p--;if(x*=8,f=x/t,w&&n.log("[CustomRules]["+T+"][DownloadRatioRule] BW = "+Math.round(f/1e3)+" kb/s"),isNaN(f))return r(c).create();for(y=e.getMediaInfo().representationCount,R=e.getRepresentationInfo(),d=M.getBandwidth(R),p=0;p<y;p+=1)D.push(e.getMediaInfo().bitrateList[p].bandwidth);if(f<=d){for(p=C-1;p>0&&!(D[p]<=f);p-=1);return k=p,q=r.PRIORITY.WEAK,r(c).create(k,{name:o.__dashjs_factory_name},q)}for(p=y-1;p>C&&!(f>1.5*D[p]);p-=1);return k=p,q=r.PRIORITY.STRONG,r(c).create(k,{name:o.__dashjs_factory_name},q)}},e}o.__dashjs_factory_name="DownloadRatioRule",a=dashjs.FactoryMaker.getClassFactory(o);const s=a}}]);
|