save_to_callback


Description:

[ Version ( since = "0.14" ) ]
public bool save_to_callback (MediaSaveFunc save_func) throws Error

Saves embedded stream of this by feeding the produced data to save_func.

Can be used when you want to store the media clip stream to something other than a file, such as an in-memory buffer or a socket. If error is set, false will be returned. Possible errors include those in the FileError domain and whatever the save function generates.

Parameters:

this

a Media

save_func

a function that is called to save each block of data that the save routine generates.

user_data

user data to pass to the save function.

Returns:

true, if the save successfully completed




2022 vala-language.org