audio-streaming

How to play even background mode using MPMoviePlayerController

穿精又带淫゛_ 提交于 2019-12-24 16:12:41
问题 Audio Live Streaming Service using IIS7 is prepared. Audio Live streaming server setting is very complex, but have succeeded. I obtained a URL for streaming like this(@"http://xxx.xxx.xx.xx/liveStream.isml/manifest(format=m3u8-aapl).m3u8"). My using code is unexpectedly simple. self.theURL = [NSURL URLWithString:@"http://xxx.xxx.xx.xx/liveStream.isml/manifest(format=m3u8-aapl).m3u8"]; if(moviePlayer == nil) { moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:theURL]; }

Use only audio track from video stream

为君一笑 提交于 2019-12-24 12:50:25
问题 I am using Wowza Engine where I have some video streams, live and on-demand files. I use HLS and RTMP streaming. The issue is that for some clients I would like to offer only the audio track, not the audio+video. I think I can do that using the transcoding module of Wowza, but I would like to know if there is a simpler way of doing this. I do not know maybe using a special smil, or prefix. 回答1: You can specify an audio track by using the audio index. To play back the first track, add

AVCaptureSession with BluetoothHFP device

随声附和 提交于 2019-12-24 11:13:03
问题 I need to stream the voice data to server, so I can't use AVAudioRecorder. Here is my approach. set it Allow Bluetooth and activate it NSError* e; AVAudioSession* audioSession = [AVAudioSession sharedInstance]; [audioSession setCategory:AVAudioSessionCategoryRecord withOptions:AVAudioSessionCategoryOptionAllowBluetooth error:nil]; [audioSession setActive:YES withOptions:0 error:&e]; I did setup the notification for AVAudioSessionRouteChangeNotification so I see the input source changed to

Android — streaming a shoutcast audio file

为君一笑 提交于 2019-12-24 09:45:52
问题 i am trying to stream an shoutcast audio file in my device android 2.2...i heard that this shoutcast will not work in android 2.2. so, i tried with android emulator 2.3 then also song not playing why could you tell me where i am going wrong...and the code is below... public class AudioDemo extends Activity { final String song_uris="http://stream.radiosai.net:8004/"; private MediaPlayer mediaplayer; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout

AudioQueue fails to start

女生的网名这么多〃 提交于 2019-12-24 08:48:06
问题 I create an AudioQueue in the following steps. Create a new output with AudioQueueNewOutput Add a property listener for the kAudioQueueProperty_IsRunning property Allocate my buffers with AudioQueueAllocateBuffer Call AudioQueuePrime Call AudioQueueStart The problem is, when i call AudioQueuePrime it outputs following error on the console AudioConverterNew returned -50 Prime failed (-50); will stop (11025/0 frames) What's wrong here? PS: I got this error on iOS (Device & Simulator) The output

Play PCM stream in Android

泄露秘密 提交于 2019-12-24 06:04:10
问题 I am getting PCM streams through ethernet port. So far, I am able to capture the packets and takeout the pcm_payload data from them. How to play this raw PCM data in android? The PCM data is 16-bit 2 channel, 44.1kHZ rate stream. I am both new to android application programming and audio programming. Sorry if this is a trivial question. 回答1: You can use AudioTrack to play PCM data! Maybe like this: int bufsize = AudioTrack.getMinBufferSize(44100, AudioFormat.CHANNEL_OUT_STEREO, AudioFormat

Streaming HTTP audio feed on Alexa

≯℡__Kan透↙ 提交于 2019-12-24 03:22:08
问题 Accordingly to https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/custom-audioplayer-interface-reference: The audio file must be hosted at an Internet-accessible HTTPS endpoint. HTTPS is required, and the domain hosting the files must present a valid, trusted SSL certificate. I want to build a skill to stream a feed from http (NOT https) endpoint. How do I do this? There are other skills (like TuneIn radio) which seem to stream http feeds. Unless they proxy them, which

Free audio players for website streaming

两盒软妹~` 提交于 2019-12-24 02:09:29
问题 Are there any free audio players that I can use in my website? Are they customizable? I've heard of Soundmanager 2. It's a flash based player with a javascript front-end. Are there any other free players like that? 回答1: If you'd like something that doesn't require loading a Flash plugin, try jPlayer. It uses HTML 5 when the browser supports it. 回答2: I like this one. Simple to use and nice looking. 来源: https://stackoverflow.com/questions/2790252/free-audio-players-for-website-streaming

SoundCloud + Soundmanager2 + EQData

大城市里の小女人 提交于 2019-12-24 01:01:48
问题 This is essentially the same as this question but with more detail: Soundcloud + SoundManager bug: reading a stream's eqData So I have a visualizer using canvas / svg / what have you which looks GREAT when it is receiving EQData from SoundCloud / SoundManager2 but there are some very strange events that are happening which cause it to not be as cool. 1.) When you use SMSound.pause() or any variation (SoundManager.togglePause, etc) and then resume all EQData / WaveformData stops coming to

How to setup codec, samplerate and bitrate on an audio blob in javascript?

拥有回忆 提交于 2019-12-23 08:57:21
问题 I just created a blob: const audioBlob = new Blob(audioChunks, { 'type' : 'audio/wav; codecs=0' }); and sent it to the backend in base64 format. I saved this into a file named "test.wav" using the following code: await writeFile('./temp/test.wav', Buffer.from(filename.replace('data:audio/wav; codecs=0;base64,', ''), 'base64'), 'base64'); On the output "test.wav" file, I get the codec as opus, bitrate=N/A and sample rate=48000. I want to change these values to codec=wav, bitrate=256kbps and