VideoCutView
视频裁剪帧预览控件
Install / Use
/learn @libq/VideoCutViewREADME
VideoCutView 视频裁剪view 带帧预览

1.配置
step 1: project build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
step 2: module build.gradle
dependencies {
compile 'com.github.libq:VideoCutView:1.0.3'
}
2.使用
java
cut.getSuitImageCount(new VideoCutView.GetImageCountCallback() {
@Override
public void invoke(int count) {
String root =Environment.getExternalStorageDirectory().getAbsolutePath();
//本地图片
String imgPath = root+ File.separator +"Pictures/03 演示图片.jpg";
ArrayList<String> paths = new ArrayList<>();
for(int i = 0 ; i<=count ;i++){
paths.add(imgPath);
//"http://p3.wmpic.me/article/2017/11/08/1510105952_KopFLXPj.jpg"
}
cut.setImageUrls(paths, new VideoCutView.ImageLoadStrategyLinstener() {
@Override
public void onLoad(ArrayList<String> urls, ArrayList<ImageView> ivs) {
for(int i=0;i<urls.size();i++){
File file = new File(urls.get(i));
Glide.with(MainActivity.this)
.load(file)
.diskCacheStrategy(DiskCacheStrategy.NONE)
.into(ivs.get(i));
}
}
});
}
});
cut.setVideoDuration(10000);
cut.setCutMinDuration(3000);
cut.setOnCutBorderScrollListener(new VideoThumbnailView.OnCutBorderScrollListener() {
@Override
public void onScrollBorder(float start, float end) {
Log.e("Main","###### start ="+start+" end = "+end);
}
});
xml
<com.libq.videocutpreview.VideoCutView
android:id="@+id/cut"
android:layout_width="match_parent"
android:layout_height="80dp"
app:draw_cursor="false"
app:video_duration="10000"
app:top_bottom_border_width="10dp"
app:slider_width="10dp"
app:drag_area_width="10dp"
app:cut_min_duration="1000"
app:border_color="@color/colorAccent"
/>
Related Skills
qqbot-channel
351.2kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.5k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
351.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
