Questions tagged [buffering]

Buffering is a process of temporarily storing data while it is being moved from one place to another.

Buffering is a process of temporarily storing data while it is being moved from one place to another. A buffer often adjusts timing by implementing a queue (or FIFO) algorithm in memory, simultaneously writing data into the queue at one rate and reading it at another rate.

Use this tag for programming questions related to data buffer and the process of buffering.

Source: Wikipedia

493 questions
0
votes
0 answers

How to set stdout unbuffered on a per-machine basis?

I ran into a case in which my machine buffered stdout, but a coworker's machine did NOT buffer stdout for the exact same code. We're running nearly identical environments (we're both using the same virtual machine image in VMware Player, but he on a…
Matt
  • 775
  • 7
  • 24
0
votes
1 answer

WPF / C#: async load/buffer next movie clip

I need a main 'home' video (full screen HD) running in a loop, and then at some point (say the user presses a key) another short movie plays (one of twelve selected at random), and then back to the home movie loop. I'm using the mediaElement in WPF…
Matthew
  • 453
  • 1
  • 7
  • 15
0
votes
0 answers

strange stdin buffering with Unicode in python

I want Python to read utf-8 from stdin and write utf-8 to stdout, with optional redirection. This is what my code looks like: #!/usr/bin/python # echo.py import sys import codecs so = codecs.getwriter('utf8')(sys.stdout) si =…
0
votes
4 answers

Networking Method

Hey guys, Iv'e noticed that when I send a complete packet (collect it's data in a buffer and send) it is much slower than sending the packet byte by byte. Will it be okay if I make an online game using this method?
user187418
0
votes
1 answer

Output Buffering Contents After a Script

At the beginning of my script, I have a function that gets JSON content from a remote server that takes a while. It takes between 1-2 seconds to fetch the data, but that is a ridiculous freeze time for my website's viewers. What I want to do is to…
0
votes
1 answer

How PHP scripts bufferred (?) on server?

I have PHP application, that runs about 2-3 minutes before it return something to browser (some database processing stuff). I want to know, if I can change php file with it while script is running. I assume, there is a buffer in Apache/PHP. I have…
Kamil
  • 13,363
  • 24
  • 88
  • 183
0
votes
1 answer

How to read exact number of bytes from a stream (tcp) socket?

In winsock, both the sync recv and the async WSARecv complete as soon as there is data available in a stream socket, regardless of the size specified (which is only the upper limit). This means that in order to read a fixed number of bytes from the…
sold
  • 2,041
  • 5
  • 25
  • 32
0
votes
2 answers

Flushing HTML to Browser using PHP

I am trying to implement the trick listed on this page http://developer.yahoo.com/performance/rules.html#flush "Flush the Buffer Early". Everytime I try to run this thing I am not getting the desired output. I have written the following…
Manu
  • 901
  • 1
  • 8
  • 28
0
votes
1 answer

Video streaming stops buffering playing in iPad

I am playing a video from URL in my MPMovie player but after some time buffering stops and do not start again. Code to play movie is given below NSURL *fileURL = [NSURL URLWithString:strURL]; …
Mashhadi
  • 3,004
  • 3
  • 46
  • 80
0
votes
1 answer

Is it possible to play a video from a file still being written using MPMoviePlayerViewController?

I am trying to start playing a video file while still being downloaded(i.e. I am trying to emulate buffering.) My approach: I maintain a file handle to the video file created. In – connection:didReceiveData: implementation I append the data…
zambrey
  • 1,452
  • 13
  • 21
0
votes
1 answer

Buffering Youtube video in Firefox (api)

I noticed that in Firefox with html5 embeddedd videos if I embed a youtube video the video buffers like crazy even if the video is paused. In Chrome the buffering is managed though. Is this a known bug? Is there a possibility to manage the buffering…
Benedikt
  • 608
  • 6
  • 27
0
votes
1 answer

Remove empty table rows output buffering?

I have a large static table which is generated by a cgi script from a tmp file to a php file. If it outputs Can I remove these with output buffering.
0
votes
3 answers

buffering when passing input from standard input to a function

I asked about this yesterday, but I'm still having problems. I wrote a program in C which has a function that processes files which can be passed to it by a file pointer. void process_my_file(FILE *fptr, ...) { /* do work */ } I asked how to…
Larry
0
votes
1 answer

Long buffering in mp4 videos

We've built our video site to stream videos that cater to all browsers - OGV for Firefox/Chrome, Flash for IE and MP4 for Safari. Specifically, our video tag is:
0
votes
1 answer

How to create a music player for iPhone/iPad which can buffer and play songs from server?

I want to develop a music player for iPhone/iPad with the functionality: -Buffer and Play MP3 songs from server(no downloading). -Play. -Pause. -Stop. -Adjust Volume(Slider). -Song Status/ Playing time for Song(slider). -Repeat Song. -Shuffle…
Atul
  • 111
  • 3
  • 12