setResource

open fun setResource(resourcePath: String? = null)

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

resourcePath

path to resource to play