Chromium Embedded Framework (CEF)
127.1.0+ga1ec504+chromium-127.0.6533.57
|
Supports discovery of and communication with media devices on the local network via the Cast and DIAL protocols. More...
#include "include/cef_media_router.h"
Public Member Functions | |
virtual CefRefPtr< CefRegistration > | AddObserver (CefRefPtr< CefMediaObserver > observer)=0 |
Add an observer for MediaRouter events. More... | |
virtual CefRefPtr< CefMediaSource > | GetSource (const CefString &urn)=0 |
Returns a MediaSource object for the specified media source URN. More... | |
virtual void | NotifyCurrentSinks ()=0 |
Trigger an asynchronous call to CefMediaObserver::OnSinks on all registered observers. More... | |
virtual void | CreateRoute (CefRefPtr< CefMediaSource > source, CefRefPtr< CefMediaSink > sink, CefRefPtr< CefMediaRouteCreateCallback > callback)=0 |
Create a new route between |source| and |sink|. More... | |
virtual void | NotifyCurrentRoutes ()=0 |
Trigger an asynchronous call to CefMediaObserver::OnRoutes on all registered observers. More... | |
Public Member Functions inherited from CefBaseRefCounted | |
virtual void | AddRef () const =0 |
Called to increment the reference count for the object. More... | |
virtual bool | Release () const =0 |
Called to decrement the reference count for the object. More... | |
virtual bool | HasOneRef () const =0 |
Returns true if the reference count is 1. More... | |
virtual bool | HasAtLeastOneRef () const =0 |
Returns true if the reference count is at least 1. More... | |
Static Public Member Functions | |
static CefRefPtr< CefMediaRouter > | GetGlobalMediaRouter (CefRefPtr< CefCompletionCallback > callback) |
Returns the MediaRouter object associated with the global request context. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CefBaseRefCounted | |
virtual | ~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.
|
pure virtual |
Add an observer for MediaRouter events.
The observer will remain registered until the returned Registration object is destroyed.
|
pure virtual |
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.
|
static |
Returns the MediaRouter object associated with the global request context.
If |callback| is non-NULL it will be executed asnychronously on the UI thread after the manager's storage has been initialized. Equivalent to calling CefRequestContext::GetGlobalContext()->GetMediaRouter().
|
pure virtual |
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>").
|
pure virtual |
Trigger an asynchronous call to CefMediaObserver::OnRoutes on all registered observers.
|
pure virtual |
Trigger an asynchronous call to CefMediaObserver::OnSinks on all registered observers.