Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

音乐播放器的初始化可以放到application里面吗 #8

Open
lodgkk opened this issue Aug 27, 2019 · 3 comments
Open

音乐播放器的初始化可以放到application里面吗 #8

lodgkk opened this issue Aug 27, 2019 · 3 comments

Comments

@lodgkk
Copy link

lodgkk commented Aug 27, 2019

如果不行,多个页面都需要播放是不是都要初始化和反初始化一次呢,设置的参数是不是都要重新设置一次,比如说:
//应用播放器配置
.setMusicPlayerConfig(config)
//通知栏交互,默认开启
.setNotificationEnable(true)
//常驻进程开关,默认开启
.setLockForeground(true)
//设置点击通知栏跳转的播放器界面,需开启常驻进程开关
.setPlayerActivityName(MusicPlayerActivity.class.getCanonicalName())
//设置锁屏界面,如果禁用,不需要设置或者设置为null
.setLockActivityName(MusicLockActivity.class.getCanonicalName())

@hty527
Copy link
Owner

hty527 commented Aug 28, 2019 via email

@hty527
Copy link
Owner

hty527 commented Aug 29, 2019

你好,可以的,除音乐组件服务外其他初始化设置都可以放在Application中

@lodgkk
Copy link
Author

lodgkk commented Sep 2, 2019

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants