Initialize player notification asap
Otherwise Android's foreground services implementation would complain
This commit is contained in:
parent
dbdc04c45e
commit
fbcdaa77e3
|
@ -103,6 +103,8 @@ public final class MainPlayer extends Service {
|
|||
playerImpl = new VideoPlayerImpl(this);
|
||||
playerImpl.setup(layout);
|
||||
playerImpl.shouldUpdateOnProgress = true;
|
||||
|
||||
NotificationUtil.getInstance().createNotificationAndStartForeground(playerImpl, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue