Created
January 20, 2017 22:49
-
-
Save xcadaverx/2a14b8e38af3f97da376075083758e3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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