@hippovideo/video-sdk 0.0.0-experimental-c2d15b2aeadc-20250610 → 0.0.0-experimental-1823b834dc4b-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-2bgpfpwg8in-a880c48ec40f3893dc58.js +1 -0
- package/app/577-bundle-hippo-2bgpfpwg8in-e7394c9b5702665c937d.js +2 -0
- package/app/585-bundle-hippo-2bgpfpwg8in-ea0973697ca9c4ce1327.js +1 -0
- package/app/{777-bundle-hippo-3e5il8ocf9h-b53223b6fa3c2c5948dc.js → 777-bundle-hippo-2bgpfpwg8in-e2462a66324140b8c2e6.js} +10 -10
- package/app/812-bundle-hippo-2bgpfpwg8in-fb6d883259a84fd3cd0d.js +1 -0
- package/app/956-bundle-hippo-2bgpfpwg8in-c87bc99f9685105f0f04.js +2 -0
- package/app/hv_recorder.js +561 -561
- package/app/hv_recorder.js.LICENSE.txt +9 -0
- package/app/webpack-common-manifest.json +6 -6
- package/package.json +1 -1
- package/app/484-bundle-hippo-3e5il8ocf9h-965f7e910225c2d189d8.js +0 -1
- package/app/577-bundle-hippo-3e5il8ocf9h-f8c187ae49575aadf06b.js +0 -2
- package/app/585-bundle-hippo-3e5il8ocf9h-a416af74b7a624772ae1.js +0 -1
- package/app/812-bundle-hippo-3e5il8ocf9h-d55c32b73f622676b24a.js +0 -1
- package/app/956-bundle-hippo-3e5il8ocf9h-43d8b1e08c54b422a524.js +0 -2
- /package/app/{577-bundle-hippo-3e5il8ocf9h-f8c187ae49575aadf06b.js.LICENSE.txt → 577-bundle-hippo-2bgpfpwg8in-e7394c9b5702665c937d.js.LICENSE.txt} +0 -0
- /package/app/{777-bundle-hippo-3e5il8ocf9h-b53223b6fa3c2c5948dc.js.LICENSE.txt → 777-bundle-hippo-2bgpfpwg8in-e2462a66324140b8c2e6.js.LICENSE.txt} +0 -0
- /package/app/{956-bundle-hippo-3e5il8ocf9h-43d8b1e08c54b422a524.js.LICENSE.txt → 956-bundle-hippo-2bgpfpwg8in-c87bc99f9685105f0f04.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}}]);
|