
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
cordova-plugin-video-trim
Advanced tools
短视频剪辑cordova插件
开发环境 | 版本 |
---|---|
cordova | ≥ 9.0.0 |
cordova-android | ≥8.0.0 |
视频剪辑需要在手机设备运行,安卓虚拟机无法剪辑
cordova plugin add cordova-plugin-video-trim
方法 | 描述 |
---|---|
videoTrim.trimVideo | 视频剪辑 |
videoTrim.trimSelectedVideo | 从相册选择视频后剪辑 |
videoTrim.trimRecordedVideo | 录像后前辑 |
videoTrim.play | 播放视频(允许全屏) |
videoTrim.getVideoPreviewImg | 获取视频预览图 |
videoTrim.trimVideo(videoPath,trimSuccess,trimFail);
function trimSuccess(result) {
console.log('trimSuccess, path: ' + result);
}
function trimFail(err) {
console.log('trimFail, err: ' + err);
}
videoTrim.trimSelectedVideo(trimSuccess,trimFail);
function trimSuccess(filePath) {
console.log('trimSuccess, path: ' + filePath);
}
function trimFail(err) {
console.log('trimFail, err: ' + err);
}
videoTrim.trimRecordedVideo(trimSuccess,trimFail);
function trimSuccess(filePath) {
console.log('trimSuccess, path: ' + filePath);
}
function trimFail(err) {
console.log('trimFail, err: ' + err);
}
videoTrim.getVideoPreviewImg(videoPath,
function(url){
$("body").append("<img src='" + url + "' />");
},
function(){
console.log('error');
}
);
videoTrim.play(videoPath,success,error);
function success(){
}
function error(){
}
感谢开源项目 Android-Video-Trimmer 提供部分安卓源代码
FAQs
视频剪辑功能的Cordova插件
The npm package cordova-plugin-video-trim receives a total of 1 weekly downloads. As such, cordova-plugin-video-trim popularity was classified as not popular.
We found that cordova-plugin-video-trim demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.