MasayukiSuda/Mp4Composer-android

In sample app I couldn't add Watermark option

shivadjango opened this issue · 0 comments

mp4Composer = new Mp4Composer(videoItem.getPath(), videoPath)
// .rotation(Rotation.ROTATION_270)
.size(720, 720)
.fillMode(FillMode.PRESERVE_ASPECT_FIT)
.filter(new GlWatermarkFilter(BitmapFactory.decodeResource(context.getResources(),R.drawable.ic_launcher_background), GlWatermarkFilter.Position.LEFT_BOTTOM))
.mute(muteCheckBox.isChecked())
.flipHorizontal(flipHorizontalCheckBox.isChecked())
.flipVertical(flipVerticalCheckBox.isChecked())
.listener(new Mp4Composer.Listener() {
@OverRide
public void onProgress(double progress) {
Log.d(TAG, "onProgress = " + progress);
runOnUiThread(() -> progressBar.setProgress((int) (progress * 100)));
}
I tried this way but didn't work can you correct me if i am wrong