MediaFile.setResource

void setResource(string resourcePath = null)

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.

Parameters

resourcePathpath to resource to play