audio-streaming

Streaming Audio from A URL in Android using MediaPlayer?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-27 12:08:58
问题 I've been trying to stream mp3's over http using Android's built in MediaPlayer class. The documentation would suggest to me that this should be as easy as : MediaPlayer mp = new MediaPlayer(); mp.setDataSource(URL_OF_FILE); mp.prepare(); mp.start(); However I am getting the following repeatedly. I have tried different URLs as well. Please don't tell me that streaming doesn't work on mp3's. E/PlayerDriver( 31): Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported

Pulling Track Info From an Audio Stream Using PHP

女生的网名这么多〃 提交于 2019-12-27 10:00:46
问题 Is it possible to pull track info from an audio stream using PHP? I've done some digging and the closest function I can find is stream_get_transports but my host doesn't support http transports via fsockopen() so I'll have to do some more tinkering to see what else that function returns. Currently, I'm trying to pull artist and track metadata from an AOL stream. 回答1: This is a SHOUTcast stream, and yes it is possible. It has absolutely nothing to do with ID3 tags. I wrote a script awhile ago

Pulling Track Info From an Audio Stream Using PHP

馋奶兔 提交于 2019-12-27 10:00:12
问题 Is it possible to pull track info from an audio stream using PHP? I've done some digging and the closest function I can find is stream_get_transports but my host doesn't support http transports via fsockopen() so I'll have to do some more tinkering to see what else that function returns. Currently, I'm trying to pull artist and track metadata from an AOL stream. 回答1: This is a SHOUTcast stream, and yes it is possible. It has absolutely nothing to do with ID3 tags. I wrote a script awhile ago

How to save sound with Web Audio API and Tone.js in a browser

穿精又带淫゛_ 提交于 2019-12-25 17:59:05
问题 Using the above mentioned library whats the easiest way to save tunes on a server ? I trying to think of a way to record the sounds in the browser and be able to save them to the server. And would I be able to store them in a Database ? what is the best way to do so , can anyone explain a bit ? 回答1: The easiest method is to use the MediaRecorder API to capture a MediaStream, to which your audio graph is connected to. This will get you a recording, typically in Opus (unless you want Vorbis,

How to use portAudio to read audio data output from sound card?

旧街凉风 提交于 2019-12-25 14:48:15
问题 I was wondering if it is possible to read data that is going from the sound card to the speakers with the PortAudio API. After looking through the documentation, I found an example (http://portaudio.com/docs/v19-doxydocs/paex__record_8c_source.html) where they read data from the microphone. However, I would like to be able to capture the audio that is coming from the sound card. Is there a way to do this in PortAudio and if not please point me in the right direction. Also, it is important

Blackberry radio app streaming audio

痴心易碎 提交于 2019-12-25 08:51:28
问题 I am building a radio app in BB 5. I have a .pls url where I find my urls to play the stream. My issue is. I need to build a Buffer to play this stream because the file which is downloaded is too big to play it inmediatly, but I don't know how to build this buffer. Any idea? I think that it must be something similar to that Streaming media BB But I want something more simple, only play and stop the radio streaming. 回答1: Ok I've solved this, using the package of streaming from the code

Android MediaCodec API - Music Plays on Emulator, Not on the Device

那年仲夏 提交于 2019-12-25 08:12:03
问题 The code given below works fine on the emulator, but not the device. I found the following lines that looked suspicious to me: V/MediaExtractor(5030): Autodetected media content as 'audio/mpeg' with confidence 0.20 V/ChromiumHTTPDataSource(5030): mContentSize is undefined or network might be disconnected V/ChromiumHTTPDataSource(5030): mContentSize is undefined or network might be disconnected D/com.example.mediacodectest(5030): MIME TYPE: audio/mpeg I am looking for hints/suggestions. Thanks

Can't get audio file to play

戏子无情 提交于 2019-12-25 03:34:05
问题 I can't seem to figure out why my audio file won't play. The audio file is a wav file and is just. The error i am getting is javax.sound.sampled.UnsupportedAudioFileException . public class MusicProgress { public static void main(String[] args) { // TODO Auto-generated method stub JFrame b = new JFrame(); FileDialog fd = new FileDialog(b, "Pick a file: ", FileDialog.LOAD); fd.setVisible(true); final File file = new File(fd.getDirectory() + fd.getFile()); //URI directory = new URI (fd

getting fatal exception when trying to play decoded audio using audioTrack

送分小仙女□ 提交于 2019-12-25 03:16:39
问题 I'm using MediaCodec for video decoding and playing it on surface texture. It all works fine, but when I am decoding audio, it's getting decoded successfully, but when I am trying to play it using AudioTrack I am getting following error: com.**** I/OMXClient: Using client-side OMX mux. com.**** I/OMXClient: Using client-side OMX mux. com.**** E/ACodec: [OMX.Intel.VideoDecoder.AVC] storeMetaDataInBuffers failed w/ err -2147483648 com.**** A/libc: Fatal signal 11 (SIGSEGV) at 0x0029004c (code=1

getting fatal exception when trying to play decoded audio using audioTrack

眉间皱痕 提交于 2019-12-25 03:16:16
问题 I'm using MediaCodec for video decoding and playing it on surface texture. It all works fine, but when I am decoding audio, it's getting decoded successfully, but when I am trying to play it using AudioTrack I am getting following error: com.**** I/OMXClient: Using client-side OMX mux. com.**** I/OMXClient: Using client-side OMX mux. com.**** E/ACodec: [OMX.Intel.VideoDecoder.AVC] storeMetaDataInBuffers failed w/ err -2147483648 com.**** A/libc: Fatal signal 11 (SIGSEGV) at 0x0029004c (code=1