Latest 1.0
Homepage https://github.com/CoderGin/CGWebAudioPlayer
License MIT
Platforms ios 6.0, requires ARC
Authors

Asynchronous web audio player with cache support.

OverView

Demo

Overview.png

SandBox

Sandbox.png

Usage

Play Web Audio


- (void)playAudioWithUrl:(NSString *)url;

- (void)playAudioWithUrl:(NSString *)url cacheInDirectory:(NSString *)directory;

Removed Caches


- (void)removeAudioCaches;

+ (void)removeAudioCachesWithCompletionHandler:(void(^)())completionHandler;

+ (void)removeAudioCachesOutOfDateWithCompletionHandler:(void(^)())completionHandler;

Config

Config max age of audio caches, default is a week


+ (void)configAudioMaxDateLimit:(NSTimeInterval)dateLimit;

Config audio caches directory


+ (void)configAudioCachesDirectoryName:(NSString *)directoryName;

Config audio downloadTask cachePolicy & timeoutInterval


+ (void)configAudioDownloadCachePolicy:(NSURLRequestCachePolicy)cachePolicy timeoutInterval:(NSTimeInterval)timeoutInterval;

Installation

CocoaPods


pod 'CGWebAudioPlayer', '1.0'

Drag files

  • ./CGWebAudioPlayer/CGWebAudioPlayer.h
  • ./CGWebAudioPlayer/CGWebAudioPlayer.m

Contact

If you have any questions, when using CGWebAudioPlayer

Mail to me: [email protected]

Latest podspec

{
    "name": "CGWebAudioPlayer",
    "version": "1.0",
    "summary": "Asynchronous web audio player.",
    "description": "Asynchronous web audio player with cache support.",
    "homepage": "https://github.com/CoderGin/CGWebAudioPlayer",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Coder Gin": "https://github.com/CoderGin"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/CoderGin/CGWebAudioPlayer.git",
        "tag": "1.0"
    },
    "source_files": "CGWebAudioPlayer/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This