audio-streaming

Playing mp3 Shoutcast streams with HTML5 audio in Firefox?

一世执手 提交于 2019-12-31 01:47:45
问题 I'm trying to play mp3 shoutcast stream radio stations with HTML5 audio. I don't think it will be relevant but here is the code anyway: var player = new Audio(); player.autobuffer = true; player.src = "http://173.192.48.71:9048/;"; player.volume = 1; player.play(); Shoutcast detects that request comes from browser and returns radio status page, so I put ";" at the end of stream which forces server to return audio stream instead of status page. This works fine in Chrome and Safari, but not in

Why does it take longer for some internet audio streams to start playing on a Samsung S3?

两盒软妹~` 提交于 2019-12-31 01:06:39
问题 We are experiencing almost the exact opposite of what is mentioned here: Why does it take so long for Android's MediaPlayer to prepare some live streams for playback? I've tested multiple streams but two in particular 1 - http://usa8-vn.mixstream.net:8138 - SampleRate: 32000Hz and Bitrate: 96 kb/s 2 - http://source01.platform02.true.nl:800 - SampleRate: 44100Hz and Bitrate: 128 kb/s The lower bitrate stream starts playing instantly (as soon as the media player is prepared ), while the higher

POST Streaming Audio over HTTP/2 in Android

血红的双手。 提交于 2019-12-31 00:55:07
问题 Some background: I am trying to develop a voice-related feature on the android app where a user can search using voice and the server sends intermediate results while user is speaking (which in turn updates the UI) and the final result when the query is complete. Since the server accepts only HTTP/2 single socket connection and Android HTTPUrlConnection doesn't support HTTP/2 yet, I am using Retrofit2. I have looked at this, this and this but each example has fixed length data or the size can

Streaming to iphone via m3u8

孤人 提交于 2019-12-30 07:03:48
问题 I've been reading around about streaming on the iphone via m3u8 but I'm not sure if I'm missing something. It is well documented that MPMoviePlayerController will only play full-screen in OS 3.1, so iPhone users are stuck watching the video (listening to audio, in my case) and can't navigate in the application. I haven't found a way to stream via m3u8 like you can, for example, using Matt Gallagher's code and an mp3... any ideas on how to include a m3u8 player that will play embedded? thanks!

MP3: a way to get position in milliseconds for any given byte position?

情到浓时终转凉″ 提交于 2019-12-30 06:56:09
问题 I've created a servlet which returns a stream (from an MP3 file) beginning at any given byte position requested by a client. This allows the client to start playback instantly at any given byte position without doing any local seek. Now, I've got a slider which visualises the progress. I'm using the the current byte position to update the slider. However, I'd also like to show the current position in seconds. This requires that the server can "convert" the current position in bytes to the

MP3: a way to get position in milliseconds for any given byte position?

空扰寡人 提交于 2019-12-30 06:56:03
问题 I've created a servlet which returns a stream (from an MP3 file) beginning at any given byte position requested by a client. This allows the client to start playback instantly at any given byte position without doing any local seek. Now, I've got a slider which visualises the progress. I'm using the the current byte position to update the slider. However, I'd also like to show the current position in seconds. This requires that the server can "convert" the current position in bytes to the

Streaming audio in Node.js with Content-Range

天涯浪子 提交于 2019-12-29 04:59:11
问题 I'm using a streaming server in Node.js to stream MP3 files. While the whole file streaming it is ok, I cannot use the Content-Range header to stream the file seeking to a start position and util a end position. I calculate the start and end bytes from seconds using ffprobe like ffprobe -i /audio/12380187.mp3 -show_frames -show_entries frame=pkt_pos -of default=noprint_wrappers=1:nokey=1 -hide_banner -loglevel panic -read_intervals 20%+#1 That will give me the exact bytes from 10 seconds in

Playing remote audio files in Python? [closed]

不羁岁月 提交于 2019-12-28 13:36:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm looking for a solution to easily play remote .mp3 files. I have looked at "pyglet" module which works on local files, but it seems it can't handle remote files. I could temporary download the .mp3 file but that's not reccomended due to how large the .mp3 files could appear to be. I rather want it to be for

Live Audio Recording and Playing in Android and Thread & callback handling

社会主义新天地 提交于 2019-12-27 19:14:13
问题 I want to record the live audio and play it.As far as UI is concerned the app just has three buttons:one for start recording and streaming it, one for playing a pre recorded file and the last one for stopping the current task(recording / playing). For that purpose I have used AudioRecord and AudioTrack classes for recording and playing respectively. My Program looks like.... /** * @author amit * */ public class AudioRecorder extends Activity { private String LOG_TAG = null; /* variables which

Live Audio Recording and Playing in Android and Thread & callback handling

≡放荡痞女 提交于 2019-12-27 19:13:57
问题 I want to record the live audio and play it.As far as UI is concerned the app just has three buttons:one for start recording and streaming it, one for playing a pre recorded file and the last one for stopping the current task(recording / playing). For that purpose I have used AudioRecord and AudioTrack classes for recording and playing respectively. My Program looks like.... /** * @author amit * */ public class AudioRecorder extends Activity { private String LOG_TAG = null; /* variables which