{"id":32321045,"url":"https://github.com/codeeagle/aplay","last_synced_at":"2026-02-26T04:02:25.594Z","repository":{"id":56900935,"uuid":"140219265","full_name":"CodeEagle/APlay","owner":"CodeEagle","description":"A Better(Maybe) iOS Audio Stream、Cache、Play Framework","archived":false,"fork":false,"pushed_at":"2025-06-07T08:54:52.000Z","size":5255,"stargazers_count":101,"open_issues_count":5,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-02-10T07:51:40.074Z","etag":null,"topics":["audio","audiounit","avaudioengine","basic","digest","flac","framework","id3v1","id3v1-1","id3v2","id3v2-3","id3v2-4","ios","mp3","network","player","proxy","streaming","swift","wave"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeEagle.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-09T02:06:14.000Z","updated_at":"2025-11-06T03:59:32.000Z","dependencies_parsed_at":"2022-08-20T18:10:10.606Z","dependency_job_id":null,"html_url":"https://github.com/CodeEagle/APlay","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/CodeEagle/APlay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeEagle%2FAPlay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeEagle%2FAPlay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeEagle%2FAPlay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeEagle%2FAPlay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeEagle","download_url":"https://codeload.github.com/CodeEagle/APlay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeEagle%2FAPlay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29848662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"online","status_checked_at":"2026-02-26T02:00:06.774Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","audiounit","avaudioengine","basic","digest","flac","framework","id3v1","id3v1-1","id3v2","id3v2-3","id3v2-4","ios","mp3","network","player","proxy","streaming","swift","wave"],"created_at":"2025-10-23T12:02:46.796Z","updated_at":"2026-02-26T04:02:25.589Z","avatar_url":"https://github.com/CodeEagle.png","language":"Swift","readme":"APlay\n---\nA Better(Maybe) iOS Audio Stream \u0026 Play Swift Framework\n\n\nUsage\n---\n```Swift\nimport APlay\n...\nlet url = URL(string: \"path/to/audio/resource\")!\nlet player = APlay()\nplayer.eventPipeline.delegate(to: self, with: { (target, event) in\n    //  event handling\n})\nplayer.play(url)\n...\n```\n\n⚠️⚠️⚠️ Known issue\n---\nThis project can only run in `DEBUG` mode，cause optimization mode will pause the decode loop.\n\nif install with CocoaPods, add this block of code in your podfile\n```ruby\npost_install do |installer|\n installer.pods_project.targets.each do |target|\n        target.build_configurations.each do |config|\n            swiftPods = ['APlay']\n            if swiftPods.include?(target.name)\n                config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] =  '-Onone'\n            end\n        end\n    end\nend\n```\n\nDocs\n---\nRun `./generate_docs.sh`\n\nFeatures\n---\n- [x] CPU-friendly design to avoid excessive peaks\n\n- [x] Support seek on WAVE, and FLAC(with seektable)\n\n- [x] Support all type of audio format(MP3, WAVE, FLAC, etc...) that iOS already support(Not fully tested)\n\n- [x] Digest(Tested), Basic(not tested) proxy support\n\n- [x] Multiple protocols supported: ShoutCast, standard HTTP, local files\n\n- [x] Prepared for tough network conditions: restart on failures，restart on not full content streamed when end of stream\n\n- [x] Metadata support: ShoutCast metadata, ID3V1, ID3v1.1, ID3v2.2, ID3v2.3, ID3v2.4, FLAC metadata\n\n- [x] Local disk storing: user can add folders for local resource loading\n\n- [x] Playback can start immediately without needing to wait for buffering\n\n- [x] Support cached the stream contents to a file\n\n- [x] Custom logging module and logging into file supported\n\n- [x] Open protocols to support customizing. `AudioDecoderCompatible`, `ConfigurationCompatible`, `LoggerCompatible`...\n\nInstallation\n---\n[Carthage](https://github.com/Carthage/Carthage) `github \"CodeEagle/APlay\"`\n\n[CocoaPods](https://cocoapods.org/) `pod 'APlay'`\n\nTodo\n---\n- [ ] Airplay2 support(Maybe not)\n- [ ] AudioEffectUint support\n\nSponsor \n---\n[![Powered by DartNode](https://dartnode.com/branding/DN-Open-Source-sm.png)](https://dartnode.com \"Powered by DartNode - Free VPS for Open Source\")\n\nLicense\n---\n[License](LICENSE)\n\nContact\n---\n[Github](https://github.com/CodeEagle), [Twitter](https://twitter.com/_SelfStudio)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeeagle%2Faplay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeeagle%2Faplay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeeagle%2Faplay/lists"}