Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ public void stop(PluginCall call) {
resolveOnMainThread(call, () -> PlaybackManager.getInstance(getContext()).stop());
}

@PluginMethod
public void cleanup(PluginCall call) {
resolveOnMainThread(call, () -> PlaybackManager.getInstance(getContext()).cleanup());
}

@PluginMethod
public void seek(PluginCall call) {
// Capacitor 从 JS 传 number 时底层是 Double,getLong 会取不到默认返回 0L 导致 seek-to-zero
Expand Down
Loading