---
name: "GStreamer::Query::Duration"
section: "3pm"
platform: "linux"
package: "libgstreamer-perl"
version: "0.19-1+b1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/GStreamer::Query::Duration"
---

# GStreamer::Query::Duration(3pm)

Dynamically register new query types. Provide functions to create queries, and to set and parse values in them.

## NAME

GStreamer::Query::Duration -  Dynamically register new query types. Provide functions to create queries, and to set and parse values in them.

## METHODS

### GstQuery = GStreamer::Query::Duration-\>new ($format)

- •

  `$format` (GStreamer::Format)

### list = $query-\>duration ($format=0, $duration=0)

- •

  `$format` (GStreamer::Format)

- •

  `$duration` (64 bit integer)

## ENUMS AND FLAGS

### enum GStreamer::Format

- •

  'undefined' / 'GST\_FORMAT\_UNDEFINED'

- •

  'default' / 'GST\_FORMAT\_DEFAULT'

- •

  'bytes' / 'GST\_FORMAT\_BYTES'

- •

  'time' / 'GST\_FORMAT\_TIME'

- •

  'buffers' / 'GST\_FORMAT\_BUFFERS'

- •

  'percent' / 'GST\_FORMAT\_PERCENT'

## SEE ALSO

GStreamer

## COPYRIGHT

Copyright (C) 2005-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See GStreamer for a full notice.
