Fix player instance setting (fix #260)

This commit is contained in:
Arkadiusz Fal
2022-08-16 23:16:35 +02:00
parent 30889619fd
commit 3a508b98ab
10 changed files with 42 additions and 25 deletions

View File

@@ -27,7 +27,7 @@ struct ShareButton: View {
private var instanceActions: some View {
Group {
if let url = accounts.api.shareURL(contentItem) {
if let url = player.playerAPI.shareURL(contentItem) {
Button(labelForShareURL(accounts.app.name)) {
shareAction(url)
}
@@ -35,7 +35,7 @@ struct ShareButton: View {
if contentItemIsPlayerCurrentVideo {
Button(labelForShareURL(accounts.app.name, withTime: true)) {
shareAction(
accounts.api.shareURL(
player.playerAPI.shareURL(
contentItem,
time: player.backend.currentTime
)!