├── .classpath
├── .project
├── .settings
└── org.eclipse.jdt.core.prefs
├── AndroidManifest.xml
├── README.md
├── bin
├── AndroidManifest.xml
├── classes.dex
├── classes
│ └── com
│ │ ├── lansoeditor
│ │ └── demo
│ │ │ ├── BuildConfig.class
│ │ │ ├── R$attr.class
│ │ │ ├── R$color.class
│ │ │ ├── R$dimen.class
│ │ │ ├── R$drawable.class
│ │ │ ├── R$id.class
│ │ │ ├── R$layout.class
│ │ │ ├── R$string.class
│ │ │ ├── R$style.class
│ │ │ └── R.class
│ │ └── lansosdk
│ │ ├── editorDemo
│ │ ├── MainActivity$1.class
│ │ ├── MainActivity$2.class
│ │ ├── MainActivity$3.class
│ │ ├── MainActivity$4.class
│ │ ├── MainActivity.class
│ │ ├── SdkHintActivity$1.class
│ │ ├── SdkHintActivity$2.class
│ │ ├── SdkHintActivity.class
│ │ ├── StartActivity$1.class
│ │ ├── StartActivity.class
│ │ ├── VideoEditDemoActivity$1.class
│ │ ├── VideoEditDemoActivity$2.class
│ │ ├── VideoEditDemoActivity$3.class
│ │ ├── VideoEditDemoActivity$4.class
│ │ ├── VideoEditDemoActivity$SubAsyncTask.class
│ │ ├── VideoEditDemoActivity.class
│ │ ├── VideoPlayerActivity$1.class
│ │ ├── VideoPlayerActivity$2.class
│ │ ├── VideoPlayerActivity$3.class
│ │ └── VideoPlayerActivity.class
│ │ └── videoeditor
│ │ ├── Atom.class
│ │ ├── AudioEncodeDecode.class
│ │ ├── LanSoEditor.class
│ │ ├── MP4Header.class
│ │ ├── MediaInfo.class
│ │ ├── VideoEditor$EventHandler.class
│ │ ├── VideoEditor.class
│ │ ├── onVideoEditorProgressListener.class
│ │ ├── player
│ │ ├── CodecInfoKnowed.class
│ │ ├── IMediaDataSource.class
│ │ ├── IMediaPlayer$OnBufferingUpdateListener.class
│ │ ├── IMediaPlayer$OnCompletionListener.class
│ │ ├── IMediaPlayer$OnErrorListener.class
│ │ ├── IMediaPlayer$OnInfoListener.class
│ │ ├── IMediaPlayer$OnPreparedListener.class
│ │ ├── IMediaPlayer$OnSeekCompleteListener.class
│ │ ├── IMediaPlayer$OnVideoSizeChangedListener.class
│ │ ├── IMediaPlayer.class
│ │ ├── IRenderView$ISurfaceHolder.class
│ │ ├── IRenderView.class
│ │ ├── IVideoView.class
│ │ ├── MeasureHelper.class
│ │ ├── TextureRenderView.class
│ │ ├── VPlayer$1.class
│ │ ├── VPlayer$2.class
│ │ ├── VPlayer$3.class
│ │ ├── VPlayer$4.class
│ │ ├── VPlayer$5.class
│ │ ├── VPlayer$6.class
│ │ ├── VPlayer.class
│ │ ├── VideoPlayView$1.class
│ │ ├── VideoPlayView$2.class
│ │ ├── VideoPlayView$3.class
│ │ ├── VideoPlayView$4.class
│ │ ├── VideoPlayView$5.class
│ │ ├── VideoPlayView$6.class
│ │ ├── VideoPlayView$SurfaceCallback.class
│ │ ├── VideoPlayView.class
│ │ ├── VideoPlayer$DefaultMediaCodecSelector.class
│ │ ├── VideoPlayer$EventHandler.class
│ │ ├── VideoPlayer$OnControlMessageListener.class
│ │ ├── VideoPlayer$OnMediaCodecSelectListener.class
│ │ ├── VideoPlayer$OnNativeInvokeListener.class
│ │ └── VideoPlayer.class
│ │ └── utils
│ │ ├── AndroidVersion.class
│ │ ├── DLog.class
│ │ ├── FileUtils.class
│ │ ├── IRenderView.class
│ │ ├── MeasureHelper.class
│ │ ├── TextureRenderView.class
│ │ └── snoCrashHandler.class
├── dexedLibs
│ ├── android-support-v4-310d6a55214a32ba51ad8e052c8a4142.jar
│ └── android-support-v4-d47386badd64428f8ff27377ac039762.jar
├── jarlist.cache
├── res
│ └── crunch
│ │ ├── drawable-hdpi
│ │ ├── ic_launcher.png
│ │ ├── right_arrow.png
│ │ └── start.png
│ │ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ │ └── drawable-xxhdpi
│ │ └── ic_launcher.png
├── resources.ap_
└── ubuntu_LanSoEditor_common.apk
├── gen
└── com
│ └── lansoeditor
│ └── demo
│ ├── BuildConfig.java
│ └── R.java
├── ic_launcher-web.png
├── libs
├── android-support-v4.jar
└── armeabi-v7a
│ ├── libffmpegeditor.so
│ ├── liblsdisplay.so
│ └── liblsplayer.so
├── proguard-project.txt
├── project.properties
├── res
├── drawable-hdpi
│ ├── ic_launcher.png
│ ├── right_arrow.png
│ └── start.png
├── drawable-mdpi
│ └── ic_launcher.png
├── drawable-xhdpi
│ └── ic_launcher.png
├── drawable-xxhdpi
│ └── ic_launcher.png
├── drawable
│ └── start_background.xml
├── layout
│ ├── activity_main.xml
│ ├── activity_player.xml
│ ├── playbox_hint_layout.xml
│ ├── player_layout.xml
│ ├── start_layout3.xml
│ └── video_edit_demo_layout.xml
├── values-v11
│ └── styles.xml
├── values-v14
│ └── styles.xml
├── values-w820dp
│ └── dimens.xml
└── values
│ ├── colors.xml
│ ├── dimens.xml
│ ├── strings.xml
│ └── styles.xml
└── src
└── com
└── lansosdk
├── editorDemo
├── MainActivity.java
├── SdkHintActivity.java
├── StartActivity.java
├── VideoEditDemoActivity.java
└── VideoPlayerActivity.java
└── videoeditor
├── AudioEncodeDecode.java
├── LanSoEditor.java
├── MP4Header.java
├── MediaInfo.java
├── VideoEditor.java
├── onVideoEditorProgressListener.java
├── player
├── CodecInfoKnowed.java
├── IMediaDataSource.java
├── IMediaPlayer.java
├── IRenderView.java
├── IVideoView.java
├── MeasureHelper.java
├── TextureRenderView.java
├── VPlayer.java
├── VideoPlayView.java
└── VideoPlayer.java
└── utils
├── AndroidVersion.java
├── DLog.java
├── FileUtils.java
├── IRenderView.java
├── MeasureHelper.java
├── TextureRenderView.java
└── snoCrashHandler.java
/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ubuntu_LanSoEditor_common
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 | org.eclipse.jdt.core.compiler.compliance=1.6
4 | org.eclipse.jdt.core.compiler.source=1.6
5 |
--------------------------------------------------------------------------------
/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # LanSoEditor_common ---android平台的视频编辑SDK
2 |
3 | ###当前版本是LanSoEditor-v1.3
4 | * 主要使用在音视频的: 裁剪,剪切,分离,合并,转换,拼接,水印,叠加,混合,转码等场合;
5 | *
6 | * 我们是针对android平台对ffmpeg做了硬件加速优化,经过多款手机的测试,优化性能大概提升4倍左右
7 | *
8 | * 我们在项目中提供了大约30个常用的方法并写了详细的说明注释,基本满足一般视频编辑的需求
9 | *
10 | * 我们另外提供了扩展接口,您完全可以根据强大的ffmpeg命令来扩展您需要的功能
11 | *
12 | * 此SDK采用低价收费授权,公司性质的合作,为了您项目更好的进行,欢迎和我们联系.谢谢!
13 |
14 | ###下载地址:
15 | * https://github.com/LanSoSdk/LanSoEditor_common
16 |
17 | ###联系方式:
18 | * QQ 1852600324
19 | * Email:support@lansongtech.com
20 |
21 | ###您可以直接下载APK来安装测试:
22 | [LanSoEditor_common.apk][id]
23 | [id]:http://files.cnblogs.com/files/guobaPlayer/LanSoEditor_common.apk
24 |
25 | ###本SDK的编解码有:
26 | * 软解码器H264
27 | * 硬件加速解码器lansoh264_dec
28 | * 软编码器libx264
29 | * 硬编码器lansoh264_enc
30 | * 音频mp3编码器libmp3lame
31 | * 音频aac编码器 faac
32 |
33 | ####我们有免费的,仅供个人视频爱好者使用的版本,欢迎您的使用
34 | * 下载地址 https://github.com/LanSoSdk/video_play_edit_sdk
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/bin/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/bin/classes.dex:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes.dex
--------------------------------------------------------------------------------
/bin/classes/com/lansoeditor/demo/BuildConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansoeditor/demo/BuildConfig.class
--------------------------------------------------------------------------------
/bin/classes/com/lansoeditor/demo/R$attr.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansoeditor/demo/R$attr.class
--------------------------------------------------------------------------------
/bin/classes/com/lansoeditor/demo/R$color.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansoeditor/demo/R$color.class
--------------------------------------------------------------------------------
/bin/classes/com/lansoeditor/demo/R$dimen.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansoeditor/demo/R$dimen.class
--------------------------------------------------------------------------------
/bin/classes/com/lansoeditor/demo/R$drawable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansoeditor/demo/R$drawable.class
--------------------------------------------------------------------------------
/bin/classes/com/lansoeditor/demo/R$id.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansoeditor/demo/R$id.class
--------------------------------------------------------------------------------
/bin/classes/com/lansoeditor/demo/R$layout.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansoeditor/demo/R$layout.class
--------------------------------------------------------------------------------
/bin/classes/com/lansoeditor/demo/R$string.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansoeditor/demo/R$string.class
--------------------------------------------------------------------------------
/bin/classes/com/lansoeditor/demo/R$style.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansoeditor/demo/R$style.class
--------------------------------------------------------------------------------
/bin/classes/com/lansoeditor/demo/R.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansoeditor/demo/R.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/MainActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/MainActivity$1.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/MainActivity$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/MainActivity$2.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/MainActivity$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/MainActivity$3.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/MainActivity$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/MainActivity$4.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/MainActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/MainActivity.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/SdkHintActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/SdkHintActivity$1.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/SdkHintActivity$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/SdkHintActivity$2.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/SdkHintActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/SdkHintActivity.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/StartActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/StartActivity$1.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/StartActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/StartActivity.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/VideoEditDemoActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/VideoEditDemoActivity$1.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/VideoEditDemoActivity$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/VideoEditDemoActivity$2.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/VideoEditDemoActivity$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/VideoEditDemoActivity$3.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/VideoEditDemoActivity$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/VideoEditDemoActivity$4.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/VideoEditDemoActivity$SubAsyncTask.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/VideoEditDemoActivity$SubAsyncTask.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/VideoEditDemoActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/VideoEditDemoActivity.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/VideoPlayerActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/VideoPlayerActivity$1.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/VideoPlayerActivity$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/VideoPlayerActivity$2.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/VideoPlayerActivity$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/VideoPlayerActivity$3.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/editorDemo/VideoPlayerActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/editorDemo/VideoPlayerActivity.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/Atom.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/Atom.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/AudioEncodeDecode.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/AudioEncodeDecode.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/LanSoEditor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/LanSoEditor.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/MP4Header.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/MP4Header.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/MediaInfo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/MediaInfo.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/VideoEditor$EventHandler.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/VideoEditor$EventHandler.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/VideoEditor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/VideoEditor.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/onVideoEditorProgressListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/onVideoEditorProgressListener.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/CodecInfoKnowed.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/CodecInfoKnowed.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/IMediaDataSource.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/IMediaDataSource.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnBufferingUpdateListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnBufferingUpdateListener.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnCompletionListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnCompletionListener.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnErrorListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnErrorListener.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnInfoListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnInfoListener.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnPreparedListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnPreparedListener.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnSeekCompleteListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnSeekCompleteListener.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnVideoSizeChangedListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer$OnVideoSizeChangedListener.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/IMediaPlayer.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/IRenderView$ISurfaceHolder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/IRenderView$ISurfaceHolder.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/IRenderView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/IRenderView.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/IVideoView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/IVideoView.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/MeasureHelper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/MeasureHelper.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/TextureRenderView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/TextureRenderView.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VPlayer$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VPlayer$1.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VPlayer$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VPlayer$2.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VPlayer$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VPlayer$3.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VPlayer$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VPlayer$4.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VPlayer$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VPlayer$5.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VPlayer$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VPlayer$6.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VPlayer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VPlayer.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$1.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$2.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$3.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$4.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$5.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$6.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$SurfaceCallback.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView$SurfaceCallback.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayView.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayer$DefaultMediaCodecSelector.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayer$DefaultMediaCodecSelector.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayer$EventHandler.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayer$EventHandler.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayer$OnControlMessageListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayer$OnControlMessageListener.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayer$OnMediaCodecSelectListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayer$OnMediaCodecSelectListener.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayer$OnNativeInvokeListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayer$OnNativeInvokeListener.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/player/VideoPlayer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/player/VideoPlayer.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/utils/AndroidVersion.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/utils/AndroidVersion.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/utils/DLog.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/utils/DLog.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/utils/FileUtils.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/utils/FileUtils.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/utils/IRenderView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/utils/IRenderView.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/utils/MeasureHelper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/utils/MeasureHelper.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/utils/TextureRenderView.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/utils/TextureRenderView.class
--------------------------------------------------------------------------------
/bin/classes/com/lansosdk/videoeditor/utils/snoCrashHandler.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/classes/com/lansosdk/videoeditor/utils/snoCrashHandler.class
--------------------------------------------------------------------------------
/bin/dexedLibs/android-support-v4-310d6a55214a32ba51ad8e052c8a4142.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/dexedLibs/android-support-v4-310d6a55214a32ba51ad8e052c8a4142.jar
--------------------------------------------------------------------------------
/bin/dexedLibs/android-support-v4-d47386badd64428f8ff27377ac039762.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/dexedLibs/android-support-v4-d47386badd64428f8ff27377ac039762.jar
--------------------------------------------------------------------------------
/bin/jarlist.cache:
--------------------------------------------------------------------------------
1 | # cache for current jar dependency. DO NOT EDIT.
2 | # format is
3 | # Encoding is UTF-8
4 |
--------------------------------------------------------------------------------
/bin/res/crunch/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/res/crunch/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/bin/res/crunch/drawable-hdpi/right_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/res/crunch/drawable-hdpi/right_arrow.png
--------------------------------------------------------------------------------
/bin/res/crunch/drawable-hdpi/start.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/res/crunch/drawable-hdpi/start.png
--------------------------------------------------------------------------------
/bin/res/crunch/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/res/crunch/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/bin/res/crunch/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/res/crunch/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/bin/res/crunch/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/res/crunch/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/bin/resources.ap_:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/resources.ap_
--------------------------------------------------------------------------------
/bin/ubuntu_LanSoEditor_common.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/bin/ubuntu_LanSoEditor_common.apk
--------------------------------------------------------------------------------
/gen/com/lansoeditor/demo/BuildConfig.java:
--------------------------------------------------------------------------------
1 | /** Automatically generated file. DO NOT MODIFY */
2 | package com.lansoeditor.demo;
3 |
4 | public final class BuildConfig {
5 | public final static boolean DEBUG = true;
6 | }
--------------------------------------------------------------------------------
/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/ic_launcher-web.png
--------------------------------------------------------------------------------
/libs/android-support-v4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/libs/android-support-v4.jar
--------------------------------------------------------------------------------
/libs/armeabi-v7a/libffmpegeditor.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/libs/armeabi-v7a/libffmpegeditor.so
--------------------------------------------------------------------------------
/libs/armeabi-v7a/liblsdisplay.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/libs/armeabi-v7a/liblsdisplay.so
--------------------------------------------------------------------------------
/libs/armeabi-v7a/liblsplayer.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/libs/armeabi-v7a/liblsplayer.so
--------------------------------------------------------------------------------
/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-23
15 |
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/right_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/res/drawable-hdpi/right_arrow.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/start.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/res/drawable-hdpi/start.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seoppt/LanSoEditor_common/c839af959141a1e38b2d7ef815ed311004aa9be1/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable/start_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
12 |
13 |
18 |
23 |
24 |
27 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
156 |
157 |
164 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
--------------------------------------------------------------------------------
/res/layout/activity_player.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
13 |
14 |
20 |
27 |
34 |
35 |
--------------------------------------------------------------------------------
/res/layout/playbox_hint_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
16 |
17 |
28 |
38 |
39 |
50 |
58 |
69 |
70 |
--------------------------------------------------------------------------------
/res/layout/player_layout.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
14 |
18 |
19 |
20 |
21 |
25 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/layout/start_layout3.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
19 |
20 |
--------------------------------------------------------------------------------
/res/layout/video_edit_demo_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
14 |
15 |
16 |
25 |
26 |
27 |
35 |
36 |
37 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/res/values-v11/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 | 64dp
9 |
10 |
11 |
--------------------------------------------------------------------------------
/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #66000000
4 | #ff36bfdc
5 | #ff46818e
6 |
7 | #b5b5b5
8 |
9 | #60000000
10 | #ff000000
11 | #ffff0000
12 | #b0000000
13 | #c0ffff00
14 |
15 | #99000000
16 | #55000000
17 |
18 | #09235e
19 |
20 | #4B75B9
21 | #0a2a5a
22 | #0a2a73
23 | #0a2a96
24 |
25 | #3a5b9c
26 |
27 |
28 | #8A2BE2
29 | #87CEFA
30 | #87CEEB
31 | #7B68EE
32 | #778899
33 | #FF4500
34 |
35 |
53 | #00A1FC
54 | #00A1FC
55 | #00A1FC
56 | #00A1FC
57 | #00A1FC
58 | #00A1FC
59 | #00A1FC
60 | #00A1FC
61 | #00A1FC
62 | #00A1FC
63 |
64 |
65 | #b400A1FC
66 |
67 | #fafafa
68 | #f5f5f5
69 | #eeeeee
70 | #e0e0e0
71 | #bdbdbd
72 | #9e9e9e
73 | #757575
74 | #616161
75 | #424242
76 | #323232
77 | #2a2a2a
78 | #212121
79 |
80 | #dcfafafa
81 | #80bdbdbd
82 | #80212121
83 |
84 |
85 | #FF0000
86 | #55FF0000
87 | #FF4500
88 |
89 |
90 | #000000
91 | #00A1FC
92 |
93 | #FFFFFF
94 | #f0f0f0
95 | #e0e0e0
96 | #f2f2f2
97 | #FFFFF0
98 | #FFFFE0
99 | #FFFF00
100 | #FFFAFA
101 | #FFFAF0
102 | #FFFACD
103 | #FFF8DC
104 | #FFF5EE
105 | #FFF0F5
106 | #FFEFD5
107 | #FFEBCD
108 | #FFE4E1
109 | #FFE4C4
110 | #FFE4B5
111 | #FFDEAD
112 | #FFDAB9
113 | #FFD700
114 | #FFC0CB
115 | #FFB6C1
116 | #FFA500
117 | #FFA07A
118 |
119 |
120 | #FF8C00
121 | #FF7F50
122 | #FF69B4
123 | #FF6347
124 |
125 | #FF1493
126 | #FF00FF
127 | #FF00FF
128 |
129 | #FDF5E6
130 | #FAFAD2
131 | #FAF0E6
132 | #FAEBD7
133 | #FA8072
134 | #F8F8FF
135 | #F5FFFA
136 | #F5F5F5
137 | #F5F5DC
138 | #F4A460
139 | #F0FFF0
140 | #F0F8FF
141 | #F0E68C
142 | #F08080
143 | #EEE8AA
144 | #EE82EE
145 | #E9967A
146 | #E6E6FA
147 | #E0FFFF
148 | #DEB887
149 | #DDA0DD
150 | #DCDCDC
151 | #DC143C
152 | #DB7093
153 | #DAA520
154 | #DA70D6
155 | #D8BFD8
156 | #D3D3D3
157 | #D3D3D3
158 | #D2B48C
159 | #D2691E
160 | #CD853F
161 | #CD5C5C
162 | #C71585
163 | #C0C0C0
164 | #BDB76B
165 | #BC8F8F
166 | #BA55D3
167 | #B8860B
168 | #B22222
169 | #B0E0E6
170 | #B0C4DE
171 | #AFEEEE
172 | #ADFF2F
173 | #ADD8E6
174 | #A9A9A9
175 | #A52A2A
176 | #A0522D
177 | #9932CC
178 | #98FB98
179 | #9400D3
180 | #9370DB
181 | #90EE90
182 | #8FBC8F
183 | #8B4513
184 | #8B008B
185 | #8B0000
186 |
187 |
188 |
189 | #808080
190 | #808000
191 | #800080
192 | #800000
193 | #7FFFD4
194 | #7FFF00
195 | #7CFC00
196 |
197 | #708090
198 | #708090
199 | #6B8E23
200 | #6A5ACD
201 | #696969
202 | #696969
203 | #66CDAA
204 | #6495ED
205 | #5F9EA0
206 | #556B2F
207 | #4B0082
208 | #48D1CC
209 | #483D8B
210 | #4682B4
211 | #4169E1
212 | #40E0D0
213 | #3CB371
214 | #32CD32
215 | #2F4F4F
216 | #2F4F4F
217 | #2E8B57
218 | #228B22
219 | #20B2AA
220 | #1E90FF
221 | #191970
222 | #00FFFF
223 | #00FFFF
224 | #00FF7F
225 | #00FF00
226 | #00FA9A
227 | #00CED1
228 | #00BFFF
229 | #008B8B
230 | #008080
231 | #00FF00
232 | #006400
233 | #0000FF
234 | #0000CD
235 | #00008B
236 | #000080
237 | #000000
238 |
239 |
240 | #ff33b5e5
241 | #ff0099cc
242 | #00000000
243 |
244 | #EE666666
245 | #BBBBBB
246 |
247 |
248 |
--------------------------------------------------------------------------------
/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | LanSongEditor
5 | 杭州蓝松科技有限公司\n 专业的视频处理SDK开发团队.
6 | "说明\n 此SDK是lansoEditor的基本版本. \n\n主要使用在音视频的: 裁剪,剪切,分离,合并,转换,拼接,水印,叠加,混合,转码等场合;\n\n 我们是针对android平台对ffmpeg做了硬件加速优化,经过多款手机的测试,优化性能大概提升4倍左右"
7 | "demo仅仅举例演示一两个功能,我们在 项目中提供了大约30个常用的方法并写了详细的说明注释,基本满足一般视频编辑的需求"
8 | "我们另外提供了扩展接口,您完全可以根据强大的ffmpeg命令来扩展您需要的功能"
9 | "此SDK采用低价收费授权,公司性质的合作,为了您项目更好的进行,欢迎和我们联系,询价.谢谢!"
10 |
11 | 此演示功能是:解码==>画面裁剪(比如1280x720的画面裁剪成240x240, 从视频画面的左上角开始裁剪,裁剪240x240的像素点)==>编码输出,保存在/sdcard/video_demo_framecrop.mp4中.\n\n
12 |
13 | 我们在VideoEditor.java中提供了大约30个常用的方法并写了详细的说明注释,基本满足一般视频编辑的需求\n 欢迎联系我们:\n 手机:18006716739 \n QQ:1852600324 \n email:support@lansongtech.com"
14 | 文件不存在
15 |
16 |
--------------------------------------------------------------------------------
/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
30 |
31 |
37 |
38 |
46 |
47 |
53 |
54 |
62 |
63 |
--------------------------------------------------------------------------------
/src/com/lansosdk/editorDemo/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.lansosdk.editorDemo;
2 |
3 | import java.io.File;
4 |
5 |
6 | import com.lansoeditor.demo.R;
7 | import com.lansosdk.editorDemo.VideoEditDemoActivity.SubAsyncTask;
8 | import com.lansosdk.videoeditor.LanSoEditor;
9 | import com.lansosdk.videoeditor.MediaInfo;
10 | import com.lansosdk.videoeditor.utils.snoCrashHandler;
11 |
12 |
13 | import android.app.Activity;
14 | import android.app.AlertDialog;
15 | import android.content.DialogInterface;
16 | import android.content.Intent;
17 | import android.os.Bundle;
18 | import android.os.Handler;
19 | import android.provider.MediaStore.Video;
20 | import android.util.Log;
21 | import android.view.Menu;
22 | import android.view.MenuItem;
23 | import android.view.View;
24 | import android.view.View.OnClickListener;
25 | import android.widget.EditText;
26 | import android.widget.Toast;
27 |
28 |
29 | public class MainActivity extends Activity {
30 |
31 |
32 | private static final String TAG="MainActivity";
33 |
34 |
35 | EditText etVideoPath;
36 | @Override
37 | protected void onCreate(Bundle savedInstanceState) {
38 | super.onCreate(savedInstanceState);
39 | Thread.setDefaultUncaughtExceptionHandler(new snoCrashHandler());
40 | setContentView(R.layout.activity_main);
41 |
42 | LanSoEditor.initSo(getApplicationContext());
43 |
44 | etVideoPath=(EditText)findViewById(R.id.id_main_etvideo);
45 | etVideoPath.setText("/sdcard/2x.mp4");
46 |
47 | // MediaInfo info=new MediaInfo("/sdcard/x3_m7crash.mp4");
48 | // info.prepare();
49 | // Log.i(TAG,"info:"+info.toString());
50 |
51 | // info=new MediaInfo("/sdcard/x3.mp4");
52 | // info.prepare();
53 | // Log.i(TAG,"info:"+info.toString());
54 | //
55 | // info=new MediaInfo("/sdcard/2x.mp4");
56 | // info.prepare();
57 | // Log.i(TAG,"info:"+info.toString());
58 | //
59 | // info=new MediaInfo("/sdcard/test_720p.mp4");
60 | // info.prepare();
61 | // Log.i(TAG,"info:"+info.toString());
62 | //
63 | // info=new MediaInfo("/sdcard/x2.mp4");
64 | // info.prepare();
65 | // Log.i(TAG,"info:"+info.toString());
66 |
67 |
68 | findViewById(R.id.id_main_demoplay).setOnClickListener(new OnClickListener() {
69 |
70 | @Override
71 | public void onClick(View v) {
72 | // TODO Auto-generated method stub
73 | if(checkPath())
74 | startVideoPlayDemo();
75 | }
76 | });
77 | findViewById(R.id.id_main_demoedit).setOnClickListener(new OnClickListener() {
78 |
79 | @Override
80 | public void onClick(View v) {
81 | // TODO Auto-generated method stub
82 | if(checkPath())
83 | // startVideoPlayDemo();
84 |
85 | startVideoEditDemo();
86 | }
87 | });
88 |
89 | if(LanSoEditor.selfPermissionGranted(getApplicationContext(), "android.permission.WRITE_EXTERNAL_STORAGE")==false){
90 | showHintDialog("当前没有读写权限");
91 | }else{
92 | Log.i("sno","当前有读写权限");
93 | }
94 | }
95 | private boolean isstarted=false;
96 | @Override
97 | protected void onResume() {
98 | // TODO Auto-generated method stub
99 | super.onResume();
100 |
101 | // if(isstarted)
102 | // return;
103 | //
104 | // new Handler().postDelayed(new Runnable() {
105 | //
106 | // @Override
107 | // public void run() {
108 | // // TODO Auto-generated method stub
109 | // isstarted=true;
110 | //
111 | // startVideoEditDemo();
112 | // // startVideoPlayDemo();
113 | // }
114 | // }, 1000);
115 | // showHintDialog();
116 |
117 | }
118 | private void showHintDialog(String hint){
119 | new AlertDialog.Builder(this)
120 | .setTitle("提示")
121 | .setMessage(hint)
122 | .setPositiveButton("确定", new DialogInterface.OnClickListener() {
123 |
124 | @Override
125 | public void onClick(DialogInterface dialog, int which) {
126 | // TODO Auto-generated method stub
127 | }
128 | })
129 | .show();
130 | }
131 |
132 | private void showHintDialog()
133 | {
134 | new AlertDialog.Builder(this)
135 | .setTitle("提示")
136 | .setMessage("SDK版本号是V1.2 [商用版本]\n\n,SDK底层做了授权限制,仅可在此demo中运行,并有效时间到2016年9月30号,请注意.)")
137 | .setPositiveButton("确定", new DialogInterface.OnClickListener() {
138 |
139 | @Override
140 | public void onClick(DialogInterface dialog, int which) {
141 | // TODO Auto-generated method stub
142 | }
143 | })
144 | .show();
145 | }
146 |
147 | @Override
148 | protected void onDestroy() {
149 | // TODO Auto-generated method stub
150 | super.onDestroy();
151 | LanSoEditor.unInitSo();
152 | }
153 |
154 |
155 | private boolean checkPath(){
156 | if(etVideoPath.getText()!=null && etVideoPath.getText().toString().isEmpty()){
157 | Toast.makeText(MainActivity.this, "请输入视频地址", Toast.LENGTH_SHORT).show();
158 | return false;
159 | }
160 | else{
161 | String path=etVideoPath.getText().toString();
162 | if((new File(path)).exists()==false){
163 | Toast.makeText(MainActivity.this, "文件不存在", Toast.LENGTH_SHORT).show();
164 | return false;
165 | }else{
166 | MediaInfo info=new MediaInfo(path);
167 | info.prepare();
168 | Log.i(TAG,"info:"+info.toString());
169 | return true;
170 | }
171 | }
172 | }
173 | private void startVideoPlayDemo()
174 | {
175 | String path=etVideoPath.getText().toString();
176 | Intent intent=new Intent(MainActivity.this,VideoPlayerActivity.class);
177 | intent.putExtra("videopath", path);
178 | startActivity(intent);
179 | }
180 | private void startVideoEditDemo()
181 | {
182 | String path=etVideoPath.getText().toString();
183 | Intent intent=new Intent(MainActivity.this,VideoEditDemoActivity.class);
184 | intent.putExtra("videopath", path);
185 | startActivity(intent);
186 | }
187 | }
188 |
--------------------------------------------------------------------------------
/src/com/lansosdk/editorDemo/SdkHintActivity.java:
--------------------------------------------------------------------------------
1 | package com.lansosdk.editorDemo;
2 |
3 | import com.lansoeditor.demo.R;
4 | import com.lansosdk.videoeditor.MediaInfo;
5 |
6 | import android.app.Activity;
7 | import android.content.Intent;
8 | import android.os.Bundle;
9 | import android.os.Handler;
10 | import android.util.Log;
11 | import android.view.View;
12 | import android.view.View.OnClickListener;
13 | import android.widget.TextView;
14 |
15 | public class SdkHintActivity extends Activity{
16 |
17 | String activityName;
18 | String videoPath=null;
19 | TextView tvCount;
20 | private int count=COUNT_NUM;
21 | private static final int COUNT_NUM=10;
22 | /**
23 | *
24 | * 安卓6.0 不支持这个format!!!!!!
25 | * do not know color format 0x7fa30c04 = 2141391876
26 | 05-24 06:20:31.339: W/ACodec(14167): do not know color format 0x7f000789 = 2130708361
27 | */
28 | @Override
29 | protected void onCreate(Bundle savedInstanceState) {
30 | // TODO Auto-generated method stub
31 | super.onCreate(savedInstanceState);
32 |
33 | setContentView(R.layout.playbox_hint_layout);
34 | tvCount=(TextView)findViewById(R.id.id_playbox_tv_count);
35 |
36 | tvCount.setText(String.valueOf(count));
37 |
38 | activityName=getIntent().getStringExtra("Activity_name");
39 | videoPath = getIntent().getStringExtra("videopath");
40 |
41 | Log.i("tag","shoActivity "+activityName);
42 |
43 | findViewById(R.id.id_playbox_hint_btn).setEnabled(false);
44 |
45 | findViewById(R.id.id_playbox_hint_btn).setOnClickListener(new OnClickListener() {
46 |
47 | @Override
48 | public void onClick(View v) {
49 | // TODO Auto-generated method stub
50 | showActivity();
51 | }
52 | });
53 | }
54 | Handler mHandler=new Handler();
55 | Runnable mRunnable=new Runnable() {
56 |
57 | @Override
58 | public void run() {
59 | // TODO Auto-generated method stub
60 | if(count-->0){
61 | tvCount.setText(String.valueOf(count));
62 | mHandler.postDelayed(mRunnable, 1000);
63 | }else{
64 | findViewById(R.id.id_playbox_hint_btn).setEnabled(true);
65 | }
66 | }
67 | };
68 | @Override
69 | protected void onResume() {
70 | // TODO Auto-generated method stub
71 | super.onResume();
72 | findViewById(R.id.id_playbox_hint_btn).setEnabled(false);
73 | count=COUNT_NUM;
74 | mHandler.postDelayed(mRunnable, 1000);
75 | }
76 | @Override
77 | protected void onPause() {
78 | // TODO Auto-generated method stub
79 | super.onPause();
80 | mHandler.removeCallbacks(mRunnable);
81 | }
82 | private void showActivity()
83 | {
84 | Log.i("tag","shoActivity "+activityName);
85 | Intent intent=new Intent(SdkHintActivity.this,MainActivity.class);
86 | startActivity(intent);
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/src/com/lansosdk/editorDemo/StartActivity.java:
--------------------------------------------------------------------------------
1 | package com.lansosdk.editorDemo;
2 |
3 | import java.io.BufferedReader;
4 | import java.io.IOException;
5 | import java.io.InputStream;
6 | import java.io.InputStreamReader;
7 | import java.lang.ref.WeakReference;
8 | import java.util.ArrayList;
9 | import java.util.List;
10 |
11 |
12 | import com.lansoeditor.demo.R;
13 | import com.lansosdk.videoeditor.utils.snoCrashHandler;
14 |
15 | import android.app.Activity;
16 | import android.app.AlertDialog;
17 | import android.app.ProgressDialog;
18 | import android.content.Context;
19 | import android.content.DialogInterface;
20 | import android.content.Intent;
21 | import android.content.SharedPreferences;
22 | import android.graphics.Point;
23 | import android.net.wifi.WifiManager;
24 | import android.os.AsyncTask;
25 | import android.os.Bundle;
26 | import android.os.Handler;
27 | import android.os.Message;
28 | import android.support.v4.content.LocalBroadcastManager;
29 | import android.text.TextUtils;
30 | import android.util.Log;
31 | import android.view.View;
32 | import android.view.View.OnClickListener;
33 | import android.view.animation.AlphaAnimation;
34 | import android.view.animation.Animation;
35 | import android.view.animation.Animation.AnimationListener;
36 | import android.widget.Toast;
37 |
38 | public class StartActivity extends Activity{
39 |
40 | private Handler mHandler;
41 |
42 | @Override
43 | protected void onCreate(Bundle savedInstanceState) {
44 | // TODO Auto-generated method stub
45 | super.onCreate(savedInstanceState);
46 | Thread.setDefaultUncaughtExceptionHandler(new snoCrashHandler());
47 | final View view = View.inflate(this, R.layout.start_layout3, null);
48 | setContentView(view);
49 | AlphaAnimation alphaAnimation = new AlphaAnimation(0.3f, 1.0f);
50 | alphaAnimation.setDuration(5000);
51 | view.setAnimation(alphaAnimation);
52 | alphaAnimation.setAnimationListener(new AnimationListener() {
53 |
54 | public void onAnimationStart(Animation animation) {
55 |
56 | }
57 |
58 | public void onAnimationRepeat(Animation animation) {
59 |
60 | }
61 |
62 | public void onAnimationEnd(Animation animation) {
63 | startMainActivity();
64 | StartActivity.this.finish();
65 | }
66 | });
67 | }
68 | private void startMainActivity()
69 | {
70 | Intent intent=new Intent(StartActivity.this,SdkHintActivity.class);
71 | startActivity(intent);
72 | }
73 | @Override
74 | protected void onResume() {
75 | // TODO Auto-generated method stub
76 | super.onResume();
77 |
78 | }
79 |
80 | }
81 |
--------------------------------------------------------------------------------
/src/com/lansosdk/editorDemo/VideoEditDemoActivity.java:
--------------------------------------------------------------------------------
1 | package com.lansosdk.editorDemo;
2 |
3 | import java.io.File;
4 | import java.io.IOException;
5 | import java.util.ArrayList;
6 | import java.util.List;
7 |
8 | import com.lansoeditor.demo.R;
9 | import com.lansosdk.videoeditor.MediaInfo;
10 | import com.lansosdk.videoeditor.VideoEditor;
11 | import com.lansosdk.videoeditor.onVideoEditorProgressListener;
12 | import com.lansosdk.videoeditor.utils.FileUtils;
13 | import com.lansosdk.videoeditor.utils.snoCrashHandler;
14 |
15 | import android.app.Activity;
16 | import android.app.AlertDialog;
17 | import android.app.ProgressDialog;
18 | import android.content.DialogInterface;
19 | import android.content.Intent;
20 | import android.media.MediaPlayer.OnPreparedListener;
21 | import android.os.AsyncTask;
22 | import android.os.Bundle;
23 | import android.os.Handler;
24 | import android.util.Log;
25 | import android.view.View;
26 | import android.view.View.OnClickListener;
27 | import android.widget.TextView;
28 | import android.widget.Toast;
29 |
30 | public class VideoEditDemoActivity extends Activity{
31 |
32 | String videoPath=null;
33 | VideoEditor mEditor = new VideoEditor();
34 | ProgressDialog mProgressDialog;
35 | int videoDuration;
36 | boolean isRuned=false;
37 | MediaInfo mMediaInfo;
38 | TextView tvProgressHint;
39 | TextView tvHint;
40 | private final static String TAG="videoEditDemoActivity";
41 | private static final boolean VERBOSE = false;
42 | private String dstPath="/sdcard/video_demo_framecrop.mp4";
43 |
44 | @Override
45 | protected void onCreate(Bundle savedInstanceState) {
46 | super.onCreate(savedInstanceState);
47 | Thread.setDefaultUncaughtExceptionHandler(new snoCrashHandler());
48 |
49 | setContentView(R.layout.video_edit_demo_layout);
50 |
51 | videoPath=getIntent().getStringExtra("videopath");
52 |
53 | mMediaInfo=new MediaInfo(videoPath);
54 |
55 | tvHint=(TextView)findViewById(R.id.id_video_editor_demo_hint);
56 | tvHint.setText(R.string.video_editor_demo_hint);
57 | tvProgressHint=(TextView)findViewById(R.id.id_video_edit_progress_hint);
58 |
59 |
60 | findViewById(R.id.id_video_edit_btn).setOnClickListener(new OnClickListener() {
61 |
62 | @Override
63 | public void onClick(View v) {
64 | if(videoPath==null)
65 | return ;
66 |
67 | mMediaInfo.prepare();
68 |
69 | Log.i(TAG,mMediaInfo.toString());
70 |
71 | if(mMediaInfo.vDuration>60*1000){//大于60秒
72 | showHintDialog();
73 | }else{
74 | new SubAsyncTask().execute();
75 | }
76 | }
77 | });
78 |
79 | findViewById(R.id.id_video_play_btn).setOnClickListener(new OnClickListener() {
80 |
81 | @Override
82 | public void onClick(View v) {
83 | // TODO Auto-generated method stub
84 | if(FileUtils.fileExist(dstPath)){
85 | Intent intent=new Intent(VideoEditDemoActivity.this,VideoPlayerActivity.class);
86 | intent.putExtra("videopath", dstPath);
87 | startActivity(intent);
88 | }else{
89 | Toast.makeText(VideoEditDemoActivity.this, R.string.file_not_exist,Toast.LENGTH_SHORT).show();
90 | }
91 | }
92 | });
93 |
94 | mEditor.setOnProgessListener(new onVideoEditorProgressListener() {
95 |
96 | @Override
97 | public void onProgress(VideoEditor v, int percent) {
98 | // TODO Auto-generated method stub
99 | Log.i(TAG,"current percent is:"+percent);
100 | tvProgressHint.setText(String.valueOf(percent)+"%");
101 | }
102 | });
103 | }
104 | @Override
105 | protected void onResume() {
106 | // TODO Auto-generated method stub
107 | super.onResume();
108 |
109 | if(FileUtils.fileExist(dstPath)){
110 | FileUtils.deleteFile(dstPath);
111 | }
112 | }
113 | private void showHintDialog()
114 | {
115 | new AlertDialog.Builder(this)
116 | .setTitle("提示")
117 | .setMessage("视频过大,可能会需要一段时间,您确定要处理吗?")
118 | .setPositiveButton("确定", new DialogInterface.OnClickListener() {
119 |
120 | @Override
121 | public void onClick(DialogInterface dialog, int which) {
122 | // TODO Auto-generated method stub
123 | new SubAsyncTask().execute();
124 | }
125 | })
126 | .setNegativeButton("取消", null)
127 | .show();
128 | }
129 | public class SubAsyncTask extends AsyncTask