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

Represents the route between a media source and sink. More...

#include "include/cef_media_router.h"

Inheritance diagram for CefMediaRoute:
CefBaseRefCounted

Public Member Functions

virtual CefString GetId ()=0
 Returns the ID for this route. More...
 
virtual CefRefPtr< CefMediaSourceGetSource ()=0
 Returns the source associated with this route. More...
 
virtual CefRefPtr< CefMediaSinkGetSink ()=0
 Returns the sink associated with this route. More...
 
virtual void SendRouteMessage (const void *message, size_t message_size)=0
 Send a message over this route. More...
 
virtual void Terminate ()=0
 Terminate this 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

Represents the route between a media source and sink.

Instances of this object are created via CefMediaRouter::CreateRoute and retrieved via CefMediaObserver::OnRoutes. Contains the status and metadata of a routing operation. The methods of this class may be called on any browser process thread unless otherwise indicated.

Member Function Documentation

◆ GetId()

virtual CefString CefMediaRoute::GetId ( )
pure virtual

Returns the ID for this route.

◆ GetSink()

virtual CefRefPtr<CefMediaSink> CefMediaRoute::GetSink ( )
pure virtual

Returns the sink associated with this route.

◆ GetSource()

virtual CefRefPtr<CefMediaSource> CefMediaRoute::GetSource ( )
pure virtual

Returns the source associated with this route.

◆ SendRouteMessage()

virtual void CefMediaRoute::SendRouteMessage ( const void *  message,
size_t  message_size 
)
pure virtual

Send a message over this route.

|message| will be copied if necessary.

◆ Terminate()

virtual void CefMediaRoute::Terminate ( )
pure virtual

Terminate this route.

Will result in an asynchronous call to CefMediaObserver::OnRoutes on all registered observers.


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