Skip to content

Instantly share code, notes, and snippets.

View pinddFull's full-sized avatar

Jung Jihoon pinddFull

View GitHub Profile
@fousa
fousa / FairPlayer.swift
Last active June 1, 2023 12:28
Integrate HLS with FairPlay.
class FairPlayer: AVPlayer {
private let queue = DispatchQueue(label: "com.icapps.fairplay.queue")
func play(asset: AVURLAsset) {
// Set the resource loader delegate to this class. The `resourceLoader`'s delegate will be
// triggered when FairPlay handling is required.
asset.resourceLoader.setDelegate(self, queue: queue)
// Load the asset in the player.
@staltz
staltz / introrx.md
Last active November 4, 2024 10:23
The introduction to Reactive Programming you've been missing