Sanniv Khare 6 min read

tvOS 27.3 Video schema: what a TV app adopts for Siri AI

tvOS 27.3 Video schema: what a TV app adopts for Siri AI

The tvOS 27.3 beta 2 release notes add one line that matters to every streaming and catalogue app: “The Video schema domain is now available for apps to integrate with Siri AI on tvOS, iOS, macOS, and visionOS” (item 189805051). Behind that line is a new App Intents domain with four intents and eight entities. The one to build first is the playback use-case group: the playContent intent plus an IntentValueQuery that finds your titles. Xcode warns if an app adopts one without the other. We read every intent and entity page of the domain on Apple’s developer documentation and built the tables below from them; everything here is beta 2 of the 27.3 SDKs and may change before release.

Why we did this: BMDB.fun is our film catalogue on Android TV, and “play the trailer for this film” or “add it to my watchlist” are exactly the requests this schema routes to an app. This is the checklist we would work from for a tvOS version of an app like it.

The four intents

Each intent is declared with the AppIntent(schema:) macro ahead of a struct with a single content parameter, whose type is a @UnionValue enum you write. The union cases are what the docs list for each intent:

Intent content can be
playContent movie, tvShow, tvSeason, tvEpisode, freeformVideo
playTrailer movie, tvShow, tvSeason
addToWatchList movie, tvShow, freeformVideo
removeFromWatchList movie, tvShow, freeformVideo

All four list Siri and Shortcuts as the experiences. Apple’s example phrases on the Video domain page are the clearest way to see the split: “Play Severance.” for playContent, “Play the trailer for Silo.” for playTrailer, “Add The Morning Show to my watchlist.” and its removal counterpart for the watchlist pair. The watchlist intents are described as adding to or removing from “a person’s watchlist in the TV app”, so they fit apps whose content appears in Apple’s TV app.

The eight entities

The entities are declared with AppEntity(schema:). The domain lists contentCreator, freeformVideo, image, movie, person, tvEpisode, tvSeason and tvShow, plus three enums: imageType, personRole and videoContentType. The four that a catalogue app maps first, with the properties in Apple’s examples:

  • movie: id, title, description, genres, castAndCrew, images, trailers, contentRatingValue, releaseDate, duration.
  • tvShow: id, title, description, genres, premiereDate, finaleDate, castAndCrew, images, trailers, seasonCount, contentRatingValue.
  • tvSeason: id, title, description, premiereDate, castAndCrew, images, trailers, seasonNumber, and a non-optional tvShow.
  • tvEpisode: id, title, description, premiereDate, castAndCrew, images, trailers, seasonNumber, episodeNumber, an optional tvSeason and a non-optional tvShow, duration.

Two details are easy to miss. seasonNumber and episodeNumber are String? in the examples, not integers, while seasonCount on a show is Int?. And the pages show these as examples with placeholders (castAndCrew holds your person entity, images your image entity); they do not mark which properties are required, so the compiler and the macro’s diagnostics are the final word.

A trimmed movie entity and the playContent intent

The shape of the two declarations, trimmed from Apple’s examples.

The playback use-case group

The Video domain page calls playContent plus an IntentValueQuery the playback use-case group, and says: “To integrate your app with Apple Intelligence and bring it to Siri AI, adopt both parts of the playback use-case group.” IntentValueQuery has been in App Intents since the 26 SDKs (“A query that provides entity values to the system”); its required member is func values(for:) async throws returning your results. For a catalogue app this is the search that turns “Severance” into your show entity.

The playback use-case group: entities, a value query, then playContent

The order we would build it in: entities first, then the query that returns them, then the intent that plays them.

A starting point to compile against the 27.3 SDK, following the shapes on Apple’s pages. The VideoContent union here keeps the two cases a film-and-series app uses most; the docs’ example for playContent has five, and Xcode will tell you if the schema expects more:

import AppIntents

@UnionValue
enum VideoContent {
    case movie(MovieEntity)
    case tvEpisode(TVEpisodeEntity)
}

@AppIntent(schema: .video.playContent)
struct PlayContentIntent {
    var content: VideoContent

    func perform() async throws -> some IntentResult {
        switch content {
        case .movie(let movie):
            try await PlaybackController.shared.play(id: movie.id)
        case .tvEpisode(let episode):
            try await PlaybackController.shared.play(id: episode.id)
        }
        return .result()
    }
}

PlaybackController stands for your own player layer. The value query that feeds this intent searches the same catalogue your in-app search uses; keep one source of truth for titles and ids so Siri and the app never disagree.

Where availability differs

The release note and the reference pages do not say the same thing, and it matters for planning:

  • The tvOS 27.3 release note names tvOS, iOS, macOS and visionOS.
  • Every intent and entity page we read lists iOS 27.3, iPadOS 27.3, tvOS 27.3 and visionOS 27.3. macOS is not listed, and Mac Catalyst shows a dash.
  • The Siri AI Developer Preview page lists iOS, iPadOS, macOS and visionOS, on Apple Intelligence devices, and does not mention tvOS. It also says the preview is not available to external TestFlight testers or App Store builds, and that “the App Intents API and Siri functionality may change”.
  • Apple’s 3 November announcement says Siri AI ships to customers “in a few months” and that App Store submission opens in the spring.

So the declarations compile for tvOS 27.3, but the documented way to try Siri AI end to end is on an iPhone, iPad, Mac or Vision Pro. A shared Swift package for the entities and the value query, used by both the iOS and tvOS targets, lets you test on iPhone now and switch the TV target on when the preview covers it.

Also in the tvOS 27.3 beta 2 notes: StoreKit Testing

Two resolved issues for anyone testing subscriptions in Xcode: buying a subscription that belongs to a subscription bundle no longer lets the user unbundle instead of throwing an error (186018916), and the first launch of an app that uses SKTestSession no longer leaves some StoreKit test calls hanging (186670057).

What to check in your own TV app

  1. List the content types you actually have: films only, series with seasons and episodes, or short-form video (freeformVideo). That decides your union cases.
  2. Map each to the entity properties above, including the string season and episode numbers.
  3. Build the IntentValueQuery on top of your existing search, then playContent, so you adopt the full playback group and avoid the Xcode warning.
  4. Add playTrailer if you host trailers, and the watchlist pair only if your app’s watchlist appears in the TV app.
  5. Recheck the availability lines when the 27.3 release candidate arrives; we will update this post then.

For how App Intents fit a larger app, see App Intents and AppFunctions: what a bank app exposes to AI; for the video side of the same hardware, AV1 hardware decode on the A19 Apple TV 4K.

Made by the team behind this post

Apps from our studio

  • Goes with this post

    BMDB.fun

    Your Bollywood world at a glance, with links straight to the OTT app that streams each film.

    Android TV · Web · Mobile

    Get
  • Goes with this post

    Nix

    The Mac uninstaller that finds what the Trash leaves behind: caches, logs, derived data and saved states.

    macOS

    Get
  • Goes with this post

    OneClick QuitAll

    Quit every running app in one click. See memory and CPU first.

    macOS · Mac App Store

    Get
  • Cardigami

    Pop-up greeting cards that rise out of the fold on iPhone Duo.

    iPhone · App Store

    Get

Need this built? Let’s talk.

We build and run apps for Mac, TV, mobile and the web, and write about what we learn.