Skip to content

Instantly share code, notes, and snippets.

@xcadaverx
Created January 20, 2017 22:49
Show Gist options
  • Save xcadaverx/2a14b8e38af3f97da376075083758e3d to your computer and use it in GitHub Desktop.
Save xcadaverx/2a14b8e38af3f97da376075083758e3d to your computer and use it in GitHub Desktop.
PHImageManager().requestAVAsset(forVideo: asset, options: options, resultHandler: { (avAsset, mix, info) in
guard let avAsset = avAsset else { return }
for track in avAsset.tracks(withMediaType: AVMediaTypeVideo) {
for segment in track.segments {
dump(segment)
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment