Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Plugin - disabled. Youtube problem.

Plugin - disabled. Youtube problem.

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 1 Posters 2.7k 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.
  • P Offline
    P Offline
    pacanek
    wrote on last edited by
    #1

    I'm trying to make my own flash-plugin which will (after pushing button) send information to other process via DBus.

    Plugin is working well for most flash content but there's one exception. YouTube... It says that I'm having 2old version of flash plugin and bla bla... I'm not using normal libflash.so so I should mask my plugin to be like original BUT there's problem:

    @ QWebPluginFactory::MimeType oMimeType;
    oMimeType.fileExtensions << "swf";
    oMimeType.name = "application/x-shockwave-flash";
    oMimeType.description = "Shockwave Flash";

    QWebPluginFactory::MimeType oMimeFutureSplash;
    oMimeFutureSplash.fileExtensions << "spl";
    oMimeFutureSplash.name = "application/futuresplash";
    oMimeFutureSplash.description = "FutureSplash Player";@
    

    This doesn't set the plugin enabled attribute. It could be checked in browser JS console by writing: navigator.

    navigator
    Navigator
    appCodeName: "Mozilla"
    appName: "Netscape"
    appVersion: "5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.3 (KHTML, like Gecko) Qt/4.7.2 Safari/533.3"
    cookieEnabled: true
    language: "en-US"
    mimeTypes: MimeTypeArray
    0: MimeType
    constructor: MimeTypeConstructor
    description: "Shockwave Flash"
    enabledPlugin: null
    suffixes: "swf"
    type: "application/x-shockwave-flash"
    proto: MimeTypePrototype
    1: MimeType

    PS yes I did:
    @QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);@

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pacanek
      wrote on last edited by
      #2

      There's a workaround for this - found it a sec ago
      I can register my plugin on demand and don't get it listed in ::plugins() method. Then the system player will be only listed and YT will threat app as newest flash.

      But my question is still up to date because there will be bloodbath if there won't be libflash.so in the system. (and there won't be on product machine)

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pacanek
        wrote on last edited by
        #3

        bump
        still actual

        1 Reply Last reply
        0

        • Login

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