Comments (7)
- It's designed like this. If you want shutdown
PlayerService
, you can invokePlayerClient#shutdown()
, this will shutdownPlayerService
and clear notification. - You need create a custom
NotificationView
.NotificationView
also have ashutdown
method. You can customize all notification buttons:Create a notification with media controls
- You need create a custom
NotificationView
, because this is android built-in style. - Can't do this, because when receive call,
PlayerService
will loss audio focus, then the player will pause. Can't on call finished start playing automatically. It's need yourself to handle this.
Note: After invoke PlayerCient#shudtown()
, all PlayerClient
will disconnect automatically, because PlayerService
is shutdown. You need reconnection your PlayerClient
.
Wiki: Custom NotificationView (Sorry, so far only chinese)
from snow.
mPlayerClient.shutdown(); Working fine
But how can we use With dummy Seek bar inside notification??? You must fix it bro
from snow.
What is "dummy seek bar"? can you please describe it in detail?
from snow.
Its Use like fastForward():and rewind():Right? its only work non Online content like local stored mp3.. or may be Online mp3 ( Its must Buffering again when click ???? )
But its may be Dummy for Streaming link using shoutcast , icecast, all other streaming audio . So only we need enable disable function .. I know its complicated ..
from snow.
Finally i fiund solutuion Just i passed duration "0" Not no seekbar in notification
MusicItem song1 = new MusicItemBuilder(0, "http://live.tamilkuyilradio.com:8026/rajaradio")
Thank you bro
from snow.
MusicItem
have a setForbidSeek(boolean)
method, if MusicItem
is a live stream, you need set this as true
. This will forbid all seek action seekTo
, fastForward
and rewind
, Otherwise, seek action will cause some unexpected result.
Example:
// Live Stream
MusicItem musicItem = new MusicItemBuilder(Integer.MAX_VALUE, https://www.example.com/example.m3u8")
....
// Forbid Seek
.setForbidSeek(true)
.build();
from snow.
Thank you its working fine
from snow.
Related Issues (20)
- Fatal Exception: java.lang.IndexOutOfBoundsException HOT 2
- EqualizerActivity Failed resolution of: Landroidx/databinding/DataBinderMapperImpl; HOT 7
- STATE_BUFFERING update when play start HOT 1
- 忽略音频焦点会闪退,闪退后无法播放音频,需要重新启用音频焦点才行 HOT 6
- EqualizerActivity 正在播放音频开启均衡器会闪退 HOT 3
- 为什么有些网络歌曲没播放完就直接播放下一首了
- How can I add images of songs in local music and album ? HOT 5
- moveMusicItem 移动歌曲位置有问题啊。 HOT 3
- “"音量均衡”功能和修改”随机播放“算法 HOT 10
- AppWidget 怎么接收不到广播啊? HOT 12
- MIUI14上通知栏专辑封面显示问题 HOT 6
- setNextPlay()添加下一首播放有问题。 HOT 3
- qq音乐的播放链接不能播放,用浏览器直接打开是没问题的 HOT 1
- Android 13 黑屏音乐过一会就会停止播放 HOT 15
- 寻求一下帮助。 HOT 9
- 没有设置播放音量大小的方法吗 HOT 6
- 1.2.11 多次点击播放暂停会出现无声音播放 HOT 3
- 可以出蓝牙车载歌词功能吗 HOT 3
- Need Update Library HOT 4
- Media Notification Not closed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snow.