Giter Site home page Giter Site logo

Comments (5)

a914-gowtham avatar a914-gowtham commented on June 6, 2024

Could you please send error log

from android-video-trimmer.

a914-gowtham avatar a914-gowtham commented on June 6, 2024

and share the code for opening the trimming screen

from android-video-trimmer.

sumonshil avatar sumonshil commented on June 6, 2024

// log error.....................
2020-10-06 14:08:56.530 2915-7681/com.magica_technology.icon E/mobile-ffmpeg: /storage/emulated/0/Download/trimmed_video_0.mp4: Permission denied 2020-10-06 14:08:56.561 2915-7681/com.magica_technology.icon E/mobile-ffmpeg: /storage/emulated/0/Download/trimmed_video_0.mp4: Permission denied 2020-10-06 14:08:56.568 1231-3841/? E/InputDispatcher: Window handle Window{43f7d54 u0 com.magica_technology.icon/com.gowtham.library.ui.ActVideoTrimmer} has no registered input channel 2020-10-06 14:08:56.585 1231-3841/? E/InputDispatcher: Window handle Window{43f7d54 u0 com.magica_technology.icon/com.gowtham.library.ui.ActVideoTrimmer} has no registered input channel

//code..........................................

`

@OverRide

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_post_video);
init();
storage= FirebaseStorage.getInstance();
storageReference = storage.getReference();

    vUri =getIntent().getStringExtra("Uri");
    TrimVideo.activity(vUri)
            .setTrimType(TrimType.MIN_MAX_DURATION)
            .setAccurateCut(true)
            .setCompressOption(new CompressOption())
            .setMinToMax(10, 180)  //seconds
            .start(PostVideoActivity.this);

}

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if (requestCode == TrimVideo.VIDEO_TRIMMER_REQ_CODE && data != null) {
        Uri uri = Uri.parse(TrimVideo.getTrimmedVideoPath(data));
    }
}

`

from android-video-trimmer.

a914-gowtham avatar a914-gowtham commented on June 6, 2024

Have you given android:requestLegacyExternalStorage="true" this AndroidManifest.class inside application tag.and you have to use file provider in your manifest REFER THIS

from android-video-trimmer.

sumonshil avatar sumonshil commented on June 6, 2024

Thank you
Problem solved

from android-video-trimmer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.