- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Exoplayer 版本 2.11.0,我想知道当用户向右滑动它时是否有可能停止 PlayerNotificationManager(类似于 Spotify)。默认情况下我只能调用 useStopAction(true) https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/ui/PlayerNotificationManager.html这并不能令我满意。
最佳答案
@Override
public void onNotificationPosted(int notificationId, Notification notification, boolean ongoing) {
if (ongoing) {
// Make sure the service will not get destroyed while playing media.
startForeground(notificationId, notification);
} else {
// Make notification cancellable.
stopForeground(false);
}
}
关于java - Exoplayer PlayerNotificationManager onSwipe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60046205/
我正在使用 Exoplayer 版本 2.11.0,我想知道当用户向右滑动它时是否有可能停止 PlayerNotificationManager(类似于 Spotify)。默认情况下我只能调用 use
我正在开发一个音乐应用程序,但我遇到了错误,谁能告诉我如何解决这个问题PlayerNotificationManager.createWithNotificationChannel ?.createW
我使用 Exoplayer 并与 PlayerNotificationManager 绑定(bind)来处理通知上的玩家操作。它工作得很好,但是当从通知中按下停止按钮时,我想得到一个监听器或接收器。现
我想更改 ExoPlayer 的 PlayerNotificationManager 的 Action 图标颜色。有人可以帮我更改此图标吗? 最佳答案 您可以通过重新定义应用资源中的资源来覆盖 Pla
我正在使用 Explayer PlayerNotificationManger 显示使用 播放的直播视频的播放通知Exoplayer2 . 我关注了this medium blog并实现相同。 但是,
我将 PlayerNotificationManager 与 Exoplayer 一起使用,并且在 startForeground() 上可以看到最高 Android 10 的通知托盘,但是当我升级到
我正在寻找一种使用 中的新 Builder 方法扩展/继承 PlayerNotificationManager.Builder 的方法ExoPlayer 2.14 版 .由于早期的子类方法,现在已弃用
我是一名优秀的程序员,十分优秀!