streaming

Regulate Android AudioTrack playback speed

南楼画角 提交于 2019-12-25 01:34:16
问题 I'm currently trying to playback audio using AudioTrack. Audio is received over the network and application continuously read data and add to an internal buffer. A separate thread is consuming data and using AudioTrack to playback. Problems: Audio playback fluctuate (feels like audio drop at a regular interval) continuously making it unclear. Playback speed is too high or too low making them unrealistic. In order to avoid the network latency and other factors I made the application to wait

iOS streaming video in webview or MPMoviePlayerViewController

余生颓废 提交于 2019-12-25 00:34:59
问题 I have to stream video (.mov) from server. I use a UIWebView and it works well but the delegate method - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error; is always call instead - (void)webViewDidFinishLoad:(UIWebView *)webView; I print the error: Error Domain=WebKitErrorDomain Code=204 "Plug-in handled load" (...) Afterwards I decided to use MPMoviePlayerViewController instead. It looks more slow! It's a good practice use UIWebView for streaming videos? How can I fix

QAudioInput from array

狂风中的少年 提交于 2019-12-24 20:19:23
问题 I have a device with microphones that connects to my computer through Ethernet and it cannot be seen by Qt as an audio device, so, I get packets from it and put them to QByteArray. I need to play these packets from stream. Somewhere in the Internet I found a solution to almost the same problem, but there internal microphone was used. #include <QApplication> #include <iostream> #include <cassert> #include <QCoreApplication> #include <QAudioInput> #include <QAudioOutput> #include <QBuffer> int

How to extract part of a string in json format from Kafka in Flink 1.2

允我心安 提交于 2019-12-24 19:23:56
问题 My goal is to use kafka to read in a string in json format, do a filter to the string, select part of the message and sink the message out (still in json string format). For testing purpose, my input string message looks like: {"a":1,"b":2,"c":"3"} And my code of implementation is: def main(args: Array[String]): Unit = { val inputProperties = new Properties() inputProperties.setProperty("bootstrap.servers", "localhost:9092") inputProperties.setProperty("group.id", "myTest2") val inputTopic =

Bokeh+Flask: Multiple AjaxDataSource calls

混江龙づ霸主 提交于 2019-12-24 19:23:48
问题 A Bokeh object is a figure that shows 3 indipendent lines. Data are streamed. An AjaxDataSource call updates the data every 5 seconds reading the last ones from a database. This is the stripped down class: class Graph: def __init__(self): data_source = AjaxDataSource(data=dict(date_time=[], value_1=[], value_2=[], value_3=[]), data_url="/data", polling_interval=5000) line1 = self.figure.line(x="date_time", y="value_1", source=data_source) line2 = self.figure.line(x="date_time", y="value_2",

Playing streamed mp3 data repeatedly with jlayer

可紊 提交于 2019-12-24 16:42:46
问题 I am working on an mp3 streaming application in Java. The user at the server end plays a music file at the server end (although the server is just currently sending the file) and the player at the client end reads the stream and plays the music. I'm using JLayer to play the music file. The server sends the files in chunks and also receives the file in chunks and plays it. I'm using jgroups library for group membership management as I plan to scale the application to be used by many clients.

What's the Best Way to Open a TCP Stream to Server?

杀马特。学长 韩版系。学妹 提交于 2019-12-24 15:21:46
问题 Rather a hard to nail down question, but basically I'm wondering what the best way (and not "what's your opinion" but "which will most adequately meet the requirement i shall set forth) is to open a stream connection from a client side webpage to a server such that either can send data to the other without polling? I'm thinking the term for this is HTTP binding vs. HTTP Polling. The context here is a chat application - i'd like a streamed connection so that the browser isn't constantly

Silverlight: Expose audio with specific start and stop times

白昼怎懂夜的黑 提交于 2019-12-24 15:05:48
问题 From an audio-file I want to be able to expose audio on a webpage, but between specific start and stop times . Say I have a audio-file that is 45:30 , for example, and I want to expose it for streaming and download between 7:25 and 8:30 , but also between 6:20 and 9:27 . What do I need in term of special services , Silverlight-controls and maybe some sample-code for this. Bonus-question : Is there already an online-service for this? 回答1: Seb, I assume that when you say "expose" that you mean

Use only audio track from video stream

为君一笑 提交于 2019-12-24 12:50:25
问题 I am using Wowza Engine where I have some video streams, live and on-demand files. I use HLS and RTMP streaming. The issue is that for some clients I would like to offer only the audio track, not the audio+video. I think I can do that using the transcoding module of Wowza, but I would like to know if there is a simpler way of doing this. I do not know maybe using a special smil, or prefix. 回答1: You can specify an audio track by using the audio index. To play back the first track, add

WCF streaming mode is really slow

北城以北 提交于 2019-12-24 11:36:07
问题 I want to know why WCF in streaming mode is really slow compared to the buffered mode. Basically, I'm reading a lot of data from a server (database access) then transferring that huge data through WCF to other clients. I was doing some tests and benchmarks by comparing the 2 different transfer modes. I created 2 endpoints. The first one is using transferMode="Buffered" and the other one is using transferMode="StreamedResponse" . By loading the same 1 millions rows from a SQL server (Dummy