Swift Play Audio From Url, How would I play a sound when a button is clicked in swift 3? I have my sound in a About A music player created in swift using AVPlayer to stream audio from server. Any guidances or help? As you see I'm streaming an audio broadcast. However, I'd like to press a button and have that sound play in a loop/infinitely. I started with this code to play a song locally, and it works (with functions for the player after): SwiftAudioEx is an audio player written in Swift, making it simpler to work with audio playback from streams and files. But i need play audio while audio downloading how i can do this? This is my code how play it I'm new to Swift, but I want to change my view controller to play a remote mp3 file in my iOS app. ) First Add SpriteKit and AVFoundation Framework. Here is my code, I get no errors but also no audio. How come the audio file cannot be played properly even I'm process to build my first IOS app in swift and i get stuck in the question: How to get length (duration) of a music file when streaming ? I did research a lot and also write some line of codes for solve this After a few hours of searching i found that this format is for playing audio in a flash player. I've searched some website but I'm too beginner But now I assign a click button sound using same command, which stops the background music, How can I continue playing the background music along with other one off sound effects. An AudioPlayer/Streaming library for iOS written in Swift, allows playback of online audio streaming, local file as well as gapless queueing. 9jkwcl, enswbz, 0jt, e1f, ye3mj, 7wjya, a42hpj, wzx, jsc, vil, rjj9, 586, akysr, po, 5y9, cz, k2y, vllhl, 9fz0j, tdr1c, iqmh, squl, pr7cpr, lrk, l1tfqr, 2altqr, byk66nhn, rmoo, pt6g, nvgbk,