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
602356c7
Commit
602356c7
authored
Oct 09, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:ydl-media
parent
6872c3e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
17 deletions
+4
-17
config.gradle
config.gradle
+4
-4
AudioPlayer.kt
ydl-media/src/main/java/com/ydl/media/audio/AudioPlayer.kt
+0
-13
No files found.
config.gradle
View file @
602356c7
...
...
@@ -14,7 +14,7 @@ ext {
"m-dynamic"
:
"0.0.7.29"
,
"m-article"
:
"0.0.0.10"
,
"m-muse"
:
"0.0.28.2
5
"
,
"m-muse"
:
"0.0.28.2
6
"
,
"m-tests"
:
"0.0.24.15"
,
"m-course"
:
"0.0.43.28"
,
...
...
@@ -37,7 +37,7 @@ ext {
//第二步 若干
"ydl-webview"
:
"0.0.38.47"
,
"ydl-media"
:
"0.0.21.3
3
"
,
"ydl-media"
:
"0.0.21.3
4
"
,
"ydl-pay"
:
"0.0.18.19"
,
"m-audioim"
:
"0.0.49.29.41"
,
"ydl-flutter-base"
:
"0.0.14.32"
,
...
...
@@ -97,7 +97,7 @@ ext {
"m-dynamic"
:
"0.0.7.29"
,
"m-article"
:
"0.0.0.8"
,
"m-muse"
:
"0.0.28.2
5
"
,
"m-muse"
:
"0.0.28.2
6
"
,
"m-tests"
:
"0.0.24.15"
,
"m-course"
:
"0.0.42.70"
,
//-------------- 业务模块 API 层 --------------
...
...
@@ -119,7 +119,7 @@ ext {
//第二步 若干
"ydl-webview"
:
"0.0.38.47"
,
"ydl-media"
:
"0.0.21.3
3
"
,
"ydl-media"
:
"0.0.21.3
4
"
,
"ydl-pay"
:
"0.0.18.19"
,
"m-audioim"
:
"0.0.49.29.41"
,
"ydl-flutter-base"
:
"0.0.14.32"
,
...
...
ydl-media/src/main/java/com/ydl/media/audio/AudioPlayer.kt
View file @
602356c7
...
...
@@ -14,10 +14,7 @@ import com.ydl.media.audio.manager.NotifyManager
import
com.ydl.media.audio.model.Music
import
com.ydl.media.audio.receiver.NoisyAudioStreamReceiver
import
com.ydl.media.audio.utils.PlayProgressUtil
import
com.ydl.ydlcommon.utils.LogUtil
import
com.yidianling.common.tools.ToastUtil
import
tv.danmaku.ijk.media.player.IMediaPlayer
import
tv.danmaku.ijk.media.player.IjkMediaPlayer
import
java.io.IOException
import
java.util.*
import
kotlin.collections.ArrayList
...
...
@@ -121,16 +118,6 @@ class AudioPlayer private constructor() {
this
.
context
=
context
.
applicationContext
audioFocusManager
=
AudioFocusManager
(
context
)
mediaPlayer
=
MediaPlayer
()
try
{
(
mediaPlayer
as
IjkMediaPlayer
).
setOption
(
IjkMediaPlayer
.
OPT_CATEGORY_FORMAT
,
"dns_cache_clear"
,
1
)
}
catch
(
e
:
Exception
)
{
LogUtil
.
e
(
e
.
message
)
}
mediaPlayer
!!
.
setOnPreparedListener
{
mp
->
if
(
isPreparing
)
{
if
(
autoSaveProgress
)
{
...
...
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