PrismCore / API reference / Probing and input

Structure

SubtitleTrackInfo

struct SubtitleTrackInfo

Declared in Sources/PrismCore/Probe/SourceProbe.swift · PrismCore 3.5.4

No documentation comment in the source.

Instance properties

let streamIndex: Int

No documentation comment in the source.

let codecName: String

No documentation comment in the source.

let language: String?

No documentation comment in the source.

let title: String?

No documentation comment in the source.

let kind: Kind

No documentation comment in the source.

let isDefault: Bool

No documentation comment in the source.

let isForced: Bool

No documentation comment in the source.

let isHearingImpaired: Bool

No documentation comment in the source.

let isOCRReadable: Bool

Whether PrismCoreSession.requestBitmapSubtitleOCR(streamIndex:) can turn this track into text here: a PGS / DVB / DVD stream on a platform with Vision. Always false for text tracks, which need no OCR.

Enumeration

SubtitleTrackInfo.Kind

enum Kind

What PrismCore can do with the track.

Cases

case textRendition

Text codec (SubRip / ASS / SSA / WebVTT / mov_text): carried as a WebVTT SUBTITLES rendition, so it survives PiP and AirPlay.

case bitmapHostOnly

Bitmap codec (PGS / DVB / DVD / XSUB) or teletext. Not carried as pixels; a rendition only through OCR, and only when the source has no text track. See isOCRReadable for whether the host can have it read into its cue tap with requestBitmapSubtitleOCR.

case unsupported

Something we neither convert nor recognize as bitmap.

Generated from the public symbols of PrismCore 3.5.4. All types