MediaFile.setResource

Sets the `GtkMediaFile to play the given resource.

This is a utility function that converts the given resource_path to a gio.file.File and calls gtk.media_file.MediaFile.setFile.

class MediaFile
void
setResource
(
string resourcePath = null
)

Parameters

resourcePath string

path to resource to play