如何使用 Builder 扩展 PlayerNotificationManager 以覆盖紧凑视图控件 Exo 播放器 2.14

How to extends PlayerNotificationManager with Builder to override for compact view controls Exo player 2.14

我正在寻找 extends/inherit PlayerNotificationManager.Builder ExoPlayer 版本 2.14 中新的生成器方法。由于早期的子类化方法,现​​在已弃用。

问题区域 -

    private class CustomPlayerNotificationManager(
    context: Context,
    channelId: String,
    notificationId: Int,
    mediaDescriptionAdapter: MediaDescriptionAdapter
) : PlayerNotificationManager.Builder(context, notificationId, channelId, mediaDescriptionAdapter)

此处 PlayerNotificationManager.Builder return 构建器实例,因此 PlayerNotificationManager 未被子类化,我无法覆盖它 getActionIndicesForCompactView 方法。

谁能帮我子类化它?

Exo Player 2.15 版具有用于控制紧凑视图的设置器。我们可以设置前进、后退等。在这种情况下,我们不需要 getActionIndicesForCompactView()。但是找不到在 2.14 版本

上子类化 PlayerNotificationManager.Builder 的方法