GtuberStream: Gtuber Reference Manual

## GtuberStream GtuberStream — represents a direct media stream |

## Functions

const gchar * | gtuber_stream_get_uri ()
guint | gtuber_stream_get_itag ()
GtuberStreamMimeType | gtuber_stream_get_mime_type ()
GtuberCodecFlags | gtuber_stream_get_codec_flags ()
gchar * | gtuber_stream_obtain_codecs_string ()
const gchar * | gtuber_stream_get_video_codec ()
const gchar * | gtuber_stream_get_audio_codec ()
guint | gtuber_stream_get_width ()
guint | gtuber_stream_get_height ()
guint | gtuber_stream_get_fps ()
guint | gtuber_stream_get_bitrate ()

## Properties

char * | audio-codec | Read
guint | bitrate | Read
GtuberCodecFlags | codec-flags | Read
guint | fps | Read
guint | height | Read
guint | itag | Read
GtuberStreamMimeType | mime-type | Read
char * | uri | Read
char * | video-codec | Read
guint | width | Read

## Types and Values

| GtuberStream

## Object Hierarchy

        GObject
        ╰── GtuberStream
            ╰── GtuberAdaptiveStream

## Description

## Functions

### gtuber_stream_get_uri ()

    const gchar *
    gtuber_stream_get_uri (GtuberStream *stream);

#### Parameters

stream | a GtuberStream |

#### Returns

URI of the stream.

[transfer none]

### gtuber_stream_get_itag ()

    guint
    gtuber_stream_get_itag (GtuberStream *stream);

#### Parameters

stream | a GtuberStream |

#### Returns

itag of the stream or 0 when undetermined.

### gtuber_stream_get_mime_type ()

    GtuberStreamMimeType
    gtuber_stream_get_mime_type (GtuberStream *stream);

#### Parameters

stream | a GtuberStream |

#### Returns

a GtuberStreamMimeType representing MIME type of the stream.

### gtuber_stream_get_codec_flags ()

    GtuberCodecFlags
    gtuber_stream_get_codec_flags (GtuberStream *stream);

Get flags indicating which codecs were detected in stream.

#### Parameters

stream | a GtuberStream |

#### Returns

GtuberCodecFlags flags

### gtuber_stream_obtain_codecs_string ()

    gchar *
    gtuber_stream_obtain_codecs_string (GtuberStream *stream);

Obtains a single string with all codecs used to encode the stream. Multiple codecs will be separated by commas.

#### Parameters

stream | a GtuberStream |

#### Returns

codecs string or `NULL` when none.

[transfer full]

### gtuber_stream_get_video_codec ()

    const gchar *
    gtuber_stream_get_video_codec (GtuberStream *stream);

#### Parameters

stream | a GtuberStream |

#### Returns

the stream video codec.

[transfer none]

### gtuber_stream_get_audio_codec ()

    const gchar *
    gtuber_stream_get_audio_codec (GtuberStream *stream);

#### Parameters

stream | a GtuberStream |

#### Returns

the stream audio codec.

[transfer none]

### gtuber_stream_get_width ()

    guint
    gtuber_stream_get_width (GtuberStream *stream);

#### Parameters

stream | a GtuberStream |

#### Returns

width of video or 0 when undetermined.

### gtuber_stream_get_height ()

    guint
    gtuber_stream_get_height (GtuberStream *stream);

#### Parameters

stream | a GtuberStream |

#### Returns

height of video or 0 when undetermined.

### gtuber_stream_get_fps ()

    guint
    gtuber_stream_get_fps (GtuberStream *stream);

#### Parameters

stream | a GtuberStream |

#### Returns

framerate of video or 0 when undetermined.

### gtuber_stream_get_bitrate ()

    guint
    gtuber_stream_get_bitrate (GtuberStream *stream);

#### Parameters

stream | a GtuberStream |

#### Returns

bitrate of stream or 0 when undetermined.

## Types and Values

### GtuberStream

    typedef struct _GtuberStream GtuberStream;

Contains values of peculiar media stream.

## Property Details

### The `“audio-codec”` property

      “audio-codec”              char *

The stream audio codec.

Owner: GtuberStream

Flags: Read

Default value: NULL

### The `“bitrate”` property

      “bitrate”                  guint

Stream bitrate (bandwidth).

Owner: GtuberStream

Flags: Read

Default value: 0

### The `“codec-flags”` property

      “codec-flags”              GtuberCodecFlags

Flags indicating which codecs were detected in stream.

Owner: GtuberStream

Flags: Read

### The `“fps”` property

      “fps”                      guint

Stream video framerate.

Owner: GtuberStream

Flags: Read

Default value: 0

### The `“height”` property

      “height”                   guint

Stream video height.

Owner: GtuberStream

Flags: Read

Default value: 0

### The `“itag”` property

      “itag”                     guint

Stream identifier.

Owner: GtuberStream

Flags: Read

Default value: 0

### The `“mime-type”` property

      “mime-type”                GtuberStreamMimeType

The MIME type of the stream.

Owner: GtuberStream

Flags: Read

Default value: GTUBER_STREAM_MIME_TYPE_UNKNOWN

### The `“uri”` property

      “uri”                      char *

The URI leading to stream.

Owner: GtuberStream

Flags: Read

Default value: NULL

### The `“video-codec”` property

      “video-codec”              char *

The stream video codec.

Owner: GtuberStream

Flags: Read

Default value: NULL

### The `“width”` property

      “width”                    guint

Stream video width.

Owner: GtuberStream

Flags: Read

Default value: 0