October 13, 2011

P4C P4C
Lab Rat
16 posts

Plugin - disabled. Youtube problem.

 

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:

  1.     QWebPluginFactory::MimeType oMimeType;
  2.     oMimeType.fileExtensions << "swf";
  3.     oMimeType.name = "application/x-shockwave-flash";
  4.     oMimeType.description = "Shockwave Flash";
  5.  
  6.     QWebPluginFactory::MimeType oMimeFutureSplash;
  7.     oMimeFutureSplash.fileExtensions << "spl";
  8.     oMimeFutureSplash.name = "application/futuresplash";
  9.     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:

  1. QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);

2 replies

October 13, 2011

P4C P4C
Lab Rat
16 posts

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)

November 25, 2011

P4C P4C
Lab Rat
16 posts

bump
still actual

 
  ‹‹ QWebView and Javascript issue in PyQt      Qt gfx plugin ››

You must log in to post a reply. Not a member yet? Register here!