audio-streaming

stream audio file from FTP server to Android App

百般思念 提交于 2019-12-11 07:21:38
问题 I have a FTP server setup that holds audio files in one of its directories. I would like to stream the audio from the server and play it on my Android phone instead of downloading it and playing it back that way. Also, is it possible to stream it to the MediaPlayer in Android for playback? 回答1: The FTP protocol does not support streaming audio or video. However, you could set up a streaming server on the same box that will do it for you. I've used VLC to stream video and it's pretty easy to

iPhone - Streaming audio with MPMoviePlayerViewController

人盡茶涼 提交于 2019-12-11 06:56:36
问题 I'm using MPMoviePlayerViewController to stream an audio from the URL "http://ios-audio.q-music.be/audio.m3u8". Its playing well. But when I click "Home" button, the app goes into background and stops streaming. When I start the app again, it starts streaming again. How can I make my app stream the audio using MPMoviePlayerController when the app goes to background. Or do I've to use other frameworks? 回答1: Well I use https://github.com/mattgallagher/AudioStreamer for streaming audio, It will

Broadcast audiostream to multiple devices

醉酒当歌 提交于 2019-12-11 04:57:09
问题 I am using android AudioStream to communicate between 2 android devices on wifi, both ways. Is there any way to broadcast an audio message on multiple devices, in the same time ? Is using multiple AudioStreams, one for each device, a possible way? I need to broadcast to 40 receivers. Will the message be delayed if I use multiple AudioStreams ? Do you know other solutions ? 回答1: I think the simplest way is to stream all devices using AudioGroup, you just need to create separate AudioStream for

Stream files stored on S3 to client without downloading it to flask server

非 Y 不嫁゛ 提交于 2019-12-11 04:07:44
问题 I have a server that communicates with S3 and I want to serve mp3 files to client's browser without downloading them to the server. The files required an authenticated user to access them, so they are all private. I'm also not sure if this sort of functionality specifically sits on the server code or can be done through some JS. My question is what is the right way to do this and how? My flask code works like this essentially: @app.route('/audio') def audio(): s3 = boto_session.client("s3",

How can I perform conversion from float -> double -> float when processing an audio buffer in c++

折月煮酒 提交于 2019-12-11 03:32:37
问题 I am currently developing an application where frames of audio samples are processed in the following callback. void Eav07AudioProcessor::processBlock (AudioSampleBuffer& buffer) { for (int channel = 0; channel < getNumInputChannels(); ++channel) { float* channelData = buffer.getSampleData (channel); // ..do something to the data... DoSomeHeavyweightDSPon(&channelData[0]); // in the header, DoSomeHeavyweightDSPon(double data[somebignumber]) } } The function that will sit in place of the gain

Audio focus client died with media player playing music in background

限于喜欢 提交于 2019-12-11 01:53:55
问题 I have created a music player which plays music through service, but after some time when i am outside the app music stops at random time, and i am getting the Log massage "Audio focus client died",i am not able to figure this out..why this is happening I am not attaching any code source because this is really a simple code that is not doing any complex task Just one service that playing music and one Audio focus helper which monitor the focus of audio.. 回答1: It may be because the Android OS

Over 10 seconds to load an audiostream with MediaPlayer on Samsung Galaxy S5 Android 5.0

被刻印的时光 ゝ 提交于 2019-12-11 01:52:52
问题 Since the update to Android 5.0 MediaPlayer does not work properly on the Samsung Galaxy S5. The loading time is over 10 seconds after you start an audio stream. Samplecode: MediaPlayer mPlayer new MediaPlayer(); String url = "http://149.13.0.80:80/radio1.ogg"; mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mPlayer.setDataSource(url); mPlayer.prepare(); mPlayer.start(); Same problem if I use MediaPlayer in a service/with prepareAsync()/other audiostreams. Nexus 4 with Android 5 has

Can I access the audio output of an Android device in order to modify it before the user hears it?

♀尐吖头ヾ 提交于 2019-12-11 01:04:40
问题 The scenario is that any app or the system creates an audio output which is then routed to the speaker of the Android device. Now, I would like to get access to this audio stream before it reaches the user (of course, with the permission of said user). Is there a way to do this? I checked out a previous topic on this as well but was wondering if things have changed in the past year with Android: How can I intercept the audio stream on an android device? Thanks in advance 回答1: No. You can not

android play sound with AudioTrack

倖福魔咒の 提交于 2019-12-10 18:06:22
问题 hello I have this code AudioTrack audioTrack; public void playAccordeon() { int minBufferSize = AudioTrack.getMinBufferSize(44100, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT); int bufferSize = 512; if (audioTrack == null) { audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, 44100, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, minBufferSize, AudioTrack.MODE_STREAM); audioTrack.play(); } int i = 0; byte[] s = new byte[bufferSize]; try {

Play audio RTMP stream on android

邮差的信 提交于 2019-12-10 13:13:06
问题 Has anyone had any success playing back an audio RTMP stream on Android using http://code.google.com/p/android-rtmp-client or know of any other non-flash solutions. The example that comes with the android rtmp source records the audio to a file but I'm looking for example code that plays back over speakers (or bluetooth). The easiest way to play an audio RTMP stream in Android has a partial discussion of what's needed. 来源: https://stackoverflow.com/questions/11494721/play-audio-rtmp-stream-on