New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Song takes really long starting with bluetooth device e.g. Air Pods Pro on network #38
Comments
@md186 You can modify it locally to test whether it works. Need to modify the file path to
to
You can run it again after editing. Is it effective, hope your feedback |
Would be nice if you can implement it, im not able to test it my coding experience is not good enough i dont know how to get it working, never did it before..
Maybe better define the rate with 1.0? I don't know if its better in your code or no. Also please do me a favor and check this: Try to set automaticallyWaitsToMinimizeStalling property of AVPlayer to NO in order to start playback immediately.
But if sufficient content is not available for playing then player might stall. Apple documentation: https://developer.apple.com/reference/avfoundation/avplayer/1643482-automaticallywaitstominimizestal. The above code also was something I found on stackoverflow which might be useful for performance on ios network songs. I'm excited if you put all the stuff in the next plugin version! |
@md186 fine. You can try the latest version |
It works and its amazingly fast! This task is done now and buffering without wlan now too. It solved both of the problems with the changes from above. GREAT!! 👍 |
thanks for your feedback☕️☕️
|
When app is connected to car via Bluetooth or I have my AirPods Pro connected to my iPhone, it takes double of time until song is starting.
It has a similar behaviour to #29
Like I describe there, the following code should make everything on iOS start faster on network:
documentation:
https://developer.apple.com/documentation/avfoundation/avplayer/1643480-playimmediatelyatrate?language=objc
The text was updated successfully, but these errors were encountered: