Skip to content

Instantly share code, notes, and snippets.

@netgfx
Created February 23, 2018 18:05
Show Gist options
  • Select an option

  • Save netgfx/bda571617355ca1907bee9b4915a8474 to your computer and use it in GitHub Desktop.

Select an option

Save netgfx/bda571617355ca1907bee9b4915a8474 to your computer and use it in GitHub Desktop.
self.onCollectionReady.subscribe(with: self) {
(isReady) in
print("Are assets ready: \(isReady)")
// init player queue
self.playerQueue = AVQueuePlayer(items: self.AVItemPool)
self.playerQueue?.usesExternalPlaybackWhileExternalScreenIsActive = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment