Gtk.MediaFile.set_resource

### Method

# Gtk MediaFileset_resource

#### Declaration [src]

    void
    gtk_media_file_set_resource (
      GtkMediaFile* self,
      const char* resource_path
    )

#### Description [src]

Sets the `GtkMediaFile to play the given resource.

This is a utility function that converts the given `resource_path` to a `GFile` and calls `gtk_media_file_set_file()`.

#### Parameters

`resource_path` | `const char*`
| Path to resource to play.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
| The string is a NUL terminated UTF-8 string.