Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
杨凯
YDL-Component-Medical
Commits
d78288df
Commit
d78288df
authored
Jun 13, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/d/v4.3.96' into d/v4.3.97
# Conflicts: # config.gradle
parents
519d6148
e161c2b0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
123 additions
and
67 deletions
+123
-67
config.gradle
config.gradle
+7
-6
PlayMeditationActivity.kt
m-muse/src/main/java/com/yidianling/muse/activity/PlayMeditationActivity.kt
+114
-56
MediaPlayerManager.kt
m-muse/src/main/java/com/yidianling/muse/helper/MediaPlayerManager.kt
+1
-4
MediaPlayerTimeUtil.kt
m-muse/src/main/java/com/yidianling/muse/utils/MediaPlayerTimeUtil.kt
+1
-1
No files found.
config.gradle
View file @
d78288df
...
...
@@ -5,7 +5,7 @@ ext {
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.50.2
1
"
,
"m-confide"
:
"0.0.50.2
4
"
,
"m-consultant"
:
"0.0.60.67"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.48"
,
...
...
@@ -14,7 +14,7 @@ ext {
"m-dynamic"
:
"0.0.7.74"
,
"m-article"
:
"0.0.0.10"
,
"m-muse"
:
"0.0.28.7
6
"
,
"m-muse"
:
"0.0.28.7
8
"
,
"m-tests"
:
"0.0.24.18"
,
"m-course"
:
"0.0.43.39"
,
...
...
@@ -42,7 +42,8 @@ ext {
"ydl-webview"
:
"0.0.38.92"
,
"ydl-media"
:
"0.0.21.52"
,
"ydl-pay"
:
"0.0.18.19"
,
"m-audioim"
:
"0.0.49.30.15"
,
"m-audioim"
:
"0.0.49.30.18"
,
...
...
@@ -93,7 +94,7 @@ ext {
ydlCompileVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.50.2
1
"
,
"m-confide"
:
"0.0.50.2
4
"
,
"m-consultant"
:
"0.0.60.67"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.48"
,
...
...
@@ -102,7 +103,7 @@ ext {
"m-dynamic"
:
"0.0.7.74"
,
"m-article"
:
"0.0.0.10"
,
"m-muse"
:
"0.0.28.7
6
"
,
"m-muse"
:
"0.0.28.7
8
"
,
"m-tests"
:
"0.0.24.18"
,
"m-course"
:
"0.0.43.39"
,
...
...
@@ -129,7 +130,7 @@ ext {
"ydl-webview"
:
"0.0.38.92"
,
"ydl-media"
:
"0.0.21.52"
,
"ydl-pay"
:
"0.0.18.19"
,
"m-audioim"
:
"0.0.49.30.1
5
"
,
"m-audioim"
:
"0.0.49.30.1
8
"
,
"ydl-flutter-base"
:
"0.0.14.38"
,
//以下 几乎不会动
...
...
m-muse/src/main/java/com/yidianling/muse/activity/PlayMeditationActivity.kt
View file @
d78288df
This diff is collapsed.
Click to expand it.
m-muse/src/main/java/com/yidianling/muse/helper/MediaPlayerManager.kt
View file @
d78288df
...
...
@@ -45,7 +45,7 @@ class MediaPlayerManager private constructor() {
mTime
=
time
}
fun
setAudioPath
(
path
:
String
,
isLoop
:
Boolean
=
false
){
fun
setAudioPath
(
path
:
String
){
val
attrs
=
AudioAttributes
.
Builder
()
.
setContentType
(
AudioAttributes
.
CONTENT_TYPE_MUSIC
)
...
...
@@ -60,9 +60,6 @@ class MediaPlayerManager private constructor() {
mMediaPlayer
?.
prepareAsync
()
mMediaPlayer
?.
setOnPreparedListener
{
listener
?.
onPrepared
(
it
)
if
(
isLoop
){
mMediaPlayer
?.
seekTo
(
0
)
}
}
}
...
...
m-muse/src/main/java/com/yidianling/muse/utils/MediaPlayerTimeUtil.kt
View file @
d78288df
...
...
@@ -28,7 +28,7 @@ class MediaPlayerTimeUtil {
"$minute:$second"
}
}
}
else
if
(
time
in
1
..
59
){
}
else
if
(
time
in
0
..
59
){
second
=
time
return
if
(
second
in
0
..
9
){
"00:0$second"
...
...
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