AVCompositionDebugViewer 0.1.0

AVCompositionDebugViewer 0.1.0

Jonathan Lott 维护。



  • 作者:
  • Jonathan Lott 和 Apple Inc.

AVCompositionDebugViewer

CI Status Version License Platform

AVFoundation 和 AVComposition 调试查看器。从 Apple 示例项目借用并转换为 Cocoapod。允许您在调试器视图中创建自定义 AVMutableComposition 并进行可视化

如何使用

要运行示例项目,首先克隆仓库,然后从 Example 目录中运行 pod install

Swift 或 Objective-C 都能很好地工作

只需创建一个自定义的 AVMutableComposition,并可选地包含 AVMutableVideoCompositionAVMutableAudioMix,然后将它传递给 AVCompositionDebugViewer

import AVCompositionDebugViewer
                    
AVCompositionDebugViewer.showCompositionDebugView(with: avComposition, videoComposition: videoComposition, audioMix: audioMix, containerViewController: viewController)

在 Mac 上:如果您将参数 containerViewController 设置为 nil,那么将自动弹出一个新窗口,其中包含调试器视图控制器。

在 iOS 上:您必须指定一个 containerViewController 来包含组成调试视图控制器

要求

无。在 Mac 和 iOS 上与 AVFoundation 结合使用

查看 Apple 文档以获取更多信息

技术笔记 TN2447:调试 AVFoundation 组成、视频组成和音频混合

Apple 的 AVCompositionDebugViewer (Mac) 代码

Apple 的 AVCompositionDebugViewer (iOS) 代码

安装

AVCompositionDebugViewer通过CocoaPods提供。要安装它,只需将以下行添加到Podfile

pod 'AVCompositionDebugViewer'

作者

Jonathan Lott

许可证

AVCompositionDebugViewer在MIT许可证下可用。更多信息请参阅LICENSE文件。