audio-streaming

Is it possible to get a byte buffer directly from an audio asset in OpenSL ES (for Android)?

偶尔善良 提交于 2019-12-17 22:44:43
问题 I would like to get a byte buffer from an audio asset using the OpenSL ES FileDescriptor object, so I can enqueue it repeatedly to a SimpleBufferQueue, instead of using SL interfaces to play/stop/seek the file. There are three main reasons why I would like to manage the sample bytes directly: OpenSL uses an AudioTrack layer to play/stop/etc for Player Objects. This does not only introduce unwanted overhead, but it also has several bugs, and rapid starts/stops of the player cause lots of

How to play online radio in android

…衆ロ難τιáo~ 提交于 2019-12-17 22:36:44
问题 I am working on android application in which i have play online radio streaming. i have gone through the media player classes but i don't think is there any method to online streaming of radio. If any know about this please help me. Thank You. Vikram 回答1: Vikram, You should be able to achieve this using the MediaPlayer; however, depending on your format it may be difficult. For example, if you're trying to play an online radio stream that uses .pls, or .m3u, you would have to parse that file,

AVPlayer “freezes” the app at the start of buffering an audio stream

依然范特西╮ 提交于 2019-12-17 22:04:06
问题 I am using a subclass of AVQueuePlayer and when I add new AVPlayerItem with a streaming URL the app freezes for about a second or two. By freezing I mean that it doesn't respond to touches on the UI. Also, if I have a song playing already and then add another one to the queue, AVQueuePlayer automatically starts preloading the song while it is still streaming the first one. This makes the app not respond to touches on the UI for two seconds just like when adding the first song but the song is

Is it possible to play shoutcast internet radio streams with html5?

谁说我不能喝 提交于 2019-12-17 10:17:25
问题 Is it possible to play shoutcast (or some) internet radio streams with html5? So I have next code: <html> <body> <audio src="http://shoutcast.internet-radio.org.uk:10272/" /> </body> </html> I save it as HTML page and start my browser (Google chrome 4.0.249.78, safary or FF) But it does not play/work!( And it does not play with any other internet radio I tried to play!( Why!?! What am I doing wrong? btw: from HTML5 (including next generation additions still in development) 2.6.1 Protocol

Knowing when AVPlayer object is ready to play

假装没事ソ 提交于 2019-12-17 07:02:39
问题 I'm trying to play an MP3 file that is passed to an UIView from a previous UIView (stored in a NSURL *fileURL variable). I'm initializing an AVPlayer with: player = [AVPlayer playerWithURL:fileURL]; NSLog(@"Player created:%d",player.status); The NSLog prints Player created:0, which i figured means it is not ready to play yet. When i click the play UIButton , the code i run is: -(IBAction)playButtonClicked { NSLog(@"Clicked Play. MP3:%@",[fileURL absoluteString]); if(([player status] ==

Playing an rtp stream on android published with gstreamer

谁说胖子不能爱 提交于 2019-12-14 03:44:35
问题 I'm trying to get a rtp connection between a microphone on a desktop pc and an android smartphone. I grab the data using gstreamer. Because of other applications using this microphone at the same time in the same system, there is an tcpsink, in which the data is published. this is done with this call: gst-launch-0.10 -v alsasrc ! 'audio/x-raw-int, depth=16, width=16, \ endianness=1234, channels=1, rate=16000' ! \ tcpserversink host=localhost port=20000 then I create a second stream, which

Samsung SGH device with 4.4.4 version.failed to play audio using media player

南楼画角 提交于 2019-12-14 02:35:53
问题 This code is working fine in Samsung GT-I93001 while giving below error in Samsung SGH-M919 device.Both have same 4.4.4 version.Can someone point me in right direction.Is this device specific error?What is the reason? private final String AUDIO_URL = " http://techslides.com/demos/samples/sample.mp3 "; this is the issue only in one device. public void playAudio() { mediaPlayer = new MediaPlayer(); try { mediaPlayer.reset(); mediaPlayer.setDataSource(AUDIO_URL); mediaPlayer.setAudioStreamType

get info from streaming radio

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-14 02:26:41
问题 There is some standard way to ask a streaming radio service about the currently playing song? I currently do it in a different way for each station, e.g. (SomaFM): $wg=join("\n",`wget -q -O - https://somafm.com/secretagent/songhistory.html`); $wg=~/\(Now\).*>([^<]*)<\/a><\/td><td>([^<]*)/s; print "Secret Agent\n$1\n$2\n" or (Radio Svizzera Classica): $wg=join("\n",`wget -q -O - http://www.radioswissclassic.ch/en`); $wg=~/On Air.*?titletag">([^<]*).*?artist">([^<]*)/s; print "Radio Svizzera

forwarding and rewinding audio in xuggler

…衆ロ難τιáo~ 提交于 2019-12-13 17:21:55
问题 I have used xuggler to play audio files other than wav,au,aiff . Since xuggler performs audio decoding at low level it is very hard to write a method that both forwards and rewinds the audio being played . ( while decoding xuggler analyzes each data packet and then sends it to play) One way could be read bunch of packets at a time and then send the next packet to play.This way the effect of forwarding audio can be felt . But i don't know how to implement this method Moreover this is not the

Is it possible to decode an MMS+WMA2 stream using audio units on the iPhone?

拜拜、爱过 提交于 2019-12-13 16:04:09
问题 I am not sure whether audio units can work as codecs in a streaming audio scenario on the iPhone. I've read in various places that it can be done, but I haven't seen any examples or proper documentation for that. Instead, I find that most of the apps released have utilised ffmpeg and libmms. I appreciate any help you can give me. 回答1: Audio Units are very low-level and are useful if you want to do some heavy audio processing like realtime audio effects. As far as I know Audio Units doesn't