|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In case a contained link has gone outdated it perhaps may still be found in the WAYBACK MACHINE (http://archive.org/web/) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MotivationTrying to embed a video clip on a website the solutions given on the websites of the player producing companies, i.e. Real.com and adobe.com did not work for all popular browsers (Firefox, InternetExplorer, Konqueror, Mozilla, Netscape, Opera, Seamonkey) and not on all operating systems. Even other helpful hints available on internet like posted by the computer center of the university of cologne do not describe a real universal solution. For the tested constellations the RealPlayer has to be embedded in different ways while the Flashplayer plugin does not work in all versions. Actually it is very popular to post own videos on platforms like youtube but such solution comes with some disadvantages like lost of privacy and embedding in a very commercial environment. And even youtube videos may not play without changing the default setup of used operating system and browser program. Knowing how to embed videoclips one can post them on an own website and select the audience using a password etc. This may be needed in times where media selling companies tend to criminalize people who publish media without restricting the audience. Following is a universal solution for the mentioned browser programs. It uses PHP, but not JavaScript since the latter is often used for agressive advertisement and to spy out privacy. Though, universal embedding can be done using JavaScript instead of or additional to using PHP. The operating Systems tested are Linux in i686 and amd64 versions and Windows 2000 and -MilleniumEdition (ME). The given code is simple and can be adjusted for experiments to cover untested constellations. The tested RealPlayer versions are 10.0 for Linux (the most actual release)
and Windows ME, RealPlayer 10.5 for Windows 2000. Real.com offers actually
version 11 of RealPlayer for Windows XP and Vista. Hint: Some older RealVideo
content may not be playable using RealPlayer 10 due to a change of codecs, but
there is a workaround published in internet. Tested was a
RealVideo file having the filename extension The tested Flashplayer versions are 7.0r63, 8.0.r22, 9.0.r28, 9.0.r48 and 9.0.r115. The 9.0 versions allow to play most actual content. Tested was several actual content published in internet (which mostly needs version 8 or newer) and a file produced with the SUPER file converter (based on public source software) that was able to be played using version 7 of the plugin. Originated from a high quality source like e.g. records of a camcorder, the free RealProducer creates high quality RealVideos while the free SPECIAL converter output quality is medium, maybe the reason is the version of the used codec. High quality Flash output can be created using expensive Adobe products. The topic of streaming media is not handled here, it depends on the used server and it's setup and does not affect browser setup nor embedding code (for RealPlayer it depends on the protocol noted in the
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Traps
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Browser setupPlaying videoclips does not only need to present the correct HTML code in a webpage but also depends on the setup of the browser, i.e. the correct plugins used. The RealPlayer plugin is called The Flashplayer plugin is called Usually browsers search in some common, predefined locations for all available plugins and commonly use the newest version they find. For Linux, the Konqueror and Opera browsers can not handle the
newest version of the Flashplayer plugin (because they keep standards),
but must use the 9.0.r48 (or any older) version. Fortunately those two
browsers allow to define the locations where they search for plugins so that it
is possible to use the 9.0.48 version for them and a newer version for other
browsers on the same system. For Konqueror this locations can be defined via
MenuBar.Settings.KonquerorSetup.Plugins.NetscapePlugins.Plugins.Search where
new plugins-searchpaths can be defined or predefined plugin-search-paths can be
removed. For the Opera browser such functionality is available via
MenuBar.Tools.Preferences.Advanced.Content.Plug-InOptions.ChangePath. The
easiest way to setup the correct plugins for these browsers is to create one
directory, e.g. The other tested browsers on Linux can not easily be setup to use a special directory for plugins. They always search plugins in their own (plugins sub-) directory and in common locations. Those locations may depend on installation directory and used Linux distribution like
To find all occurences where RealPlayer and Flashplayer plugins (and other
plugins) are installed the commands locate nphelix.so and locate
libflashplayer.so, given on console, may be helpful. All tested Linux
browsers, except Opera for which the versions are reported via
MenuBar.Tools.Preferences.Advanced.Content.Plug-InOptions, provide the versions
of the used plugins via the The Flashplayer for Linux rejects to install itself on 64-bit Linux systems,
although it will work on them (as for SuSE)! To get the newest Flashplayer
download the The Linux open source packet named The Linux open source packet named There are also other Linux open source plugin helpers, some need more, others less system setup. Please feel free to try them. They are not covered here. On Windows, all tested browsers can handle the newest (tested) version of
RealPlayer and Flashplayer-plugin. An old versioned RealPlayer or [Macromedia]
Flash Player can easily be uninstalled via SystemSettings.Software. Then,
first, install or update all browsers you like to use beside Internet Explorer,
and then (download and) install the newest RealPlayer and Flashplayer versions.
Finally check for Firefox, Netscape and Seamonkey browsers if the plugin
versions are as expected. Opera for Windows does not support setting of the
plugin path but can handle the newest Flashplayer version anyway and reports
the used plugin path via the Tested constellations known to work simultaneously
Fix to avoid un-smooth video display of RealPlayer 10 on 64bit LinuxTested on an Amd 64 SuSE 9.3 system, as a precondition Alsa/oss sound must be installed. The first part of the fix is described here, namely to modify the
file replace the line The second part of the fix, not mentioned there, is to modify the file replace If you prefer to leave the
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Embedding codeAfter ensuring that your browsers use appropiate versions of the RealPlayer-
and Flashplayer-plugins the other side of playing video clips is to serve HTML
code the used browser can handle. Unfortunately the actual situation is that
one browser does not accept the HTML code another browser needs. And, even
worse, none of the solutions are HTML compliant. Incompatibilities even
occur between equal browser versions for different operating systems. It needs
a browser- and operating-system-individual solution to provide the HTML code
one special browser needs. As explained above, this solution avoids JavaScript
and depends on a truly reported The code is written in PHP and is distributed under the terms of the GNU General Public License version 3. Copyright (C) Michael Besteck, 2007. It provides a RealVideo and a Flash version of a simple videoclip embedded in a HTML page. It needs a PHP enabled webserver, either on your local computer or on a website. The 2 included videoclips for demonstration purposes are Copyright (C) Michael Besteck, 2007, distributed under a non-commercial creativecommons by-nc-sa license. You can download the code as a zip-archive here. Do not forget to adjust the included rpm-file and ensure the files have read access rights. The following is the essence of lots of tests and may be used as base for experiments if you need such. _rpm_metafile_to_play_, _height_of_videoclip, _width_of_videoclip_ and _height_of_videoclip have to be replaced by individual values. RealVideo embedding for Opera browser running on Linux<embed
RealVideo embedding for any Gecko based Browser under Linux or Windows (Firefox, Netscape, Seamonkey)<object
RealVideo embedding for Konqueror (Linux) and Opera and Internet Explorer running on Windows<object
Flashvideo embedding for all tested constellations<object
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DemoUnpack the zip-archive into a PHP-enabled directory on a local or remote
webserver and browse the
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Links
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contact/ImpressumEmail: a.b.c_at_gmx.net Please let me know of your experiences and any improvements. Author: Michael Besteck as of 2007-12-25 Copyright (C) Michael Besteck 2007, 2008, License: Creative Commons, some rights reserved (commercial use, must include author's name) For reasons of privacy please email me if you feel any need of my address. This is a german website. Since in Germany any website owner is responsible for the content behind hyperlinks i hereby state that i refuse any responsibility for any content of any linked websites and i am dissociating from any content of any linked websites.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Homepage |