Comments (5)
+1
from streamingkit.
It will only work on devices not on the simulator. I'm tidying a whole lot of things which includes documentation. Let me see how much time I have this weekend.
Cheers.
from streamingkit.
Ok, thanks! For now i've managed to accomplish the easy way.
in application delegate, - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
call
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];
[[AVAudioSession sharedInstance] setActive: YES error: nil];
and set UIBackgroundModes key in app-info.plist file for audio like so:
http://d.pr/i/aRCh
(add the key to infoplist and name it as following)
what you get is music keeps playing after the application goes background. Nothing more. No controls in Control Center or so. However they are useful and i will try to implement it too. Interactions with OS from the app is always weird. Happened to perform it in Windows Phone - also bad experience. So that comprehensive documentation would be brilliant. Thanks!
from streamingkit.
@ilan1990 @tumtumtum BTW my project which makes use of your great AudioPlayer is here https://github.com/DZamataev/wos.ru_iOS
feel free to grab pieces of code because thats for it's open. I've just managed to handle all the AVAudioSession notifications which provided me to handle headphones unplugging and playback interruption by the other applications while in background. That's nice and is not deprecated as old AudioSession (C api) is.
from streamingkit.
Here you go: https://github.com/tumtumtum/StreamingKit/wiki/Background-Audio
from streamingkit.
Related Issues (20)
- StreamingKit stopped working in iOS. HOT 1
- After seeking, PlayerState becomes "buffering" when a song finished playing. HOT 2
- Can I play MPEG-2 Transport Stream?
- Deadlock with playerMutex
- Weird bleeps and no metadata available when playing a SHOUTcast stream HOT 17
- cannot play .m4a files from remote url HOT 1
- play after seek time
- AUGraphStart crashes on simulator below iOS 14 HOT 1
- the player can't start use the network HOT 3
- didFinishPlayingQueueItemId never called sometimes HOT 3
- Crash HOT 5
- Just a question… HighRes audio
- 可以播放本地文件的音频吗 HOT 1
- Can I sync the StreamingKit player with lock screen player?
- Dose it support pitch ? HOT 1
- DSD Playback? HOT 5
- Very beginning of audio cut off [UPDATED with examples] HOT 2
- Failed to play audio url
- https://github.com/tumtumtum/StreamingKit
- Player cache issue HOT 1
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 streamingkit.