Add OnMediaAccessChange notification (fixes issue #3310)

This commit is contained in:
Marshall Greenblatt
2022-06-30 12:22:28 +00:00
parent e34e9142ee
commit 521546d6b7
14 changed files with 347 additions and 34 deletions

View File

@ -148,6 +148,15 @@ class CefDisplayHandler : public virtual CefBaseRefCounted {
const CefCursorInfo& custom_cursor_info) {
return false;
}
///
// Called when the browser's access to an audio and/or video source has
// changed.
///
/*--cef()--*/
virtual void OnMediaAccessChange(CefRefPtr<CefBrowser> browser,
bool has_video_access,
bool has_audio_access) {}
};
#endif // CEF_INCLUDE_CEF_DISPLAY_HANDLER_H_