Skip to content

Commit

Permalink
fix: pause audio when an exception occurs during playback
Browse files Browse the repository at this point in the history
  • Loading branch information
u3u committed Nov 29, 2018
1 parent 377201d commit fc90c48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@moefe/vue-aplayer/components/APlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ export default class APlayer extends Vue.Component<
await this.player.play();
} catch (e) {
this.showNotice(e.message);
this.player.pause();
}
}

Expand Down

0 comments on commit fc90c48

Please sign in to comment.