Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HOW TO USE THIS LIB WITHOUT PICKING VIDEO FROM GALLERY #90

Open
Usman-Click opened this issue Oct 2, 2022 · 2 comments
Open

HOW TO USE THIS LIB WITHOUT PICKING VIDEO FROM GALLERY #90

Usman-Click opened this issue Oct 2, 2022 · 2 comments

Comments

@Usman-Click
Copy link

Hi,

174700553-d5343fc5-4db6-47d4-bd30-c1d8dba698ab (1)

As you can see I'm already playing the video so i don't have to pick it from the gallery since i have everything that i need (i.e the path),

What i want to do is : i want to open the Trim Activity when i click on that image that I CIRCLED WITH WHITE COLOR

1

But get this error when i called ActivityResultLauncher

Fatal Exception: java.lang.NullPointerException Attempt to invoke interface method 'int android.database.Cursor.getColumnIndexOrThrow(java.lang.String)' on a null object reference com.gowtham.library.utils.FileUtils.getRealPath (FileUtils.java:26) com.gowtham.library.ui.ActVideoTrimmer.lambda$setDataInView$4$ActVideoTrimmer (ActVideoTrimmer.java:217) com.gowtham.library.ui.-$$Lambda$ActVideoTrimmer$oSNiy720JmS9xLvkSHcIMIc37rE.run (Unknown Source:2) java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)

@Usman-Click Usman-Click changed the title HOW TO USE THIS LIB WITHOUT PICKING VIDEO FROM GALLARY HOW TO USE THIS LIB WITHOUT PICKING VIDEO FROM GALLERY Oct 6, 2022
@DonMarv00
Copy link

You should download the library and add it to your project, then you could modify the code directly as you want

@a914-gowtham
Copy link
Owner

@Usman-Click you should pass video uri instead of file path

TrimVideo.activity(String.valueOf(videoUri))
          .setHideSeekBar(true)
          .start(this,startForResult);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants