AVPlayer.h翻译

/*

 File:  AVPlayer.h

 

Framework:  AVFoundation

 

Copyright 2010-2016 Apple Inc. All rights reserved.

 

 */


/*!

@class AVPlayer

 

@abstract  摘要

 AVPlayer offers a playback interface for single-item playback that's sufficient for

 the implementation of playback controllers and playback user interfaces.

 

 AVPlayer 为单项播放提供了一个播放接口,这个接口足够用来实现播放控制器和用户播放接口。

 

@discussion  详述

 AVPlayer works equally well with local and remote media files, providing clients with appropriate

 information about readiness to play or about the need to await additional data before continuing.

 

 不论是本地媒体文件还是远程媒体文件,AVPlayer 都能良好运行,AVPlayer为客户提供准确恰当的信息,这些信息是关于准备去播放,或者是关于等待加载额外的数据才能继续

 

 

 Visual content of items played by an instance of AVPlayer can be displayed in a CoreAnimation layer

 of class AVPlayerLayer.

 

 AVPlayer类实例播放的项目的可视化内容可以被展示在一个属于AVPlayerLayer类的“CoreAnimation layer”

 

 To allow clients to add and remove their objects as key-value observers safely, AVPlayer serializes notifications of

 changes that occur dynamically during playback on a dispatch queue. By default, this queue is the main queue. See dispatch_get_main_queue().

 

 为了允许客户端安全地以KVO的方式添加和移除它们的对象,AVPlayer把在播放过程中动态地发生的改变的通知序列化在一个调度队列中。默认,这个队列是主队列。

 

 To ensure safe access to AVPlayer's nonatomic properties while dynamic changes in playback state may be reported, clients must

 serialize their access with the receiver's notification queue. In the common case, such serialization is naturally achieved

 by invoking AVPlayer's various methods on the main thread or queue.

 

 为了确保在播放状态动态改变发出通知时,对AVPlayer的非原子属性可以安全访问,客户端必须用接受者的通知队列序列化对非原子属性的访问。在通常情况下,这种串行化是通过在主线程或队列上调用AVPlayer的各种方法而自然实现的。

 */


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值