GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - belm/BaiduFM-Swift: Baidu FM swift

BranchesTags
Open more actions menu

Latest commit

 

History

123 Commits
123 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.swiftpm/xcode
.swiftpm/xcode
 
 
BaiduFM.xcodeproj
BaiduFM.xcodeproj
 
 
BaiduFMApp
BaiduFMApp
 
 
Configuration
Configuration
 
 
Documentation
Documentation
 
 
ScreenShot
ScreenShot
 
 
Sources
Sources
 
 
Tests/BaiduFMTests
Tests/BaiduFMTests
 
 
.gitignore
.gitignore
 
 
LICENSE.txt
LICENSE.txt
 
 
Package.resolved
Package.resolved
 
 
Package.swift
Package.swift
 
 
README-zh.md
README-zh.md
 
 
README.md
README.md
 
 
项目学习文档.md
项目学习文档.md
 
 

Repository files navigation

BaiduFM-Swift

Language: English | 中文

A Baidu FM client modernized for Swift 6.2, Swift Package Manager, and iOS 15 or later. The UI supports English and Simplified Chinese; English is the development and fallback language.

Build

  1. Install an Xcode release that includes Swift 6.2 or later.
  2. Open BaiduFM.xcodeproj in Xcode and select the shared BaiduFMApp scheme.
  3. Set BAIDUFM_API_BASE_URL in Configuration/Shared.xcconfig to an authorized HTTPS content service.
  4. Select an iOS Simulator or connected device and run the app.

Command-line core validation is also available with swift build. A complete iOS build requires Xcode because the app uses UIKit, AVFoundation, storyboards, and asset catalogs.

The historical Baidu FM endpoint is retained only as a development default and may be unavailable. Production distribution requires explicit authorization for the API, streams, artwork, lyrics, trademarks, and downloads. See the release checklist.

API Disclaimer

  • This repository is a development sample that references a historical, non-public Baidu FM API. It must not be distributed with third-party content, branding, streaming, or download access without explicit authorization from the relevant rights holders and service provider.

Features

  • 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

  • Alamofire - Networking library
  • SwiftyJSON - JSON parsing
  • FMDB - SQLite database wrapper
  • Kingfisher - Image caching and downloading
  • RxSwift - Reactive UI and state binding
  • SnapKit - Auto Layout DSL

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)
  • Streaming audio playback using AVPlayer
  • Typed NotificationCenter names for data passing

TODO Features

  • Improve API resilience when Baidu changes its private endpoints

Contact

  • QQ Email
  • Weibo

Powered by DartNode

About

Baidu FM swift

Resources

Readme
GPL-3.0 license
Activity

Stars

578 stars

Watchers

25 watching

Forks

159 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.