Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefMediaRouter

CefBaseRefCounted
   |
   +--CefMediaRouter

   in cef_media_router.h

class CefMediaRouter
extends CefBaseRefCounted

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


Method Summary
 virtual CefRefPtr< CefRegistration > AddObserver( CefRefPtr< CefMediaObserver > observer )= 0
          Add an observer for MediaRouter events.
 virtual void CreateRoute( CefRefPtr< CefMediaSource > source, CefRefPtr< CefMediaSink > sink, CefRefPtr< CefMediaRouteCreateCallback > callback )= 0
          Create a new route between |source| and |sink|.
 static CefRefPtr< CefMediaRouter > GetGlobalMediaRouter()
          Returns the MediaRouter object associated with the global request context.
 virtual CefRefPtr< CefMediaSource > GetSource( const CefString& urn )= 0
          Returns a MediaSource object for the specified media source URN.
 virtual void NotifyCurrentRoutes()= 0
          Trigger an asynchronous call to CefMediaObserver::OnRoutes on all registered observers.
 virtual void NotifyCurrentSinks()= 0
          Trigger an asynchronous call to CefMediaObserver::OnSinks on all registered observers.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

AddObserver

public virtual CefRefPtr< CefRegistration > AddObserver( CefRefPtr< CefMediaObserver > observer )= 0;
Add an observer for MediaRouter events. The observer will remain registered until the returned Registration object is destroyed.

CreateRoute

public virtual void CreateRoute( CefRefPtr< CefMediaSource > source, CefRefPtr< CefMediaSink > sink, CefRefPtr< CefMediaRouteCreateCallback > callback )= 0;
Create a new route between |source| and |sink|. Source and sink must be valid, compatible (as reported by CefMediaSink::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 CefMediaObserver::OnRoutes on all registered observers.

GetGlobalMediaRouter

public static CefRefPtr< CefMediaRouter > GetGlobalMediaRouter();
Returns the MediaRouter object associated with the global request context. Equivalent to calling CefRequestContext::GetGlobalContext()->GetMediaRouter().

GetSource

public virtual CefRefPtr< CefMediaSource > GetSource( const CefString& urn )= 0;
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:?clientId=").

NotifyCurrentRoutes

public virtual void NotifyCurrentRoutes()= 0;
Trigger an asynchronous call to CefMediaObserver::OnRoutes on all registered observers.

NotifyCurrentSinks

public virtual void NotifyCurrentSinks()= 0;
Trigger an asynchronous call to CefMediaObserver::OnSinks on all registered observers.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt