廣告
请使用 http://www.luhui.net 網址高速訪問本站,歡迎關注微信公衆賬号:guanfu8 平台長期發布海量社科數據, 本站QQ交流群:84142868 探讨人文理想,共謀和諧世界!
黄金广告位招租,投放热线15900718107,13386070835 详情查看=》   鲁之虺:“  上网就是搜索,生活就是分类,科技服务大众,信息引领生活,地方分类站长,开启您的事业之旅。生活分类信息整体提供商:http://huike.luhui.net”。
×

鲁虺繁体中文社区

 找回密碼
 立即註冊
廣告

 

查看: 12|回復: 0

[❆JavaScript资源] rossmartin video-editor-ionic2

[複製鏈接]
發表於 2023-12-31 14:36:12 | 顯示全部樓層 |閱讀模式
廣告
搜索看看︰rossmartin video-editor-ionic2
廣告
rossmartin video-editor-ionic2.zip - ZIP 压缩文件, 解包大小为 23,122,835 字节

遊客,如果您要查看本帖隱藏內容請回復
## VideoEditor: An Ionic 2 App :camera: :video_camera: :scissors:

This is an Ionic 2 app that shows how to use the [cordova-plugin-video-editor](https://github.com/jbavari/cordova-plugin-video-editor) and [cordova-plugin-instagram-assets-picker](https://github.com/rossmartin/co ... agram-assets-picker) plugins. It allows transcoding a video with every possible setting the video editor plugin provides as well as trimming, creating thumbnails, and getting video info (width, height orientation, duration, size, & bitrate).

![GIF](example.gif)

Watch the video [here](https://youtu.be/U0O2gG4N0JM).


### How to try the app
1. Install the the latest beta version of the Ionic CLI:
    ```
    npm install -g ionic@beta
    ```

1. Clone this repository
    ```
    git clone https://github.com/rossmartin/video-editor-ionic2
    ```

1. Navigate to the app directory:
    ```
    cd video-editor-ionic2
    ```

1. Install the dependencies
    ```
    npm install
    ```

1. Add the necessary cordova plugins
```
ionic plugin add cordova-plugin-camera cordova-plugin-device cordova-plugin-media-capture https://github.com/driftyco/ionic-plugin-keyboard.git cordova-plugin-statusbar cordova-plugin-spinner-dialog cordova-plugin-instagram-assets-picker cordova-plugin-video-editor
```
The plugins in the package.json aren't being automatically installed when doing `ionic platform install ios`.  I think this is a bug with the Ionic beta CLI.  The `ionic state restore` is also not working :disappointed:

From here you can build and run the app on different platforms using the traditional Cordova/Ionic CLI commands (`cordova build ios`, etc.).  My mac has been having issues getting `ionic build` and `ionic emulate` to work but `cordova build` and `cordova emulate` work fine for me.  I'm not the only one experiencing this, see [here](https://github.com/driftyco/ionic-cli/issues/593) and [here](https://github.com/driftyco/ionic-cli/issues/586).

I have only tested this app on iOS but it should run fine on Android.  Transcoding videos on Android will be much slower because the video editor plugin uses ffmpeg on Android.  I have had terrible luck with HTML5 videos in the past on Android as well so YMMV there also.

I can't get everything in the app to work with the WkWebView.  Setting a time range on a video and the cover frame is still really smooth in iOS 9 on the UIWebView though.  One particular issue with the WkWebView is that you cannot set `allowsInlineMediaPlayback` to true and this is a problem for HTML5 video.

#### Cropping on the iOS Simulator does not work, it only works on devices.  I think this is an issue with GPUImage and will be looking into it.



廣告
您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

廣告

廣告
操作系统 Fuchsia OS  |Microsoft Windows  |Android  |Chrome OS  |Novell  |Linux  |Mac OS X  |Unix  |FreeBSD  | Ubuntu
廣告

QQ|關于我們|聯繫我們|合作共赢|免責聲明|隐私条款|Archiver|手機版|拘留所|申請友鏈|付款方式|鲁虺繁体中文社区 |贊助我們 -

GMT+8, 2026-8-29 22:10 , Processed in 0.576032 second(s), 11 queries , WinCache On.

Powered by HCMS 1.0

© 2004-01-11 鲁虺文化网 版权所有

快速回復 返回頂部 返回列表