var searchIndex = {}; searchIndex["mpv"] = {"doc":"libmpv bindings for Rust","items":[[3,"MpvHandler","mpv","The main struct of the mpv-rs crate",null,null],[3,"MpvHandlerWithGl","","",null,null],[3,"MpvHandlerBuilder","","",null,null],[3,"OsdString","","",null,null],[12,"string","","",0,null],[4,"Error","","# MPV_ERROR_SUCCESS\nNo error happened (used to signal successful operation)\n# MPV_ERROR_EVENT_QUEUE_FULL\nThe event ringbuffer is full. This means the client is choked, and can't\nreceive any events. This can happen when too many asynchronous requests\nhave been made, but not answered. Probably never happens in practice,\nunless the mpv core is frozen for some reason, and the client keeps\nmaking asynchronous requests. (Bugs in the client API implementation\ncould also trigger this, e.g. if events become "lost".)\n# MPV_ERROR_NOMEM\n'Memory allocation failed' error\n# MPV_ERROR_UNINITIALIZED\nThe mpv core wasn't configured and initialized yet. See mpv.init()\nfor additional details\n# MPV_ERROR_INVALID_PARAMETER\nGeneric catch-all error if a parameter is set to an invalid or\nunsupported value. This is used if there is no better error code.",null,null],[13,"MPV_ERROR_SUCCESS","","",1,null],[13,"MPV_ERROR_EVENT_QUEUE_FULL","","",1,null],[13,"MPV_ERROR_NOMEM","","",1,null],[13,"MPV_ERROR_UNINITIALIZED","","",1,null],[13,"MPV_ERROR_INVALID_PARAMETER","","",1,null],[13,"MPV_ERROR_OPTION_NOT_FOUND","","",1,null],[13,"MPV_ERROR_OPTION_FORMAT","","",1,null],[13,"MPV_ERROR_OPTION_ERROR","","",1,null],[13,"MPV_ERROR_PROPERTY_NOT_FOUND","","",1,null],[13,"MPV_ERROR_PROPERTY_FORMAT","","",1,null],[13,"MPV_ERROR_PROPERTY_UNAVAILABLE","","",1,null],[13,"MPV_ERROR_PROPERTY_ERROR","","",1,null],[13,"MPV_ERROR_COMMAND","","",1,null],[13,"MPV_ERROR_LOADING_FAILED","","",1,null],[13,"MPV_ERROR_AO_INIT_FAILED","","",1,null],[13,"MPV_ERROR_VO_INIT_FAILED","","",1,null],[13,"MPV_ERROR_NOTHING_TO_PLAY","","",1,null],[13,"MPV_ERROR_UNKNOWN_FORMAT","","",1,null],[13,"MPV_ERROR_UNSUPPORTED","","",1,null],[13,"MPV_ERROR_NOT_IMPLEMENTED","","",1,null],[4,"SubApi","","",null,null],[13,"MPV_SUB_API_OPENGL_CB","","",2,null],[13,"NOTHING","","",2,null],[4,"LogLevel","","",null,null],[13,"MPV_LOG_LEVEL_NONE","","",3,null],[13,"MPV_LOG_LEVEL_FATAL","","",3,null],[13,"MPV_LOG_LEVEL_ERROR","","",3,null],[13,"MPV_LOG_LEVEL_WARN","","",3,null],[13,"MPV_LOG_LEVEL_INFO","","",3,null],[13,"MPV_LOG_LEVEL_V","","",3,null],[13,"MPV_LOG_LEVEL_DEBUG","","",3,null],[13,"MPV_LOG_LEVEL_TRACE","","",3,null],[4,"EndFileReason","","",null,null],[13,"MPV_END_FILE_REASON_EOF","","",4,null],[13,"MPV_END_FILE_REASON_STOP","","",4,null],[13,"MPV_END_FILE_REASON_QUIT","","",4,null],[13,"MPV_END_FILE_REASON_ERROR","","",4,null],[13,"MPV_END_FILE_REASON_REDIRECT","","",4,null],[4,"Event","","",null,null],[13,"Shutdown","","Received when the player is shutting down",5,null],[13,"LogMessage","","*Has not been tested*, received when explicitly asked to MPV",5,null],[12,"prefix","mpv::Event","",5,null],[12,"level","","",5,null],[12,"text","","",5,null],[12,"log_level","","",5,null],[13,"GetPropertyReply","mpv","Received when using get_property_async",5,null],[12,"name","mpv::Event","",5,null],[12,"result","","",5,null],[12,"reply_userdata","","",5,null],[13,"SetPropertyReply","mpv","Received when using set_property_async",5,null],[13,"CommandReply","","Received when using command_async",5,null],[13,"StartFile","","Event received when a new file is playing",5,null],[13,"EndFile","","Event received when the file being played currently has stopped, for an error or not",5,null],[13,"FileLoaded","","Event received when a file has been *loaded*, but has not been started",5,null],[13,"TracksChanged","","",5,null],[13,"TrackSwitched","","Deprecated",5,null],[13,"Idle","","Received when the player has no more files to play and is in an idle state",5,null],[13,"Pause","","The player paused playback",5,null],[13,"Unpause","","The player started playback again",5,null],[13,"Tick","","",5,null],[13,"ClientMessage","","**Unimplemented**",5,null],[13,"VideoReconfig","","",5,null],[13,"AudioReconfig","","",5,null],[13,"MetadataUpdate","","",5,null],[13,"Seek","","The player changed current position",5,null],[13,"PlaybackRestart","","",5,null],[13,"PropertyChange","","Received when used with observe_property",5,null],[12,"name","mpv::Event","",5,null],[12,"change","","",5,null],[12,"reply_userdata","","",5,null],[13,"ChapterChange","mpv","",5,null],[13,"QueueOverflow","","Received when the Event Queue is full",5,null],[13,"Unused","","Unused event",5,null],[4,"Format","","",null,null],[13,"Flag","","",6,null],[13,"Str","","",6,null],[13,"Double","","",6,null],[13,"Int","","",6,null],[13,"OsdStr","","",6,null],[5,"client_api_version","","Returns the MPV_CLIENT_API_VERSION the mpv source has been compiled with\nas (major_v,minor_v)",null,null],[11,"description","","",1,null],[11,"fmt","","",1,null],[11,"fmt","","",5,null],[11,"fmt","","",6,null],[11,"get_mpv_format","","",6,null],[11,"get_from_c_void","","",6,null],[11,"call_as_c_void","","",0,null],[11,"get_from_c_void","","",0,{"inputs":[{"name":"f"}],"output":{"name":"osdstring"}}],[11,"get_mpv_format","","",0,{"inputs":[],"output":{"name":"mpvinternalformat"}}],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"from_i64","","",1,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",1,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"from_i64","","",3,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",3,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"fmt","","",4,null],[11,"clone","","",4,null],[11,"from_i64","","",4,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",4,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"clone","","",2,null],[11,"new","","",7,{"inputs":[],"output":{"name":"result"}}],[11,"set_option","","",7,null],[11,"build","","",7,null],[11,"build_with_gl","","",7,null],[11,"deref","","",8,null],[11,"deref_mut","","",8,null],[11,"draw","","Render video",8,null],[11,"is_update_available","","returns true if another frame is available",8,null],[11,"set_property","","Set a property synchronously",9,null],[11,"set_property_async","","Set a property asynchronously",9,null],[11,"get_property","","Get a property synchronously",9,null],[11,"get_property_async","","Get a property asynchronously",9,null],[11,"set_option","","",9,null],[11,"command","","Send a command synchronously",9,null],[11,"command_async","","Send a command asynchronously",9,null],[11,"wait_event","","Returns an Event if there is an Event available. Returns None if the event pool is empty.",9,null],[11,"observe_property","","Observe a property change. The property change will be returned via an Event PropertyChange",9,null],[11,"unobserve_property","","Unobserve a previously observed property change",9,null],[11,"raw","","Get the raw pointer for the mpv_handle. Use with care.",9,null],[11,"drop","","",8,null],[11,"drop","","",9,null],[6,"Result","","",null,null],[6,"mpv_opengl_cb_get_proc_address_fn","","",null,null],[8,"MpvFormat","","",null,null],[10,"call_as_c_void","","",10,null],[10,"get_from_c_void","","",10,{"inputs":[{"name":"f"}],"output":{"name":"self"}}],[10,"get_mpv_format","","",10,{"inputs":[],"output":{"name":"mpvinternalformat"}}]],"paths":[[3,"OsdString"],[4,"Error"],[4,"SubApi"],[4,"LogLevel"],[4,"EndFileReason"],[4,"Event"],[4,"Format"],[3,"MpvHandlerBuilder"],[3,"MpvHandlerWithGl"],[3,"MpvHandler"],[8,"MpvFormat"]]}; initSearch(searchIndex);