type ICefMediaRouter = interface(ICefBaseRefCounted)
Supports discovery of and communication with media devices on the local network via the Cast and DIAL protocols. The functions of this interface may be called on any browser process thread unless otherwise indicated.
UNKNOWN
<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_media_router_capi.h">CEF source file: /include/capi/cef_media_router_capi.h (cef_media_router_t))
function AddObserver(const observer: ICefMediaObserver): ICefRegistration; |
|
function GetSource(const urn: ustring): ICefMediaSource; |
|
procedure NotifyCurrentSinks; |
|
procedure CreateRoute(const source: ICefMediaSource; const sink: ICefMediaSink; const callback: ICefMediaRouteCreateCallback); |
|
procedure NotifyCurrentRoutes; |
function AddObserver(const observer: ICefMediaObserver): ICefRegistration; |
|
Add an observer for MediaRouter events. The observer will remain registered until the returned Registration object is destroyed. Attributes
|
function GetSource(const urn: ustring): ICefMediaSource; |
|
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>"). |
procedure NotifyCurrentSinks; |
|
Trigger an asynchronous call to ICefMediaObserver.OnSinks on all registered observers. |
procedure CreateRoute(const source: ICefMediaSource; const sink: ICefMediaSink; const callback: ICefMediaRouteCreateCallback); |
|
Create a new route between |source| and |sink|. Source and sink must be valid, compatible (as reported by ICefMediaSink.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 ICefMediaObserver.OnRoutes on all registered observers. |
procedure NotifyCurrentRoutes; |
|
Trigger an asynchronous call to ICefMediaObserver.OnRoutes on all registered observers. |