Skip to content

Commit f478f1a

Browse files
committed
Remove unnecessary stop logic from soundcloud
The widget is an iframe that gets unmounted, so I can't see why pausing and seeking beforehand is necessary
1 parent 84ad345 commit f478f1a

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/players/Facebook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default class Facebook extends Base {
5353
this.callPlayer('pause')
5454
}
5555
stop () {
56-
// No need to stop
56+
// Nothing to do
5757
}
5858
seekTo (amount) {
5959
const seconds = super.seekTo(amount)

src/players/SoundCloud.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ export default class SoundCloud extends Base {
7070
}
7171
}
7272
stop () {
73-
this.pause()
74-
this.callPlayer('seekTo', 0)
73+
// Nothing to do
7574
}
7675
seekTo (amount) {
7776
const seconds = super.seekTo(amount)

0 commit comments

Comments
 (0)