您的位置:首页 > 其它

AVPlayer.h翻译

2016-11-13 02:17 162 查看
/*

 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的各种方法而自然实现的。

 */
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  AVPlayer