Chromium Embedded Framework (CEF)  126.2.0+g5c56e98+chromium-126.0.6478.62
CefMediaObserver Class Referenceabstract

Implemented by the client to observe MediaRouter events and registered via CefMediaRouter::AddObserver. More...

#include "include/cef_media_router.h"

Inheritance diagram for CefMediaObserver:
CefBaseRefCounted

Public Types

typedef cef_media_route_connection_state_t ConnectionState
 

Public Member Functions

virtual void OnSinks (const std::vector< CefRefPtr< CefMediaSink >> &sinks)=0
 The list of available media sinks has changed or CefMediaRouter::NotifyCurrentSinks was called. More...
 
virtual void OnRoutes (const std::vector< CefRefPtr< CefMediaRoute >> &routes)=0
 The list of available media routes has changed or CefMediaRouter::NotifyCurrentRoutes was called. More...
 
virtual void OnRouteStateChanged (CefRefPtr< CefMediaRoute > route, ConnectionState state)=0
 The connection state of |route| has changed. More...
 
virtual void OnRouteMessageReceived (CefRefPtr< CefMediaRoute > route, const void *message, size_t message_size)=0
 A message was received over |route|. 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...
 

Additional Inherited Members

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

Implemented by the client to observe MediaRouter events and registered via CefMediaRouter::AddObserver.

The methods of this class will be called on the browser process UI thread.

Member Typedef Documentation

◆ ConnectionState

Member Function Documentation

◆ OnRouteMessageReceived()

virtual void CefMediaObserver::OnRouteMessageReceived ( CefRefPtr< CefMediaRoute route,
const void *  message,
size_t  message_size 
)
pure virtual

A message was received over |route|.

|message| is only valid for the scope of this callback and should be copied if necessary.

◆ OnRoutes()

virtual void CefMediaObserver::OnRoutes ( const std::vector< CefRefPtr< CefMediaRoute >> &  routes)
pure virtual

The list of available media routes has changed or CefMediaRouter::NotifyCurrentRoutes was called.

◆ OnRouteStateChanged()

virtual void CefMediaObserver::OnRouteStateChanged ( CefRefPtr< CefMediaRoute route,
ConnectionState  state 
)
pure virtual

The connection state of |route| has changed.

◆ OnSinks()

virtual void CefMediaObserver::OnSinks ( const std::vector< CefRefPtr< CefMediaSink >> &  sinks)
pure virtual

The list of available media sinks has changed or CefMediaRouter::NotifyCurrentSinks was called.


The documentation for this class was generated from the following file: