iOS 音频播放 ZSoundManager

jopen 9年前

ZSoundManager 一个简单的工具,可以在 iOS app 上播放声音和音乐。

AZSoundManager

AZSoundManager is a simple tool for playing sound and music in iOS apps.

Installation

To use the AZSoundManager:

  1. Just drag the class files into your project:

    • AZSoundManager.h
    • AZSoundManager.m
    • AZSoundItem.h
    • AZSoundItem.m
  2. Add the AVFoundation framework.

Classes

The AZSoundManager package defines two classes: AZSoundManager and AZSoundItem.

AZSoundItem properties

<pre>@property (nonatomic, readonly) NSString name;</pre>

The name of the item.

<pre>@property (nonatomic, readonly) NSURL
URL;</pre>

The absolute URL of the sound file.

<pre>@property (nonatomic, readonly) NSTimeInterval duration;</pre>

The duration (in seconds) of the sound file.

<pre>@property (nonatomic, readonly) NSTimeInterval currentTime;</pre>

The current time offset (in seconds) of the sound file.

<pre>@property (nonatomic, readonly) NSString title;</pre>

The title from metadata of item.

<pre>@property (nonatomic, readonly) NSString
album;</pre>

The album name from metadata of item.

<pre>@property (nonatomic, readonly) NSString artist;</pre>

The artist name from metadata of item.

<pre>@property (nonatomic, readonly) UIImage
artwork;</pre>

The artwork image from metadata of item.


 iOS 音频播放 ZSoundManager  

项目主页:http://www.open-open.com/lib/view/home/1440573949513