pub type cef_media_observer_t = _cef_media_observer_t;Expand description
Implemented by the client to observe MediaRouter events and registered via cef_media_router_t::AddObserver. The functions of this structure will be called on the browser process UI thread.
NOTE: This struct is allocated client-side.
Aliased Type§
#[repr(C)]pub struct cef_media_observer_t {
pub base: _cef_base_ref_counted_t,
pub on_sinks: Option<unsafe extern "C" fn(*mut _cef_media_observer_t, usize, *const *mut _cef_media_sink_t)>,
pub on_routes: Option<unsafe extern "C" fn(*mut _cef_media_observer_t, usize, *const *mut _cef_media_route_t)>,
pub on_route_state_changed: Option<unsafe extern "C" fn(*mut _cef_media_observer_t, *mut _cef_media_route_t, cef_media_route_connection_state_t)>,
pub on_route_message_received: Option<unsafe extern "C" fn(*mut _cef_media_observer_t, *mut _cef_media_route_t, *const c_void, usize)>,
}Fields§
§base: _cef_base_ref_counted_tBase structure.
on_sinks: Option<unsafe extern "C" fn(*mut _cef_media_observer_t, usize, *const *mut _cef_media_sink_t)>The list of available media sinks has changed or cef_media_router_t::NotifyCurrentSinks was called.
on_routes: Option<unsafe extern "C" fn(*mut _cef_media_observer_t, usize, *const *mut _cef_media_route_t)>The list of available media routes has changed or cef_media_router_t::NotifyCurrentRoutes was called.
on_route_state_changed: Option<unsafe extern "C" fn(*mut _cef_media_observer_t, *mut _cef_media_route_t, cef_media_route_connection_state_t)>The connection state of |route| has changed.
on_route_message_received: Option<unsafe extern "C" fn(*mut _cef_media_observer_t, *mut _cef_media_route_t, *const c_void, usize)>A message was received over |route|. |message| is only valid for the scope of this callback and should be copied if necessary.