tcking / GiraffeCompressor

video compressor on android
70 stars 28 forks source link

i would like to Zipped Observables in parallel #1

Closed nicoyip closed 6 years ago

nicoyip commented 6 years ago

how can i do this, thx

tcking commented 6 years ago

I am not understart what you want ,can u give me a example?

nicoyip commented 6 years ago

I would like to compress few video clips one by one and finally get a callback function.

tcking commented 6 years ago

try this:

Observable.concat(
                GiraffeCompressor.create().input("video file1").bitRate(400*300).ready(),
                GiraffeCompressor.create().input("video file2").bitRate(400*300).ready(),
                GiraffeCompressor.create().input("video file3").bitRate(400*300).ready()
        ).observeOn(AndroidSchedulers.mainThread())
        .subscribe(new Subscriber<GiraffeCompressor.Result>(){
            @Override
            public void onCompleted() {

            }

            @Override
            public void onError(Throwable e) {

            }

            @Override
            public void onNext(GiraffeCompressor.Result result) {

            }
        });
nicoyip commented 6 years ago

Thank you for your kind cooperation