for_resource


Description:

[ CCode ( cname = "gtk_media_file_new_for_resource" , type = "GtkMediaStream*" ) ]
public static MediaFile for_resource (string resource_path)

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

Parameters:

resource_path

resource path to open

Returns:

a new `GtkMediaFile` playing resource_path