Reputation: 41
I am using Explayer PlayerNotificationManger to show playback notifications for live-stream video played using Exoplayer2.
I have followed this medium blog and implemented the same.
However, when the code runs on the device, it shows a notification every 3-4 second for a live-stream video. Please suggest something that I may not get multiple and frequent notifications when one notification is already visible to user.
Upvotes: 4
Views: 414
Reputation: 174
If your notification, or notification channel is marked as high importance, every time the state is updated it will result in the notification alerting the user.
See this comment from an ExoPlayer contributor on GitHub.
Upvotes: 1