I need to show Flash movie in QT window.
How it can be done? What QT widgets can be used for this?
I need to show Flash movie in QT window.
How it can be done? What QT widgets can be used for this?
There won't be a way to use Macromedia's Flash plugin with Qt4.4/Webkit, but hopefully with Qt4.5/Webkit.
PS. QT is QuickTime. You probably mean Qt.
J-P Nurmi
Ofcourse I meaned Qt. And my program is running under Linux.
I think you can embed Gnash into your application.
Where documentation about gnash API and examples can be found.
I tried to search at gnashdevelop.org and where is no documentation for programmers.
Call gnash --help. You need to use the -x switch.
Qt Code:
void myWindow::startFlash() { char temp[256]={'\0'}; sprintf(temp,"-x %ld -j 200 -k 200 %s",this->winId(),"/home/vitaliy/projects/qtTest/qtTest/opr04CTZ.swf"); qDebug(temp); qpr->start("gnash",list); }To copy to clipboard, switch view to plain text mode
I tried to this code for showing flash.
But nothing is shown on my window. What I am doing wrong?
Qt Code:
QStringList args; args << "-x" << "%ld" << "-j" << "200" ...;To copy to clipboard, switch view to plain text mode
J-P Nurmi
I tried this but nothing changed.
Now my code is this.
Qt Code:
void myWindow::startFlash() { char temp[256]={'\0'}; sprintf(temp,"%ld",(long)this>winId()); QStringList list; list << "-x" << temp<< "-j" << "500"<<"-k"<<"500"<<"/home/vitaliy/projects/qtTest/qtTest/opr04CTZ.swf"; qpr->start("gnash",list); }To copy to clipboard, switch view to plain text mode
Last edited by jacek; 29th August 2008 at 22:51. Reason: changed [qtclass] to [code]
Does gnash start at all? Can you see it on the process list?
Yes I can see GTK-gnash in the process list.
Does it have proper arguments?
I found the solution insteed of gnash, the kde-gnash must be used.
Bookmarks