MediaFile.setResource

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].

class MediaFile
void
setResource
()

Parameters

resourcePath string

path to resource to play

Meta