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

# GStreamer::PadTemplate(3pm)

Describe the media type of a pad.

## NAME

GStreamer::PadTemplate -  Describe the media type of a pad.

## HIERARCHY

```
  Glib::Object
  +----GStreamer::Object
       +----GStreamer::PadTemplate
```

## METHODS

### padtemplate = GStreamer::PadTemplate-\>new ($name\_template, $direction, $presence, $caps)

- •

  `$name_template` (string)

- •

  `$direction` (GStreamer::PadDirection)

- •

  `$presence` (GStreamer::PadPresence)

- •

  `$caps` (GStreamer::Caps)

### caps = $templ-\>get\_caps

### paddirection = $templ-\>get\_direction

### string = $templ-\>get\_name\_template

### $templ-\>pad\_created ($pad)

- •

  `$pad` (GStreamer::Pad)

### padpresence = $templ-\>get\_presence

## PROPERTIES

- 'caps' (GStreamer::Caps : default undef : readable / writable / construct-only / private)

  The capabilities of the pad described by the pad template

- 'direction' (GStreamer::PadDirection : default "unknown" : readable / writable / construct-only / private)

  The direction of the pad described by the pad template

- 'name-template' (string : default undef : readable / writable / construct-only / private)

  The name template of the pad template

- 'presence' (GStreamer::PadPresence : default "always" : readable / writable / construct-only / private)

  When the pad described by the pad template will become available

## SIGNALS

- **pad-created** (GStreamer::PadTemplate, GStreamer::Pad)

  ## ENUMS AND FLAGS

### enum GStreamer::PadDirection

- •

  'unknown' / 'GST\_PAD\_UNKNOWN'

- •

  'src' / 'GST\_PAD\_SRC'

- •

  'sink' / 'GST\_PAD\_SINK'

### enum GStreamer::PadPresence

- •

  'always' / 'GST\_PAD\_ALWAYS'

- •

  'sometimes' / 'GST\_PAD\_SOMETIMES'

- •

  'request' / 'GST\_PAD\_REQUEST'

## SEE ALSO

GStreamer, Glib::Object, GStreamer::Object

## COPYRIGHT

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

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