set_resource


Description:

public void set_resource (string? resource_path)

Sets the `GtkMediaFile to play the given resource.

This is a utility function that converts the given resource_path to a `GFile` and calls [method@Gtk.MediaFile.set_file].

Parameters:

this

a `GtkMediaFile`

resource_path

path to resource to play