Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lify
RvApp
Commits
d25de213
Commit
d25de213
authored
Nov 21, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
b083d53a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
7 deletions
+34
-7
build.gradle
RvClient/build.gradle
+5
-5
banner_share_ruler_top.jpg
...e/src/main/res/drawable-xxhdpi/banner_share_ruler_top.jpg
+0
-0
banner_share_ruler_top.png
...e/src/main/res/drawable-xxhdpi/banner_share_ruler_top.png
+0
-0
bg_bill.jpg
plugin_share/src/main/res/drawable-xxhdpi/bg_bill.jpg
+0
-0
PreviewxActivity.java
...c/main/java/com/xxrv/video/activity/PreviewxActivity.java
+10
-1
Xspeedbar.java
..._video/src/main/java/com/xxrv/video/weight/Xspeedbar.java
+11
-0
Xvolumebar.java
...video/src/main/java/com/xxrv/video/weight/Xvolumebar.java
+8
-1
No files found.
RvClient/build.gradle
View file @
d25de213
...
@@ -8,8 +8,8 @@ android {
...
@@ -8,8 +8,8 @@ android {
minSdkVersion
rootProject
.
ext
.
minSdkVersion
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
flavorDimensions
"default"
flavorDimensions
"default"
versionCode
15
4
versionCode
15
5
versionName
"1.5.
4
"
versionName
"1.5.
5
"
multiDexEnabled
true
multiDexEnabled
true
...
@@ -25,9 +25,9 @@ android {
...
@@ -25,9 +25,9 @@ android {
manifestPlaceholders
=
[
manifestPlaceholders
=
[
JPUSH_PKGNAME
:
appId
,
JPUSH_PKGNAME:
appId
,
JPUSH_APPKEY
:
"530b223034b92715e0295047"
,
//JPush 上注册的包名对应的 Appkey.
JPUSH_APPKEY
:
"530b223034b92715e0295047"
,
//JPush 上注册的包名对应的 Appkey.
JPUSH_CHANNEL
:
"developer-default"
,
//暂时填写默认值即可.
JPUSH_CHANNEL:
"developer-default"
,
//暂时填写默认值即可.
]
]
// javaCompileOptions {
// javaCompileOptions {
...
@@ -79,7 +79,7 @@ android {
...
@@ -79,7 +79,7 @@ android {
if
(
variant
.
buildType
.
name
==
'release'
)
{
if
(
variant
.
buildType
.
name
==
'release'
)
{
def
productVersion
=
"Rv"
+
releaseTime
()
+
"V"
+
defaultConfig
.
versionName
+
"_Release_"
+
productFlavors
[
0
].
name
+
".apk"
;
def
productVersion
=
"Rv"
+
releaseTime
()
+
"V"
+
defaultConfig
.
versionName
+
"_Release_"
+
productFlavors
[
0
].
name
+
".apk"
;
outputFileName
=
productVersion
outputFileName
=
productVersion
}
else
if
(
variant
.
buildType
.
name
==
'debug'
)
{
}
else
if
(
variant
.
buildType
.
name
==
'debug'
)
{
def
productVersion
=
"Rv"
+
releaseTime
()
+
"V"
+
defaultConfig
.
versionName
+
"_Debug_"
+
productFlavors
[
0
].
name
+
".apk"
;
def
productVersion
=
"Rv"
+
releaseTime
()
+
"V"
+
defaultConfig
.
versionName
+
"_Debug_"
+
productFlavors
[
0
].
name
+
".apk"
;
outputFileName
=
productVersion
outputFileName
=
productVersion
}
}
...
...
plugin_share/src/main/res/drawable-xxhdpi/banner_share_ruler_top.jpg
0 → 100644
View file @
d25de213
70.3 KB
plugin_share/src/main/res/drawable-xxhdpi/banner_share_ruler_top.png
deleted
100644 → 0
View file @
b083d53a
136 KB
plugin_share/src/main/res/drawable-xxhdpi/bg_bill.jpg
View replaced file @
b083d53a
View file @
d25de213
113 KB
|
W:
|
H:
106 KB
|
W:
|
H:
2-up
Swipe
Onion skin
plugin_video/src/main/java/com/xxrv/video/activity/PreviewxActivity.java
View file @
d25de213
...
@@ -159,15 +159,19 @@ public class PreviewxActivity extends BaseStatusActivity<VideoPresenter> {
...
@@ -159,15 +159,19 @@ public class PreviewxActivity extends BaseStatusActivity<VideoPresenter> {
// TODO: 2019/11/14
// TODO: 2019/11/14
break
;
break
;
case
RecorderUtils
.
SPEED_SUCCESS
:
// 变速成功
case
RecorderUtils
.
SPEED_SUCCESS
:
// 变速成功
mSpeedBar
.
isEnabled
(
false
);
case
RecorderUtils
.
VOLUME_SUCCESS
:
// 修改音量成功
case
RecorderUtils
.
VOLUME_SUCCESS
:
// 修改音量成功
mVolumeBar
.
isEnabled
(
false
);
case
RecorderUtils
.
MUSIC_SUCCESS
:
// 修改音乐成功
case
RecorderUtils
.
MUSIC_SUCCESS
:
// 修改音乐成功
mVideoView
.
play
(
mCurrPath
);
mVideoView
.
play
(
mCurrPath
);
break
;
break
;
case
RecorderUtils
.
SPEED_FAILURE
:
// 变速失败
case
RecorderUtils
.
SPEED_FAILURE
:
// 变速失败
showToast
(
getString
(
R
.
string
.
edit_failed
));
showToast
(
getString
(
R
.
string
.
edit_failed
));
mSpeedBar
.
isEnabled
(
false
);
break
;
break
;
case
RecorderUtils
.
VOLUME_FAILURE
:
// 修改音量失败
case
RecorderUtils
.
VOLUME_FAILURE
:
// 修改音量失败
showToast
(
getString
(
R
.
string
.
edit_failed
));
showToast
(
getString
(
R
.
string
.
edit_failed
));
mVolumeBar
.
isEnabled
(
false
);
break
;
break
;
default
:
default
:
mTvLoding
.
setText
(
mHitText
+
" "
+
msg
.
what
+
"%"
);
mTvLoding
.
setText
(
mHitText
+
" "
+
msg
.
what
+
"%"
);
...
@@ -176,6 +180,8 @@ public class PreviewxActivity extends BaseStatusActivity<VideoPresenter> {
...
@@ -176,6 +180,8 @@ public class PreviewxActivity extends BaseStatusActivity<VideoPresenter> {
if
(
msg
.
what
>
100
)
{
if
(
msg
.
what
>
100
)
{
showWaitDialog
(
false
,
""
);
showWaitDialog
(
false
,
""
);
mSpeedBar
.
isEnabled
(
false
);
mVolumeBar
.
isEnabled
(
false
);
}
}
return
false
;
return
false
;
}
}
...
@@ -409,7 +415,7 @@ public class PreviewxActivity extends BaseStatusActivity<VideoPresenter> {
...
@@ -409,7 +415,7 @@ public class PreviewxActivity extends BaseStatusActivity<VideoPresenter> {
private
void
loadCover
(
String
inPath
,
long
time
)
{
private
void
loadCover
(
String
inPath
,
long
time
)
{
final
int
coverCount
=
8
;
final
int
coverCount
=
6
;
loadCover
=
RecorderUtils
.
COVER_LOADING
;
loadCover
=
RecorderUtils
.
COVER_LOADING
;
// 帧提取器
// 帧提取器
String
thumb
=
RecorderUtils
.
getThumb
(
inPath
);
String
thumb
=
RecorderUtils
.
getThumb
(
inPath
);
...
@@ -476,6 +482,8 @@ public class PreviewxActivity extends BaseStatusActivity<VideoPresenter> {
...
@@ -476,6 +482,8 @@ public class PreviewxActivity extends BaseStatusActivity<VideoPresenter> {
return
;
return
;
}
}
mSpeedBar
.
isEnabled
(
true
);
showWaitDialog
(
true
,
getString
(
R
.
string
.
modified
));
showWaitDialog
(
true
,
getString
(
R
.
string
.
modified
));
EpEditor
.
changePTS
(
mVideoPath
,
file
.
getAbsolutePath
(),
speed
,
EpEditor
.
PTS
.
ALL
,
new
OnEditorListener
()
{
EpEditor
.
changePTS
(
mVideoPath
,
file
.
getAbsolutePath
(),
speed
,
EpEditor
.
PTS
.
ALL
,
new
OnEditorListener
()
{
@Override
@Override
...
@@ -502,6 +510,7 @@ public class PreviewxActivity extends BaseStatusActivity<VideoPresenter> {
...
@@ -502,6 +510,7 @@ public class PreviewxActivity extends BaseStatusActivity<VideoPresenter> {
private
void
changeVolume
(
int
volume
)
{
private
void
changeVolume
(
int
volume
)
{
showWaitDialog
(
true
,
getString
(
R
.
string
.
modified
));
showWaitDialog
(
true
,
getString
(
R
.
string
.
modified
));
mVolumeBar
.
isEnabled
(
true
);
mVideoView
.
stop
();
mVideoView
.
stop
();
final
String
out
=
RecorderUtils
.
changeFileName
(
mVideoPath
,
"vol"
);
final
String
out
=
RecorderUtils
.
changeFileName
(
mVideoPath
,
"vol"
);
...
...
plugin_video/src/main/java/com/xxrv/video/weight/Xspeedbar.java
View file @
d25de213
...
@@ -8,6 +8,8 @@ import android.view.MotionEvent;
...
@@ -8,6 +8,8 @@ import android.view.MotionEvent;
import
android.view.View
;
import
android.view.View
;
import
android.widget.FrameLayout
;
import
android.widget.FrameLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
com.xxrv.video.R
;
import
com.xxrv.video.R
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -25,6 +27,7 @@ public class Xspeedbar extends FrameLayout {
...
@@ -25,6 +27,7 @@ public class Xspeedbar extends FrameLayout {
private
int
mWidth
;
private
int
mWidth
;
private
int
mRectWidth
;
private
int
mRectWidth
;
private
OnChangeListener
mListener
;
private
OnChangeListener
mListener
;
private
boolean
type
;
public
Xspeedbar
(
Context
context
)
{
public
Xspeedbar
(
Context
context
)
{
this
(
context
,
null
);
this
(
context
,
null
);
...
@@ -100,6 +103,10 @@ public class Xspeedbar extends FrameLayout {
...
@@ -100,6 +103,10 @@ public class Xspeedbar extends FrameLayout {
return
;
return
;
}
}
if
(
type
){
return
;
}
views
.
get
(
mCurrt
).
setTextColor
(
getResources
().
getColor
(
R
.
color
.
white
));
views
.
get
(
mCurrt
).
setTextColor
(
getResources
().
getColor
(
R
.
color
.
white
));
views
.
get
(
select
).
setTextColor
(
getResources
().
getColor
(
R
.
color
.
colorMain
));
views
.
get
(
select
).
setTextColor
(
getResources
().
getColor
(
R
.
color
.
colorMain
));
views
.
get
(
mCurrt
).
setBackgroundResource
(
R
.
color
.
transparent
);
views
.
get
(
mCurrt
).
setBackgroundResource
(
R
.
color
.
transparent
);
...
@@ -118,6 +125,10 @@ public class Xspeedbar extends FrameLayout {
...
@@ -118,6 +125,10 @@ public class Xspeedbar extends FrameLayout {
mRectWidth
=
mWidth
/
5
;
mRectWidth
=
mWidth
/
5
;
}
}
public
void
isEnabled
(
boolean
type
)
{
this
.
type
=
type
;
}
public
interface
OnChangeListener
{
public
interface
OnChangeListener
{
...
...
plugin_video/src/main/java/com/xxrv/video/weight/Xvolumebar.java
View file @
d25de213
...
@@ -30,6 +30,7 @@ public class Xvolumebar extends View {
...
@@ -30,6 +30,7 @@ public class Xvolumebar extends View {
private
OnChangeListener
mListener
;
private
OnChangeListener
mListener
;
private
Paint
mProPaint
;
private
Paint
mProPaint
;
private
Paint
mBgPaint
;
private
Paint
mBgPaint
;
private
boolean
type
;
public
Xvolumebar
(
Context
context
)
{
public
Xvolumebar
(
Context
context
)
{
this
(
context
,
null
);
this
(
context
,
null
);
...
@@ -62,7 +63,9 @@ public class Xvolumebar extends View {
...
@@ -62,7 +63,9 @@ public class Xvolumebar extends View {
@Override
@Override
public
boolean
onTouchEvent
(
MotionEvent
event
)
{
public
boolean
onTouchEvent
(
MotionEvent
event
)
{
if
(
type
)
{
return
true
;
}
switch
(
event
.
getAction
())
{
switch
(
event
.
getAction
())
{
case
MotionEvent
.
ACTION_MOVE
:
case
MotionEvent
.
ACTION_MOVE
:
curr
=
Math
.
round
(
event
.
getX
()
/
mRectWidth
*
max
);
curr
=
Math
.
round
(
event
.
getX
()
/
mRectWidth
*
max
);
...
@@ -123,6 +126,10 @@ public class Xvolumebar extends View {
...
@@ -123,6 +126,10 @@ public class Xvolumebar extends View {
canvas
.
drawCircle
(
movex
,
centerY
,
radius
,
mBgPaint
);
canvas
.
drawCircle
(
movex
,
centerY
,
radius
,
mBgPaint
);
}
}
public
void
isEnabled
(
boolean
type
)
{
this
.
type
=
type
;
}
public
interface
OnChangeListener
{
public
interface
OnChangeListener
{
void
change
(
int
curr
);
void
change
(
int
curr
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment