Serene Audio Player is a fully functional beautiful audio player developed in SwiftUI. It can play live streams from URLs as well as local bundled files located in a specific folder directory.
You can also:
Serene Audio Player requires iOS 13+ as it is a SwiftUI package.
https://github.com/amrezo/SereneAudioPlayer.git
import SwiftUI
import SereneAudioPlayer
Track()
:var track: Track = Track(image: "nature", title: "Test Track", subtitle: "Subtitle goes here.", recording: "clarity", streamURL: "https://serene-music.s3.us-east-2.amazonaws.com/clarity.mp3", favourited: false)
Use SereneAudioFilePlayer()
for playing a local file, or SereneAudioStreamPlayer()
to play a streamed mp3 file online.
Be sure to include the Track object and a folder name for the directory to be created when a user downloads the track for offline usage. For example, using the previously created track
, add the following inside your content view body:
SereneAudioFilePlayer(track: track, folderName: "Music")
I am open to collaborators helping me develop this library. Please let me know of any issues that may arise or future developments you want to work on!
MIT
link |
Stars: 29 |
Last commit: 3 years ago |
Working pre-release of SereneAudioPlayer
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics