Initial commit: SimVision tvOS streaming app

Features:
- VOD library with movie grouping and version detection
- TV show library with season/episode organization
- TMDB integration for trending shows and recently aired episodes
- Recent releases section with TMDB release date sorting
- Watch history tracking with continue watching
- Playlist caching (12-hour TTL) for offline support
- M3U playlist parsing with XStream API support
- Authentication with credential storage

Technical:
- SwiftUI for tvOS
- Actor-based services for thread safety
- Persistent caching for playlists, TMDB data, and watch history
- KSPlayer integration for video playback

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-21 22:12:08 -06:00
commit 872354b834
283 changed files with 338296 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
// swift-tools-version:5.9
import Foundation
import PackageDescription
let package = Package(
name: "KSPlayer",
defaultLocalization: "en",
platforms: [.macOS(.v10_15), .macCatalyst(.v13), .iOS(.v13), .tvOS(.v13),
.visionOS(.v1)],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "KSPlayer",
// todo clang: warning: using sysroot for 'iPhoneSimulator' but targeting 'MacOSX' [-Wincompatible-sysroot]
// type: .dynamic,
targets: ["KSPlayer"]
),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
.target(
name: "KSPlayer",
dependencies: [
.product(name: "FFmpegKit", package: "FFmpegKit"),
// .product(name: "Libass", package: "FFmpegKit"),
// .product(name: "Libmpv", package: "FFmpegKit"),
"DisplayCriteria",
],
resources: [.process("Metal/Shaders.metal")],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
]
),
.target(
name: "DisplayCriteria"
),
.testTarget(
name: "KSPlayerTests",
dependencies: ["KSPlayer"],
resources: [.process("Resources")]
),
]
)
package.dependencies += [
.package(url: "https://github.com/kingslay/FFmpegKit.git", from: "6.1.3"),
]