audio-streaming

How to calculate the RTP Timestamp for each packet in an audio stream

蹲街弑〆低调 提交于 2019-12-21 18:28:36
问题 I read the RTP specification and I can't seem to get my head around the RTP Packet Timestamp. I tried to implement it in different ways in my server but I can't get the player to play it right. The "wrong" behaviour I'm having here is that ( I use VLC player to play the RTSP url to my server ) I find the logs of the player saying "buffer way too late" and "wrong PTS value" . Which means somehow that the audio frames arrives in a packets whose timestamp is not set right. I tried to implement

MediaElement and AAC stream support on Windows Phone 7

浪子不回头ぞ 提交于 2019-12-21 17:03:49
问题 According to this link the Windows Phone 7 supports the AAC encoded audio stream in the browser and via the MediaElement API as well. We have tested few the icecast streams (e.g. this) it on our devices (e.g. HTC HD7 T9292, with latest updated - ver 7.0 (7392) ), but it does not work either in web browser or via API. The mp3 live stream works fine. Any clues, why the AAC does not work, even the documentation says it should? BR SteN 回答1: Icecast is not pure AAC, in 7.0 you need to strip out

MediaElement and AAC stream support on Windows Phone 7

一曲冷凌霜 提交于 2019-12-21 17:02:53
问题 According to this link the Windows Phone 7 supports the AAC encoded audio stream in the browser and via the MediaElement API as well. We have tested few the icecast streams (e.g. this) it on our devices (e.g. HTC HD7 T9292, with latest updated - ver 7.0 (7392) ), but it does not work either in web browser or via API. The mp3 live stream works fine. Any clues, why the AAC does not work, even the documentation says it should? BR SteN 回答1: Icecast is not pure AAC, in 7.0 you need to strip out

Play mp3 file while downloading?

二次信任 提交于 2019-12-21 04:29:16
问题 I'd like my Android application to download an mp3 file from the internet and play it like a stream while downloading it. Is this even possible? How would I go about doing it? Essentially I want the user to be able to listen to the file instantly, but have it keep downloading to the SD Card even if he stops listening, so the whole mp3 file will end up on the SD Card either way. 回答1: I don't believe android provides the functionality you're asking for. But there's one workaround I know of that

Audio streaming using C++ tutorial and sample code [closed]

不问归期 提交于 2019-12-20 18:43:33
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I would like to learn basics of audio streaming. In particular, I would like to learn how to capture audio from a computer mic, and in real time stream it so that another user can listen to it live. I would like

Set audio endpoint devices application specific (programmatically)

天涯浪子 提交于 2019-12-20 17:32:10
问题 Link to the bug report on 'Feedback Hub' An audio endpoint device, from here on referred to as 'endpoint', is a physical or virtual audio output or input device. With the Windows 10 April Update 1803 the long overdue 'App volume and device preferences' have been introduced. These settings allow more control over audio stream management as it is now possible to set different endpoints for different applications, no matter whether that particular application comes with an endpoint selection or

What is the best method of synchronizing audio across iOS devices with WiFi?

ⅰ亾dé卋堺 提交于 2019-12-20 15:36:12
问题 Basically, for my team's app, we need to be able to synchronize music across multiple iOS devices. The first way we did this was by having the music on all the devices already and just sending a play command to all the devices. Some would get it later than others, so that method did not work. There was an idea mentioned to calculate the latency between all the devices and send the commands at the appropriate times based on the latency. The second way proposed would be to stream the music. If

MediaPlayer() audio stuttering(android)

混江龙づ霸主 提交于 2019-12-20 06:15:04
问题 I am using the MediaPlayer function to stream a live audio stream from a remote server, in my android app. But the audio is choppy and stuttering. The problem is not my internet as the feed plays perfectly when I play it on the computer. What could be the problem?*Note: the streams are live. This is the code I'm using: MediaPlayer mp = new MediaPlayer(); try{ mp.setDataSource("http://radiotool:80/feed 342.mp3");//hardcoded for testing purposes mp.prepare(); mp.start(); } catch(Exception e)

How to stream an .pls audio file in android 2.2

£可爱£侵袭症+ 提交于 2019-12-20 06:09:50
问题 I am trying to play an .pls file (available at http://stream.radiosai.net:8002/listen.pls) in android 2.2. But it isn't working. Playing MP3 works fine. 回答1: A pls or a playlist file is basically a text file with the path of each track in each entry. Kind of like an .ini file. Take a look at the WP entry. I don't think the inbuilt MediaPlayer supports these formats, so you'll have to download the file and parse the file and play the actual mp3's one by one. 回答2: Android doesn't support the

resample / upsample sound frames from 8Khz to 48Khz (Java/Android)

空扰寡人 提交于 2019-12-19 19:49:32
问题 The application that I am trying to develop for andriod, records frames at 48Khz (PCM 16bits & mono) and sends them to the network. Also, there is an incoming stream of audio at 8Khz. So, I receive 8Khz sampled frames and play them (my AudioTrack object is set to 8Khz), but when playing them, everything works but the latency is HUGE. It takes like around 3 seconds until you hear something. I think that if I upsample the received frames from 8Khz to 48Khz and play them, there won't be such a