audio-streaming

MediaElement not playing audio from stream WP7

有些话、适合烂在心里 提交于 2020-01-10 04:24:05
问题 string url = re["response"][0]["url"].ToString(); MediaElement mm = new MediaElement(); mm.Source = new Uri(url,UriKind.RelativeOrAbsolute); mm.AutoPlay = true; mm.Volume = 0.7; mm.Play(); But no changes, the adudio not starts.How I can resolve this? 回答1: You need to add your MediaElement to your VisualTree before playing it, since you're creating it in the codebehind. For example, assuming you have LayoutRoot and that your url is correct, this should work. string url = re["response"][0]["url

Android AudioRecord with CHANNEL_IN_STEREO read raw Audio buffer resulted in mixed Left and Right audio

我们两清 提交于 2020-01-09 03:58:04
问题 I am trying to record an audio with CHANNEL_IN_STEREO configuration in which i am telling audio recorded to record audio in two channel. But after storing buffer array from recorder Audio left channel and right channel is resulting as mix. I cannot separate Audio Left channel and Right channel. Below is code written for same : import androidx.appcompat.app.AppCompatActivity; import android.media.AudioFormat; import android.media.AudioRecord; import android.media.MediaRecorder; import android

how to stream audio with tcpserversink using gstreamer

做~自己de王妃 提交于 2020-01-06 06:44:15
问题 I need live-stream audio over Internet. Quick search in internet and I decide using Gstreamer. I has streamed successfully using udpsink, but it only work on LAN. I test with tcpserversink but it not working: Server (IP: 113.160.166.87) gst-launch-1.0 filesrc location="G:/Project/Gstreamer/TestContent/Em-Gai-Mua-Huong-Tram.mp3" ! decodebin ! mulawenc ! tcpserversink port=7001 host=0.0.0.0 Client: gst-launch-1.0 tcpclientsrc host=113.160.166.87 port=7001 ! "audio/x-mulaw, channels=1, depth=16,

Live Audio Stream

依然范特西╮ 提交于 2020-01-06 04:32:29
问题 I am trying to setup live internet radio station using icecast server and want my stream to work in all modern browsers. My client only produces .ogg stream. All browsers doesn't play .ogg stream. For eg the .ogg stream I have setup works in chrome but doesn't work in IE. How should I make it run in all browsers? Is there a way I can convert .ogg stream to .mp3 or any other format on the fly Embed a audio player in the browser which can play .ogg stream. Or Any other advice would be helpful.

Python Way to check whether internet radio stream is avaliable/live

时光毁灭记忆、已成空白 提交于 2020-01-03 12:35:39
问题 I work on collecting internet radio stream files such as m3u with a link to stream inside (for example http://aska.ru-hoster.com:8053/autodj) . I didn`t find example on how it is possible to check if the link is avaliable/live . Any help is appreciated ! UPD: Maybe the main question should sound like: Could be a stream broken? If yes, will the link for that stream be still available or there will be simply 404 error in browser? If link still available to open even stream is dead, what are

Python Way to check whether internet radio stream is avaliable/live

强颜欢笑 提交于 2020-01-03 12:34:07
问题 I work on collecting internet radio stream files such as m3u with a link to stream inside (for example http://aska.ru-hoster.com:8053/autodj) . I didn`t find example on how it is possible to check if the link is avaliable/live . Any help is appreciated ! UPD: Maybe the main question should sound like: Could be a stream broken? If yes, will the link for that stream be still available or there will be simply 404 error in browser? If link still available to open even stream is dead, what are

Android : java.lang.RuntimeException: Unable to instantiate activity ComponentInfo: java.lang.NullPointerException

笑着哭i 提交于 2020-01-03 05:19:28
问题 I am trying to record audio, after that should play record immediately. Where I am going wrong. Please help me out. I am not getting. showing null pointer exception... Here is the code import android.app.Activity; import android.media.AudioFormat; import android.media.AudioManager; import android.media.AudioRecord; import android.media.AudioTrack; import android.media.MediaRecorder; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View

JAVA audio data streaming 0s

守給你的承諾、 提交于 2020-01-03 04:46:12
问题 I've been writing a short program to redirect audio from the line in/mic to to speakers. I'm just learning most of this, but my labors have yielded what seems to almost be a working model of what I want. However, when I print the TargetDataLine buffer, it prints all 0s as if it was connected and streaming, but can't hear my input. At this point, I've studied most of the sampled package content and what was available online in forums, tutorials, and other people's code, and due to the

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

匆匆过客 提交于 2020-01-03 02:51:07
问题 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? 来源:

Web Audio API for live streaming?

瘦欲@ 提交于 2019-12-31 08:03:10
问题 We need to streaming live audio (from a medical device) to web browsers with no more than 3-5s of end-to-end delay (assume 200mS or less network latency). Today we use a browser plugin (NPAPI) for decoding , filtering (high, low, band), and playback of the audio stream (delivered via Web Sockets). We want to replace the plugin. I was looking at various Web Audio API demos and the most of our required functionality (playback, gain control, filtering) appears to be available in Web Audio API.