Latest 0.0.4
Homepage https://github.com/Easence/EAMiniAudioPlayerView
License MIT
Platforms ios 7.0
Frameworks UIKit
Authors

What is the EAMiniAudioPlayerView

EAMiniAudioPlayerView is a mini Audio player view for ios, it just decide how to display,but don’t manage how to download the audio and how to play the audio.

image

How to use

install with cocoapods

pod install EAMiniAudioPlayerView

What can EAMiniAudioPlayerView do

  • It’s easy to config what subView can display,another can not.

Just set EAMiniAudioPlayerStyleConfig,splayerStyleproperty,it is a ENUM:

    typedef NS_ENUM(NSUInteger, EAMiniPlayerStyle) {
    EAMiniPlayerNormal = 1 << 0,   //Has play button,sound icon
    EAMiniPlayerHidePlayButton = 1 << 1, //Hide play button
    EAMiniPlayerHideSoundIcon = 1 << 2, //Hide sound icon
    EAMiniPlayerHideText = 1 << 3, //Hide text label
};

eg.:

 EAMiniAudioPlayerStyleConfig *config = [EAMiniAudioPlayerStyleConfig defaultConfig];
 config.playerStyle |= EAMiniPlayerHidePlayButton;
  • The dowload progress

Set value to EAMiniAudioPlayerView‘sdownloadProgressproperty(0<downloadProgress<1)can change the downloading progress .When downloadProgress‘s value is greater than or equal 1,void(^downloadCompleted)(void)will be call back。

  • The play progress

Set value to EAMiniAudioPlayerView‘splayProgressproperty(0<downloadProgress<1)can change the playing progress .When playProgress‘s value is greater than or equal 1,void(^playCompleted)(void)will be call back。

  • Other

Custom cornerRadius、Edge insets、custom colors。

Latest podspec

{
    "name": "EAMiniAudioPlayerView",
    "version": "0.0.4",
    "summary": "A Mini AudioPlayer UI View for iOS",
    "description": "A Mini AudioPlayer UI View for iOS.Just the UI part,not contain Audio play logic.",
    "homepage": "https://github.com/Easence/EAMiniAudioPlayerView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Easence": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/Easence/EAMiniAudioPlayerView.git",
        "tag": "0.0.4"
    },
    "source_files": [
        "EAMiniAudioPlayerView",
        "EAMiniAudioPlayerView/*.{h,m}"
    ],
    "resources": "EAMiniAudioPlayerView/Resources/*.png",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This