You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PayloadAPP/Src/WebPage/customwebenginepage.h

22 lines
564 B
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef CUSTOMWEBENGINEPAGE_H
#define CUSTOMWEBENGINEPAGE_H
#include <QWebEnginePage>
class CustomWebEnginePage : public QWebEnginePage
{
Q_OBJECT
public:
CustomWebEnginePage(QObject *parent = Q_NULLPTR);
protected:
// 关闭HTTPS验证
virtual bool certificateError(const QWebEngineCertificateError& certificateError);
private Q_SLOTS:
// 获取音频和视频捕获的权限解决不能录音的bug
void onFeaturePermissionRequested(const QUrl &securityOrigin, QWebEnginePage::Feature feature);
};
#endif // CUSTOMWEBENGINEPAGE_H