翻译:AVPlayerItemVideoOutput

@class AVPlayerItemVideoOutput
@method initWithPixelBufferAttributes:
- (instancetype)initWithPixelBufferAttributes:(nullable NSDictionary<NSString *, id> *)pixelBufferAttributes NS_DESIGNATED_INITIALIZER;

@abstract
返回一个对应视频图像输出的AVPlayerItemVideoOutput的实例,它根据设定的pixel buffer attributes来初始化。

@param pixelBufferAttributes
客户端要求输出的CVPixelBuffers,在

@method requestNotificationOfMediaDataChangeWithAdvanceInterval:
- (void)requestNotificationOfMediaDataChangeWithAdvanceInterval:(NSTimeInterval)interval;

@abstract
通知receiver AVPlayerItemVideoOutput client即将进入一个quiescent state。

@param interval
一个设定的时间间隔。

@discussion
在你打算延迟使用CVDisplayLink or CADisplayLink之前给这个方法发送消息。你提供的这个interval将是你的delegate接收到消息的延时,并且,这将重启display link。如果你提供的interval很大,effectively requesting wakeup earlier than the AVPlayerItemVideoOutput is prepared to act, the delegate will be invoked as soon as possible. Do not use this method to force a delegate invocation for each sample.(还不太明白).

@method setDelegate:queue:
- (void)setDelegate:(nullable id<AVPlayerItemOutputPullDelegate>)delegate queue:(nullable dispatch_queue_t)delegateQueue;

@abstract
@abstract Sets the receiver’s delegate and a dispatch queue on which the delegate will be called.
@param delegate
An object conforming to AVPlayerItemOutputPullDelegate protocol.
@param delegateQueue
A dispatch queue on which all delegate methods will be called.

@protocol AVPlayerItemOutputPullDelegate

@optional
@method outputMediaDataWillChange:

- (void)outputMediaDataWillChange:(AVPlayerItemOutput *)sender NS_AVAILABLE(10_8, 6_0);

@abstract
这个方法当AVPlayerItemOutput接收到requestNotificationOfMediaDataChangeWithAdvanceInterval时,会马上调用。

@discussion
    This method is invoked once after the sender is messaged requestNotificationOfMediaDataChangeWithAdvanceInterval:.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值