iknow4x / Android-Video-Trimmer

The Android-Video-Trimmer project implements the selection of clips for long and short videos. It uses MediaMetadataRetriever to obtain video frames, and uses ffmpeg for video cropping and video compression.
Apache License 2.0
1.11k stars 264 forks source link

Reset #49

Closed 1appstudio closed 4 years ago

1appstudio commented 4 years ago

I have implemented your code, It works great. But I need to refresh all the component once I changed the video. Here I changed VideoTrimmerview, recycle Adapter but cant refreshing RangeSeekBarView. Please help us.

1appstudio commented 4 years ago

How can I reset the trimmer view on button click

iknow4x commented 4 years ago

Can you tell me what problem you are encountering now, is there a screenshot or a related error log?

1appstudio commented 4 years ago

I have three placeholders, I can add three videos, selecting each placeholder, VideoTrimmerView is loaded. Now each video has different seconds.

The trimmer view & Adapter(Thumbnail & seconds) is not getting refreshed.

We are using the below code to load the videos into the VideoTrimmerview. trimmerView.initVideoByURI(Uri.parse(selectedVideos.get(0).toString()))

1appstudio commented 4 years ago

I have loaded one video into the Trimmerview, now I want to change the video and its Thumbnail adapter & RangeSeekbar without going back to the previous screen, how can I achieve it.

iknow4x commented 4 years ago

when you loaded one video into the Trimmerview, and you want to change the video and its Thumbnail adapter & RangeSeekbar without going back to the previous screen. now, I understand that what you mean is you need a button on Trimmerview page to select other videos to load to the Trimmerview page, right?

iknow4x commented 4 years ago

I suggest you can send a few pictures to explain your intentions, you know, a picture is worth a thousand words!

1appstudio commented 4 years ago

when you loaded one video into the Trimmerview, and you want to change the video and its Thumbnail adapter & RangeSeekbar without going back to the previous screen. now, I understand that what you mean is you need a button on Trimmerview page to select other videos to load to the Trimmerview page, right?

Yes exactly

1appstudio commented 4 years ago

when you loaded one video into the Trimmerview, and you want to change the video and its Thumbnail adapter & RangeSeekbar without going back to the previous screen. now, I understand that what you mean is you need a button on Trimmerview page to select other videos to load to the Trimmerview page, right?

Yes, this is what I want. Please help us to implement

iknow4x commented 4 years ago

when you loaded one video into the Trimmerview, and you want to change the video and its Thumbnail adapter & RangeSeekbar without going back to the previous screen. now, I understand that what you mean is you need a button on Trimmerview page to select other videos to load to the Trimmerview page, right?

Yes, this is what I want. Please help us to implement

I don't know how to help you, I think this is a problem of page friendly design.

1appstudio commented 4 years ago

Please find the preview of the player we are using https://www.dropbox.com/s/xmokrmpuxu99rcs/QueryImage.png?dl=0

Do you have any suggestion?

iknow4x commented 4 years ago

Please find the preview of the player we are using https://www.dropbox.com/s/xmokrmpuxu99rcs/QueryImage.png?dl=0

Do you have any suggestion?

I think this page is well designed.