From 879df0f7cd2a1f0777b2de1b874c06b42fdb9ede Mon Sep 17 00:00:00 2001 From: Taner Sener Date: Wed, 24 Aug 2022 03:06:04 +0100 Subject: [PATCH] update https tab urls --- react-native/test-app-local-dependency/src/https-tab.js | 6 +++--- .../android/app/src/main/assets/index.android.bundle | 2 +- react-native/test-app-npm/src/https-tab.js | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/react-native/test-app-local-dependency/src/https-tab.js b/react-native/test-app-local-dependency/src/https-tab.js index 2f14a91..0bc9efe 100644 --- a/react-native/test-app-local-dependency/src/https-tab.js +++ b/react-native/test-app-local-dependency/src/https-tab.js @@ -10,11 +10,11 @@ const HTTPS_TEST_DEFAULT_URL = "https://download.blender.org/peach/trailer/trail const HTTPS_TEST_FAIL_URL = "https://download2.blender.org/peach/trailer/trailer_1080p.ogg"; -const HTTPS_TEST_RANDOM_URL_1 = "https://file-examples-com.github.io/uploads/2018/04/file_example_MOV_640_800kB.mov"; +const HTTPS_TEST_RANDOM_URL_1 = "https://filesamples.com/samples/video/mov/sample_640x360.mov"; -const HTTPS_TEST_RANDOM_URL_2 = "https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_700KB.mp3"; +const HTTPS_TEST_RANDOM_URL_2 = "https://filesamples.com/samples/audio/mp3/sample3.mp3"; -const HTTPS_TEST_RANDOM_URL_3 = "https://file-examples-com.github.io/uploads/2020/03/file_example_WEBP_50kB.webp"; +const HTTPS_TEST_RANDOM_URL_3 = "https://filesamples.com/samples/image/webp/sample1.webp"; export default class HttpsTab extends React.Component { diff --git a/react-native/test-app-npm/android/app/src/main/assets/index.android.bundle b/react-native/test-app-npm/android/app/src/main/assets/index.android.bundle index a44f349..49f4533 100644 --- a/react-native/test-app-npm/android/app/src/main/assets/index.android.bundle +++ b/react-native/test-app-npm/android/app/src/main/assets/index.android.bundle @@ -432,7 +432,7 @@ __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{v __d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),f=r(d[0])(r(d[5])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var u={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var c=f?Object.getOwnPropertyDescriptor(e,o):null;c&&(c.get||c.set)?Object.defineProperty(u,o,c):u[o]=e[o]}u.default=e,n&&n.set(e,u);return u})(r(d[6])),c=r(d[0])(r(d[7]));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var s=(function(o){(0,n.default)(v,o);var l,s,y=(l=v,s=p(),function(){var e,t=(0,f.default)(l);if(s){var n=(0,f.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function v(){return(0,e.default)(this,v),y.apply(this,arguments)}return(0,t.default)(v,[{key:"render",value:function(){return(0,r(d[8]).jsx)(c.default,{})}}]),v})(o.Component);s.Item=c.default;var y=s;_e.default=y},426,[3,7,8,10,12,15,127,424,178]); __d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProgressModal=void 0;var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),u=r(d[8]);function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var h=u.Dimensions.get('window'),p=(function(c){(0,n.default)(v,c);var h,p,b=(h=v,p=f(),function(){var t,e=(0,o.default)(h);if(p){var n=(0,o.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,l.default)(this,t)});function v(e){var n;return(0,t.default)(this,v),(n=b.call(this,e)).cancelFunction=function(){n.state.cancelFunction(),n.hide()},n.state={visible:n.props.visible},n}return(0,e.default)(v,[{key:"show",value:function(t,e){this.setState({visible:!0,textContent:t,cancelFunction:e})}},{key:"update",value:function(t){this.setState({textContent:t})}},{key:"hide",value:function(){this.setState({visible:!1})}},{key:"render",value:function(){return(0,r(d[9]).jsx)(u.Modal,{animationType:this.props.animation,supportedOrientations:['landscape','portrait'],transparent:!0,visible:this.state.visible,children:(0,r(d[9]).jsx)(u.View,{style:[y.container,{backgroundColor:this.props.overlayColor}],children:(0,r(d[9]).jsxs)(u.View,{style:[y.panel,this.state.cancelFunction?y.largePanel:y.smallPanel],children:[(0,r(d[9]).jsxs)(u.View,{style:y.loadingPanel,children:[(0,r(d[9]).jsx)(u.View,{style:y.activityIndicator,children:(0,r(d[9]).jsx)(u.ActivityIndicator,{color:x.color,size:x.size})}),(0,r(d[9]).jsx)(u.View,{style:y.textContainer,children:(0,r(d[9]).jsx)(u.Text,{style:y.textContent,children:this.state.textContent})})]}),this.state.cancelFunction?(0,r(d[9]).jsx)(u.View,{style:y.buttonPanel,children:(0,r(d[9]).jsx)(u.View,{style:r(d[10]).styles.buttonViewStyle,children:(0,r(d[9]).jsx)(u.TouchableOpacity,{style:r(d[10]).styles.cancelButtonStyle,onPress:this.cancelFunction,children:(0,r(d[9]).jsx)(u.Text,{style:r(d[10]).styles.buttonTextStyle,children:"CANCEL"})})})}):(0,r(d[9]).jsx)(s.default.Fragment,{})]})})})}}]),v})(s.default.PureComponent);_e.ProgressModal=p,p.propTypes={cancelable:c.default.bool,color:c.default.string,animation:c.default.oneOf(['none','slide','fade']),overlayColor:c.default.string,textContent:c.default.string,textStyle:c.default.object,visible:c.default.bool,indicatorStyle:c.default.object,children:c.default.element,spinnerKey:c.default.string},p.defaultProps={visible:!1,cancelable:!1,textContent:'',animation:'fade',color:'black',overlayColor:'rgba(0, 0, 0, 0.4)'};var y=u.StyleSheet.create({container:{backgroundColor:'transparent',bottom:0,left:0,position:'absolute',right:0,top:0},panel:{flexDirection:'column',alignItems:'stretch',justifyContent:'flex-start',alignSelf:'flex-start',backgroundColor:'white',borderRadius:5,position:'absolute',width:Math.round(h.width-80),left:40,top:Math.round((h.height-120)/2)},smallPanel:{height:100},largePanel:{height:140,paddingBottom:30},loadingPanel:{flex:1,flexDirection:'row',position:'relative',height:80,left:0,top:0,paddingLeft:0,paddingRight:0,paddingTop:40,paddingBottom:40},buttonPanel:{flex:1,alignItems:'center',justifyContent:'center',position:'relative',width:Math.round(h.width-80),left:0,top:10,marginTop:-5},activityIndicator:{alignItems:'baseline',justifyContent:'center',flex:1,paddingLeft:30},textContainer:{alignItems:'baseline',flex:4,justifyContent:'center',position:'relative',left:0},textContent:{color:'black',fontSize:16,fontWeight:'bold',paddingLeft:20}}),x={color:'dodgerblue',size:50}},427,[3,7,8,10,12,15,127,393,1,178,389]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),l=r(d[0])(r(d[3]));r(d[0])(r(d[4]));function n(t){if(null==t)throw"Assertion failed: "+t+" is null"}function p(t){if(!Array.isArray(t))throw"Assertion failed"}function f(t,o){if(t!==o)throw"Assertion failed: "+o+" != "+t}function s(){var t=r(d[5]).FFmpegKitConfig.parseArguments("-loop 1 'file one.jpg' -filter_complex '[0:v]setpts=PTS-STARTPTS[video]' -map [video] video.mp4 ");n(t),f(8,t.length),f("-loop",t[0]),f("1",t[1]),f("file one.jpg",t[2]),f("-filter_complex",t[3]),f("[0:v]setpts=PTS-STARTPTS[video]",t[4]),f("-map",t[5]),f("[video]",t[6]),f("video.mp4",t[7])}function v(){var t=r(d[5]).FFmpegKitConfig.parseArguments("-loop 1 \"file one.jpg\" -filter_complex \"[0:v]setpts=PTS-STARTPTS[video]\" -map [video] video.mp4 ");n(t),f(8,t.length),f("-loop",t[0]),f("1",t[1]),f("file one.jpg",t[2]),f("-filter_complex",t[3]),f("[0:v]setpts=PTS-STARTPTS[video]",t[4]),f("-map",t[5]),f("[video]",t[6]),f("video.mp4",t[7]),n(t=r(d[5]).FFmpegKitConfig.parseArguments(" -i file:///tmp/input.mp4 -vcodec libx264 -vf \"scale=1024:1024,pad=width=1024:height=1024:x=0:y=0:color=black\" -acodec copy -q:v 0 -q:a 0 video.mp4")),f(13,t.length),f("-i",t[0]),f("file:///tmp/input.mp4",t[1]),f("-vcodec",t[2]),f("libx264",t[3]),f("-vf",t[4]),f("scale=1024:1024,pad=width=1024:height=1024:x=0:y=0:color=black",t[5]),f("-acodec",t[6]),f("copy",t[7]),f("-q:v",t[8]),f("0",t[9]),f("-q:a",t[10]),f("0",t[11]),f("video.mp4",t[12])}function c(){var t=r(d[5]).FFmpegKitConfig.parseArguments(" -i file:///tmp/input.mp4 -vf \"subtitles=file:///tmp/subtitles.srt:force_style='FontSize=16,PrimaryColour=&HFFFFFF&'\" -vcodec libx264 -acodec copy -q:v 0 -q:a 0 video.mp4");n(t),f(13,t.length),f("-i",t[0]),f("file:///tmp/input.mp4",t[1]),f("-vf",t[2]),f("subtitles=file:///tmp/subtitles.srt:force_style='FontSize=16,PrimaryColour=&HFFFFFF&'",t[3]),f("-vcodec",t[4]),f("libx264",t[5]),f("-acodec",t[6]),f("copy",t[7]),f("-q:v",t[8]),f("0",t[9]),f("-q:a",t[10]),f("0",t[11]),f("video.mp4",t[12]),n(t=r(d[5]).FFmpegKitConfig.parseArguments(" -i file:///tmp/input.mp4 -vf \"subtitles=file:///tmp/subtitles.srt:force_style=\\\"FontSize=16,PrimaryColour=&HFFFFFF&\\\"\" -vcodec libx264 -acodec copy -q:v 0 -q:a 0 video.mp4")),f(13,t.length),f("-i",t[0]),f("file:///tmp/input.mp4",t[1]),f("-vf",t[2]),f("subtitles=file:///tmp/subtitles.srt:force_style=\\\"FontSize=16,PrimaryColour=&HFFFFFF&\\\"",t[3]),f("-vcodec",t[4]),f("libx264",t[5]),f("-acodec",t[6]),f("copy",t[7]),f("-q:v",t[8]),f("0",t[9]),f("-q:a",t[10]),f("0",t[11]),f("video.mp4",t[12])}var F=(function(){function F(){(0,o.default)(this,F)}return(0,l.default)(F,null,[{key:"testCommonApiMethods",value:(function(){var o=(0,t.default)(function*(){(0,r(d[6]).ffprint)("Testing common api methods.");var t=yield r(d[5]).FFmpegKitConfig.getFFmpegVersion();(0,r(d[6]).ffprint)("FFmpeg version: "+t);var o=yield r(d[5]).FFmpegKitConfig.getPlatform();(0,r(d[6]).ffprint)("Platform: "+o),(0,r(d[6]).ffprint)("Old log level: "+r(d[5]).Level.levelToString(r(d[5]).FFmpegKitConfig.getLogLevel())),yield r(d[5]).FFmpegKitConfig.setLogLevel(r(d[5]).Level.AV_LOG_INFO),(0,r(d[6]).ffprint)("New log level: "+r(d[5]).Level.levelToString(r(d[5]).FFmpegKitConfig.getLogLevel()));var l=yield r(d[5]).Packages.getPackageName();(0,r(d[6]).ffprint)("Package name: "+l),r(d[5]).Packages.getExternalLibraries().then(function(t){return t.forEach(function(t){return(0,r(d[6]).ffprint)("External library: "+t)})}),yield r(d[5]).FFmpegKitConfig.ignoreSignal(r(d[5]).Signal.SIGXCPU)});return function(){return o.apply(this,arguments)}})()},{key:"testParseArguments",value:function(){var t;(0,r(d[6]).ffprint)("Testing FFmpegKitConfig.parseArguments."),n(t=r(d[5]).FFmpegKitConfig.parseArguments("-hide_banner -loop 1 -i file.jpg -filter_complex [0:v]setpts=PTS-STARTPTS[video] -map [video] -vsync 2 -async 1 video.mp4")),p(t),f(14,t.length),f("-hide_banner",t[0]),f("-loop",t[1]),f("1",t[2]),f("-i",t[3]),f("file.jpg",t[4]),f("-filter_complex",t[5]),f("[0:v]setpts=PTS-STARTPTS[video]",t[6]),f("-map",t[7]),f("[video]",t[8]),f("-vsync",t[9]),f("2",t[10]),f("-async",t[11]),f("1",t[12]),f("video.mp4",t[13]),s(),v(),c()}}]),F})();e.default=F},428,[3,268,7,8,127,386,382]); -__d(function(g,r,_i2,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),i=r(d[0])(r(d[6])),p=r(d[0])(r(d[7])),o=r(d[8]);function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var c="https://download.blender.org/peach/trailer/trailer_1080p.ogg",f="https://download2.blender.org/peach/trailer/trailer_1080p.ogg",y=(function(y){(0,u.default)(O,y);var h,S,T=(h=O,S=s(),function(){var t,e=(0,i.default)(h);if(S){var n=(0,i.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,l.default)(this,t)});function O(n){var u;return(0,e.default)(this,O),(u=T.call(this,n)).runGetMediaInformation=function(e){var n,l="";switch(e){case 1:(void 0===(l=u.state.urlText)||l.trim().length<=0)&&(l=c,u.setState({urlText:l}));break;case 2:case 3:l=u.getRandomTestUrl();break;case 4:default:l=f,u.setState({urlText:l})}(0,r(d[9]).ffprint)("Testing HTTPS with for button "+e+" using url "+l+"."),4===e&&u.clearOutput(),r(d[10]).FFprobeKit.getMediaInformation(l).then((n=(0,t.default)(function*(t){var e=yield t.getMediaInformation();if(void 0===e){var n=r(d[10]).FFmpegKitConfig.sessionStateToString(yield t.getState()),l=yield t.getReturnCode(),i=yield t.getFailStackTrace(),p=yield t.getDuration(),o=yield t.getOutput();u.appendOutput("Get media information failed\n"),u.appendOutput("State: "+n+"\n"),u.appendOutput("Duration: "+p+"\n"),u.appendOutput("Return Code: "+l+"\n"),u.appendOutput("Fail stack trace: "+(0,r(d[9]).notNull)(i,"\\n")+"\n"),u.appendOutput("Output: "+o+"\n")}else{if(u.appendOutput("Media information for "+e.getFilename()+"\n"),void 0!==e.getFormat()&&u.appendOutput("Format: "+e.getFormat()+"\n"),void 0!==e.getBitrate()&&u.appendOutput("Bitrate: "+e.getBitrate()+"\n"),void 0!==e.getDuration()&&u.appendOutput("Duration: "+e.getDuration()+"\n"),void 0!==e.getStartTime()&&u.appendOutput("Start time: "+e.getStartTime()+"\n"),void 0!==e.getTags()){var s=e.getTags();Object.keys(s).forEach(function(t){u.appendOutput("Tag: "+t+":"+s[t]+"\n")})}var c=e.getStreams();if(void 0!==c)for(var f=0;f0){var s=Math.round(100*t/9e3);'CREATING'===this.state.state?this.progressModalReference.current.update("Creating video % "+s):'BURNING'===this.state.state&&this.progressModalReference.current.update("Burning subtitles % "+s)}}}},{key:"hideProgressDialog",value:function(){this.progressModalReference.current.hide()}},{key:"render",value:function(){var e=this;return(0,r(d[14]).jsxs)(c.View,{style:r(d[15]).styles.screenStyle,children:[(0,r(d[14]).jsx)(c.View,{style:r(d[15]).styles.headerViewStyle,children:(0,r(d[14]).jsx)(c.Text,{style:r(d[15]).styles.headerTextStyle,children:"FFmpegKit ReactNative"})}),(0,r(d[14]).jsx)(c.View,{style:[r(d[15]).styles.buttonViewStyle,{paddingTop:50,paddingBottom:50}],children:(0,r(d[14]).jsx)(c.TouchableOpacity,{style:[r(d[15]).styles.buttonStyle,{width:160}],onPress:this.burnSubtitles,children:(0,r(d[14]).jsx)(c.Text,{style:r(d[15]).styles.buttonTextStyle,children:"BURN SUBTITLES"})})}),(0,r(d[14]).jsx)(r(d[16]).ProgressModal,{visible:!1,ref:this.progressModalReference}),(0,r(d[14]).jsx)(h.default,{source:{uri:this.getVideoWithSubtitlesFile()},ref:function(t){e.player=t},hideShutterView:!0,paused:this.state.paused,resizeMode:"stretch",style:r(d[15]).styles.videoPlayerViewStyle})]})}}]),C})(u.default.Component);_e.default=v},431,[3,268,7,8,10,12,15,127,1,383,391,392,382,386,178,389,427]); __d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),n=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),u=r(d[8]),f=r(d[0])(r(d[9])),p=r(d[0])(r(d[10])),h=r(d[0])(r(d[11]));function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var F=(function(F){(0,n.default)(S,F);var v,P,C=(v=S,P=y(),function(){var e,t=(0,l.default)(v);if(P){var s=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function S(s){var n;return(0,t.default)(this,S),(n=C.call(this,s)).logCallback=function(e){(0,r(d[12]).ffprint)(e.getMessage())},n.statisticsCallback=function(e){n.setState({statistics:e}),n.updateProgressDialog()},n.createVideo=function(){var t=n.getVideoFile();r(d[13]).FFmpegKitConfig.registerNewFFmpegPipe().then(function(s){r(d[13]).FFmpegKitConfig.registerNewFFmpegPipe().then(function(o){r(d[13]).FFmpegKitConfig.registerNewFFmpegPipe().then(function(l){n.pause(),(0,r(d[12]).deleteFile)(t),(0,r(d[12]).ffprint)("Testing PIPE with 'mpeg4' codec"),n.hideProgressDialog(),n.showProgressDialog();var c,u=p.default.generateCreateVideoWithPipesScript(s,o,l,t);(0,r(d[12]).ffprint)("FFmpeg process started with arguments: '"+u+"'."),r(d[13]).FFmpegKit.executeAsync(u,(c=(0,e.default)(function*(e){var t=r(d[13]).FFmpegKitConfig.sessionStateToString(yield e.getState()),c=yield e.getReturnCode(),u=yield e.getFailStackTrace();(0,r(d[12]).ffprint)("FFmpeg process exited with state "+t+" and rc "+c+"."+(0,r(d[12]).notNull)(u,"\\n")),n.hideProgressDialog(),r(d[13]).FFmpegKitConfig.closeFFmpegPipe(s),r(d[13]).FFmpegKitConfig.closeFFmpegPipe(o),r(d[13]).FFmpegKitConfig.closeFFmpegPipe(l),r(d[13]).ReturnCode.isSuccess(c)&&((0,r(d[12]).ffprint)("Create completed successfully; playing video."),n.playVideo(),(0,r(d[12]).listAllStatistics)(e))}),function(e){return c.apply(this,arguments)})),r(d[13]).FFmpegKitConfig.writeToPipe(p.default.assetPath(p.default.ASSET_1),s),r(d[13]).FFmpegKitConfig.writeToPipe(p.default.assetPath(p.default.ASSET_2),o),r(d[13]).FFmpegKitConfig.writeToPipe(p.default.assetPath(p.default.ASSET_3),l)})})})},n.onPlayError=function(e){(0,r(d[12]).ffprint)('Play error: '+JSON.stringify(e))},n.state={statistics:void 0},n.popupReference=c.default.createRef(),n.progressModalReference=c.default.createRef(),n}return(0,s.default)(S,[{key:"componentDidMount",value:function(){var e=this;this.props.navigation.addListener('focus',function(t){e.pause(),e.setActive()})}},{key:"setActive",value:function(){(0,r(d[12]).ffprint)("Pipe Tab Activated"),r(d[13]).FFmpegKitConfig.enableLogCallback(this.logCallback),r(d[13]).FFmpegKitConfig.enableStatisticsCallback(this.statisticsCallback)}},{key:"playVideo",value:function(){var e=this.player;void 0!==e&&e.seek(0),this.setState({paused:!1})}},{key:"pause",value:function(){this.setState({paused:!0})}},{key:"getVideoFile",value:function(){return f.default.CachesDirectoryPath+"/video.mp4"}},{key:"showProgressDialog",value:function(){this.setState({statistics:void 0}),this.progressModalReference.current.show("Creating video")}},{key:"updateProgressDialog",value:function(){var e=this.state.statistics;if(void 0!==e){var t=e.time;if(t>0){var s=Math.round(100*t/9e3);this.progressModalReference.current.update("Creating video % "+s)}}}},{key:"hideProgressDialog",value:function(){this.progressModalReference.current.hide()}},{key:"render",value:function(){var e=this;return(0,r(d[14]).jsxs)(u.View,{style:r(d[15]).styles.screenStyle,children:[(0,r(d[14]).jsx)(u.View,{style:r(d[15]).styles.headerViewStyle,children:(0,r(d[14]).jsx)(u.Text,{style:r(d[15]).styles.headerTextStyle,children:"FFmpegKit ReactNative"})}),(0,r(d[14]).jsx)(u.View,{style:[r(d[15]).styles.buttonViewStyle,{paddingTop:50,paddingBottom:50}],children:(0,r(d[14]).jsx)(u.TouchableOpacity,{style:r(d[15]).styles.buttonStyle,onPress:this.createVideo,children:(0,r(d[14]).jsx)(u.Text,{style:r(d[15]).styles.buttonTextStyle,children:"CREATE"})})}),(0,r(d[14]).jsx)(r(d[16]).ProgressModal,{visible:!1,ref:this.progressModalReference}),(0,r(d[14]).jsx)(h.default,{source:{uri:this.getVideoFile()},ref:function(t){e.player=t},hideShutterView:!0,paused:this.state.paused,resizeMode:"stretch",style:r(d[15]).styles.videoPlayerViewStyle})]})}}]),S})(c.default.Component);_e.default=F},432,[3,268,7,8,10,12,15,127,1,383,391,392,382,386,178,389,427]); diff --git a/react-native/test-app-npm/src/https-tab.js b/react-native/test-app-npm/src/https-tab.js index 2f14a91..0bc9efe 100644 --- a/react-native/test-app-npm/src/https-tab.js +++ b/react-native/test-app-npm/src/https-tab.js @@ -10,11 +10,11 @@ const HTTPS_TEST_DEFAULT_URL = "https://download.blender.org/peach/trailer/trail const HTTPS_TEST_FAIL_URL = "https://download2.blender.org/peach/trailer/trailer_1080p.ogg"; -const HTTPS_TEST_RANDOM_URL_1 = "https://file-examples-com.github.io/uploads/2018/04/file_example_MOV_640_800kB.mov"; +const HTTPS_TEST_RANDOM_URL_1 = "https://filesamples.com/samples/video/mov/sample_640x360.mov"; -const HTTPS_TEST_RANDOM_URL_2 = "https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_700KB.mp3"; +const HTTPS_TEST_RANDOM_URL_2 = "https://filesamples.com/samples/audio/mp3/sample3.mp3"; -const HTTPS_TEST_RANDOM_URL_3 = "https://file-examples-com.github.io/uploads/2020/03/file_example_WEBP_50kB.webp"; +const HTTPS_TEST_RANDOM_URL_3 = "https://filesamples.com/samples/image/webp/sample1.webp"; export default class HttpsTab extends React.Component {