IS
InsightStream
SDKs

Swift SDK

Build high-performance native video experiences for iOS, macOS, and tvOS with the InsightStream Swift SDK.

Installation

Add InsightStream via Swift Package Manager (SPM):

https://github.com/insightstream/insightstream-swift

Initialization

import InsightStream
// Initialize with your API key
let insight = Insight(apiKey: "sk_live_...")

Usage Examples

Native Playback

let player = InsightPlayerView(assetId: "vid_38402122")
player.autoplay = true
self.view.addSubview(player)

Background Upload

insight.videos.upload(url: fileUrl) { result in
switch result {
case .success(let video): print("Uploaded: \(video.id)")
case .failure(let error): print("Error: \(error)")
}
}
Updated on Dec 28, 2025
Was this page helpful?