Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Cannot full screen JW Player here when loading with QwebView

    Qt WebKit
    1
    1
    1536
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      redstoneleo last edited by

      when load this page with a browser
      http://sharev.org/video/finddataurl.action?url=http://www.56.com/w39/play_album-aid-11672378_vid-Njk3MzAyODU.html
      you can play video in full screen mode ,but when I load this page with QwebView by the following code , if I double clicked the flash player ,it did play in full screen mode , but when I clicked the rightmost fullscreen button at the bottom ,it only pause the video ,no full screen ,so how to fix this problem ?

      @
      from PyQt4.QtCore import *
      from PyQt4.QtGui import *
      from PyQt4.QtWebKit import *

      import sys

      app = QApplication(sys.argv)

      view = QWebView()

      view.resize(1230,760)

      view.settings().setAttribute(QWebSettings.PluginsEnabled, True)
      #QWebSettings.globalSettings().setAttribute(QWebSettings.PluginsEnabled, True)
      view.settings().setAttribute(QWebSettings.JavascriptCanOpenWindows, True)

      url='http://sharev.org/video/finddataurl.action?url=http://www.56.com/w39/play_album-aid-11672378_vid-Njk3MzAyODU.html'#
      view.load(QUrl(url)) #

      view.show()

      sys.exit(app.exec_())

      @

      1 Reply Last reply Reply Quote 0
      • First post
        Last post