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 [[email protected]_for_file].

Parameters:

resource_path

resource path to open

Returns:

a new `GtkMediaFile` playing resource_path




2022 vala-language.org