GtuberMediaInfo Development: Gtuber Reference Manual

## GtuberMediaInfo Development GtuberMediaInfo Development |

## Functions

void | gtuber_media_info_set_id ()
void | gtuber_media_info_set_title ()
void | gtuber_media_info_set_description ()
void | gtuber_media_info_set_duration ()
void | gtuber_media_info_insert_chapter ()
void | gtuber_media_info_add_stream ()
void | gtuber_media_info_add_adaptive_stream ()
void | gtuber_media_info_take_heartbeat ()

## Description

## Functions

### gtuber_media_info_set_id ()

    void
    gtuber_media_info_set_id (GtuberMediaInfo *info,
                              const gchar *id);

Sets the media ID.

This is mainly useful for plugin development.

#### Parameters

info | a GtuberMediaInfo |
id | media ID |

### gtuber_media_info_set_title ()

    void
    gtuber_media_info_set_title (GtuberMediaInfo *info,
                                 const gchar *title);

Sets the media title.

This is mainly useful for plugin development.

#### Parameters

info | a GtuberMediaInfo |
title | media title |

### gtuber_media_info_set_description ()

    void
    gtuber_media_info_set_description (GtuberMediaInfo *info,
                                       const gchar *description);

Sets the media description.

This is mainly useful for plugin development.

#### Parameters

info | a GtuberMediaInfo |
description | media description |

### gtuber_media_info_set_duration ()

    void
    gtuber_media_info_set_duration (GtuberMediaInfo *info,
                                    guint duration);

Sets the media duration in seconds.

This is mainly useful for plugin development.

#### Parameters

info | a GtuberMediaInfo |
duration | media duration |

### gtuber_media_info_insert_chapter ()

    void
    gtuber_media_info_insert_chapter (GtuberMediaInfo *info,
                                      guint64 start,
                                      const gchar *name);

Inserts a new chapter to chapters GHashTable. If a chapter with given time already exists, it will be replaced with the new one.

This is mainly useful for plugin development.

#### Parameters

info | a GtuberMediaInfo |
start | time in milliseconds when this chapter starts. |
name | name of the chapter. |

### gtuber_media_info_add_stream ()

    void
    gtuber_media_info_add_stream (GtuberMediaInfo *info,
                                  GtuberStream *stream);

Add another GtuberStream to the end of streams array. This adds the stream pointer to the GPtrArray. Do not free it afterwards.

This is mainly useful for plugin development.

#### Parameters

info | a GtuberMediaInfo |
stream | a GtuberStream |

### gtuber_media_info_add_adaptive_stream ()

    void
    gtuber_media_info_add_adaptive_stream (GtuberMediaInfo *info,
                                           GtuberAdaptiveStream *stream);

Add another GtuberAdaptiveStream to the end of adaptive streams array. This adds the adaptive stream pointer to the GPtrArray. Do not free it afterwards.

This is mainly useful for plugin development.

#### Parameters

info | a GtuberMediaInfo |
stream | a GtuberAdaptiveStream |

### gtuber_media_info_take_heartbeat ()

    void
    gtuber_media_info_take_heartbeat (GtuberMediaInfo *info,
                                      GtuberHeartbeat *heartbeat);

Transfers a GtuberHeartbeat into GtuberMediaInfo, do not free it afterwards.

This is mainly useful for plugin development.

#### Parameters

info | a GtuberMediaInfo |
heartbeat | a GtuberHeartbeat. | [transfer full]