mod: playCount calc
This commit is contained in:
@ -18,7 +18,7 @@ class AudioSessionHandler {
|
||||
session.configure(const AudioSessionConfiguration.music());
|
||||
|
||||
session.interruptionEventStream.listen((event) {
|
||||
final player = PlPlayerController.getInstance();
|
||||
final player = PlPlayerController.getInstance(videoType: 'none');
|
||||
if (event.begin) {
|
||||
if (!player.playerStatus.playing) return;
|
||||
switch (event.type) {
|
||||
@ -51,7 +51,7 @@ class AudioSessionHandler {
|
||||
|
||||
// 耳机拔出暂停
|
||||
session.becomingNoisyEventStream.listen((_) {
|
||||
final player = PlPlayerController.getInstance();
|
||||
final player = PlPlayerController.getInstance(videoType: 'none');
|
||||
if (player.playerStatus.playing) {
|
||||
player.pause();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user