@hippovideo/video-sdk 1.0.1-beta.7 → 1.0.1-beta.9

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.
Files changed (47) hide show
  1. package/app/188-bundle-hippo-pnakd1nfs0f-b0e470050ed64c1ef410.js +1 -0
  2. package/app/307-bundle-hippo-pnakd1nfs0f-df96d02d7be681b608e1.js +1 -0
  3. package/app/{520-bundle-hippo-e862n7l8uuk-e636d4490e6dba6c5340.js → 520-bundle-hippo-pnakd1nfs0f-22e2804c933341b4e429.js} +1 -1
  4. package/app/697-bundle-hippo-pnakd1nfs0f-c9c93afb84459f3f11eb.js +1 -0
  5. package/app/949-bundle-hippo-pnakd1nfs0f-b08e4d7e4898932a1720.js +1 -0
  6. package/app/hv_recorder.css +1 -1
  7. package/app/hv_recorder.js +1 -1
  8. package/app/hv_recorder.js.LICENSE.txt +351 -0
  9. package/app/webpack-common-manifest.json +6 -36
  10. package/package.json +1 -1
  11. package/app/107-bundle-hippo-e862n7l8uuk-3fad86f11646f0cd2296.js +0 -1
  12. package/app/157-bundle-hippo-e862n7l8uuk-90f61daceef36d92d765.js +0 -1
  13. package/app/188-bundle-hippo-e862n7l8uuk-172cb81eed965b87561f.js +0 -1
  14. package/app/238-bundle-hippo-e862n7l8uuk-b61acbf599b47f15e1ff.js +0 -1
  15. package/app/239-bundle-hippo-e862n7l8uuk-29765f212c5b82b9b5c9.js +0 -1
  16. package/app/245-bundle-hippo-e862n7l8uuk-3cb172cd96adfe88c75b.js +0 -2
  17. package/app/245-bundle-hippo-e862n7l8uuk-3cb172cd96adfe88c75b.js.LICENSE.txt +0 -125
  18. package/app/283-bundle-hippo-e862n7l8uuk-095a8772f0b647aa12ab.js +0 -1
  19. package/app/307-bundle-hippo-e862n7l8uuk-46ceaa5b69d013f1a160.js +0 -1
  20. package/app/362-bundle-hippo-e862n7l8uuk-28bf93bdaaaca6e8a7d1.js +0 -1
  21. package/app/37-bundle-hippo-e862n7l8uuk-e813c079958693323e0d.js +0 -1
  22. package/app/442-bundle-hippo-e862n7l8uuk-a40760aafd35feb385c9.js +0 -1
  23. package/app/454-bundle-hippo-e862n7l8uuk-640863e104cb8d4444b5.js +0 -1
  24. package/app/487-bundle-hippo-e862n7l8uuk-a8a4683af31cd239bdfa.js +0 -1
  25. package/app/525-bundle-hippo-e862n7l8uuk-9e22fb533f478807c968.js +0 -1
  26. package/app/528-bundle-hippo-e862n7l8uuk-e7c6879087f0bc809436.js +0 -1
  27. package/app/582-bundle-hippo-e862n7l8uuk-a9eac0a0dff2505acd77.js +0 -1
  28. package/app/605-bundle-hippo-e862n7l8uuk-3d6e46646daa3d9ffc77.js +0 -1
  29. package/app/611-bundle-hippo-e862n7l8uuk-f7d2a84b0b194f07a962.js +0 -1
  30. package/app/652-bundle-hippo-e862n7l8uuk-2446a2200548df5c62f3.js +0 -1
  31. package/app/66-bundle-hippo-e862n7l8uuk-d26ab7f3718ca8adb7b9.js +0 -1
  32. package/app/660-bundle-hippo-e862n7l8uuk-e4d99213565d245f92b3.js +0 -1
  33. package/app/692-bundle-hippo-e862n7l8uuk-98e2778801517c6d709f.js +0 -1
  34. package/app/751-bundle-hippo-e862n7l8uuk-d3e1ee01d1e1f8c54119.js +0 -1
  35. package/app/771-bundle-hippo-e862n7l8uuk-5a6062e3490ee9261b7e.js +0 -1
  36. package/app/780-bundle-hippo-e862n7l8uuk-4e7a932e3d7564dbfd08.js +0 -1
  37. package/app/795-bundle-hippo-e862n7l8uuk-fa5dee47c4eb61932834.js +0 -1
  38. package/app/823-bundle-hippo-e862n7l8uuk-2b0bbd0da340d8be2937.js +0 -1
  39. package/app/847-bundle-hippo-e862n7l8uuk-a7274fcf2651c06dc9cc.js +0 -1
  40. package/app/85-bundle-hippo-e862n7l8uuk-cee943b1271f7f21df76.js +0 -1
  41. package/app/869-bundle-hippo-e862n7l8uuk-13a727a5f462660b7c19.js +0 -1
  42. package/app/892-bundle-hippo-e862n7l8uuk-6dc5a8967bfd8695b74a.js +0 -1
  43. package/app/907-bundle-hippo-e862n7l8uuk-6b974d5b2e5cef32804d.js +0 -1
  44. package/app/963-bundle-hippo-e862n7l8uuk-abde1d79679a282d1de2.js +0 -1
  45. package/app/99-bundle-hippo-e862n7l8uuk-d4e79df05dcd313d5feb.js +0 -1
  46. /package/app/{520-bundle-hippo-e862n7l8uuk-e636d4490e6dba6c5340.js.LICENSE.txt → 520-bundle-hippo-pnakd1nfs0f-22e2804c933341b4e429.js.LICENSE.txt} +0 -0
  47. /package/app/{881-bundle-hippo-e862n7l8uuk-1e41c84326fac8446b66.js → 881-bundle-hippo-pnakd1nfs0f-1e41c84326fac8446b66.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)}}]);