Swiftpack.co - fuziki/RemoteAudioPlayerNode as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by fuziki.
fuziki/RemoteAudioPlayerNode v0.0.1
AVAudioNode for playing Remote Audio Files.
⭐️ 3
🕓 1 year ago
iOS macOS
.package(url: "https://github.com/fuziki/RemoteAudioPlayerNode.git", from: "v0.0.1")

RemoteAudioPlayerNode

Platform Swift Xode

AVAudioNode for playing Remote Audio Files.

Required

  • Xcode 12

Installation

Swift Package Manager

https://github.com/fuziki/RemoteAudioPlayerNode

Usage

Play Remote Audio File

  • Make RemoteAudioPlayerNode instance.
  • Schedule remote audio file with url.
private let player = RemoteAudioPlayerNode()

// ~ Setup Audio Engine ~

player.scheduleRemoteFile(URL(string: "http://www.ne.jp/asahi/music/myuu/wave/fanfare.mp3")!, completionHandler: {
    print("finish play!")
})

Example

Example Server

  • Run example server
make run-example-server
  • Check example server
make curl-request EXPECT=3

Example Client App

  • Open RemoteAudioPlayerNode.xcworkspace
  • Run "ClientApp"

GitHub

link
Stars: 3
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Support SwiftPM
1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics