-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original Picture #26
Comments
Hi @josaal17 |
Thanks, it's works!! |
I'm sorry, I had not seen the other question!, Yes i need get the video as NSData! |
Hi @josaal17 The originalAsset becomes public property in pickerController.didSelectAssets = { [unowned self] (assets: [DKAsset]) in
print("didSelectAssets")
print(assets.map({ $0.url}))
if let rep = assets.first?.originalAsset?.defaultRepresentation() {
let sizeOfRawDataInBytes = Int(rep.size())
let rawData = NSMutableData(length: sizeOfRawDataInBytes)!
let bufferPtr = rawData.mutableBytes
let bufferPtr8 = UnsafeMutablePointer<UInt8>(bufferPtr)
rep.getBytes(bufferPtr8, fromOffset: 0, length: sizeOfRawDataInBytes, error: nil)
print(rawData)
}
self.assets = assets
self.previewView?.reloadData()
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, my question is about the pic, in the example select but is a thumbnail (low quality and small), How to select the image, video original from the library or camera?
Thanks
The text was updated successfully, but these errors were encountered: