Results 1 to 6 of 6

Thread: How to play .swf files in QT?

  1. #1
    Join Date
    Jun 2016
    Posts
    6
    Thanks
    4
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Smile How to play .swf files in QT?

    Dear All,

    Since I am new to QT programming i am not aware of how to play .swf files in QT widget. Please explain me with a small program so that it will be easy to understand. Any help is appreciated.

    Thanks,
    Ranjith

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to play .swf files in QT?

    I am sure you can find plenty of information in the Qt Multimedia examples, especially the Video Widget example.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Jun 2016
    Posts
    6
    Thanks
    4
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default Re: How to play .swf files in QT?

    Thanks for ur reply.. But i dont see any option for playinf .swf in those examples.. Please help..

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to play .swf files in QT?

    Sorry. After investigating some more, it looks like swf is not supported by Qt. There is an old open-source project called "gameswf" that is supposed to render using OpenGL. You might be able to integrate that to play swf in a QOpenGLWidget. Find it here.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  5. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to play .swf files in QT?

    Quote Originally Posted by d_stranz View Post
    Sorry. After investigating some more, it looks like swf is not supported by Qt.
    It will depend on the multimedia framework used by Qt, e.g. platform dependent and even dependent on installed codecs.

    Obviously that only works for videos, not interactive content, even if supported.

    Quote Originally Posted by d_stranz View Post
    There is an old open-source project called "gameswf" that is supposed to render using OpenGL
    There are various flash implementations, which might or might not be integratable into an application,
    Alternatively an application can theoretically provide the host side of the browser plugin interfaces used by the Adobe Flash plugin or use a web render engine that supports loading such plugins.

    Since Flash is a dead technology, it is questionable if any of that effort is really worthwhile.

    Cheers,
    _

  6. #6
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to play .swf files in QT?

    It will depend on the multimedia framework used by Qt, e.g. platform dependent and even dependent on installed codecs.
    My googling didn't lead me to anything that suggested codecs were available. Most of what I found was web browser plugins. gameswf was the closest thing I could find to a codec and it isn't really.

    Since Flash is a dead technology, it is questionable if any of that effort is really worthwhile.
    True.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 0
    Last Post: 19th May 2016, 13:24
  2. Play WMA DRM (protected wma files)
    By walidos in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2012, 18:01
  3. how to play media files.
    By hrudhay in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th August 2008, 10:24
  4. Replies: 1
    Last Post: 7th July 2006, 10:14
  5. Unable to play gif files
    By yellowmat in forum Newbie
    Replies: 2
    Last Post: 24th March 2006, 19:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.