cef_media_router_t

Supports discovery of and communication with media devices on the local network via the Cast and DIAL protocols. The functions of this structure may be called on any browser process thread unless otherwise indicated.

Members

Variables

add_observer
cef_registration_t* function(cef_media_router_t* self, cef_media_observer_t* observer) nothrow add_observer;
base
cef_base_ref_counted_t base;

Base structure.

create_route
void function(cef_media_router_t* self, cef_media_source_t* source, cef_media_sink_t* sink, cef_media_route_create_callback_t* callback) nothrow create_route;

Create a new route between |source| and |sink|. Source and sink must be valid, compatible (as reported by cef_media_sink_t::IsCompatibleWith), and a route between them must not already exist. |callback| will be executed on success or failure. If route creation succeeds it will also trigger an asynchronous call to cef_media_observer_t::OnRoutes on all registered observers.

get_source
cef_media_source_t* function(cef_media_router_t* self, const(cef_string_t)* urn) nothrow get_source;

Returns a MediaSource object for the specified media source URN. Supported URN schemes include "cast:" and "dial:", and will be already known by the client application (e.g. "cast:<appId>?clientId=<clientId>").

notify_current_routes
void function(cef_media_router_t* self) nothrow notify_current_routes;

Trigger an asynchronous call to cef_media_observer_t::OnRoutes on all registered observers.

notify_current_sinks
void function(cef_media_router_t* self) nothrow notify_current_sinks;

Trigger an asynchronous call to cef_media_observer_t::OnSinks on all registered observers.

Meta