https://github.com/irons163/irmusicplayer
IRMusicPlayer is a powerful music player for iOS.
https://github.com/irons163/irmusicplayer
ios music-player musicplayer musicplayer-online
Last synced: 6 months ago
JSON representation
IRMusicPlayer is a powerful music player for iOS.
- Host: GitHub
- URL: https://github.com/irons163/irmusicplayer
- Owner: irons163
- License: mit
- Created: 2019-10-02T10:56:33.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-04T07:08:24.000Z (7 months ago)
- Last Synced: 2025-04-15T12:14:14.281Z (6 months ago)
- Topics: ios, music-player, musicplayer, musicplayer-online
- Language: Objective-C
- Homepage:
- Size: 10.3 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# IRMusicPlayer
- IRMusicPlayer is a powerful music player for iOS.
## Features
- Support online/local play.
- Support to show music cover.
- Support randon mode.
- Support repeat modes: repeat all musics once, repeat current music forever, repeat all musics forever.## Future
- Support background play.## Install
### Git
- Git clone this project.
- Copy this project into your own project.
- Add the .xcodeproj into you project and link it as embed framework.
#### Options
- You can remove the `demo` and `ScreenShots` folder.### Cocoapods
- Add `pod 'IRMusicPlayer'` in the `Podfile`
- `pod install`## Usage
### Basic
```obj-c
@import IRMusicPlayer;MusicPlayerViewController *vc = [[MusicPlayerViewController alloc] initWithNibName:@"MusicPlayerViewController" bundle:xibBundle];
[vc.musicListArray addObject:@{@"musicAddress": [[NSBundle mainBundle] pathForResource:@"1" ofType:@"mp3"]}];
[vc.musicListArray addObject:@{@"musicAddress": [[NSBundle mainBundle] pathForResource:@"2" ofType:@"mp3"]}];
[vc.musicListArray addObject:@{@"musicAddress": [[NSBundle mainBundle] pathForResource:@"3" ofType:@"mp3"]}];[self presentViewController:vc animated:YES completion:nil];
```### Advanced settings
- Use `MusicPlayerViewCallBackDelegate`.
```obj-c
@protocol MusicPlayerViewCallBackDelegate
-(void)didMusicChange:(NSString*)path;
@end
```- Set `musicIndex` to controll which you want to play.
```obj-c
musicPlayerVC.musicIndex = 1;
[musicPlayerVC doPlay];
```- Make your custome music cover image.
```obj-c
musicPlayerVC.coverView.image = ;
```## Screenshots
