[][src]Function libmpv_sys::mpv_initialize

pub unsafe extern "C" fn mpv_initialize(ctx: *mut mpv_handle) -> c_int

Initialize an uninitialized mpv instance. If the mpv instance is already running, an error is returned.

This function needs to be called to make full use of the client API if the client API handle was created with mpv_create().

Only the following options are required to be set before mpv_initialize(): - options which are only read at initialization time: - config - config-dir - input-conf - load-scripts - script - player-operation-mode - input-app-events (OSX) - all encoding mode options

@return error code