Embedded Flash (swf) in MediaWiki - mediawiki

I would like to embed flash animation in swf format in a mediawiki page! Is there any plug-in or built-in support to do this?
I am trying to do it using the following software:
MediaWiki--->1.22.2
PHP--->5.4.12 (apache2handler)
MySQL--->5.6.12-log

There is an extension for that: https://www.mediawiki.org/wiki/Extension:FlvHandler

In older Mediawiki versions you could use something like the gflash or swf extensions, but they are retired in recent versions due to security concerns.
The most recent and compatible extension like this appears to be https://www.mediawiki.org/wiki/Extension:OFlash

I know it's an old question, but someone else may want to try this!

Related

Your browser does not have flash, silverlight and html5 support

I want to use PLupload plugin for uploading different files with different file extensions. But I get error "your browser does not have flash, Silverlight and Html5 support"
And I get no visual. I am using this this plugin
Can I resolve this error??
Yogiraj, hello!
Have you checked the "runtimes" option?
Maybe it's not set or it has only flash.
If possible, please, post your code.

I have a OVG video that I want to put into my site

I have a OVG video and I would like to put that into my site. I do not know much about that file format so I am concerned how it will be with cross browser compatibility. I know that FF will play the file yet I am unsure about IE (I am only worrying about IE 8+)
What is the best way to put this file into my site? Should I use the HTML 5 <video> tag or should I use another format? I need this to work with IE 8 so I am unsure what the best route is.
Thanks!
You should use video element, with multiple source elements inside, each pointing to a different format of your .ovg file. you can generate cross-browser files at media.io or via Miro converter (download). the best way would be to degrade gracefully for older browsers, you'll want to provide some JavaScript, VideoJS is my preferred lib, you can use their embed builder tool, that'll provide the older fallbacks
For the best compatibility, you'll want to use a video hosting site and embed the Flash video into the site. If you want to host it yourself, you'll have to find a Flash video player that you can use, but I'm pretty sure most or all of those are commercial.
Otherwise you'll need to have both an H264 version (MP4) and an OGG version and include both versions in the source tag. You can then also include a fallback to a Flash embedded version.
You can find out more here.

How to play a midi file in html

how can I play a midi file in my html/php page
Right now I surf the net and got lots of simple embed code like the one I given below
<EMBED SRC="C:\Windows\Media\Onestop.mid" hidden=true autostart=true loop=1>
But my firefox says to install plugin - Quicktime player
I dont think this is the way or how to bypass this above said issue, may be if you can suggest another method to do this if any,
thanks...
I know it's been a while, but this is top of Google for "website midi player", so I thought I'd drop in a solution.
I made a website and wanted to play a midi file, and there's a Javascript plugin you can use: http://www.midijs.net/
Just include the library:
<script src='http://www.midijs.net/lib/midi.js'></script>
And then the file you want to play: <script>MIDIjs.play('path/to.your/file.mid');</script>
Important edit
It seems that the remote file is doing Crypto mining, which is less than ideal. You should either store the file locally and remove t("https://coinhive.com/lib/coinhive.min.js",D), or use the original code from GitHub: https://github.com/babelsberg/babelsberg-js/tree/master/midijs
Thanks to #David de Kleer for pointing that out.
Use Web Audio API for modern browsers. See complete example of player. It works on desktop and mobile.
With html-midi-player, it is possible to embed a MIDI file in a website simply by inserting a midi-player element (a custom HTML element which works a lot like the audio element, but for MIDI files):
<midi-player src="jazz.mid" sound-font></midi-player>
Complete demo:
<midi-player src="https://cdn.jsdelivr.net/gh/cifkao/html-midi-player#2b12128/jazz.mid" sound-font>
</midi-player>
<!-- The following needs to be inserted somewhere on the page for the player(s) to work. -->
<script src="https://cdn.jsdelivr.net/combine/npm/tone#14.7.58,npm/#magenta/music#1.22.1/es6/core.js,npm/focus-visible#5,npm/html-midi-player#1.4.0"></script>
Full disclosure: I'm the author of html-midi-player.
The playback functionality is provided by Google's Magenta.js library. It's also possible to use Magenta.js directly to play MIDI files, but this requires a non-trivial amount of JavaScript coding, which is why I created html-midi-player.
As far as I know, there is no cross-browser way to do this: Flash, the most common option when embedding audio on a web page, doesn't play Midi files.
The only way is indeed the embed method, and whether that works will depend on how the user's browser is set up. A plug-in (like Quicktime) will have to be installed that can handle the file. If the "install plugin" dialog appears on a computer, it won't work there.
I think the only sane way is to convert those Midis to MP3 files.
Java can play MIDI files, and the necessary plugin is installed (in the factory) on most PCs
Incomplete examples here and here

How to embed a wave file in html (cross platform)

I want to embed a wave file (or mp3) in html. There is no problem for windows platforms. User can install a windows media player plugin. But WMP does not support linux. Is there any way to do that besides using Flash?
You can take a look to a Javascript implemtation (origanilly from Digital Medias).
Here is a demo
But depending on what you want to do, it's generally not a good idea to provide music on website...
What do you mean by "embed a wave file in html"? You want to play an external file of hold that file inline in the html?
I do belive that you want to play an external file, as holding that file inline would be an overkill.
So, to play an external file, why not use a flash player (http://developer.longtailvideo.com/trac) or the new HTML5 element (http://ajaxian.com/archives/its-friday-play-some-drums-html5-style) ? I do belive flash is more lightweight than WMP and is cross-platform.
WMP might not exist on linux, but there are packages available for Firefox on linux that installs avi and mp3 handlers (at least mplayer does this, don't know about other players)
Really nice and easy example published by Google :
http://code.google.com/intl/fr/apis/wave/embed/guide.html
w3schools will usually tell you all you need to know about html authoring

Embed MP4 in HTML using flash-player

Can I embed MP4-files streaming using a flash-player? I find several places it is mentioned, but some places also mention that flash-10 might be a requirement, it might now work well for streaming etc...
Are there any limitations I should be aware of - and which embeddable flash-player works well?
Yes you can. Flash 9.0.115 is required.
Flowplayer is my favourite. Free and opensource.
MP4 files need to be encoded or fixed using a utility or server code to be fast start - the header information at the beginning of the file rather than the end.
The program to move the metadata to the front of the file is here:
http://rndware.info/products/metadata-mover.html
Use Video.Js .. http://videojs.com/ .. The best Html5 Video player.
Here are a couple of players:
MediaElement: Supports HTML5 and Flash (automatically, if browser needs it). Free and works well for basic configurations. Warning: This project has A LOT of open issues so if your configuration is having problems you're out of luck
f4player: It one of the smallest available at only 10kb and free under the GPL license. It supports flv, f4v, mp4, stream and live stream. It has not been updated in a while though.
Video.js: Don't let the super lame project name fool you. This project is awesome and the best supported of the options. We've been using it on production software for years with no issues. This is your best bet.
I think this also helpfull with video on website:
Jwplayer
www.longtailvideo.com/players/jw-flv-player/
I know also a great video player who supported MP4, Flv and MP4 format: it's KAWA Player ->
http://monmoulin.fr/kawa_player_video_flash.html
Of course, it's totally free!
here's an open source player
http://hdflvplayer.net/
for supporting MP4 videos and more amazing features!
FlashFox works well and is very small. See https://code.google.com/p/flashfox/
Download from http://flashfox.googlecode.com/svn/trunk/ and find usage information on http://v4e.thewikies.com/. You need to provide a full URL for the video, even if it's local.