Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.webEngineView.load(QUrl.fromLocalFile(initialUrl))
- self.webEngineView.page().titleChanged.connect(self.setWindowTitle)
- #I found the below global settings from stack overflow, even this tooo is not working
- webSettings = QWebEngineSettings.globalSettings()
- webSettings.setAttribute(QWebEngineSettings.PluginsEnabled, True)
- QtWebEngine.QtWebEngine.initialize()
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Playing SP-Andala sreemathiki</title>
- <style>
- body{
- margin: 0;
- }
- </style>
- </head>
- <body>
- <video width="100%" height="100%" controls>
- <source src="<filePath>.mp4" type="video/mp4">
- Your browser does not support HTML5 video.
- </video>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement