Skip to content

Instantly share code, notes, and snippets.

View dweinber's full-sized avatar

Daniel Weinberger dweinber

  • Bitmovin
  • Klagenfurt, Austria
View GitHub Profile
@dweinber
dweinber / private_fork.md
Last active March 3, 2023 08:34 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)
    git clone --bare [email protected]:some_username/reponame.git
@dweinber
dweinber / FairPlayer.swift
Created February 7, 2023 10:25 — forked from fousa/FairPlayer.swift
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.