Element.queryPosition

Queries an element (usually top-level pipeline or playbin element) for the stream position in nanoseconds. This will be a value between 0 and the stream duration (if the stream duration is known). This query will usually only work once the pipeline is prerolled (i.e. reached PAUSED or PLAYING state). The application will receive an ASYNC_DONE message on the pipeline bus when that is the case.

If one repeatedly calls this function one can also create a query and reuse it in Element.query.

  1. long queryPosition()
  2. bool queryPosition(GstFormat format, long cur)
    class Element
    bool
    queryPosition
    (,
    out long cur
    )

Parameters

format GstFormat

the GstFormat requested

cur long

a location in which to store the current position, or NULL.

Return Value

Type: bool

TRUE if the query could be performed.