Skip to content

belm/BaiduFM-Swift

Repository files navigation

BaiduFM-Swift

Language: English | 中文

A Baidu FM client implemented in Swift, based on the latest Xcode 6.3 + Swift 1.2. This project was initially focused on implementing basic functionality, and the code may be rough in some areas. I plan to refactor and optimize it when time permits.

API Disclaimer

  • This app uses Baidu FM's non-public API. All music copyrights belong to Baidu.

Features

  • Apple Watch support (synchronized lyrics display)
  • Download songs to local storage (with delete functionality)
  • Favorite music management (add/remove favorites)
  • Recently played music history (with clear functionality)
  • Pull-to-refresh and load more songs
  • Auto-scrolling lyrics
  • Real-time playback progress display
  • Play/pause control
  • Previous/next track navigation
  • Music category browsing
  • Categorized song lists
  • Background playback support
  • Lock screen album artwork and song info display
  • Lock screen music controls (next/previous, play/pause)
  • Favorites list, recently played list, and downloaded songs list

Screenshots

  • Apple Watch Home Screenshot 0

  • Apple Watch Menu Screenshot 0

  • Apple Watch Song List Screenshot 0

  • Apple Watch Category Selection Screenshot 0

  • iPhone Lock Screen Display & Controls Screenshot 0

  • iPhone Home Screen Screenshot 1

  • iPhone Music Categories Screenshot 2

  • iPhone Song List Screenshot 3

Third-Party Libraries

Swift Concepts Used

  • Network requests
  • JSON parsing
  • Swift regular expressions
  • Swift singleton pattern
  • Pull-to-refresh & load more with MJRefresh
  • Song progress with UIProgressView
  • Lyrics scrolling with UITextView
  • Closures
  • Property observers (get, set, didSet)
  • Online MP3 playback using MPMoviePlayerController
  • NSNotificationCenter for data passing

TODO Features

  • Replace music playback with AVAudioPlayer
  • Enhanced Apple Watch support

Contact

Powered by DartNode

About

Baidu FM swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published