a914-gowtham / android-video-trimmer

Helps to trim local videos with compress option on Android applications using Exoplayer 2 and FFmpeg.
Other
380 stars 117 forks source link

failed to return result to fragment #20

Closed RanjeethKumar55 closed 4 years ago

RanjeethKumar55 commented 4 years ago

when i tried to trim video from a fragment the result is not being returned to the fragment. Please do replay , i will be so happy if i get the replay back soon

a914-gowtham commented 4 years ago

Trimmed video url will be passed to activity result.You could pass it to fragment activity result like below

    @Override           //Activity result
    protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        myFragment.onActivityResult(requestCode, resultCode, data);  //to fragment 
}
RanjeethKumar55 commented 4 years ago

thank you so much

On Tue, Oct 27, 2020 at 6:26 PM Gowtham Balamurugan < notifications@github.com> wrote:

Trimmed video url will be passed to activity result.You could pass it to fragment activity result like below

@Override           //Activity result
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    fHome.onActivityResult(requestCode, resultCode, data);  //to fragment

}

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/a914-gowtham/Android-video-trimmer/issues/20#issuecomment-717223858, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARRAH2KYSPHD25NAMQHIN6LSM27PTANCNFSM4TAWWZUA .