Comments (7)
Nice!
Yeah, I have thought about the same thing and it is definitely something that should be added
from swiftaudio.
I also come from react-native-track-player and would love to see gapless queues implemented.
from swiftaudio.
yes the library is so clean, a small suggestion is to use the same mentioned custom AVPlayerItem in SwiftAudio.
from swiftaudio.
@dcvz Hey, I am trying to add caching to SwiftAudio using https://github.com/neekeetab/CachingPlayerItem
but the func add and load take AudioItem add(items: [AudioItem], playWhenReady: Bool = true)
and in the caching library AVPlayer take CachingPlayerItem so how to integrate it?
Thank in Advance
from swiftaudio.
@dcvz We could also add a preloading functionality.
Ideas:
delannoyk/AudioPlayer#36 (comment)
Thanks @dcvz for react-native-track-player. I came looking if the underlying SwiftAudio provides a preloading functionality.
I am not an iOS developer but will try to implement this feature in a fork. I'll let you know if I come up with something.
This is a must-have to built apps with awesome feeds (Instagram e.g.) with almost 0 load time.
from swiftaudio.
@dcvz I have attempted a preload functionality in SwiftAudio and tested with react-native-track-player.
The playing becomes as fast as a downloaded asset. I have been testing this for a few days.
nishanBende@41e5564
P.S. I am not sure about the implications it can bring, I took the implementation idea from this comment.
delannoyk/AudioPlayer#36 (comment)
from swiftaudio.
@dcvz I am managing the queue in JavaScript because the underneath QueueAudioPlayer is not preloading the next track, so, I have exported the preload function to RNTrackPlayer with preload/cancelPreload implementation in this commit.
nishanBende@41e5564
I feel we should split it into 2 separate features.
- Caching while Playing. Similar to https://github.com/neekeetab/CachingPlayerItem.
- Preloading any asset programmatically.
Can we also let AVQueuePlayer handle the queue for us?
There's some discussion that it internally preloads the next track but I cannot confirm.
https://developer.apple.com/documentation/avfoundation/avqueueplayer
from swiftaudio.
Related Issues (20)
- Skipforward and skipforward issue HOT 5
- Set preferredPeakBitRate
- Catch Expired Auth Token to modify headers HOT 1
- Player state not updated after triggering the play()
- Cannot run Example app HOT 1
- How to know that the song is ended HOT 1
- AVQueuePlayer for gapless audio
- Regarding stop button functionality HOT 15
- QueuedAudioPlayer.reset() is not accessible due to 'internal' protection level
- Not working with local file in Queue HOT 1
- Load the audio player
- MPRemoteCommandCenter
- handleAudioPlayerStateChange call multiple time HOT 1
- how to clearQueue HOT 2
- .wav file not play
- Repository Future HOT 2
- @available enum issue on XCode 13 HOT 2
- iOS 15 can not play music in the background HOT 6
- Song will not play if it contains any character between "èéêëēėęàáâäæãåāîïíīįìôöòóœøōõûüùúū"
- Xcode 12.5 - Using 'class' keyword for protocol inheritance is deprecated; use 'AnyObject' instead
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftaudio.