{
  "accessibility" : [
    "The controls are the system's and keep their own labels, captions menu and keyboard support.",
    "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)."
  ],
  "category" : "media",
  "changelog" : [
    {
      "changes" : [
        "Release 1.1.0: see the project changelog."
      ],
      "date" : "2026-12-03",
      "version" : "1.1.0"
    },
    {
      "changes" : [
        "Initial release."
      ],
      "date" : "2026-12-02",
      "version" : "1.0.0"
    }
  ],
  "dependencies" : [
    {
      "id" : "glass-audio-player",
      "version" : "1.1.0"
    },
    {
      "id" : "glass-foundation",
      "version" : "1.1.0"
    },
    {
      "id" : "glass-media-support",
      "version" : "1.1.0"
    }
  ],
  "description" : "AVKit video player with system controls and full screen where the platform offers it.",
  "examples" : [
    {
      "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    /// A silent clock: it drives the glass controls drawn over a poster.\n    @State private var playback = SampleAudioPlayback(duration: 134)\n\n    public init() {}\n\n    public var body: some View {\n        ScrollView {\n            VStack(alignment: .leading, spacing: 16) {\n                Text(\"Glass controls over a drawn poster\")\n                    .font(.headline)\n                GlassVideoControls(playback: playback, title: \"The Shore House · Trailer\") {\n                    SampleArtwork(3)\n                }\n\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        .task(id: playback.isPlaying) {\n            // The fake engine has no clock of its own: tick it while it is \"playing\".\n            while playback.isPlaying, !Task.isCancelled {\n                try? await Task.sleep(for: .milliseconds(500))\n                if !Task.isCancelled { playback.advance(by: 0.5) }\n            }\n        }\n    }\n}\n\n#Preview(\"GlassVideoPlayer\") { GlassVideoPlayerExample().glassTheme(.obsidian) }\n",
      "title" : "GlassVideoPlayer example"
    }
  ],
  "files" : [
    {
      "bytes" : 12514,
      "path" : "Media/Media/GlassVideoPlayer+Controls.swift",
      "sha256" : "77a891fc6bcf86f95d072feb0cf0772f7c08cb7c4dfb364753654483b240ae1b"
    },
    {
      "bytes" : 6328,
      "path" : "Media/Media/GlassVideoPlayer.swift",
      "sha256" : "2ca85909ad9574ac46bd654190e10b1b97cd020edace0cf9eca1d4760dcfdf33"
    }
  ],
  "frameworks" : [
    "AVKit"
  ],
  "id" : "glass-video-player",
  "kind" : "native-wrapper",
  "license" : "MIT",
  "minimumOS" : {
    "iOS" : "26.0",
    "iPadOS" : "26.0",
    "macOS" : "26.0"
  },
  "name" : "GlassVideoPlayer",
  "platforms" : [
    "iOS",
    "iPadOS",
    "macOS"
  ],
  "schemaVersion" : 1,
  "sha256" : "9ef6c6dc0f57192b0c6cdf949449d3caf4a84ce9408fe680759c0b288991e71d",
  "symbols" : [
    "GlassVideoControls",
    "GlassVideoControlsVisibility",
    "GlassVideoPlayer",
    "GlassVideoAvailability",
    "GlassVideoLayout"
  ],
  "version" : "1.1.0"
}
