zoukankan      html  css  js  c++  java
  • 第7月第11天 AVAsset

    1.

    An AVAsset defines the collective properties of the tracks that comprise the asset. (You can access the instances of AVAsset​Track representing tracks of the collection, so you can examine each of these independently if you need to.)

    You often instantiate an asset using AVURLAsset—a concrete subclass of AVAsset—with URLs that refer to audiovisual media resources, such as streams (including HTTP live streams), QuickTime movie files, MP3 files, and files of other types. You can also instantiate an asset using other concrete subclasses that extend the basic model for audiovisual media in useful ways, as AVComposition does for temporal editing.

    Properties of assets as a whole are defined by AVAsset. Additionally, references to instances of AVAsset​Track representing tracks of the collection can be obtained, so that each of these can be examined independently.

    Because of the nature of timed audiovisual media, upon successful initialization of an asset some or all of the values for its keys may not be immediately available. The value of any key can be requested at any time, and asset always returns its value synchronously, although it may have to block the calling thread in order to do so. In order to avoid blocking, you can register your interest in particular keys and to become notified when their values become available. For further details, see AVAsynchronous​Key​Value​Loading.

    To play an instance of AVAsset, initialize an instance of AVPlayer​Item with it, use the player item to set up its presentation state (such as whether only a limited timeRange of the asset should be played, etc.), and provide the player item to an AVPlayer object according to whether the item is to be played by itself or together with a collection of other items.

    You can insert AVAsset objects into an AVMutable​Composition object in order to assemble audiovisual constructs from one or more source assets.

    https://developer.apple.com/reference/avfoundation/avasset

  • 相关阅读:
    jQuery学习笔记
    MAMP的使用
    svn使用
    Docker 下安装 MySQL时,docker-compose.yml 的写法
    MySQL 8报错:The user specified as a definer ('mysql.infoschema'@'localhost') does not exist
    Zookeeper 总结及安装
    Docker 在 Linux 下的安装与配置
    Linux更换国内软件源
    gitlab-runner一直处于挂起/pedding状态
    GitLab出现forbidden的解决方法
  • 原文地址:https://www.cnblogs.com/javastart/p/6692003.html
Copyright © 2011-2022 走看看