I am using AVPlayer for a network stream App. I need to develop a Sound level meter but most of the stuff around works with AVAudioPlayer.
Could someone please suggest how this can be achieved. Any help or lead would really be appreciated.
Related
I implementing webRTC with socket.io with for signaling, but earlier as soon as I opened the URL it used to give screeching sound, but then after some research, I added a muted attribute in the local video tag so it got fixed but now when I call someone then both the browser have a high pitched screeching sound(less on macOS chrome and more on android chrome), the code which I using as a basis is from this tutorial, I modified the code on line 148 to have audio: true and the HTML video tag for the local video to have muted, rest of the code is exactly same as the repo.
I have read a lot of articles on it but I am not able to find a solution to the screeching. Any help would be appreciated, Thanks.
If both the devices are near to each other, then it causes this sound. If you move the devices far away, then there won't be screeching sound...
This happens with other video chat applications like zoom and google-meet also...
As per my title, i am searching any code for playing sound when my device is in silent mode. I am searching from 3days but in ios 8 and later no code is working for silent mode.
Any help would be appreciated. Please pass me any suggestion and advice as soon as possible.
Thanks
You can use AVPlayer for play file sound and set:
let session = AVAudioSession.sharedInstance()
try! session.setCategory(AVAudioSessionCategoryPlayback)
try! session.setActive(true)
You can check my example code here:Sample
Is there any explanation about playing an audio from URL in windows phone in background using BackgroundAudioPlayer.? Why has it to be so complex to code this thing in Windows Phone. Can I get any code, any example, any explanation, any sample, any preview, anywhere which can give a proper explanation about this.? Please someone explain or help me with some good link to its explanation.
There is a sample for playing background audio from a URI at http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202978(v=vs.105).aspx
I found this very useful when I first did it.
I've got an IP camera - an Axis M1114 - that I'd like to use as a QTKit Capture device. Only DV cameras and the iSight usually appear on this capture menu. Is there any way of getting the IP camera to appear in this list and work with QTKit Capture?
This might not be possible, but if it is, I'd appreciate any pointers at ways of going about it. Thanks!
I asked Apple engineers the same question on WWDC 2010. The answer was "No, you cannot make your own QTCaptureDevice". To record video from AXIS IP cameras we have developed our own framework. You can get frames from the camera and write them to a Quicktime movie. You can do it with QTKit, but works better in 32bit Quicktime framework.
I did a radio player and I want to record sound from him, please help me give ideas ;) Thanks very much. Player is a MPMoviePlayerController.
You'll want to read this question, it tells you how to set MPMoviePlayerController to allow to be recorded from an AVAudioRecorder
iPhone 4.0 problem.. MPMoviePlayerViewController , AVAudio APIs