Skip to content
プロジェクト

douban/DOUAudioStreamer

GitHubで見る

douban/DOUAudioStreamer has 2,745 GitHub stars and 542 forks. GitHot measured 0 in 7 days. Last checked 2026-11-15 12:40 UTC. Last push 2026-05-31.

この数値の測り方

できること

  • Streams and plays audio with Core Audio.
  • Supports iOS and macOS.
  • Provides playback status, duration, current time, buffering progress, cache path, and download speed.
  • Supports playback control with play, pause, and stop.

計測したスター増加

24時間
更新が遅れています
7日間
0
15日間
更新が遅れています
1か月
更新が遅れています

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

概要

A Core Audio based streaming audio player for iOS and macOS

制作・メディア

DOUAudioStreamer

CocoaPods Platform License

English | 中文

DOUAudioStreamer is a Core Audio based streaming audio player for iOS and macOS. It supports remote URLs, local files, and media library items through a small DOUAudioFile protocol.

Features

  • Streams and plays audio with Core Audio.
  • Supports iOS and macOS.
  • Provides playback status, duration, current time, buffering progress, cache path, and download speed.
  • Supports playback control with play, pause, and stop.
  • Includes optional audio analyzers and visualization helpers.

Installation

CocoaPods

Add DOUAudioStreamer to your Podfile:

pod 'DOUAudioStreamer'

Then run:

pod install

Manual

Download DOUAudioStreamer, then drag everything in the src folder into your Xcode project.

Usage

Create an object that conforms to DOUAudioFile:

#import "DOUAudioFile.h"

@interface Track : NSObject <DOUAudioFile>

@property (nonatomic, strong) NSURL *audioFileURL;

@end

Create a streamer and start playback:

#import "DOUAudioStreamer.h"

Track *track = [[Track alloc] init];
track.audioFileURL = [NSURL URLWithString:@"https://example.com/audio.mp3"];

DOUAudioStreamer *streamer = [DOUAudioStreamer streamerWithAudioFile:track];
[streamer play];

You can observe the streamer's status property with KVO and inspect properties such as duration, currentTime, bufferingRatio, expectedLength, receivedLength, and downloadSpeed.

Example

A working demonstration is included in the example folder.

Requirements

  • iOS 5.0+
  • macOS 10.7+
  • ARC

License

Use and distribution are licensed under the BSD license. See the LICENSE file for the full text.