MBS Avfoundation Plugin.Pdf

Total Page:16

File Type:pdf, Size:1020Kb

MBS Avfoundation Plugin.Pdf MBS AVFoundation Plugin Documentation Christian Schmitz September 6, 2021 2 0.1 Introduction This is the PDF version of the documentation for the Xojo Plug-in from Monkeybread Software Germany. Plugin part: MBS AVFoundation Plugin 0.2 Content • 1 List of all topics 3 • 2 List of all classes 111 • 3 List of all controls 119 • 4 All items in this plugin 121 • 10 List of Questions in the FAQ 1191 • 11 The FAQ 1201 Chapter 1 List of Topics • 4 AVFoundation 121 – 4.1.1 class AVAssetExportSessionMBS 121 ∗ 4.1.5 allExportPresets as string() 122 ∗ 4.1.6 available as boolean 123 ∗ 4.1.7 AVAssetExportPreset1280x720 as string 123 ∗ 4.1.8 AVAssetExportPreset1920x1080 as string 123 ∗ 4.1.9 AVAssetExportPreset3840x2160 as string 123 ∗ 4.1.10 AVAssetExportPreset640x480 as string 123 ∗ 4.1.11 AVAssetExportPreset960x540 as string 124 ∗ 4.1.12 AVAssetExportPresetAppleM4A as string 124 ∗ 4.1.13 AVAssetExportPresetAppleM4V1080pHD as string 124 ∗ 4.1.14 AVAssetExportPresetAppleM4V480pSD as string 124 ∗ 4.1.15 AVAssetExportPresetAppleM4V720pHD as string 124 ∗ 4.1.16 AVAssetExportPresetAppleM4VAppleTV as string 124 ∗ 4.1.17 AVAssetExportPresetAppleM4VCellular as string 125 ∗ 4.1.18 AVAssetExportPresetAppleM4ViPod as string 125 ∗ 4.1.19 AVAssetExportPresetAppleM4VWiFi as string 125 ∗ 4.1.20 AVAssetExportPresetAppleProRes422LPCM as string 125 ∗ 4.1.21 AVAssetExportPresetHEVC1920x1080 as string 125 ∗ 4.1.22 AVAssetExportPresetHEVC3840x2160 as string 126 ∗ 4.1.23 AVAssetExportPresetHEVCHighestQuality as string 126 ∗ 4.1.24 AVAssetExportPresetHighestQuality as string 126 ∗ 4.1.25 AVAssetExportPresetLowQuality as string 126 ∗ 4.1.26 AVAssetExportPresetMediumQuality as string 127 ∗ 4.1.27 AVAssetExportPresetPassthrough as string 127 ∗ 4.1.28 cancelExport 127 ∗ 4.1.29 Constructor(asset as AVAssetMBS, presetName as string) 127 3 4 CHAPTER 1. LIST OF TOPICS ∗ 4.1.30 determineCompatibilityOfExportPreset(presetName as string, asset as AVAssetMBS, outputFileType as string, tag as Variant = nil) 128 ∗ 4.1.31 determineCompatibleFileTypes(tag as Variant = nil) 128 ∗ 4.1.32 exportAsynchronously(tag as Variant = nil) 129 ∗ 4.1.33 exportMT 130 ∗ 4.1.34 exportPresetsCompatibleWithAsset(asset as AVAssetMBS) as string() 130 ∗ 4.1.35 exportSessionWithAsset(asset as AVAssetMBS, presetName as string) as AVAssetEx- portSessionMBS 131 ∗ 4.1.36 metadata as AVMetadataItemMBS() 131 ∗ 4.1.37 outputFileExtension as string 131 ∗ 4.1.38 setMetadata(items() as AVMetadataItemMBS) 132 ∗ 4.1.39 supportedFileTypes as string() 132 ∗ 4.1.41 asset as AVAssetMBS 133 ∗ 4.1.42 audioMix as AVAudioMixMBS 133 ∗ 4.1.43 audioTimePitchAlgorithm as String 133 ∗ 4.1.44 canPerformMultiplePassesOverSourceMediaData as Boolean 133 ∗ 4.1.45 customVideoCompositor as AVVideoCompositingMBS 134 ∗ 4.1.46 directoryForTemporaryFiles as FolderItem 134 ∗ 4.1.47 directoryForTemporaryFilesURL as String 135 ∗ 4.1.48 error as NSErrorMBS 136 ∗ 4.1.49 estimatedOutputFileLength as Int64 136 ∗ 4.1.50 Handle as Integer 136 ∗ 4.1.51 metadataItemFilter as AVMetadataItemFilterMBS 136 ∗ 4.1.52 OutputFile as folderitem 137 ∗ 4.1.53 outputFileType as string 137 ∗ 4.1.54 outputURL as string 137 ∗ 4.1.55 presetName as string 137 ∗ 4.1.56 progress as Double 137 ∗ 4.1.57 shouldOptimizeForNetworkUse as boolean 138 ∗ 4.1.58 status as Integer 138 ∗ 4.1.59 videoComposition as AVVideoCompositionMBS 138 ∗ 4.1.60 timeRange as CMTimeRangeMBS 138 ∗ 4.1.62 AVAssetExportSessionStatusCancelled = 5 139 ∗ 4.1.63 AVAssetExportSessionStatusCompleted = 3 139 ∗ 4.1.64 AVAssetExportSessionStatusExporting = 2 139 ∗ 4.1.65 AVAssetExportSessionStatusFailed = 4 140 ∗ 4.1.66 AVAssetExportSessionStatusUnknown = 0 140 ∗ 4.1.67 AVAssetExportSessionStatusWaiting = 1 140 – 4.2.1 class AVAssetImageGeneratorMBS 141 ∗ 4.2.5 assetImageGeneratorWithAsset(asset as AVAssetMBS) as AVAssetImageGeneratorMBS 141 ∗ 4.2.6 available as boolean 142 5 ∗ 4.2.7 AVAssetImageGeneratorApertureModeCleanAperture as string 142 ∗ 4.2.8 AVAssetImageGeneratorApertureModeEncodedPixels as string 142 ∗ 4.2.9 AVAssetImageGeneratorApertureModeProductionAperture as string 142 ∗ 4.2.10 cancelAllCGImageGeneration 142 ∗ 4.2.11 CGImageAtTime(time as CMTimeMBS, byref actualTime as CMTimeMBS, byref er- ror as NSErrorMBS) as Variant 143 ∗ 4.2.12 Constructor(asset as AVAssetMBS) 143 ∗ 4.2.13 generateCGImagesAsynchronouslyForTimes(times() as CMTimeMBS, tag as Variant = nil) 144 ∗ 4.2.15 apertureMode as string 144 ∗ 4.2.16 appliesPreferredTrackTransform as boolean 144 ∗ 4.2.17 asset as AVAssetMBS 145 ∗ 4.2.18 customVideoCompositor as AVVideoCompositingMBS 145 ∗ 4.2.19 Handle as Integer 145 ∗ 4.2.20 videoComposition as AVVideoCompositionMBS 146 ∗ 4.2.21 maximumSize as CGSizeMBS 146 ∗ 4.2.22 requestedTimeToleranceAfter as CMTimeMBS 146 ∗ 4.2.23 requestedTimeToleranceBefore as CMTimeMBS 146 ∗ 4.2.25 AVAssetImageGeneratorCancelled = 2 147 ∗ 4.2.26 AVAssetImageGeneratorFailed = 1 147 ∗ 4.2.27 AVAssetImageGeneratorSucceeded = 0 147 – 4.3.1 class AVAssetMBS 148 ∗ 4.3.7 assetWithData(Data as MemoryBlock, Options as Dictionary = nil) as AVAssetMBS 149 ∗ 4.3.8 assetWithData(Data as String, Options as Dictionary = nil) as AVAssetMBS 150 ∗ 4.3.9 assetWithFile(file as folderitem) as AVAssetMBS 151 ∗ 4.3.10 assetWithURL(URL as string) as AVAssetMBS 151 ∗ 4.3.11 available as boolean 151 ∗ 4.3.12 availableChapterLocales as NSLocaleMBS() 151 ∗ 4.3.13 availableMediaCharacteristicsWithMediaSelectionOptions as string() 151 ∗ 4.3.14 availableMetadataFormats as string() 152 ∗ 4.3.15 cancelLoading 152 ∗ 4.3.16 chapterMetadataGroupsBestMatchingPreferredLanguages as AVTimedMetadataGroupMBS() 152 ∗ 4.3.17 chapterMetadataGroupsBestMatchingPreferredLanguages(preferredLanguages() as string) as AVTimedMetadataGroupMBS() 153 ∗ 4.3.18 chapterMetadataGroupsWithTitleLocale(locale as NSLocaleMBS, commonKeys() as string) as AVTimedMetadataGroupMBS() 154 ∗ 4.3.19 commonMetadata as AVMetadataItemMBS() 154 ∗ 4.3.20 Constructor 155 ∗ 4.3.21 copy as AVAssetMBS 155 ∗ 4.3.22 duration as CMTimeMBS 155 6 CHAPTER 1. LIST OF TOPICS ∗ 4.3.23 loadValuesAsynchronouslyForKeys(keys() as string, tag as Variant = nil) 155 ∗ 4.3.24 mediaSelectionGroupForMediaCharacteristic(mediaCharacteristic as string) as AVMe- diaSelectionGroupMBS 157 ∗ 4.3.25 metadata as AVMetadataItemMBS() 157 ∗ 4.3.26 metadataForFormat(Format as string) as AVMetadataItemMBS() 158 ∗ 4.3.27 naturalSize as CGSizeMBS 158 ∗ 4.3.28 preferredTransform as CGAffineTransformMBS 159 ∗ 4.3.29 readTimeCodeObjects as AVTimeCodeMBS() 159 ∗ 4.3.30 readTimeCodes as String() 159 ∗ 4.3.31 statusOfValueForKey(key as string, byref error as NSErrorMBS) as Integer 160 ∗ 4.3.32 trackGroups as AVAssetTrackGroupMBS() 161 ∗ 4.3.33 tracks as AVAssetTrackMBS() 161 ∗ 4.3.34 tracksWithMediaCharacteristic(mediaCharacteristic as string) as AVAssetTrackMBS() 161 ∗ 4.3.35 tracksWithMediaType(mediaType as string) as AVAssetTrackMBS() 161 ∗ 4.3.36 trackWithTrackID(PersistentTrackID as Integer) as AVAssetTrackMBS 162 ∗ 4.3.37 unusedTrackID as Integer 162 ∗ 4.3.39 ClassName as String 162 ∗ 4.3.40 creationDate as AVMetadataItemMBS 163 ∗ 4.3.41 Handle as Integer 163 ∗ 4.3.42 hasProtectedContent as boolean 163 ∗ 4.3.43 isComposable as boolean 163 ∗ 4.3.44 isExportable as boolean 164 ∗ 4.3.45 isPlayable as boolean 164 ∗ 4.3.46 isReadable as boolean 164 ∗ 4.3.47 lyrics as string 164 ∗ 4.3.48 preferredRate as Double 165 ∗ 4.3.49 preferredVolume as Double 165 ∗ 4.3.50 providesPreciseDurationAndTiming as boolean 165 ∗ 4.3.51 referenceRestrictions as Integer 165 ∗ 4.3.53 AVAssetReferenceRestrictionForbidAll = & hFFFF 166 ∗ 4.3.54 AVAssetReferenceRestrictionForbidCrossSiteReference = 4 166 ∗ 4.3.55 AVAssetReferenceRestrictionForbidLocalReferenceToLocal = 8 166 ∗ 4.3.56 AVAssetReferenceRestrictionForbidLocalReferenceToRemote = 2 166 ∗ 4.3.57 AVAssetReferenceRestrictionForbidNone = 0 167 ∗ 4.3.58 AVAssetReferenceRestrictionForbidRemoteReferenceToLocal = 1 167 ∗ 4.3.59 AVKeyValueStatusCancelled = 4 167 ∗ 4.3.60 AVKeyValueStatusFailed = 3 167 ∗ 4.3.61 AVKeyValueStatusLoaded = 2 167 ∗ 4.3.62 AVKeyValueStatusLoading = 1 168 ∗ 4.3.63 AVKeyValueStatusUnknown = 0 169 – 4.4.1 class AVAssetReaderAudioMixOutputMBS 170 7 ∗ 4.4.3 assetReaderAudioMixOutputWithAudioTracks(audioTracks() as AVAssetTrackMBS, out- putSettings as dictionary) as AVAssetReaderAudioMixOutputMBS 170 ∗ 4.4.4 audioSettings as dictionary 170 ∗ 4.4.5 audioTracks as AVAssetTrackMBS() 171 ∗ 4.4.6 Constructor(audioTracks() as AVAssetTrackMBS, outputSettings as dictionary) 171 ∗ 4.4.8 audioMix as AVAudioMixMBS 171 ∗ 4.4.9 audioTimePitchAlgorithm as String 172 – 4.5.1 class AVAssetReaderMBS 173 ∗ 4.5.3 addOutput(output as AVAssetReaderOutputMBS) 173 ∗ 4.5.4 asset as AVAssetMBS 173 ∗ 4.5.5 assetReaderWithAsset(item as AVAssetMBS, byref error as NSErrorMBS) as AVAsse- tReaderMBS 174 ∗ 4.5.6 available as boolean 174 ∗ 4.5.7 canAddOutput(output as AVAssetReaderOutputMBS) as boolean 174 ∗ 4.5.8 cancelReading 174 ∗ 4.5.9 Constructor(item as AVAssetMBS, byref error as NSErrorMBS) 175 ∗ 4.5.10 error as NSErrorMBS 175 ∗ 4.5.11 outputs as AVAssetReaderOutputMBS() 175 ∗ 4.5.12 startReading 175 ∗ 4.5.13 status as Integer 176 ∗ 4.5.15 Handle as Integer 176 ∗ 4.5.16 timeRange as CMTimeRangeMBS 176 ∗ 4.5.18 AVAssetReaderStatusCancelled = 4 177 ∗ 4.5.19 AVAssetReaderStatusCompleted = 2 177 ∗ 4.5.20 AVAssetReaderStatusFailed = 3 177 ∗ 4.5.21 AVAssetReaderStatusReading = 1 177 ∗ 4.5.22 AVAssetReaderStatusUnknown = 0 177 – 4.6.1 class AVAssetReaderOutputMBS 178 ∗ 4.6.3 available as boolean 178 ∗ 4.6.4 Constructor 178 ∗ 4.6.5 NextSampleBuffer as CMSampleBufferMBS 178 ∗ 4.6.7 alwaysCopiesSampleData

  1375
Recommended publications
  • Noisemaker Lesson02.Pages
    Teaching App Development with Swift NoiseMaker Lesson 2 " NoiseMaker Lesson 2 Description! Add an AVAudioPlayer property to the view controller, and import the AV Foundation framework.! Learning Outcomes! • Practice using the Xcode Documentation and API Reference for technical documentation.! • Discover the AVAudioPlayer class for playing sounds.! • Discover how errors may arise without importing framework dependencies.! Vocabulary! Xcode Documentation and AVAudioPlayer property API Reference optional var framework AV Foundation import Materials! • NoiseMaker Lesson 2 Xcode project! " ! This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, by Yong Bakos.! "1 Teaching App Development with Swift! NoiseMaker Lesson 2! " Opening! Now that we have sound files, what API do we use to play them within our app?! Agenda! • Discuss how we might explore the Xcode Documentation and API Reference to learn how to "play a sound."! • Using the Xcode Documentation and API Reference (⇧⌘0), enter play sound in the search bar, and notice the results shown in the API Reference, SDK Guides and Sample Code sections.! • Using the Xcode Documentation and API Reference (⇧⌘0), explore the AVAudioPlayer class reference.! • Add a controller property for an AVAudioPlayer that is responsible for playing the guitar sound.! var player: AVAudioPlayer? • Discuss declaring the AVAudioPlayer optional type, since the ViewController initializer will not initialize the property with a value.! • Build the project (⌘B), and
    [Show full text]
  • WWDC14 Media
    Media #WWDC14 Camera Capture: Manual Controls Power to the people Session 508 Brad Ford Camera Software © 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Past Sessions developer.apple.com WWDC 2011 Session 419—Capturing from the Camera on iOS 5 WWDC 2011 Session 417—Introducing AV Foundation Capture for Lion WWDC 2012 Session 520—What’s New in Camera Capture (iOS 6) WWDC 2013 Session 610—What’s New in Camera Capture (iOS 7) Appetzer AVCaptureView on Yosemite iOS Screen Recording Barcode Update Main Course Manual Camera Controls Focus / Exposure / White Balance Dessert Bracketed Capture Appetzer AVCaptureView on Yosemite iOS Screen Recording Barcode Update Main Course Manual Camera Controls Focus / Exposure / White Balance Dessert Bracketed Capture Capture in AVKit Standard user interface for capture on Yosemite AVKit AVCaptureView AVCaptureView AVCaptureView AVCaptureView AVFoundation Capture Objects AVFoundation Capture Objects AVCaptureSession AVFoundation Capture Objects AVCaptureDevice AVCaptureDevice (Camera) (Microphone) AVCaptureDeviceInput AVCaptureDeviceInput AVCaptureSession AVFoundation Capture Objects AVCaptureDevice AVCaptureDevice (Camera) (Microphone) AVCaptureDeviceInput AVCaptureDeviceInput AVCaptureSession AVCaptureMovieFileOutput AVFoundation Capture Objects AVCaptureDevice AVCaptureDevice (Camera) (Microphone) AVCaptureDeviceInput AVCaptureDeviceInput AVCaptureConnection AVCaptureConnection AVCaptureSession AVCaptureMovieFileOutput AVCaptureView
    [Show full text]
  • Screen Capture Tools to Record Online Tutorials This Document Is Made to Explain How to Use Ffmpeg and Quicktime to Record Mini Tutorials on Your Own Computer
    Screen capture tools to record online tutorials This document is made to explain how to use ffmpeg and QuickTime to record mini tutorials on your own computer. FFmpeg is a cross-platform tool available for Windows, Linux and Mac. Installation and use process depends on your operating system. This info is taken from (Bellard 2016). Quicktime Player is natively installed on most of Mac computers. This tutorial focuses on Linux and Mac. Table of content 1. Introduction.......................................................................................................................................1 2. Linux.................................................................................................................................................1 2.1. FFmpeg......................................................................................................................................1 2.1.1. installation for Linux..........................................................................................................1 2.1.1.1. Add necessary components........................................................................................1 2.1.2. Screen recording with FFmpeg..........................................................................................2 2.1.2.1. List devices to know which one to record..................................................................2 2.1.2.2. Record screen and audio from your computer...........................................................3 2.2. Kazam........................................................................................................................................4
    [Show full text]
  • Livecode 6.7.6 Release Notes 6/30/15
    LiveCode 6.7.6 Release Notes 6/30/15 LiveCode 6.7.6 Release Notes Table of contents Overview Known issues Platform support Windows Linux Mac Setup Installation Uninstallation Reporting installer issues Activation Multi-user and network install support (4.5.3) Command-line installation Command-line activation Proposed changes Engine changes Ability to set the dontUseQT property for a player object (windows only) Default buttons lose their glow when another button is clicked on Yosemite. Font mapping feature Font mapping file Relocation of resources for Mac standalone applications Add revBrowser error callback messages. Callback messages: New iOS status bar style [[ In App Purchase ]] Calling mobileStoreRestorePurchases when there are no previous purchases to restore Voice Over support Cocoa Support Location Services Disabled with LC 6.6.4 (rc1) Multimedia on MacOS with AVFoundation iOS 8 Support Copy files do not work with the iOS 8 simulator Non-executable file redirection on Mac Determining the edition of the running engine Sound recording returns error message Threaded Rendering Effective points of graphics Player messages aren't sent correctly. Showing a modal dialog confuses mouse state. Nine-way stretch for images Updated text rendering for iOS and OS X Export snapshot with metadata New variant of open and secure socket Multiple density image support for patterns. 1 LiveCode 6.7.6 Release Notes 6/30/15 QT-related features don't work. Objects which are adjacent don't necessary appear so at non integral scale factors. Queuing too many pending messages causes slowdown and random crashes. Inconsistencies in behavior when doing 'delete the selectedChunk'.
    [Show full text]
  • Media #WWDC16
    Media #WWDC16 Delivering an Exceptional Audio Experience A guide to audio best practices and APIs Session 507 Saleem Mohammed Audio Craftsman Doug Wyatt Audio Plumber © 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Introduction Overview Application CoreAudio and Drivers Introduction Overview Application AVAudioSession AVAudioPlayer AVPlayer AVFoundation AVAudioRecorder CoreAudio and Drivers Introduction Overview Application AVAudioSession AVAudioPlayer AVPlayer AVFoundation AVAudioRecorder AudioToolbox AudioUnits AUGraph CoreAudio and Drivers Introduction Overview Application AVAudioSession AVAudioPlayer AVPlayer AVFoundation AVAudioRecorder CoreMIDI AudioToolbox AudioUnits AUGraph CoreAudio and Drivers Introduction Overview Application AVAudioSession AVAudioPlayer AVPlayer OpenAL AVFoundation AVAudioRecorder CoreMIDI AudioToolbox AudioUnits AUGraph CoreAudio and Drivers Introduction Overview Application AVAudioSession AVAudioPlayer AVPlayer OpenAL AVFoundation AVAudioEngine AVAudioRecorder CoreMIDI AUAudioUnit AudioToolbox AudioUnits AUGraph CoreAudio and Drivers Introduction Agenda Introduction Agenda Essential Setup Simple Playback and Recording Scenarios Advanced Playback and Recording Scenarios Multichannel Audio Introduction Agenda Essential Setup Simple Playback and Recording Scenarios Advanced Playback and Recording Scenarios Multichannel Audio Real-time Audio Instruments, Effects, and Generators MIDI Essential Setup Configuration for iOS, tvOS, and watchOS
    [Show full text]
  • Wirecast for Youtube 6.0.4 Release Notes
    Wirecast for YouTube 6.0.4 Release Notes System Requirements Mac OS X • Operating Systems*: OS X 10.9 Mavericks and OS X 10.10 Yosemite • Wirecast Cam app requires iOS 8 • Mac computer with Intel ‘Sandy Bridge’ chips or higher o i3 recommended for 540p or lower streaming o i5 or higher recommended for 720p streaming o i7 recommended for 1080p streaming • 2GB RAM minimum o 4GB recommended for 1080p streaming • 200MB free hard drive space for installation • Hard drive space for recording to disk • 512 MB PCI-Express graphics card with 3D acceleration o GeForce or Radeon class card recommended • Sufficient upload speed for streaming o Because of the many variables involved in live streaming, a safe rule of thumb is twice the bandwidth of the total bit rate of the stream *Please note: Wirecast for YouTube 6 does not support OS X 10.8 Mountain Lion or previous versions of OS X Windows • Operating Systems*: Windows 7 32-bit & 64-bit and Windows 8 64-bit • Wirecast Cam app requires iOS 8 • Windows computer with Intel ‘Sandy Bridge’ chips or higher o i3 recommended for 540p or lower streaming o i5 or higher recommended for 720p streaming o i7 recommended for 1080p streaming • 2GB RAM minimum o 4GB RAM and 64-bit OS recommended for 720p or higher streaming • 200MB free hard drive space for installation • Hard Drive space for recording to disk • 512 MB PCI-Express graphics card with 3D acceleration o GeForce or Radeon class card recommended o NVIDIA cards may cause some visual distortion if YUV color space rendering is enabled in Preferences.
    [Show full text]
  • 702 Your Apps and the Future of Macos Security 04 Final D
    #WWDC18 •Your Apps and the Future of macOS Security Pierre-Olivier Martel, Security Engineering Manager Kelly Yancey, OS Security Garrett Jacobson, Trusted Execution © 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. • System Security Improvements • User Consent for Data Access • Enhanced Runtime Protections • Developer ID and Notarized Apps •System Security Improvements System Security Improvements Extension to System Integrity Protection • Stronger code signing enforcement for platform binaries • Libraries/Frameworks/Plugins loaded by system processes must be signed by Apple Exceptions for legacy system extension points Trusted Event Dispatching Most security decisions are made through system UI • User intent (open/save dialogs, drag and drop) • User consent (security dialogs, configuration changes) Need to differentiate between the user deciding and software impersonating them New approval mechanism for users to enable software controlling the UI on their behalf Configurable in the Security and Privacy preference pane, in the Accessibility list Trusted Event Dispatching Trusted Event Dispatching Impacted APIs IOHIDPostEvent(…); IOHIDSetMouseLocation(io_connect_t connect, int x, int y); CGEvent.post(tap: CGEventTapLocation) CGEventTap.tapCreate(…, options: CGEventTapOptions, …) // when called without .listenOnly Safari / WebKit Safari • Sandbox adoption for the app and satellite processes WebKit • Audit and removal of risky dependencies from existing sandboxes
    [Show full text]
  • Capturing from the Camera Using AV Foundation on Ios 5 API Enhancements and Performance Improvements
    Capturing From the Camera Using AV Foundation on iOS 5 API enhancements and performance improvements Session 419 Brad Ford iOS Engineering These are confidential sessions—please refrain from streaming, blogging, or taking pictures 1 What You Will Learn • Which iOS 5 captures APIs to use in your app • The AV Foundation capture programming model • iOS 5 Performance improvements in AV Foundation • iOS 5 AV Foundation API enhancements 2 Sample Code for This Session • ChromaKey • RosyWriter • ‘StacheCam • StopNGo (iOS Edition) Materials available at: https://developer.apple.com/wwdc/schedule/details.php?id=419 3 Technology Framework Camera app UIImagePickerController UIKit AVFoundation CoreAudio CoreMedia CoreAnimation 4 Using the Camera in iOS 5 Simple programmatic access API for high, 00:00:15 Hideable camera medium, or low controls UI quality recording -(void)takePicture -(void)setCameraDevice: -(BOOL)startVideoCapture -(void)setCameraFlashMode: User touch to focus, like Camera app User touch and hold to lock AE and AF 5 Why Use AV Foundation Capture? Full access to the camera • Independent focus, exposure, and white balance controls ■ Independent locking ■ Independent points of interest for focus and exposure • Access to video frame data ■ Accurate timestamps ■ Per-frame metadata ■ Configurable output format (e.g. 420v, BGRA) ■ Configurable frame rate ■ Configurable resolution 6 Why Use AV Foundation Capture? Flexible output • Still Image Capture ■ YUV and RGB output ■ Exif metadata insertion • QuickTime Movie Recording ■ Movie metadata
    [Show full text]
  • Ffmpeg Devices Documentation Table of Contents
    FFmpeg Devices Documentation Table of Contents 1 Description 2 Device Options 3 Input Devices 3.1 alsa 3.1.1 Options 3.2 avfoundation 3.2.1 Options 3.2.2 Examples 3.3 bktr 3.3.1 Options 3.4 decklink 3.4.1 Options 3.4.2 Examples 3.5 dshow 3.5.1 Options 3.5.2 Examples 3.6 dv1394 3.6.1 Options 3.7 fbdev 3.7.1 Options 3.8 gdigrab 3.8.1 Options 3.9 iec61883 3.9.1 Options 3.9.2 Examples 3.10 jack 3.10.1 Options 3.11 lavfi 3.11.1 Options 3.11.2 Examples 3.12 libcdio 3.12.1 Options 3.13 libdc1394 3.14 openal 3.14.1 Options 3.14.2 Examples 3.15 oss 3.15.1 Options 3.16 pulse 3.16.1 Options 3.16.2 Examples 3.17 qtkit 3.17.1 Options 3.18 sndio 3.18.1 Options 3.19 video4linux2, v4l2 3.19.1 Options 3.20 vfwcap 3.20.1 Options 3.21 x11grab 3.21.1 Options 4 Output Devices 4.1 alsa 4.1.1 Examples 4.2 caca 4.2.1 Options 4.2.2 Examples 4.3 decklink 4.3.1 Options 4.3.2 Examples 4.4 fbdev 4.4.1 Options 4.4.2 Examples 4.5 opengl 4.5.1 Options 4.5.2 Examples 4.6 oss 4.7 pulse 4.7.1 Options 4.7.2 Examples 4.8 sdl 4.8.1 Options 4.8.2 Interactive commands 4.8.3 Examples 4.9 sndio 4.10 xv 4.10.1 Options 4.10.2 Examples 5 See Also 6 Authors 1 Description# TOC This document describes the input and output devices provided by the libavdevice library.
    [Show full text]
  • Applications Audio
    Applications Audio •Background Music - Background Music, a macOS audio utility: automatically pause your music, set individual apps' volumes and record system audio. •Cog - Free and Open Source Audio Player for macOS. •[Un]MuteMic - macOS app to mute & unmute the input volume of your microphone. Perfect for podcasters. •Tickeys - Instant audio feedback for typing. macOS version. •Mous Player - Simple yet powerful audio player for BSD/Linux/macOS. •SpotSpot - Spotify mini-player for macOS. •SBPlayer - SBPlayer is a beautiful and powerful media player base on VLCKit. •Aural Player - Aural Player is a free and open source audio player application for the macOS platform. Inspired by the classic Winamp player for Windows, it is designed to be to-the-point and easy to use. •Suohai - Audio input/output source lock for macOS. •LocalRadio - LocalRadio is software for listening to "Software-Defined Radio" on your Mac and mobile devices. •fre:ac - The fre:ac audio converter project. •CAM - macOS camera recording using ffmpeg •SpotMenu - Spotify and iTunes in your menu bar. •Lyricism - macOS app to show you lyric what currently iTunes or Spotify is playing. •waveSDR - macOS native desktop Software Defined Radio application using the RTL-SDR USB device. •Lyrics - Swift-based iTunes plug-in to display lyrics on the desktop. •LyricsX - Lyrics for iTunes, Spotify and Vox. •jmc - jmc - new macOS media organizer. •Muse - Open source Spotify controller with TouchBar support. •Sonora - Minimal, beautifully designed music player for OS X. •AUHost - Application which hosts AudioUnits v3 using AVFoundation API. •iTunes-Volume-Control - This app allows you to control the iTunes volume using volume up and volume down hotkeys.
    [Show full text]
  • A Deep Dive Into Macos MDM (And How It Can Be Compromised) by Jesse Endahl & Max Bélanager
    A Deep Dive into macOS MDM (and how it can be compromised) by Jesse Endahl & Max Bélanager August 2018 Version 1.0 About the authors 4 Acknowledgements 4 Summary 4 Basics 5 What is MDM? 5 Setup process 5 What is DEP? 6 Setup process 6 What are configuration profiles? 7 Overview 8 Entities 8 Protocols & Authentication 9 MDM 9 MDM network communication 11 MDM authentication 12 DEP 13 DEP Reseller API 13 DEP “cloud service” API 15 DEP internal API 16 DEP authentication 16 DEP Reseller API Authentication 16 DEP “cloud service” API Authentication 17 DEP internal API Authentication 18 SCEP 18 SCEP Authentication 18 APNs 19 Establishment of trust 20 MDM 20 Establishment of trust between MDM vendor and Apple 20 Establishment of trust between Customer, MDM vendor, and Apple 20 DEP 21 Establishment of trust between Reseller and Apple 21 Establishment of trust between Reseller and Customer 21 Establishment of trust between MDM Vendor and Apple 22 Establishment of trust between Device and Apple 22 Establishment of trust between Device and MDM Vendor 22 Putting it all together: Device bootstrap overview (DEP + MDM) 25 Deep Dive 25 Architecture 26 ConfigurationProfiles.framework 26 Step 4: Retrieving the activation record 27 Step 5: Retrieving the activation profile 29 Step 6: Installing the activation profile 30 Step 7: Listening for commands 33 Vulnerability: InstallApplication 33 Fix: InstallEnterpriseApplication 37 Conclusion 38 Takeaways 38 MDM Vendor Product Security Checklist 38 Recommendations for Apple 39 Appendix 40 Trust hierarchy on macOS 40 Authentication methods 40 List of macOS binaries related to MDM 41 List of Apple server URLs 45 openssl output 47 About the authors Jesse Endahl Jesse Endahl is co-founder, CPO, and CSO at Fleetsmith.
    [Show full text]
  • TLS Cryptographic Hashes
    System Frameworks #WWDC17 Your• Apps and Evolving Network Security Standards • Session 701 Bailey Basile, Secure Transports Engineer Chris Wood, Secure Transports Engineer © 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. BEAST FREAK CRIME Sweet32 SLOTH POODLE LogJam FLAME SHAttered Lucky13 NOMOREMis-issuanceFactoring BREACH DROWN 3HS BEAST FREAK CRIME POODLE Sweet32 SLOTH LogJam FLAME SHAttered Lucky13 NOMORE Factoring BREACH DROWN Mis-issuance 3HS • Best practices • Best practices • App Transport Security update • Best practices • App Transport Security update • Transport Layer Security Best• Practices Best Practices Best Practices No “set and forget” Best Practices No “set and forget” Standards bodies, academic research, and industry best practices Best Practices No “set and forget” Standards bodies, academic research, and industry best practices Update libraries Best Practices No “set and forget” Standards bodies, academic research, and industry best practices Update libraries OS removes insecure options Best Practices No “set and forget” Standards bodies, academic research, and industry best practices Update libraries OS removes insecure options ATS enforces best practices Best Practices No “set and forget” Standards bodies, academic research, and industry best practices Update libraries OS removes insecure options ATS enforces best practices Worth the maintenance cost Best Practices BEAST FREAK CRIME POODLE Sweet32 SLOTH NOMORE FLAME SHAttered Lucky13 LogJam
    [Show full text]