Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
Posts: 8
Registered: ‎07-25-2012
My Device: PlayBook
My Carrier: Qt developer

QWebKit and flash

Now I have working Webkit, but can't play flash videos on YouTube. Have any solutions? 

Developer
Posts: 146
Registered: ‎05-18-2012
My Device: PlayBook & STL100-1 LE Z10 & Dev Alpha C
My Carrier: Telefonica Spain

Re: QWebKit and flash

Test with this :

 

 

QWebView wv;

QWebSettings *ws = wv.settings();

ws->setAttribute(QWebSettings::PluginsEnabled, true);

 This enables QWebView plugins, possibly Flash too (I hope)

 

 

 

---------------------------------------------------------------
Leandro Cerdan - Duantox Apps
BlackBerry Elite dev
TapyHold, Built for Blackberry multimedia scrapbook
New Developer
Posts: 8
Registered: ‎07-25-2012
My Device: PlayBook
My Carrier: Qt developer

Re: QWebKit and flash

Yes, I try but nothing...
 

ui->webView->settings()->setAttribute(QWebSettings::JavaEnabled,true);
ui->webView->settings()->setAttribute(QWebSettings::JavascriptCanAccessClipboard,true);
ui->webView->settings()->setAttribute(QWebSettings::JavascriptCanCloseWindows,true);
ui->webView->settings()->setAttribute(QWebSettings::JavascriptCanOpenWindows,true);
ui->webView->settings()->setAttribute(QWebSettings::JavascriptEnabled,true);
ui->webView->settings()->setAttribute(QWebSettings:Smiley TongueluginsEnabled,true);

Yes, I try but nothing...

 

ui->webView->settings()->setAttribute(QWebSettings::JavaEnabled,true);

ui->webView->settings()->setAttribute(QWebSettings::JavascriptCanAccessClipboard,true);
ui->webView->settings()->setAttribute(QWebSettings::JavascriptCanCloseWindows,true);
ui->webView->settings()->setAttribute(QWebSettings::JavascriptCanOpenWindows,true);
ui->webView->settings()->setAttribute(QWebSettings::JavascriptEnabled,true);
ui->webView->settings()->setAttribute(QWebSettings::PluginsEnabled,true);
Developer
Posts: 146
Registered: ‎05-18-2012
My Device: PlayBook & STL100-1 LE Z10 & Dev Alpha C
My Carrier: Telefonica Spain

Re: QWebKit and flash

Uffff ....
---------------------------------------------------------------
Leandro Cerdan - Duantox Apps
BlackBerry Elite dev
TapyHold, Built for Blackberry multimedia scrapbook
New Developer
Posts: 8
Registered: ‎07-25-2012
My Device: PlayBook
My Carrier: Qt developer

Re: QWebKit and flash

Maybe nedded set up path to flash plugin, but how?

Highlighted
Developer
Posts: 146
Registered: ‎05-18-2012
My Device: PlayBook & STL100-1 LE Z10 & Dev Alpha C
My Carrier: Telefonica Spain

Re: QWebKit and flash

This links shows something

 

http://qt-project.org/wiki/Embed_YouTube_Video_in_QWebView

 

Inside is other interesting link

 

 

---------------------------------------------------------------
Leandro Cerdan - Duantox Apps
BlackBerry Elite dev
TapyHold, Built for Blackberry multimedia scrapbook