MasayukiSuda / GPUVideo-android

This library apply video filter on generate an Mp4 and on ExoPlayer video and Video Recording with Camera2.
MIT License
658 stars 179 forks source link

When adding water mark by GPU using service, it doest not stop service when stopping service #39

Closed KishanViramgama closed 4 years ago

KishanViramgama commented 4 years ago

When adding water mark by GPU using service, it doest not stop service when stopping service

call gpuMp4Composer.cancel(); but not stop.

gpuMp4Composer = null;
gpuMp4Composer = new GPUMp4Composer(filePath_local , file_path)
        .filter(new GlWatermarkFilter(image, GlWatermarkFilter.Position.RIGHT_BOTTOM))
        .listener(new GPUMp4Composer.Listener() {
            @Override
            public void onProgress(double progress) {
                double value = progress * 100;
            }
            @Override
            public void onCompleted() {             
            }
            @Override
            public void onCanceled() {              
            }
            @Override
            public void onFailed(Exception exception) {             
            }
        })
        .start();