Repository Public MIT
1{2 "accessibility" : [3 "The controls are the system's and keep their own labels, captions menu and keyboard support.",4 "The player carries the label given by the host; in the unavailable state the label is kept and the value is \"Media unavailable\" (symbol and text, not colour)."5 ],6 "category" : "media",7 "changelog" : [8 {9 "changes" : [10 "Initial release."11 ],12 "date" : "2026-12-02",13 "version" : "1.0.0"14 }15 ],16 "dependencies" : [17 {18 "id" : "glass-foundation",19 "version" : "1.0.0"20 }21 ],22 "description" : "AVKit video player with system controls and full screen where the platform offers it.",23 "examples" : [24 {25 "code" : "import SwiftUI\nimport AVFoundation\nimport SPGlassKit\n\npublic struct GlassVideoPlayerExample: GlassExample {\n public static let componentID = \"glass-video-player\"\n /// An empty player: the repository ships no media file, so the example shows the states without a video.\n @State private var emptyPlayer = AVPlayer()\n\n public init() {}\n\n public var body: some View {\n ScrollView {\n VStack(alignment: .leading, spacing: 16) {\n Text(\"No player\")\n .font(.headline)\n GlassVideoPlayer(player: nil, accessibilityLabel: \"Trailer\")\n\n Text(\"Player without an item, 4:3\")\n .font(.headline)\n GlassVideoPlayer(player: emptyPlayer, aspectRatio: 4.0 / 3.0, accessibilityLabel: \"Lecture recording\")\n\n Text(\"Missing URL\")\n .font(.headline)\n GlassVideoPlayer(url: nil)\n\n Text(\"Sample data · give the player a real URL to see the system controls.\")\n .font(.caption)\n .foregroundStyle(.secondary)\n }\n .padding()\n }\n }\n}\n\n#Preview(\"GlassVideoPlayer\") { GlassVideoPlayerExample().glassTheme(.obsidian) }\n",26 "title" : "GlassVideoPlayer example"27 }28 ],29 "files" : [30 {31 "bytes" : 6354,32 "path" : "Media/Media/GlassVideoPlayer.swift",33 "sha256" : "50500115b711cd7a3c3aa882bba9cada84611262ab848f48e378821553d4e2f7"34 }35 ],36 "frameworks" : [37 "AVKit"38 ],39 "id" : "glass-video-player",40 "kind" : "native-wrapper",41 "license" : "MIT",42 "minimumOS" : {43 "iOS" : "26.0",44 "iPadOS" : "26.0",45 "macOS" : "26.0"46 },47 "name" : "GlassVideoPlayer",48 "platforms" : [49 "iOS",50 "iPadOS",51 "macOS"52 ],53 "schemaVersion" : 1,54 "sha256" : "084246d1966df3569260189608ba1985a384cf37c5c20e5e738ff12405e0b7db",55 "symbols" : [56 "GlassVideoPlayer",57 "GlassVideoAvailability",58 "GlassVideoLayout"59 ],60 "version" : "1.0.0"61}62