{"id":13612724,"url":"https://github.com/CodeEagle/APlay","last_synced_at":"2025-04-13T12:32:31.566Z","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":"2020-07-23T08:24:07.000Z","size":5250,"stargazers_count":63,"open_issues_count":5,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-08T23:47:44.985Z","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-03-22T15:02:14.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,"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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248714695,"owners_count":21149943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-08-01T20:00:33.550Z","updated_at":"2025-04-13T12:32:30.546Z","avatar_url":"https://github.com/CodeEagle.png","language":"Swift","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"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\nLicense\n---\n[License](LICENSE)\n\nContact\n---\n[Github](https://github.com/CodeEagle), [Twitter](https://twitter.com/_SelfStudio)\n","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"}