How to play SWF videos
Matthew Harrington
I have swf flash videos on my USB that I can't get to run in Ubuntu. In Windows I was using a program called MpcStar / TigerPlayer.
I tried gnash SWF player in Ubuntu, but problem is that it doesn't let me control the video and it's very frustrating. It only plays it.
15 Answers
VLC can play .swf videos. You can install it from the Ubuntu Software Center.
3I have VLC version 2.2.1 on Ubuntu 14.04. I have swf videos. When I open a swf file, it plays momentarily then fails. This is my personal experience. I just upgraded to VLC 2.2.1. I hope other posters make comments from personal experience/knowledge, not just saying things because it seems to be true.
0Try opening it in Firefox. It seems to work out well.
Option 1: Use Google Chrome (more straightforward). Download it here.
Option 2: Use another web browser such as Mozilla Firefox, and install the flash plugin (from omgubuntu.co.uk):
Open Software & Updates.
Switch to ‘Other Software‘ tab.
Click/check the ‘Canonical Partners’ repository.
Refresh your software sources when prompted.
Install
adobe-flashplugin
Here is a quick HTML code that plays a swf file called "lesson1.swf". In a pinch you can modify it for your own needs:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="en" lang="en"> <head> <title>Play swf file</title> <script type="text/javascript" src="swfobject.js"></script> <style type="text/css"> body { background-color: #1a1a1a; font: .8em/1.3em verdana,arial,helvetica,sans-serif; text-align: center; } #media { margin-top: 5px; } #noUpdate { margin: 0 auto; font-family:Arial, Helvetica, sans-serif; font-size: x-small; color: #cccccc; text-align: left; width: 210px; height: 200px; padding: 5px; } </style> </head> <body> <div> <div> </div> </div> <script type="text/javascript"> var so = new SWFObject( "lesson01.swf", "csSWF", "800", "618", "8", "#1a1a1a"); so.addParam( "quality", "best" ); so.addParam( "allowFullScreen", "false" ); so.addParam( "scale", "noscale" ); so.addParam( "allowScriptAccess", "always" ); so.addVariable( "autostart", "false" ); so.write("media"); </script> </body>
</html>