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

Represents a sink to which media can be routed. More...

#include "include/cef_media_router.h"

Inheritance diagram for CefMediaSink:
CefBaseRefCounted

Public Types

typedef cef_media_sink_icon_type_t IconType
 

Public Member Functions

virtual CefString GetId ()=0
 Returns the ID for this sink. More...
 
virtual CefString GetName ()=0
 Returns the name of this sink. More...
 
virtual IconType GetIconType ()=0
 Returns the icon type for this sink. More...
 
virtual void GetDeviceInfo (CefRefPtr< CefMediaSinkDeviceInfoCallback > callback)=0
 Asynchronously retrieves device info. More...
 
virtual bool IsCastSink ()=0
 Returns true if this sink accepts content via Cast. More...
 
virtual bool IsDialSink ()=0
 Returns true if this sink accepts content via DIAL. More...
 
virtual bool IsCompatibleWith (CefRefPtr< CefMediaSource > source)=0
 Returns true if this sink is compatible with |source|. 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 a sink to which media can be routed.

Instances of this object are retrieved via CefMediaObserver::OnSinks. The methods of this class may be called on any browser process thread unless otherwise indicated.

Member Typedef Documentation

◆ IconType

Member Function Documentation

◆ GetDeviceInfo()

virtual void CefMediaSink::GetDeviceInfo ( CefRefPtr< CefMediaSinkDeviceInfoCallback callback)
pure virtual

Asynchronously retrieves device info.

◆ GetIconType()

virtual IconType CefMediaSink::GetIconType ( )
pure virtual

Returns the icon type for this sink.

◆ GetId()

virtual CefString CefMediaSink::GetId ( )
pure virtual

Returns the ID for this sink.

◆ GetName()

virtual CefString CefMediaSink::GetName ( )
pure virtual

Returns the name of this sink.

◆ IsCastSink()

virtual bool CefMediaSink::IsCastSink ( )
pure virtual

Returns true if this sink accepts content via Cast.

◆ IsCompatibleWith()

virtual bool CefMediaSink::IsCompatibleWith ( CefRefPtr< CefMediaSource source)
pure virtual

Returns true if this sink is compatible with |source|.

◆ IsDialSink()

virtual bool CefMediaSink::IsDialSink ( )
pure virtual

Returns true if this sink accepts content via DIAL.


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