Coder Social home page Coder Social logo

jchw-forks / lightspark Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lightspark/lightspark

0.0 2.0 0.0 39.85 MB

An open source flash player implementation

Home Page: http://lightspark.github.io/

License: GNU Lesser General Public License v3.0

CMake 1.14% Shell 0.57% C++ 76.95% GLSL 0.02% C 19.40% Assembly 0.22% ActionScript 0.49% HTML 0.07% AngelScript 0.73% Python 0.40%

lightspark's Introduction

Lightspark

GitHub release GitHub Last Commit Travis Status

Lightspark is an open source Flash player implementation for playing files in SWF format. Lightspark can run as a web browser plugin or as a standalone application.

Lightspark supports SWF files written on all versions of the ActionScript language.

Building and Installation

To compile this software you need to install development packages for:

  • opengl
  • curl
  • zlib
  • libavcodec
  • libavresample
  • libglew
  • pcre
  • librtmp
  • cairo
  • libboost-filesystem,
  • sdl2
  • sdl2_mixer
  • libjpeg
  • libavformat
  • pango
  • liblzma

If JIT compilation using llvm is enabled (this is disabled by default), you also need the development packages for llvm (version 2.8 or >= 3.0)

If compiling the PPAPI (Chromium) plugin is enabled (on by default), keep in mind that it will replace the Adobe Flash plugin, as only one flash plugin is allowed in Chromium.

Also install the following tools:

  • cmake
  • nasm
  • gcc (version 4.6.0 or newer) or clang

To build the software please follow these steps.

cd lightspark
mkdir obj
cd obj
cmake -DCMAKE_BUILD_TYPE=Release ..
make
sudo make install

DEBUG MODE: To enable debug mode change the cmake command like this:

cmake -DCMAKE_BUILD_TYPE=Debug

The CMAKE_BUILD_TYPE options are: Debug LeanDebug Release RelWithDebInfo Profile

Execution

Using make install, lightspark is installed in the system wide

Browser plugin

Firefox plugin path and Firefox should show it in the about:plugins list and in the Tools -> Add-ons -> Plugins window.

Lightspark registers itself as the plugin for application/x-shockwave-flash and for application/x-lightspark, so it should be recognisable in the about:plugins page. Its description string is Shockwave Flash 12.1 r<current version>. The current version is now "r710".

Firefox is not able to deal very well with multiple plugins for the same MIME type. If you only see a black box where a flash app should be try to remove any other flash plugin you have installed.

Command line

The command line version of Lightspark can play a local SWF file. Execution: lightspark file.swf

Type lightspark to see all command line options.

Keyboard shortcuts

Ctrl+Q Quit (standalone player only) Ctrl+M Mute/unmute sounds Ctrl+P Show profiling data Ctrl+C Copy an error to the clipboard (when Lightspark fails)

Environment variables

  • LIGHTSPARK_USE_GNASH: if set to 1, lightspark will fall back to gnash for older swf files
  • LIGHTSPARK_PLUGIN_LOGLEVEL: sets the log level (0-4) (browser plugins only)
  • LIGHTSPARK_PLUGIN_LOGFILE: sets the file the log will be written to (browser plugins only)
  • LIGHTSPARK_PLUGIN_PARAMFILE: if set, the flash variables set by the website will be written to this file (browser plugins only)

SWF Support

Many web sites do not yet work yet because the implementation is incomplete. But we do support a number of them. See our site compatibility page for more details.

Reporting Bugs

If you think you have found a bug in Lightspark, please file a bug. See our bug reporting help for details.

lightspark's People

Contributors

aajanki avatar adrianherrera avatar ahuillet avatar alexp-sssup avatar amdmi3 avatar banthar avatar briefbanane avatar bzztbomb avatar cg9999 avatar dbluelle avatar devkral avatar fwienber avatar gg0 avatar jacopo avatar jamorton avatar jhwgh1968 avatar jobermayr avatar magcius avatar mgehre avatar nobled avatar nordmike avatar qulogic avatar robert-ancell avatar roysjosh avatar tettamanti avatar timonvo avatar timretout avatar twied avatar vfjpl avatar zerostride avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.