Questions tagged [seek]

Seeking is the act of moving around a file or file-like object.

Seeking is the act of moving around a file or file-like object.

ANSI C in section 2.3.12.10 specifies thatfseek has the argument structure:

int fseek(FILE *stream, long offset, int whence);

Where:

  • stream is the FILE object to seek (note that this does not have to physically be a file)
  • offset is how much, relative to the whence argument
  • whence is one of
    • SEEK_SET (offset is computed relative to the start of the file)
    • SEEK_CUR (offset is computed relative to the current position)
    • SEEK_END (offset is computed relative to the end of the file)

The majority of languages based upon C, and even many that aren't, have inherited something similar to fseek, but have probably put it somewhere else (ex. Python's file.seek). Check your language of choice's documentation for details.

537 questions
0
votes
0 answers

fgoalattain and why it's failing at function in matlab

I'm trying to invoke an fgoalattain function (computing a function minimum with a goal-attainment algorithm) in MATLAB. According to documentation, it should look like this: fun =@(x)[sum(cv>x)./25]; goal = 2.72; W = 0; xo = 17.12; o =…
karbalaee
  • 15
  • 5
0
votes
1 answer

How to determine if a file is seekable in Rust?

In order to be able to infer a schema of a csv file passed via /dev/stdin before converting the whole csv file to parquet, I have implemented a wrapper that buffers the input and implements Seek as required by the crate arrow2. This all works. This…
Cornelius Roemer
  • 3,772
  • 1
  • 24
  • 55
0
votes
1 answer

How to disable auto commit in kafka using mule 4

I am using a kafka publish connector, which is publishing the payload supplied through postman. Now, there is kafka listener which listens to the messages in that topic (which has only 1 partition). In the same kafka listener flow there is a seek…
soumya
  • 3
  • 2
0
votes
1 answer

Mapping Media Keys to Seek Forward and Back in Spotify

I'm running Ubuntu, and I like to use the media keys on my keyboard to control Spotify. For basic functions such as Play, Pause, Skip to Next, and Skip to Previous, this is easy, since I can use dbus [1]. However, I'd also like to be able to seek…
123MilitaryNerd
  • 103
  • 2
  • 7
0
votes
1 answer

Change the video and start it at the specific point

Good afternoon staff. I'm having a problem and I do not think the solution. I'm new using Flash. I have a video player and now we are implementing an HD button, the player always starts the video and 360P format and stream begins, if the user click…
0
votes
0 answers

NEW USTREAM EMBED PLAYER SEEK

I would like to make my player seek to 180 sec. I was able to do it with previous ustream-embedapi.min.js, but know it seems to have changed. And I can't find the new JS file. Here is my code : HEAD :