Questions tagged [stream]
DO NOT USE FOR THE JAVA STREAM API INTRODUCED IN JAVA 8 (use [java-stream] for those questions!) A stream is a series of data elements which can be accessed in a serial fashion.
15,157
questions
0
votes
0
answers
4
views
Proccesing audio from twilio media stream using Python
I am streaming call audio to my local server using Twilio Streams.
For reference I used the offical guide from the Twilio Team.
Decoding the audio and saving it to a .wav file works, although when ...
0
votes
0
answers
8
views
Can we change size of buffer in node.js
I was learning about backend in node.js when I come across the topic of buffers and streams. I practically implemented a stream, but the thing I noticed while reading 700 lines of text was that it was ...
0
votes
0
answers
11
views
Parse websocket stream into Stream<T> flutter
Not able to parse Stream into Stream<T>. Want to show data in list using provider and websocket and want to convert stream into Stream<ActiveSymbolResponse>
this is my provider
class ...
0
votes
0
answers
8
views
Can not updated vbar_stack with stream data with python bokeh
There is my source code,
x-axial is time and others are data for vbar_stack.
In update function, ds is updated by stream().
But vbar_stack didn't update.
Please help..
i = 2
ds = ColumnDataSource({&...
0
votes
0
answers
19
views
MongoDb's change stream in NestJs
I look around on how mongoDb change stream can be implemented in NestJs but so far, i can't find any solution or documentation.
There is a similar way by using Hooks middleware, but this can't be ...
0
votes
0
answers
8
views
How is the internal buffer of a readable node stream working?
Is there any explanation of the following behavior that seems to contrast with the official Node streams documentation?
In Node REPL (v16.17.0):
> s=stream.Readable.from('a')
> s._readableState....
0
votes
0
answers
33
views
Spring Boot Console app with Spring WebClient to read REST API?
In my Spring Boot app with Java 17, I need to read data from 3 different APIs concurrently and display all the data after merging. There is no relation between these data and I do not have to wait the ...
0
votes
0
answers
15
views
node-archiver pipe into PassThrough Stream: without "data" event handler, stream never finishes
I have the following nodejs code, where I try to append readable streams to node-archiver and pipe the archiver to a nodejs PassThrough stream:
const archive = Archiver('zip', {
zlib: { level:...
0
votes
0
answers
11
views
Serve http response from initial node after processing stream message from another node
I have several nodes, all requests first go to a Redis stream, after message is processed by randomly selected node, then response should be sent from the node that received the request.
Is there easy ...
-1
votes
0
answers
37
views
Convert mp3 to aac stream for facebook video with ffmpeg
I want to start a live video in a Facebook page and I can do this using ffmpeg. The input is, as a video stream, a static image, suppose image.jpg and as audio a streaming content that currently is in ...
0
votes
0
answers
18
views
Typescript nodejs Stream on event: Argument of type 'void' is not assignable to parameter of type '(...args: any[]) => void'
This is killing me:
const streamPassThrough = new Stream.PassThrough();
// 4. define the s3 Upload stream; and connect streamPassThrough to it;
const s3Upload = new Upload({
client: ...
-1
votes
0
answers
15
views
Why does `.read()` return `null` from stream reading from nonempty file?
I am trying to get the data from a node readable stream into a buffer.
I have the local file f with content Some content!!!.
However, converting to Readable Stream and reading with .read()returns null ...
0
votes
3
answers
51
views
How to add each element in of two list using stream api in java
partnersName =["partner1","partner2"];
totalDates = ["2022-05-18","2022-05-19"];
both the lists store string only
here is the following code which gives ...
0
votes
1
answer
51
views
Do streams that are not instantiated into an object close themselves on return?
I am learning Java and have a question that I can't seem to find the answer to anywhere. Or maybe I just lack the proper keywords to google it, as I'm relatively new to Java.
I'm trying to create a ...
-1
votes
0
answers
20
views
ffmpeg stream with static image and list audio
I used this command to livestream:
ffmpeg -f concat -safe 0 -i list.txt -loop 1 -i bg.png -c:v libx264 -preset ultrafast -c:a copy -f flv rtmp://a.rtmp.youtube.com/live2/****
with list.txt:
file 1....