CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2016 |
Maintained by Easence.
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.
install with cocoapods
pod install EAMiniAudioPlayerView
Just set EAMiniAudioPlayerStyleConfig
,splayerStyle
property,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;
Set value to EAMiniAudioPlayerView
'sdownloadProgress
property(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。
Set value to EAMiniAudioPlayerView
'splayProgress
property(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。
Custom cornerRadius、Edge insets、custom colors。