codeeagle / aplay Goto Github PK
View Code? Open in Web Editor NEWA Better(Maybe) iOS Audio Stream、Cache、Play Framework
License: MIT License
A Better(Maybe) iOS Audio Stream、Cache、Play Framework
License: MIT License
It appears the APlay.State's available currently are: idle, playing, paused, error and unknown.
It would be great if we could get a "buffering" and/or "retrying to connect" state so as to allow the UI feedback to the user when loading is occurring / still being attempted.
Thanks for this amazing lib !
I am trying to load image from the in app document flac music,
but i get nothing from it, however i am not sure if i am using it correctly:
let a = APlay()
a.play("local_document_path/lullaby set.flac")
print(a.metadatas)
// output
[APlay.MetadataParser.Item.year("2009"), APlay.MetadataParser.Item.album("Music From Braid"), APlay.MetadataParser.Item.track("03"), APlay.MetadataParser.Item.title("Lullaby Set"), APlay.MetadataParser.Item.artist("Kammen & Swan"), APlay.MetadataParser.Item.genre("Folk, World, & Country/Stage & Screen/Soundtrack")]
or in this case i need to implement my own configuration with flac parser ?
CPU usage is very high in iOS14
Line 223 in 8407ff6
It happens a lot, when trying to seek to position.
eg. Seek to position (199.35248) while the duration is (233)
Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
BR.
hi is this library supports playing audio while the file not yet downloaded completely? I want to play audio file as soon as user taps on audio and the player screen starts - usually avplayer waits for audio file to download completely then starts playing is this fixed here?
Can you please share how to used this code?
It looks like you meant to delete this line since the memory is allocated above:
baseAddress = malloc(Int(count))?.assumingMemoryBound(to: Byte.self)
Also, you can just use p =UnsafePointer<UInt8>.allocate; p.initialize(repeating:count:)
if you want to initialize the memory with UInt8
.
Hello,
I want full metadata for FLAC file for that I have used this but when I get metadata response at that time only 3 parameters received in response not fully metadata received using this.
Only TITLE, YEARS AND TRACK received.
Can you please help me out for this?
let url = URL(string: "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4extra_mf_q")!
let player = APlay()
player.eventPipeline.delegate(to: self, with: { (target, event) in
// event handling
})
player.play(url)
Different url addresses, playing the same cache path
Music cannot be played after the project is packaged, so it can be played through direct debugging with the mobile phone
Let's say i want to play tracks in shuffle
mode with repeat once
for specific track, so if i set on random
mode, i can't repeat track.
It's there any solution to avoid this situation?
How to customize the cache path?
it's playing m4a, mp3 file but not opus and flac even though I have seen cases of opus and flac in this lib
Hi, we're really keen to use this library after having run into crash issues with another one we're using.
The big feature that's missing for us is pre-loading... We take users to a "track" screen (at which point we'd love to be able to start pre-loading the track ahead of the user actually pressing the "play" button).
Any chance this could be added / it would make a fantastic addition to what is already a great library.
I expect the list of urls will update when set loop mode to (random), if i tried to get current playing url by using playingIndex
at list
array it will returns the original one.
using pod 'APlay' causes "Unable to find a specification for `APlay' "
this fixes it
pod 'APlay', :git => 'https://github.com/CodeEagle/APlay.git'
https://rongcloud-file.cn.ronghub.com/application_octet-stream__RC-2019-03-20_1628_1553058559816?attname=2019.03.19-%E5%BE%AE%E8%84%89%E5%AE%98%E6%96%B9%E4%BD%93%E9%AA%8C%E7%BE%A4.m4a&e=2147483647&token=CddrKW5AbOMQaDRwc3ReDNvo3-sL_SO1fSUBKV3H:LBx576B-7bhU3b-MesGIlPfHQbw=
this url can't play, always print 🐛 [Debug] reading empty data back, try to reopen
Hi, sorry i'm bothering you with these issues 😅
when set loop mode to random
and call player.play(urls: [URL])
, it always play the first one in original array, then call next
and it will play shuffled tracks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.