Cloudflare Docs
Visit Stream on GitHub
Set theme to dark (⇧+D)


You can stream both on-demand and live video to native iOS, tvOS and macOS apps using AVPlayer.

​​ Example Apps

​​ Using AVPlayer

Play a video from Cloudflare Stream using AVPlayer:

import SwiftUI
import AVKit
struct MyView: View {
// Change the url to the Cloudflare Stream HLS manifest URL
private let player = AVPlayer(url: URL(string: "")!)
var body: some View {
VideoPlayer(player: player)
.onAppear() {
struct MyView_Previews: PreviewProvider {
static var previews: some View {