Created
July 19, 2018 05:14
-
-
Save jknthn/cc670fca4b79546e29764440a2ea8a45 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
extension MapViewController: DJIVideoFeedListener { | |
func videoFeed(_ videoFeed: DJIVideoFeed, didUpdateVideoData videoData: Data) { | |
let data = NSData(data: videoData) | |
var video = videoData | |
video.withUnsafeMutableBytes { (pointer: UnsafeMutablePointer<UInt8>) in | |
VideoPreviewer.instance().push(pointer, length: Int32(data.length)) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment