audio-streaming

How to download audio/video files from internet and store in iPhone app?

二次信任 提交于 2019-11-26 10:18:15
问题 I am developing an iPhone app for music. I want to give some options to the user so they can listen the song/music by streaming or they can download the music in the app . I know how to stream the audio files in the app programmatically. But, i don\'t know how to download the audio files in the app and play the audio after download. And also user can pause the download while it is in download. Is it possible to do ? Can anyone please guide me and please share any sample code or tutorial for

Why does it take so long for Android's MediaPlayer to prepare some live streams for playback?

吃可爱长大的小学妹 提交于 2019-11-26 07:59:25
问题 I am finding big differences in the time it takes the Android MediaPlayer to prepare for live stream playback with different streams. The hard data I added logging between prepareAsync() and the onPrepared(MediaPlayer mp) callback and tested several streams a few times each. The times for each stream were very consistent (+/- one second), and here are the results: MPR news stream: 27 seconds (http://newsstream1.publicradio.org:80/) MPR classical music stream: 15 seconds (http:/

Android device as a receiver for A2DP profile

谁说我不能喝 提交于 2019-11-26 07:37:39
问题 Basically, what I am trying to do right now is use an android device as an A2DP receiver and when pairing established, android plays sound that is received from a transmitter. I am worrying that if I use STP profile, it may cause delay of streaming. So, I want to use A2DP but is this possible to use an android device as a receiver of A2DP? and how to do it? 回答1: Since Android L the BlueDriod stack does support A2DP sink, but it is disabled by default. To enable it do the following: /* Enable

How to record webcam and audio using webRTC and a server-based Peer connection

房东的猫 提交于 2019-11-26 04:59:05
问题 I would like to record the users webcam and audio and save it to a file on the server. These files would then be able to be served up to other users. I have no problems with playback, however I\'m having problems getting the content to record. My understanding is that the getUserMedia .record() function has not yet been written - only a proposal has been made for it so far. I would like to create a peer connection on my server using the PeerConnectionAPI. I understand this is a bit hacky, but

Stream Live Android Audio to Server

戏子无情 提交于 2019-11-26 04:29:42
问题 I\'m currently trying to stream live microphone audio from an Android device to a Java program. I started off with sending the live audio between two android devices to confirm my method was correct. The audio could be heard perfectly with barely any delay on the receiving device. Next I send the same audio stream to a small Java program and I verified that the data was being sent here correctly too. Now what I want to do is encode this data and somehow play it back on the server running the

Android 2.2 MediaPlayer is working fine with one SHOUTcast URL but not with the other one

ε祈祈猫儿з 提交于 2019-11-26 03:34:40
问题 Please see the code i am using for streaming shoutcast stream, it works with one URL but NOT with the other one. This one works: Uri myUri = Uri.parse(\"http://fr3.ah.fm:9000/\"); But not with this one: Uri myUri = Uri.parse(\"http://someOtherURL\"); SimpleMusicStream.java import android.app.Activity; import android.media.AudioManager; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget

Android MediaPlayer works fine in Custom audio Streaming application up to Android 2.1 but not in higher versions

笑着哭i 提交于 2019-11-26 00:55:31
问题 EDIT: Android 2.2 MediaPlayer is working fine with one SHOUTcast URL but not with the other one I need to play audio files from external URLs(shoutcast stream). Currently the audio files are downloaded incrementally & are played as soon as we get enough audio in phone local temporary storage. i am using the StreamingMediaPlayer class. Check this piece of code: private MediaPlayer createMediaPlayer(File mediaFile) throws IOException { MediaPlayer mPlayer = new MediaPlayer(); //example of

Android MediaPlayer works fine in Custom audio Streaming application up to Android 2.1 but not in higher versions

流过昼夜 提交于 2019-11-25 19:42:12
EDIT: Android 2.2 MediaPlayer is working fine with one SHOUTcast URL but not with the other one I need to play audio files from external URLs(shoutcast stream). Currently the audio files are downloaded incrementally & are played as soon as we get enough audio in phone local temporary storage. i am using the StreamingMediaPlayer class . Check this piece of code: private MediaPlayer createMediaPlayer(File mediaFile) throws IOException { MediaPlayer mPlayer = new MediaPlayer(); //example of mediaFile =/data/data/package/cache/playingMedia0.dat FileInputStream fis = new FileInputStream(mediaFile);