audio-streaming

Content-Range working in Safari but not in Chrome

a 夏天 提交于 2019-12-06 16:56:35
I'm streaming audio files from a Node.js Express server with Content-Range headers plus no caching headers. This works ok in latest Safari instead, but it does not in Chrome. While when streaming the full audio file with HTTP 200 , my headers were { 'Content-Length': 4724126, 'Content-Type': 'audio/mpeg', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'POST, GET, OPTIONS', 'Access-Control-Allow-Headers': 'POST, GET, OPTIONS', Expires: 0, Pragma: 'no-cache', 'Cache-Control': 'no-cache, no-store, must-revalidate' } and it works on both Chrome and Safari <audio> tag. When

Multiple AudioTrack Instances (and Threads) in a Single Service?

送分小仙女□ 提交于 2019-12-06 16:50:28
I have a streaming music application that can play two streams simultaneously by using two separate services utilizing one AudioTrack each, on their own threads. Now I'd like to able to play more than two streams, and I guess having more services is not the way to go. Is it possible to have a single service having dynamically instantiated AudioTracks? How can I implement separate threads for each of the AudioTrack instances? How will I access the dynamically instantiated AudioTracks? 来源: https://stackoverflow.com/questions/27493521/multiple-audiotrack-instances-and-threads-in-a-single-service

How to provide restricted access MP3 streaming over the internet

百般思念 提交于 2019-12-06 16:00:15
I need to stream several "channels" (by channels I'm thinking of radio channels, so playlists might be more appropriate) of queued MP3 files to around 200 clients over the internet from a Windows 2008 R2 / IIS 7 web server. Encryption of the stream is not a requirement. I need some way to ensure each client can only stream one channel at a time. I was thinking of restricting by IP address, and would welcome any suggestions on how I might go about this, or if there may be a better way. For my clients I assume I'd need a player on the client end that could facilitate "logging in". Ideally I

Azure Media Service Audio Only

≡放荡痞女 提交于 2019-12-06 15:56:28
We have begun using the Azure Media Service (AMS) to encode, encrypt and host our videos (MP4) which is working well. However, in addition to videos we have MP3 audio files. Since we are already using the AMS it made sense to put them here as well however we are experiencing problems. When we try to encode from the portal we receive an error asking us to try again later, when we encode from the Azure Media Services Explorer (AMSE) it completes the encoding but will not play from the Azure Media Player, it displays an error: What is the best way of encoding and playing audio using AMS, we even

Record radio / audio stream (asx/asf) with a webserver

杀马特。学长 韩版系。学妹 提交于 2019-12-06 15:16:07
问题 Is there a way I get PHP (or anything that runs on a linux webserver) to record a (radiostation's)audiostream? Yes, I have sought a lot, but I can't seem to find anything like it, though I'm convinced I can't be the first one - right? My goal is to record an audiostream and then chopping parts of it when listeners are on, so they can listen to themselves afterwards (and family, friends and so on). So recording, uploading, chopping and publishing would be nicer as I have some volunteers

UDP packet-size/latency tradeoff when streaming audio?

混江龙づ霸主 提交于 2019-12-06 14:31:20
问题 I'm building an application that streams live audio over udp online and I want to minimize latency. The audio is sent as its generated, meaning it takes one second to generate one second of audio, it cannot be sent faster than the audio-rate. My initial idea was to send small packets of compressed audio so the client can begin playback as soon as possible. Using the Opus codec I should be able to send packets as small as 5ms of audio (2.5ms is the minimum), this would mean the user could

How to add a song progress bar in SoundManager2?

断了今生、忘了曾经 提交于 2019-12-06 14:08:59
I am trying to add a progress bar to show what position a song is at during playback. It only needs to be a simple solution. I found some code online, which uses SoundManager2 http://www.schillmania.com/projects/soundmanager2/ features to adjust a div width to match the song's position but it doesn't seem to be working, not sure where I am going wrong, any help would be appreciated. I have used all the required Soundmanager2 files and playback of the songs work. It's only the progress bar which is the issue. here is the javascript: soundManager.setup({ url: '/swf', preferFlash: false,

audio streaming server

。_饼干妹妹 提交于 2019-12-06 11:25:17
I'm a php developer, trying to develop a website to stream on-demand music to the users. After a lot of googling I'm confused about which kind of server or tools should I use? I've seen some like WOWZA or SHOUTCAST, but I don't know which one is the best for my needs. I want to provide high quality audio files. So maybe I should use 320kbps mp3 format or something else but with the same quality. I don't need live streaming. I just need on-demand streaming of the music files and the ability for the user to create his/her own playlists. The user shouldn't be able to download the music files.

Online audio streaming websites are not working properly on WebView

為{幸葍}努か 提交于 2019-12-06 08:27:29
问题 I try to play online audio songs from online audio streaming websites like gaana.com or saavn.com etc. on WebView . My Code: WebView webView = findViewById(R.id.webView); webView.setWebViewClient(new WebViewClient()); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); webView.loadUrl("https://gaana.com/"); Websites are loaded in webview correctly but the problem is that when I click on play(for any song) nothing will happen. i.e, no any response show in

Pipe ffmpeg stream to sox rec

╄→гoц情女王★ 提交于 2019-12-06 07:43:41
I am reading an audio stream via ffpmeg like this: ffmpeg -i http://icecast.radiovox.org:8000/live.ogg -f mp3 filename and want to pipe it to a sox command: rec filename rate 32k silence 1 0.1 3% 1 3.0 3%. Ultimately, what I am trying to achieve, is to record the audio from a live Icecast stream of a talk show. I only want recordings though of the individual's speaking. Everytime there is silence, I want to stop the recording and start a new one once they start speaking again. What difficulty did you meet? I tried myself and the only problem I noticed in using the example given in the sox man