Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. self.webEngineView.load(QUrl.fromLocalFile(initialUrl))
  2. self.webEngineView.page().titleChanged.connect(self.setWindowTitle)
  3. #I found the below global settings from stack overflow, even this tooo is not working
  4. webSettings = QWebEngineSettings.globalSettings()
  5. webSettings.setAttribute(QWebEngineSettings.PluginsEnabled, True)
  6. QtWebEngine.QtWebEngine.initialize()
  7.  
  8. <!DOCTYPE html>
  9. <html lang="en">
  10. <head>
  11. <meta charset="UTF-8">
  12. <title>Playing SP-Andala sreemathiki</title>
  13. <style>
  14. body{
  15. margin: 0;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <video width="100%" height="100%" controls>
  21. <source src="<filePath>.mp4" type="video/mp4">
  22. Your browser does not support HTML5 video.
  23. </video>
  24. </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement