@hippovideo/video-sdk 1.0.1-beta.8 → 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.
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[697],{23697:function(r,e,n){n.r(e),n.d(e,{default:function(){return d}});var o,i=n(67294),t=n(3365),c=n.n(t),a=n(30168),u=n(61233).ZP.div(o||(o=(0,a.Z)(["\n margin: 0 auto;\n .primary-video-overflow-container{\n .primary-video{\n transform: ",";\n transform-origin: ",";\n }\n }\n .player-controls-container{\n .play-pause-button{\n cursor:pointer;\n }\n }\n .secondary-video-container{\n -transform: ",";\n }\n"])),(function(r){var e=r.isMirrored;return r.screenRecord||e?"":"rotateY(180deg) !important"}),(function(r){var e=r.isMirrored;return r.screenRecord||e?"":"unset !important;"}),(function(r){return r.isMirrored?"":"rotateY(180deg)"})),s=n(40706);function d(r){var e=r.importVideoUrl,n=r.screenUrl,o=r.webcamUrl,t=r.thumbnailUrl,a=r.isAudioOnly,d=r.recordingConfiguration,l=r.customColors,m=r.onVideoPlayerInitialize,f=r.isMirrored,y=r.isFromEditWidget,p=(0,i.useRef)(),v=(0,i.useRef)(),g=function(){if(n)return o};return(0,i.useEffect)((function(){p.current&&(v.current=new(c())(function(){var r,i;if(d&&d.screenRecord&&d.webCam){var c=(0,s.wy)({recordConfiguration:d});r=c.primaryLayout,i=c.secondaryLayout}var u=d.audio;return d&&d.screenRecord&&(u=!0),{el:p.current,fromSDK:!0,id:"preview-video",src:e||n||o||void 0,audioSrc:g(),fullscreenControl:!1,primaryVideoLayout:r,secondaryVideoLayout:i,customColors:l,isAudioOnly:a,integType:"generic_embed",thumbnail:t,showSecondaryVideo:d&&d.screenRecord&&d.webCam&&"circle"!=d.webcamShape,isContainsAudio:u,initializeNewPlayer:!0}}()),m(v.current),v.current.show(),setTimeout((function(){v.current.resizePlayerForWindow()}),1e3))}),[p,v,o,n]),console.log(f,"sdktestingmirror"),i.createElement(i.Fragment,null,i.createElement(u,{className:"hv-sdk-player",screenRecord:null==d?void 0:d.screenRecord,isMirrored:f,isFromEditWidget:y,ref:p}))}}}]);
1
+ "use strict";(self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[697],{23697:function(r,e,n){n.r(e),n.d(e,{default:function(){return d}});var o,i=n(67294),t=n(3365),c=n.n(t),a=n(30168),u=n(61233).ZP.div(o||(o=(0,a.Z)(["\n margin: 0 auto;\n .primary-video-overflow-container{\n .primary-video{\n transform: ",";\n transform-origin: ",";\n }\n }\n .player-controls-container{\n .play-pause-button{\n cursor:pointer;\n }\n }\n .secondary-video-container{\n -transform: ",";\n }\n"])),(function(r){var e=r.isMirrored;return r.screenRecord||e?"":"rotateY(180deg) !important"}),(function(r){var e=r.isMirrored;return r.screenRecord||e?"":"unset !important;"}),(function(r){return r.isMirrored?"":"rotateY(180deg)"})),s=n(40706);function d(r){var e=r.importVideoUrl,n=r.screenUrl,o=r.webcamUrl,t=r.thumbnailUrl,a=r.isAudioOnly,d=r.recordingConfiguration,l=r.customColors,m=r.onVideoPlayerInitialize,f=r.isMirrored,y=r.isFromEditWidget,p=(0,i.useRef)(),v=(0,i.useRef)(),g=function(){if(n)return o};return(0,i.useEffect)((function(){p.current&&(v.current=new(c())(function(){var r,i;if(d&&d.screenRecord&&d.webCam){var c=(0,s.wy)({recordConfiguration:d});r=c.primaryLayout,i=c.secondaryLayout}var u=null==d?void 0:d.audio;return d&&d.screenRecord&&(u=!0),{el:p.current,fromSDK:!0,id:"preview-video",src:e||n||o||void 0,audioSrc:g(),fullscreenControl:!1,primaryVideoLayout:r,secondaryVideoLayout:i,customColors:l,isAudioOnly:a,integType:"generic_embed",thumbnail:t,showSecondaryVideo:d&&d.screenRecord&&d.webCam&&"circle"!=d.webcamShape,isContainsAudio:u,initializeNewPlayer:!0}}()),m(v.current),v.current.show(),setTimeout((function(){v.current.resizePlayerForWindow()}),1e3))}),[p,v,o,n]),console.log(f,"sdktestingmirror"),i.createElement(i.Fragment,null,i.createElement(u,{className:"hv-sdk-player",screenRecord:null==d?void 0:d.screenRecord,isMirrored:f,isFromEditWidget:y,ref:p}))}}}]);