Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cordova-plugin-video-trim
Advanced tools
短视频剪辑cordova插件
开发环境 | 版本 |
---|---|
cordova | ≥ 9.0.0 |
cordova-android | ≥ 8.0.0 |
cordova-ios | ≥ 5.0.0 |
视频剪辑需要在手机设备运行,虚拟机无法剪辑
cordova plugin add cordova-plugin-video-trim
安装需要消耗大约20MB流量
方法 | 描述 |
---|---|
videoTrim.trimVideo | 视频剪辑 (支持android与ios) |
videoTrim.trimSelectedVideo | 从相册选择视频后剪辑 (支持android与ios) |
videoTrim.trimRecordedVideo | 录像后前辑 (支持android与ios) |
videoTrim.play | 播放全屏视频 (支持android与ios) |
videoTrim.getVideoPreviewImg | 获取视频预览图 (支持android,暂时不支持ios) |
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插件
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.