Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebView - flash player fullscreen
QtWS25 Last Chance

QWebView - flash player fullscreen

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.8k Views
  • 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.
  • M Offline
    M Offline
    maximus
    wrote on 31 Mar 2014, 21:34 last edited by
    #1

    Hi,

    Not sure if here is the good place to ask, I'll check with Flash support also.
    In my a application, I have a QWebView that is inside a QWidget:
    See image : https://www.dropbox.com/s/wu4agm30ec0n80i/interfacev12.png

    When I press the "fullscreen" on the flash player, I would like the player to only take the maximum space of the QWidget, not the the real fullscreen. I know there may be some limitation here and it's probably in the flash code, but would it be possible to inject some javascript into the flash player and force it to have a certain geometry?

    Thank you


    Free Indoor Cycling Software - https://maximumtrainer.com

    1 Reply Last reply
    0
    • C Online
      C Online
      Chris Kawa
      Lifetime Qt Champion
      wrote on 31 Mar 2014, 23:45 last edited by
      #2

      It has nothing to do with Qt, but from what I see some browser extensions are able to do it with javascript (no need to full around with flash). Also more and more sites (like youtube) use HTML5 video, not flash.

      So it's doable, but remember that it will be very site specific and if they change something your code will stop working, so generally it's a bad idea and misbehavior on your part.

      As an example youtube puts the video in an element with id="player".
      This element has a class that controls the size of the player and it's (at the time of my writing) one of these: watch-small, watch-medium, watch-large, watch-full. watch-full seems to be doing what you wan't but it's fragile as it resets for example when you resize the browser so you need to handle that too.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maximus
        wrote on 2 Apr 2014, 12:58 last edited by
        #3

        Yeah I think this is out of reach of my App

        No sure how other popular player works (netflix, ...), too much possibility, thinking and coding, head hurt, will let the webpages keeping option to re-dimension their player.
        └(°ᴥ°)┘
        Thanks for the info!


        Free Indoor Cycling Software - https://maximumtrainer.com

        1 Reply Last reply
        0

        1/3

        31 Mar 2014, 21:34

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved