From fa07e47a22420499c2e352ecd361d9057ae1e97e Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 19 Jul 2021 00:32:46 +0200 Subject: [PATCH] Multiplatform playing first steps --- Apple TV/PlayerView.swift | 79 -------- Apple TV/PlayerViewController.swift | 184 ------------------ Apple TV/TVNavigationView.swift | 4 +- Apple TV/VideoCellView.swift | 4 +- Apple TV/VideoDetailsView.swift | 97 +++++---- Apple TV/VideoListRowView.swift | 30 +-- Apple TV/VideoLoading.swift | 19 ++ Apple TV/VideosView.swift | 12 +- Mac/Player.swift | 14 ++ Mac/PlayerViewController.swift | 36 ++++ Model/NavigationState.swift | 14 ++ Model/PlayerState.swift | 145 ++++++++++---- Model/Profile.swift | 2 +- Pearvidious.xcodeproj/project.pbxproj | 90 +++++---- .../xcdebugger/Breakpoints_v2.xcbkptlist | 98 ---------- Shared/Defaults.swift | 4 +- Shared/Player.swift | 14 ++ Shared/PlayerViewController.swift | 81 ++++++++ Shared/VideoPlayerView.swift | 65 +++++++ 19 files changed, 491 insertions(+), 501 deletions(-) delete mode 100644 Apple TV/PlayerView.swift delete mode 100644 Apple TV/PlayerViewController.swift create mode 100644 Apple TV/VideoLoading.swift create mode 100644 Mac/Player.swift create mode 100644 Mac/PlayerViewController.swift create mode 100644 Shared/Player.swift create mode 100644 Shared/PlayerViewController.swift create mode 100644 Shared/VideoPlayerView.swift diff --git a/Apple TV/PlayerView.swift b/Apple TV/PlayerView.swift deleted file mode 100644 index 57284bab..00000000 --- a/Apple TV/PlayerView.swift +++ /dev/null @@ -1,79 +0,0 @@ -import AVKit -import Foundation -import Siesta -import SwiftUI - -struct PlayerView: View { - @ObservedObject private var store = Store