Exemplo n.º 1
0
        public void PickTrimPlay()
        {
            NativeGallery.Permission permission = NativeGallery.GetVideoFromGallery((path) =>
            {
                if (path != null)
                {
                    // Play the selected video
                    config.inputPath = path;
                    //watermarkData.inputPath = path;
                    config.outputPath = path.Substring(0, path.Length - 4) + "_Trimmed.mp4";
                    //watermarkData.outputPath = path.Substring(0, path.Length - 4) + "_Trimmed.mp4";
                    pathNewVideoToPlay = config.outputPath;

                    FFmpegCommands.Trim(config);
                    //FFmpegCommands.Watermark(watermarkData);
                }
            }, "Select a video");
        }
Exemplo n.º 2
0
        //------------------------------

        public void OnTrim()
        {
            FFmpegCommands.Trim(config);

            gameObject.SetActive(false);
        }