Running flash .swf files in widget?
Dear Everyone!
I want to run flash file .swf in my widget. At a moment I am using gnash for it.
But It is not working good.
There is a problem of resizing object as well as it cannot render object completely.
So any other way is available to run flash .swf files in widget.
Re: Running flash .swf files in widget?
Try using some freware flashPlayer(adobe or shockwave) as activeX - works good for me.
Re: Running flash .swf files in widget?
Quote:
Originally Posted by
mchara
Try using some freware flashPlayer(adobe or shockwave) as activeX - works good for me.
for Fedora 6 which is prefrable.
Sir! may u give any example?
Re: Running flash .swf files in widget?
Under X11, you could use XEmbed and QX11EmbedContainer to embed the proprietary flash player in a window.
Re: Running flash .swf files in widget?
WebKit might soon be a good choice too. Provided that it can run netscape (or some other) plugins...
Re: Running flash .swf files in widget?
Quote:
Originally Posted by
wysota
WebKit might soon be a good choice too. Provided that it can run netscape (or some other) plugins...
I am using WebKit in my application but it is not opening flash files, however it opens html files. How to open flash files using webkit?
Re: Running flash .swf files in widget?
Quote:
Originally Posted by
ashukla
I am using WebKit in my application but it is not opening flash files, however it opens html files. How to open flash files using webkit?
What I do for above this?
Re: Running flash .swf files in widget?
I don't feel qualified to answer the question. If WebKit doesn't support netscape (or other) plugins, then it won't play flash movies. Period. Hence the "provided" part in my previous post.
Re: Running flash .swf files in widget?
Quote:
Originally Posted by
Brandybuck
Under X11, you could use XEmbed and QX11EmbedContainer to embed the proprietary flash player in a window.
How to use this!
Can u give any example or link!
Re: Running flash .swf files in widget?
Code:
flash->dynamicCall("Movie(const QString&)", filename);
flash->dynamicCall("Play");
Re: Running flash .swf files in widget?
Quote:
Originally Posted by
mchara
Code:
flash->dynamicCall("Movie(const QString&)", filename);
flash->dynamicCall("Play");
QAxWidget only runs on Windows OS. I want to ask problem using with Fedora 6.
Have u any alternative.
Re: Running flash .swf files in widget?
Quote:
Originally Posted by
ashukla
QAxWidget only runs on Windows OS. I want to ask problem using with Fedora 6.
Have u any alternative.
Dear Experts!
Give suggestion for above!
with reards!
Re: Running flash .swf files in widget?
Quote:
Originally Posted by
ashukla
How to use this!
Can u give any example or link!
Qt Assistant! :D
It is very good documentation. Very good. When you want to know how to use a class, it should be the first place you look. It tells you all about QX11Embed classes.
Re: Running flash .swf files in widget?
But it doesn't tell you how to get a window id of a particular window from a 3rd party app ;)
Re: Running flash .swf files in widget?
Quote:
Originally Posted by
wysota
But it doesn't tell you how to get a window id of a particular window from a 3rd party app ;)
Dear Sir!
Tell some link, suggestions & any alternative to acheive goal!
Re: Running flash .swf files in widget?
This is the code which embeds webkit inside a widget. Only problem is plugins not loaded. there are qwebobjectplugin.cpp and qobjectpluginconnector.cpp files in API of webkit. But I don't know how to use these two files and classes inside it to enable plugin.
Code:
#include <qwebpage.h>
#include <qwebframe.h>
#include <qwebsettings.h>
.
.
.
QWebSettings settings = QWebSettings::global();
settings.setAttribute(QWebSettings::PluginsEnabled);
QWebSettings::setGlobal(settings);
QUrl url
("http://www.yahoo.com");
page= new QWebPage(this);
page->open(url);
show();
Kindly help if there is a way to include plugin. I can provide the code for qwebobjectplugin.cpp and qobjectpluginconnector.cpp .
Re: Running flash .swf files in widget?
The problem is not embedding WebKit into the app, but embedding a 3rd party player into WebKit or directly in your app. If you use native X calls to fetch the winId, it shouldn't be a problem. But you have to dig into Xlib to see how to get the id of a particular window which I doubt will be very simple.
Re: Running flash .swf files in widget?
there is api for inclusion of 3rd party plugin inside QtWebKIt. I am giving content of qwebobjectplugin.cpp . In this you can see that /webplugins folder is included where third party plugins library may be placed. but how to include this and use.
Code:
#include "qwebobjectplugin_p.h"
#include <qwebobjectpluginconnector.h>
#include <qcoreapplication.h>
#include <qfileinfo.h>
#ifndef QT_NO_LIBRARY
Q_GLOBAL_STATIC_WITH_ARGS(QWebFactoryLoader, loader,
#endif
QWebFactoryLoader
::QWebFactoryLoader(const char *iid,
const QStringList &paths,
const QString &suffix, Qt
::CaseSensitivity) : QFactoryLoader(iid, paths, suffix)
{
QWebObjectPlugin *plugin = qobject_cast<QWebObjectPlugin *>(instance(k));
if (!plugin)
continue;
Info info;
info.name = k;
info.description = plugin->descriptionForKey(k);
MimeInfo mime;
mime.type = m;
mime.extensions = plugin->extensionsForMimetype(m);
info.mimes << mime;
}
m_pluginInfo.append(info);
}
}
QWebFactoryLoader *QWebFactoryLoader::self()
{
return loader();
}
QString QWebFactoryLoader
::descriptionForName(const QString &key
) const {
foreach(const Info &info, m_pluginInfo) {
if (info.name == key)
return info.description;
}
}
{
foreach(const Info &info, m_pluginInfo) {
if (info.name == key) {
foreach (const MimeInfo &m, info.mimes)
mimetypes.append(m.type);
return mimetypes;
}
}
}
QString QWebFactoryLoader
::mimeTypeForExtension(const QString &extension
) {
foreach(const Info &info, m_pluginInfo) {
foreach (const MimeInfo &m, info.mimes) {
if (m.extensions.contains(extension))
return m.type;
}
}
}
{
foreach(const Info &info, m_pluginInfo) {
foreach (const MimeInfo &m, info.mimes)
extensions << m.extensions;
}
}
QString QWebFactoryLoader
::nameForMimetype(const QString &mimeType
) const {
foreach(const Info &info, m_pluginInfo) {
foreach (const MimeInfo &m, info.mimes)
if (m.type == mimeType)
return info.name;
}
}
QObject *QWebFactoryLoader
::create(QWebFrame
*frame,
{
if (mimeType.isEmpty()) {
mimeType = mimeTypeForExtension(fi.suffix());
}
QString name
= nameForMimetype
(mimeType
);
QWebObjectPlugin *plugin = qobject_cast<QWebObjectPlugin *>(instance(name));
if (!plugin)
return 0;
QWebObjectPluginConnector *connector = new QWebObjectPluginConnector(frame);
return plugin->create(connector, url, mimeType, argumentNames, argumentValues);
}
/*! \class QWebObjectPlugin
This class is a plugin for the HTML object tag. It can be used to embed arbitrary content in a web page.
*/
QWebObjectPlugin
::QWebObjectPlugin(QObject *parent
){
}
QWebObjectPlugin::~QWebObjectPlugin()
{
}
/*!
\fn QStringList QWebObjectPlugin::keys() const
The keys should be unique names.
*/
/*!
A description for \a key.
*/
{
}
/*!
returns the mimetypes that can be handled by \a key.
*/
{
}
/*!
\fn QStringList QWebObjectPlugin::extensionsForMimetype() const
Should return a list of extensions that are recognised to match the \a mimeType.
*/
{
}
Re: Running flash .swf files in widget?
How to resize anything for ex: gnash inside QX11EmbedContainer window? gnash is running flash movie inside QX11EmbedContainer but not resizing it of the same size as of QX11EmbedContainer.
Re: Running flash .swf files in widget?
Dear Experts!
Kindly give me a contact address of WebKit developers!
Specially I want the contact/e-mail address of Jack belongs from London.
b/z he says that it can be possible when I am searching on google! but the link of file is not exists!
hoping an earlier response!
with regards!