@hippovideo/video-sdk 0.0.0-experimental-e008ce2ebad5-20240802 → 0.0.0-experimental-87fdb454103a-20240807
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/188-bundle-hippo-16yfeqtzh6h-b02fecdcc231eb0d3ed0.js +1 -0
- package/app/{245-bundle-hippo-lf8tykwl9le-ae637b47196e1298afcb.js → 245-bundle-hippo-16yfeqtzh6h-3a04c22b7110c4f9e3a9.js} +2 -2
- package/app/290-bundle-hippo-16yfeqtzh6h-ce4126064e68e470e4de.js +1 -0
- package/app/344-bundle-hippo-16yfeqtzh6h-1c3143eaa24925329f19.js +1 -0
- package/app/520-bundle-hippo-16yfeqtzh6h-a3d5b8dfd466f9a7c701.js +2 -0
- package/app/881-bundle-hippo-16yfeqtzh6h-67bcbafb609168a16bed.js +1 -0
- package/app/hv_recorder.js +1 -1
- package/app/webpack-common-manifest.json +6 -6
- package/package.json +1 -1
- package/app/188-bundle-hippo-lf8tykwl9le-4b5acb7117b458a8c6a8.js +0 -1
- package/app/290-bundle-hippo-lf8tykwl9le-f5cb1f36a31ca88cb92f.js +0 -1
- package/app/344-bundle-hippo-lf8tykwl9le-fb2734620bdf90ca62f9.js +0 -1
- package/app/520-bundle-hippo-lf8tykwl9le-8c67834592c74e31aad6.js +0 -2
- package/app/881-bundle-hippo-lf8tykwl9le-1e41c84326fac8446b66.js +0 -1
- /package/app/{245-bundle-hippo-lf8tykwl9le-ae637b47196e1298afcb.js.LICENSE.txt → 245-bundle-hippo-16yfeqtzh6h-3a04c22b7110c4f9e3a9.js.LICENSE.txt} +0 -0
- /package/app/{520-bundle-hippo-lf8tykwl9le-8c67834592c74e31aad6.js.LICENSE.txt → 520-bundle-hippo-16yfeqtzh6h-a3d5b8dfd466f9a7c701.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[881],{24580:function(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(76821),o.__dashjs_factory_name="DownloadRatioRule",r=dashjs.FactoryMaker.getClassFactory(o),t.default=r}}]);
|
|
File without changes
|