# PRESTOplay

`PRESTOplay SDK v4` provides the necessary components for partners and companies to implement their own streaming player application for iOS, iPadOS, and tvOS.

Castlabs has developed and maintains a base SDK distributed as an XCFramework, which is capable of playing HLS and FairPlay Streaming with just a few lines of code. Additional modules provide support for offline playback, subtitles, Chromecast, analytics, and much more.

## PRESTOplay

`PRESTOplay` is our core framework. It’s required for all operations and is used to initialize other plugins.

    import PRESTOplay
    import CastlabsApple

    PRESTOplaySDK.shared.setup("LICENSE", [HLSPlugin()])

## HLS and FairPlay streaming

HLS and FairPlay Streaming are supported by the `CastlabsApple` framework which leverages the native `AVFoundation` framework.

## Subtitles

Subtitles is our custom subtitles parser and renderer which supports various formats.

## Analytics

We pre-integrate with different Analytics vendors.

## Thumbnails

Thumbnails parser and renderer which supports WebVTT and Grid Images.

## Downloaders

Offline playback is supported by our different Downloaders for HLS.

## Chromecast

Chromecast support is enabled by pre-integration with Google Cast SDK.