@hippovideo/video-sdk 0.0.0-experimental-be3a15f1dbb0-20250609 → 0.0.0-experimental-c2d15b2aeadc-20250610
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-3e5il8ocf9h-965f7e910225c2d189d8.js +1 -0
- package/app/577-bundle-hippo-3e5il8ocf9h-f8c187ae49575aadf06b.js +2 -0
- package/app/577-bundle-hippo-3e5il8ocf9h-f8c187ae49575aadf06b.js.LICENSE.txt +19 -0
- package/app/585-bundle-hippo-3e5il8ocf9h-a416af74b7a624772ae1.js +1 -0
- package/app/777-bundle-hippo-3e5il8ocf9h-b53223b6fa3c2c5948dc.js +847 -0
- package/app/{812-bundle-hippo-a1f7qqmbone-b25449c3ab73cddb27c9.js → 812-bundle-hippo-3e5il8ocf9h-d55c32b73f622676b24a.js} +1 -1
- package/app/956-bundle-hippo-3e5il8ocf9h-43d8b1e08c54b422a524.js +2 -0
- package/app/{956-bundle-hippo-a1f7qqmbone-51e1fd8c21f74c14ffba.js.LICENSE.txt → 956-bundle-hippo-3e5il8ocf9h-43d8b1e08c54b422a524.js.LICENSE.txt} +28 -28
- package/app/hv_recorder.js +12388 -1
- package/app/hv_recorder.js.LICENSE.txt +0 -12
- package/app/webpack-common-manifest.json +6 -6
- package/package.json +1 -1
- package/app/484-bundle-hippo-a1f7qqmbone-6bc4e45765bd2c6a1d20.js +0 -1
- package/app/577-bundle-hippo-a1f7qqmbone-441d37b6e72289e245b0.js +0 -2
- package/app/577-bundle-hippo-a1f7qqmbone-441d37b6e72289e245b0.js.LICENSE.txt +0 -19
- package/app/841-bundle-hippo-a1f7qqmbone-4dc2f50eed666c5fed03.js +0 -1
- package/app/854-bundle-hippo-a1f7qqmbone-b0ea1135f98a74a2348b.js +0 -2
- package/app/956-bundle-hippo-a1f7qqmbone-51e1fd8c21f74c14ffba.js +0 -2
- /package/app/{854-bundle-hippo-a1f7qqmbone-b0ea1135f98a74a2348b.js.LICENSE.txt → 777-bundle-hippo-3e5il8ocf9h-b53223b6fa3c2c5948dc.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[812],{
|
|
1
|
+
"use strict";(self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[812],{48080:(e,t,n)=>{let r;function o(){let e,t=dashjs.FactoryMaker,n=t.getClassFactoryByName("SwitchRequest"),r=t.getSingletonFactoryByName("MetricsModel"),a=t.getSingletonFactoryByName("DashMetrics"),s=t.getSingletonFactoryByName("DashManifestModel"),i=t.getSingletonFactoryByName("StreamController"),l=this.context;function c(e){return e.trace.reduce(((e,t)=>e+t.b[0]),0)}return e={getMaxIndex:function(e){let t,g,u,f,d,m,h,R,y,p=e.getMediaInfo().type,T=r(l).getInstance(),_=a(l).getInstance(),I=s(l).getInstance(),M=T.getReadOnlyMetricsFor(p),N=i(l).getInstance(),F=e.getAbrController().getQualityFor(p,N.getActiveStreamInfo()),C=_.getHttpRequests(M),S="true"===function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}("log"),w=null,b=null,E=[],D=n.NO_CHANGE,k=n.PRIORITY.DEFAULT,q=0;if(d=!1,m=1.5,!M)return n(l).create();for(y=C.length-1;y>=0&&null===w;)b=C[y],b._tfinish&&b.trequest&&b.tresponse&&b.trace&&b.trace.length>0&&(w=C[y]),y--;if(null===w)return n(l).create();if("MediaSegment"!==w.type)return n(l).create();if(g=(w._tfinish.getTime()-w.trequest.getTime())/1e3,t=(w._tfinish.getTime()-w.tresponse.getTime())/1e3,g<=0)return n(l).create();for(q=c(w),S&&(console.log("REQUESTED SEGMENT ["+p+"]: ",w.url.split("/").slice(-2)[0]),console.log("LATENCY: "+Number(w.tresponse.getTime()-w.trequest.getTime())+"ms"),console.log("[CustomRules]["+p+"][DownloadRatioRule] DL: "+Number(t.toFixed(3))+"s, Total: "+Number(g.toFixed(3))+"s, Length: "+q)),R=1;y>=0&&R<3;)b=C[y],"MediaSegment"!==b.type&&b._tfinish&&b.trequest&&b.tresponse&&b.trace&&b.trace.length>0&&(g+=(b._tfinish.getTime()-b.trequest.getTime())/1e3,t+=(b._tfinish.getTime()-b.tresponse.getTime())/1e3,q+=c(b),R+=1),y--;if(q*=8,u=q/t,S&&console.log("[CustomRules]["+p+"][DownloadRatioRule] BW = "+Math.round(u/1e3)+" kb/s"),isNaN(u))return n(l).create();for(R=e.getMediaInfo().representationCount,h=e.getRepresentationInfo(),f=I.getBandwidth(h),y=0;y<R;y+=1)E.push(e.getMediaInfo().bitrateList[y].bandwidth);if(u<=f){for(y=F-1;y>0&&!(E[y]<=u);y-=1);return D=y,k=n.PRIORITY.WEAK,n(l).create(D,{name:o.__dashjs_factory_name},k)}for(y=R-1;y>F&&!(u>1.5*E[y]);y-=1);return D=y,k=n.PRIORITY.STRONG,n(l).create(D,{name:o.__dashjs_factory_name},k)}},e}n.r(t),n.d(t,{default:()=>a}),n(25746),o.__dashjs_factory_name="DownloadRatioRule",r=dashjs.FactoryMaker.getClassFactory(o);const a=r}}]);
|