@hippovideo/video-sdk 0.0.0-experimental-57e5188bf2f4-20230412 → 0.0.0-experimental-3f0fc16a9182-20230412
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-jg92yxh4ptg-b0e470050ed64c1ef410.js +1 -0
- package/app/307-bundle-hippo-jg92yxh4ptg-df96d02d7be681b608e1.js +1 -0
- package/app/{520-bundle-hippo-s5wv9kbacp-88f5445625e785134d69.js → 520-bundle-hippo-jg92yxh4ptg-5b14ec0550c41c49a6f9.js} +1 -1
- package/app/{307-bundle-hippo-s5wv9kbacp-46ceaa5b69d013f1a160.js → 620-bundle-hippo-jg92yxh4ptg-3535e2a9b44bf0802f2b.js} +1 -1
- package/app/693-bundle-hippo-jg92yxh4ptg-44beb732c5c7d51e5148.js +1 -0
- package/app/hv_recorder.css +1 -1
- package/app/hv_recorder.js +1 -1
- package/app/hv_recorder.js.LICENSE.txt +351 -0
- package/app/webpack-common-manifest.json +37 -36
- package/package.json +1 -1
- package/app/188-bundle-hippo-s5wv9kbacp-172cb81eed965b87561f.js +0 -1
- package/app/245-bundle-hippo-s5wv9kbacp-df9840613ab18982c9c7.js +0 -2
- package/app/245-bundle-hippo-s5wv9kbacp-df9840613ab18982c9c7.js.LICENSE.txt +0 -125
- /package/app/{107-bundle-hippo-s5wv9kbacp-3fad86f11646f0cd2296.js → 107-bundle-hippo-jg92yxh4ptg-3fad86f11646f0cd2296.js} +0 -0
- /package/app/{157-bundle-hippo-s5wv9kbacp-43ffe4f0105f15644971.js → 157-bundle-hippo-jg92yxh4ptg-43ffe4f0105f15644971.js} +0 -0
- /package/app/{238-bundle-hippo-s5wv9kbacp-b61acbf599b47f15e1ff.js → 238-bundle-hippo-jg92yxh4ptg-b61acbf599b47f15e1ff.js} +0 -0
- /package/app/{239-bundle-hippo-s5wv9kbacp-29765f212c5b82b9b5c9.js → 239-bundle-hippo-jg92yxh4ptg-29765f212c5b82b9b5c9.js} +0 -0
- /package/app/{283-bundle-hippo-s5wv9kbacp-8e24dc0f420ee494af1f.js → 283-bundle-hippo-jg92yxh4ptg-8e24dc0f420ee494af1f.js} +0 -0
- /package/app/{362-bundle-hippo-s5wv9kbacp-28bf93bdaaaca6e8a7d1.js → 362-bundle-hippo-jg92yxh4ptg-28bf93bdaaaca6e8a7d1.js} +0 -0
- /package/app/{37-bundle-hippo-s5wv9kbacp-9b5af7bec7e324bfea39.js → 37-bundle-hippo-jg92yxh4ptg-9b5af7bec7e324bfea39.js} +0 -0
- /package/app/{442-bundle-hippo-s5wv9kbacp-a40760aafd35feb385c9.js → 442-bundle-hippo-jg92yxh4ptg-a40760aafd35feb385c9.js} +0 -0
- /package/app/{454-bundle-hippo-s5wv9kbacp-640863e104cb8d4444b5.js → 454-bundle-hippo-jg92yxh4ptg-640863e104cb8d4444b5.js} +0 -0
- /package/app/{487-bundle-hippo-s5wv9kbacp-a8a4683af31cd239bdfa.js → 487-bundle-hippo-jg92yxh4ptg-a8a4683af31cd239bdfa.js} +0 -0
- /package/app/{520-bundle-hippo-s5wv9kbacp-88f5445625e785134d69.js.LICENSE.txt → 520-bundle-hippo-jg92yxh4ptg-5b14ec0550c41c49a6f9.js.LICENSE.txt} +0 -0
- /package/app/{525-bundle-hippo-s5wv9kbacp-9e22fb533f478807c968.js → 525-bundle-hippo-jg92yxh4ptg-9e22fb533f478807c968.js} +0 -0
- /package/app/{528-bundle-hippo-s5wv9kbacp-e7c6879087f0bc809436.js → 528-bundle-hippo-jg92yxh4ptg-e7c6879087f0bc809436.js} +0 -0
- /package/app/{582-bundle-hippo-s5wv9kbacp-a9eac0a0dff2505acd77.js → 582-bundle-hippo-jg92yxh4ptg-a9eac0a0dff2505acd77.js} +0 -0
- /package/app/{605-bundle-hippo-s5wv9kbacp-3d6e46646daa3d9ffc77.js → 605-bundle-hippo-jg92yxh4ptg-3d6e46646daa3d9ffc77.js} +0 -0
- /package/app/{611-bundle-hippo-s5wv9kbacp-f7d2a84b0b194f07a962.js → 611-bundle-hippo-jg92yxh4ptg-f7d2a84b0b194f07a962.js} +0 -0
- /package/app/{652-bundle-hippo-s5wv9kbacp-2446a2200548df5c62f3.js → 652-bundle-hippo-jg92yxh4ptg-2446a2200548df5c62f3.js} +0 -0
- /package/app/{66-bundle-hippo-s5wv9kbacp-d26ab7f3718ca8adb7b9.js → 66-bundle-hippo-jg92yxh4ptg-d26ab7f3718ca8adb7b9.js} +0 -0
- /package/app/{660-bundle-hippo-s5wv9kbacp-e4d99213565d245f92b3.js → 660-bundle-hippo-jg92yxh4ptg-e4d99213565d245f92b3.js} +0 -0
- /package/app/{692-bundle-hippo-s5wv9kbacp-98e2778801517c6d709f.js → 692-bundle-hippo-jg92yxh4ptg-98e2778801517c6d709f.js} +0 -0
- /package/app/{751-bundle-hippo-s5wv9kbacp-d3e1ee01d1e1f8c54119.js → 751-bundle-hippo-jg92yxh4ptg-d3e1ee01d1e1f8c54119.js} +0 -0
- /package/app/{771-bundle-hippo-s5wv9kbacp-5a6062e3490ee9261b7e.js → 771-bundle-hippo-jg92yxh4ptg-5a6062e3490ee9261b7e.js} +0 -0
- /package/app/{780-bundle-hippo-s5wv9kbacp-4e7a932e3d7564dbfd08.js → 780-bundle-hippo-jg92yxh4ptg-4e7a932e3d7564dbfd08.js} +0 -0
- /package/app/{795-bundle-hippo-s5wv9kbacp-fa5dee47c4eb61932834.js → 795-bundle-hippo-jg92yxh4ptg-fa5dee47c4eb61932834.js} +0 -0
- /package/app/{823-bundle-hippo-s5wv9kbacp-2b0bbd0da340d8be2937.js → 823-bundle-hippo-jg92yxh4ptg-2b0bbd0da340d8be2937.js} +0 -0
- /package/app/{847-bundle-hippo-s5wv9kbacp-a7274fcf2651c06dc9cc.js → 847-bundle-hippo-jg92yxh4ptg-a7274fcf2651c06dc9cc.js} +0 -0
- /package/app/{85-bundle-hippo-s5wv9kbacp-cee943b1271f7f21df76.js → 85-bundle-hippo-jg92yxh4ptg-cee943b1271f7f21df76.js} +0 -0
- /package/app/{869-bundle-hippo-s5wv9kbacp-ba44b48c8f4a26fe0e40.js → 869-bundle-hippo-jg92yxh4ptg-ba44b48c8f4a26fe0e40.js} +0 -0
- /package/app/{881-bundle-hippo-s5wv9kbacp-1e41c84326fac8446b66.js → 881-bundle-hippo-jg92yxh4ptg-1e41c84326fac8446b66.js} +0 -0
- /package/app/{892-bundle-hippo-s5wv9kbacp-6dc5a8967bfd8695b74a.js → 892-bundle-hippo-jg92yxh4ptg-6dc5a8967bfd8695b74a.js} +0 -0
- /package/app/{907-bundle-hippo-s5wv9kbacp-6b974d5b2e5cef32804d.js → 907-bundle-hippo-jg92yxh4ptg-6b974d5b2e5cef32804d.js} +0 -0
- /package/app/{963-bundle-hippo-s5wv9kbacp-abde1d79679a282d1de2.js → 963-bundle-hippo-jg92yxh4ptg-abde1d79679a282d1de2.js} +0 -0
- /package/app/{99-bundle-hippo-s5wv9kbacp-97ea9400b435050ace92.js → 99-bundle-hippo-jg92yxh4ptg-97ea9400b435050ace92.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[188],{32125:function(e,t,i){i.r(t);var a=i(85614),n=i.n(a),s=i(65759),o=i(96814),r=i.n(o),l=i(98405),d=i.n(l),p=i(64542),c=i.n(p),y=i(80300);let _={},u={},m={},T={},S={},A=[],k={},g={};g[n().analytics.VIDEO_STATS]={seconds:10,calls:20},g[n().analytics.FIRST_FRAME_LOAD]={calls:1},g[n().analytics.UPDATE_BANDWIDTH]={calls:1},g[n().analytics.CLOSE_EVENT]={calls:1};let D={};D[n().kinesisDataStreamType.VIDEO_ANALYTICS]=JSON.parse(s).videoAnalyticsIdentity,D[n().kinesisDataStreamType.VIDEO_PAGE_REPORTS]=JSON.parse(s).videoAnalyticsIdentity,D[n().kinesisDataStreamType.PERFORMANCE_STATS]=JSON.parse(s).metricLogIdentity;let O={};O[n().kinesisDataStreamType.VIDEO_ANALYTICS]=JSON.parse(s).videoAnalyticsFallback,O[n().kinesisDataStreamType.VIDEO_PAGE_REPORTS]=JSON.parse(s).videoAnalyticsFallback;let R=1e3*(window.HippoVideo&&window.HippoVideo.AppRegistry&&window.HippoVideo.AppRegistry.KinesisApiTimeout?Number(window.HippoVideo.AppRegistry.KinesisApiTimeout):10);window.onbeforeunload=()=>{for(let e in _)try{_[e].clearCachedId()}catch(e){}};let f={setAnalayticsCognito(e,t){if(e&&t)try{if(_[e])try{_[e].clearCachedId()}catch(e){}_[e]=new(c())({IdentityId:t.identity_id,Logins:{"cognito-identity.amazonaws.com":t.token}},{region:t.region,httpOptions:{timeout:R}}),S[e]=t.stream_name,u[e]=t.region,T[e]=t.bean_stalk_environment,m[e]=null,this._initKinesis(e)}catch(e){console.log(e)}},pushRecord(e,t,i,a){if(!this.isValidKinesisRequest(i))return;a=null==a||a,i.stream_type=e,T[e]&&(i.bean_stalk_environment=T[e]),"HippoVideo"in window&&HippoVideo.Delivery.visitorId&&(i.visitor_id=HippoVideo.Delivery.visitorId),i.recordCreatedTime=(new Date).getTime()/1e3,i.recordCreatedFrom="client";let n=this;_[e]?n._pushRecord(e,t,i,a,(e=>{}),(s=>{n._refreshToken(e,i,(s=>{n.setAnalayticsCognito(e,s),n._pushRecord(e,t,i,a,(e=>{}),(a=>{n._fallback(e,t,i)}))}),(a=>{n._fallback(e,t,i)}))})):n._fallback(e,t,i)},isValidKinesisRequest(e){if(!g[e.type])return!0;let t=e.video_uuid?e.video_uuid:e.page_uuid;if(t){if(k[t]&&k[t][e.type])return!1;let i=(new Date).getTime(),a=g[e.type].seconds?i-1e3*g[e.type].seconds:0;return A.filter((i=>i.id==t&&i.type==e.type&&i.time>a)).length>g[e.type].calls?(k[t]||(k[t]={}),k[t][e.type]=!0,!1):(A.push({id:t,type:e.type,time:i}),!0)}return!1},_refreshToken(e,t,i,a){let s=D[e],o={};e==n().kinesisDataStreamType.VIDEO_ANALYTICS?o.token=t.token:e!=n().kinesisDataStreamType.VIDEO_PAGE_REPORTS&&e!=n().kinesisDataStreamType.PERFORMANCE_STATS||(o.page_id=t.page_id),y.default.call({method:"POST",url:s,data:o,success:e=>{e.status?i(e):a&&a()},error:a})},_pushRecord(e,t,i,a,n,s){if(m[e]){m[e].config.update({httpOptions:{xhrAsync:a}});let o={Data:JSON.stringify(i),PartitionKey:String(t),StreamName:S[e]};m[e].putRecord(o,((e,t)=>{e?s&&s(e):n(t)}))}else s&&s()},_initKinesis(e){m[e]||(m[e]=new(r())({credentials:_[e],region:u[e],httpOptions:{timeout:R}}))},_fallback(e,t,i){let a=O[e];if(a){let s={data:i,partition_key:t};e==n().kinesisDataStreamType.VIDEO_ANALYTICS?s.token=i.token:e==n().kinesisDataStreamType.VIDEO_PAGE_REPORTS&&(s.page_id=i.page_id),y.default.call({method:"POST",url:a,data:s,success:e=>{},error:e=>{}})}},pushRecordToDeliveryStream(e,t,i){let a={...e};var n={DeliveryStreamName:t,Record:{Data:"_"+HippoVideo.getZuluTimeInUTC()+"_\t"+JSON.stringify(i)}};new(d())({region:"us-east-1",credentials:new(c())({IdentityId:a.identity_id,Logins:{"cognito-identity.amazonaws.com":a.token}}),httpOptions:{timeout:R}}).putRecord(n,(function(e,t){e?console.log(e,e.stack):console.log(t)}))}};t.default=f}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[307],{83223:function(e,t,a){var r,i;r=[a(45925),a(26619),a(79903),a(24417),a(85614),a(19755),a(13919),a(72316)],void 0===(i=function(e,t,a,r,i,d,n,c){return c.View.extend({el:d("#wizDelivery"),initialize:function(t){this.assetId=t.assetId,this._handleTrackerTimeupdate=this._handleTrackerTimeupdate.bind(this),this.added=!1,this.videoModel=new e,this.videoPlayerView=t.videoPlayerView,this.data=t.data,this.render()},render:function(){this.added=[];for(var e=0;e<this.data.length;e++){var c=this.data[e];this.added[c.tracking_id]=0,c.time_to_load||(this.added[c.tracking_id]=1,c.tracker==i.customTrackers.PIXEL?d(t(n.extend({},{pixel_tags:c.tags,pixel_tracker_id:c.tracking_id}))).appendTo(document.head):c.tracker==i.customTrackers.GA?d(a(n.extend({},{ga_tags:c.tags,ga_tracker_id:c.tracking_id}))).appendTo(document.head):c.tracker==i.customTrackers.LUCKY_ORANGE&&d(r(n.extend({},{lucky_orange_tracker_id:c.tracking_id}))).appendTo(document.head))}},_handleTrackerTimeupdate:function(e){for(var c=0;c<this.data.length;c++){var s=this.data[c];s.time_to_load&&!this.added[s.tracking_id]&&s.time_to_load<Math.round(this.videoPlayerView.mediaPlayer.currentTime)&&(this.added[s.tracking_id]=1,s.tracker==i.customTrackers.PIXEL?d(t(n.extend({},{pixel_tags:s.tags,pixel_tracker_id:s.tracking_id}))).appendTo(document.head):s.tracker==i.customTrackers.GA?d(a(n.extend({},{ga_tags:s.tags,ga_tracker_id:s.tracking_id}))).appendTo(document.head):s.tracker==i.customTrackers.LUCKY_ORANGE&&d(r(n.extend({},{lucky_orange_tracker_id:s.tracking_id}))).appendTo(document.head))}c+1==this.data.length&&this.videoPlayerView.mediaPlayer.addEventListener("timeupdate",this._handleTrackerTimeupdate,!1)},destroy:function(){this.undelegateEvents()}})}.apply(t,r))||(e.exports=i)},24417:function(e,t,a){var r,i;r=[a(11329),a(68446)],void 0===(i=function(e,t){return function(e){function t(e,t){return e.w("<script type='text/javascript'>window.__lo_site_id = ").f(t.get(["lucky_orange_tracker_id"],!1),t,"h").w(" || [];(function () {var wa = document.createElement('script'); wa.type = 'text/javascript'; wa.async = true;wa.src = 'https://d10lpsik1i8c69.cloudfront.net/w.js';var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wa, s);})();<\/script>")}e.register("templates/delivery/lucky_orange_tracker",t),t.__dustBody=!0}(e),function(t,a){var r;return e.render("templates/delivery/lucky_orange_tracker",t,(function(e,t){if("function"==typeof a)try{a(e,t)}catch(e){}if(e)throw e;r=t})),r}}.apply(t,r))||(e.exports=i)}}]);
|