Questions tagged [rewind]

32 questions
4
votes
2 answers

Why is rewind() not working as expected in this simple program?

Why is the below program not printing the first character of the newly created text file ("E") as expected? It's a simple program and I tried to look at the issue from all aspects but couldn't find the reason. The text file is being created on my D…
Meathead
  • 493
  • 2
  • 6
  • 15
3
votes
1 answer

Is there a simple way to rewind a html video element with javascript/jquery?

I have a video I need to show on a website. I can't allow user's to fast forward it, but they need to be able to rewind it. I've modified the example here: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_av_prop_controller to the…
CaptonMike
  • 31
  • 5
3
votes
0 answers

How does logcat log timestamp of a log message?

I'm trying to measure time ellapsed between two events in android using the timestamp in logcat's message, but unfortunately I noticed a strange thing:the timestamp for the second event is earlier than the first one. It looks like the system time…
skipper
  • 245
  • 5
  • 15
3
votes
1 answer

Does AVPlayer support live event rewind?

I'm using AVPlayer to play streamed content. AFAIK, there are 3 kinds of stream contents Progressive download: like VOD, this is a complete video. I can rewind & forward and get the duration of the video Live streaming: this is like watching a TV…
onmyway133
  • 45,645
  • 31
  • 257
  • 263
2
votes
3 answers

How does scanf know if it should scan a new value?

I'm studying about how scanf works. After scanned other type variable, char variable stores a white-space('\n') by getchar() or scanf("%c"). To prevent this, they should clear buffer. And I did it with rewind(stdin) though stdin is rewinded previous…
2
votes
0 answers

C# AxWindowsMediaPlayer fast forward

I'm just starting out with programming and in one of the courses it gets me to make a basic windows audio player. It had no functionality for skipping forward or backwards so I thought I'd add that to the basic program. I added the required…
2
votes
1 answer

What exactly does rewind() do?

I came across the rewind() function in C. I went through its description and example from here. The description mentioned the following about the function: The C library function void rewind(FILE *stream) sets the file position to the beginning of…
Simplicity
  • 47,404
  • 98
  • 256
  • 385
2
votes
1 answer

How to reuse (rewind) a redirected file in C

I input a text file into my C program by using the < I/O redirection in the terminal: MyProgram.exe < "data.txt" And then use getchar() and scanf() in my code to read from the redirected input. However, as this is a redirected file, I can't use a…
Cobes
  • 113
  • 4
  • 12
2
votes
1 answer

Audio html tag can't fast forward or rewind control

I'm using audio html tag to load the audio from my upload server, and I don't know what's the reason why my audio can't loop, fast forward or rewind control as usual. My audio: http://vmeet.world-telephone.com/m2/x.php?f=1682667950&x=1 The…
1
vote
1 answer

unexplained sporadic repeat execution of code - looking for hypothesis

Please bear with me, this question is not going to be perfectly formed and/or may not have enough data for you to pin-point a cause. I am simply looking for ideas to continue solving this problem. Read as a horror story. Problem Description I have…
1
vote
2 answers

Using rewind() returns an error, removing it allows code to run fine

Summary I am trying to create a program that converts the contents of a file into a string. I fseek to the end of the file then ftell to find the length in order to use the length for fread. Problem is, I have to fseek back to the start of the file…
BrianZhang
  • 153
  • 1
  • 8
1
vote
1 answer

Why does my code not rewind and keep the inputs in the buffer?

I made this code while I was practicing C language. But apparently this code does not rewind the input. So when I enter some data type different than int, it is upposed to go back to beginning of the while loop and start the question again. But…
Jongbo Im
  • 23
  • 4
1
vote
1 answer

chef-rewind: issue unwinding part of an upstream recipe (ceph::mon)

I'm trying to unwind a part of a chef recipe from an upstream cookbook (ceph) in my wrapper cookbook recipe. In brief summary, the ceph user pool create block is being executed too early in the deployment, before certain required services are up and…
mickm
  • 281
  • 2
  • 6
  • 20
1
vote
3 answers

Wordpress: multiple loops won't rewind

I have three loops on one page on my Wordpress website. Each loop does something different, but one of the loops (loop2) I would like to reuse at the bottom. So I try to rewind this loop right after the first time I used it, but that is not working…
leendertvb
  • 86
  • 8
0
votes
0 answers

Enable long press on Exoplayer FFWD and RWD on Android TV

It seems that, by default, Exoplayer FFWD and RWD buttons on Android TV do not accept long presses and require the user to press the D-PAD center button repeatedly to seek through the video. Is there a way to enable repeated presses effect by long…
YU No
  • 69
  • 1
  • 7
1
2 3