newForResource

fun newForResource(resourcePath: String): MediaFile

Creates a new new media file for the given resource.

This is a utility function that converts the given @resource to a GFile and calls ctor@Gtk.MediaFile.new_for_file.

Return

a new GtkMediaFile playing @resource_path

Parameters

resourcePath

resource path to open