[FEATURE] Integrate Flowplayer and videoJS for accessible media rendering
authorStanislas Rolland <typo3@sjbr.ca>
Sat, 12 Nov 2011 16:19:28 +0000 (17:19 +0100)
committerOliver Hader <oliver@typo3.org>
Tue, 29 Nov 2011 13:26:17 +0000 (14:26 +0100)
The key requirements of accessible media rendering are having
synchronized closed captions (taken from the media resource or
provided by an external SRT file) and a synchronized additional
audio description layer. videoJS offers these functionality by
using plain HTML5 features and Flowplayer is used as fallback
to deliver the content with a Flash application. Editors can
then chose in the media content element which strategy of
content delivery to use.

These changes are a result of the BLE project and are taken from
git://git.typo3.org/TYPO3v4/Incubator.git project-accessibility

Change-Id: I00990ca18e2d9743a67a2d248ff23a2cf2ee8b12
Resolves: #31770
Releases: 4.7
Reviewed-on: http://review.typo3.org/6639
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
336 files changed:
t3lib/js/flowplayer/express-install.css [new file with mode: 0644]
t3lib/js/flowplayer/flashplayerlogo.jpg [new file with mode: 0644]
t3lib/js/videojs/audio-description.js [new file with mode: 0644]
t3lib/js/videojs/audio-description.png [new file with mode: 0644]
t3lib/js/videojs/captions.js [new file with mode: 0644]
t3lib/js/videojs/captions.png [new file with mode: 0644]
t3lib/js/videojs/control-bar.css [new file with mode: 0644]
t3lib/js/videojs/control-bar.js [new file with mode: 0644]
typo3/contrib/flowplayer/LICENSE-exception.txt [new file with mode: 0644]
typo3/contrib/flowplayer/LICENSE.txt [new file with mode: 0644]
typo3/contrib/flowplayer/README.txt [new file with mode: 0644]
typo3/contrib/flowplayer/build.properties [new file with mode: 0644]
typo3/contrib/flowplayer/build.xml [new file with mode: 0644]
typo3/contrib/flowplayer/example/flowplayer-3.2.6.min.js [new file with mode: 0644]
typo3/contrib/flowplayer/example/index.html.tmpl [new file with mode: 0644]
typo3/contrib/flowplayer/example/style.css [new file with mode: 0644]
typo3/contrib/flowplayer/expressinstall.swf [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer-3.2.7.swf [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.audio-3.2.2.swf [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.audio/LICENSE.txt [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.audio/README.txt [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.audio/build.properties [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.audio/build.xml [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.audio/src/actionscript/org/flowplayer/audio/AudioProvider.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.audio/src/actionscript/org/flowplayer/audio/AudioProviderFactory.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions-3.2.3.swf [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/LICENSE.txt [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/README.txt [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/build.properties [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/build.xml [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/casa.dfxp.xml [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/casa.dfxp.xml.1 [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/engineering.xml [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/flowplayer.captions.js [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/flvtool2-cuepoints.sh [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/left.png [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/right.png [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame00.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame01.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame02.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame03.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame04.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame05.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame06.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame07.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame08.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame09.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame10.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame11.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame12.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame13.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame14.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame15.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame16.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame17.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame18.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame19.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame20.jpg [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/index.html.tmpl [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/example/tools.scrollable-1.1.2.js [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/CCButton.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/Caption.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/CaptionFileTypes.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/CaptionSourceTypes.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/Config.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/NumberFormatter.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/parsers/AbstractCaptionParser.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/parsers/CaptionParser.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/parsers/JSONParser.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/parsers/SRTParser.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/parsers/TTXTParser.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/flash/closebutton.fla [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/flash/closebutton.swc [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.captions/src/flash/closebutton.swf [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.content-3.2.0.swf [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.content/LICENSE.txt [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.content/README.txt [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.content/build.properties [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.content/build.xml [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.content/src/actionscript/org/flowplayer/content/CloseButton.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.content/src/actionscript/org/flowplayer/content/Content.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.content/src/actionscript/org/flowplayer/content/ContentView.as [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.content/src/flash/closebutton.fla [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.content/src/flash/closebutton.swc [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.content/src/flash/closebutton.swf [new file with mode: 0644]
typo3/contrib/flowplayer/flowplayer.controls-3.2.5.swf [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/license.txt [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/readme.txt [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/crypto/MD5.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/crypto/SHA1.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/crypto/SHA224.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/crypto/SHA256.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/crypto/WSSEUsernameToken.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/errors/IllegalStateError.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/fileformats/vcard/Address.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/fileformats/vcard/Email.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/fileformats/vcard/Phone.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/fileformats/vcard/VCard.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/fileformats/vcard/VCardParser.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/images/BitString.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/images/JPGEncoder.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/images/PNGEncoder.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/net/DynamicURLLoader.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/net/IURIResolver.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/net/MimeTypeMap.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/net/URI.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/net/URIEncodingBitmap.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/net/proxies/RFC2817Socket.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/serialization/json/JSON.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/serialization/json/JSONDecoder.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/serialization/json/JSONEncoder.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/serialization/json/JSONParseError.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/serialization/json/JSONToken.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/serialization/json/JSONTokenType.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/serialization/json/JSONTokenizer.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/utils/ArrayUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/utils/DateUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/utils/DictionaryUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/utils/IntUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/utils/NumberFormatter.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/utils/StringUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/utils/XMLUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/webapis/ServiceBase.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/webapis/URLLoaderBase.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/corelib/src/com/adobe/webapis/events/ServiceEvent.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/flexunit/flexunit.swc [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/com/mosesSupposes/go/tutorials/SizeTweenMG.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/com/mosesSupposes/go/tutorials/WidthTween.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/GoEngine.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/PlayableBase.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/errors/DuplicateManagerError.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/errors/EasingFormatError.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/errors/InstanceNotAllowedError.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/events/GoEvent.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/events/SequenceEvent.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/interfaces/ILiveManager.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/interfaces/IManageable.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/interfaces/IManager.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/interfaces/IPlayable.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/interfaces/IPlayableBase.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/interfaces/IUpdatable.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/items/GoItem.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/items/LinearGo.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/items/PhysicsGo.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/managers/LinearGoRepeater.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/managers/OverlapMonitor.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/managers/Repeater.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/utils/PlayableGroup.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/utils/Sequence.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/utils/SequenceBase.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/utils/SequenceCA.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/utils/SequenceStep.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/utils/SequenceStepCA.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/utils/customadvance/OnConditionTrue.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/utils/customadvance/OnDurationComplete.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/utils/customadvance/OnEventComplete.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/utils/customadvance/OnPlayableComplete.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/goasp/src_go/org/goasap/utils/customadvance/SequenceAdvance.as [new file with mode: 0644]
typo3/contrib/flowplayer/lib/licensekey/licensekey.swc [new file with mode: 0644]
typo3/contrib/flowplayer/lib/thunderbolt/ThunderBoltAS3_Flash.swc [new file with mode: 0644]
typo3/contrib/flowplayer/manifest.xml [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript-builtin/BuiltInConfig.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript-commercial/org/flowplayer/config/VersionInfo.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript-commercial/org/flowplayer/view/ContextMenuBuilder.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript-commercial/org/flowplayer/view/LabelPlayButton.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript-commercial/org/flowplayer/view/LicenseKey.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript-commercial/org/flowplayer/view/LogoView.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript-commercial/org/flowplayer/view/PlayButtonOverlayView.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/mx/core/BitmapAsset.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/config/Config.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/config/ConfigParser.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/config/ExternalInterfaceHelper.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/config/PlaylistBuilder.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/config/PluginBuilder.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/config/RSSPlaylistParser.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/AbstractDurationTrackingController.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/BufferingState.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/ClipImageLoader.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/ClipURLResolver.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/ClipURLResolverHelper.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/CompositeClipUrlResolver.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/ConnectionCallbacks.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/ConnectionProvider.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/DefaultClipURLResolver.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/DefaultRTMPConnectionProvider.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/EndedState.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/ImageController.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/InStreamTracker.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/LocalSOVolumeStorage.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/MediaController.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/MediaControllerFactory.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/NetConnectionClient.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/NetStreamCallbacks.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/NetStreamClient.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/NetStreamControllingStreamProvider.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/NullNetStreamClient.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/NullVolumeStorage.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/ParallelRTMPConnectionProvider.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/ParallelRTMPConnector.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/PausedState.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/PlayListController.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/PlayState.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/PlayTimeTracker.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/PlayingState.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/ProviderTypes.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/ResourceLoader.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/ResourceLoaderImpl.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/StreamProvider.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/StreamProviderController.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/TimeProvider.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/VolumeController.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/VolumeStorage.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/controller/WaitingState.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/flow_internal.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/AbstractConstraint.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/AbstractLayout.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/Constraint.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/Dimensions.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/DrawWrapper.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/FixedContraint.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/Layout.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/LayoutEvent.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/Length.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/LengthMath.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/MarginConstraint.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/MarginLayout.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/Position.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/layout/RelativeConstraint.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/AbstractEvent.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/Callable.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/Canvas.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/Clip.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/ClipError.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/ClipEvent.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/ClipEventDispatcher.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/ClipEventSupport.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/ClipEventType.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/ClipType.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/Cloneable.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/Cuepoint.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/DisplayPluginModel.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/DisplayPluginModelImpl.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/DisplayProperties.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/DisplayPropertiesImpl.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/DynamicCuepoint.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/ErrorCode.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/EventDispatcher.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/EventListener.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/EventType.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/FontProvider.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/Identifiable.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/Loadable.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/Logo.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/MediaSize.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/NullClip.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/PlayButtonOverlay.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/PlayerError.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/PlayerEvent.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/PlayerEventType.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/Playlist.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/Plugin.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/PluginError.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/PluginEvent.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/PluginEventDispatcher.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/PluginEventType.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/PluginFactory.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/PluginMethod.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/PluginMethodHelper.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/PluginModel.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/PluginModelImpl.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/ProviderModel.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/State.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/Status.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/model/TimedPlaylist.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/Arrange.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/ArrayUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/Assert.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/GraphicsUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/Log.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/LogConfiguration.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/NumberUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/ObjectConverter.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/PropertyBinder.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/StyleSheetUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/TextUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/TimeUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/URLUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/util/VersionUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/AbstractSprite.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/Animation.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/AnimationEngine.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/BuiltInAssetHelper.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/ClipResizer.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/ErrorHandler.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/FlowStyleSheet.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/Flowplayer.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/FlowplayerBase.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/FlowplayerComponent.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/FullscreenManager.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/ImageDisplay.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/ImageHolder.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/KeyboardHandler.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/Launcher.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/LogoUtil.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/MediaDisplay.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/MediaDisplayFactory.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/MediaResizer.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/Panel.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/PlayerEventDispatcher.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/PluginLoader.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/PluginRegistry.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/Preloader.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/RotatingAnimation.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/Screen.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/Styleable.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/StyleableSprite.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/VideoApiDisplay.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/VideoDisplay.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/actionscript/org/flowplayer/view/WrapperForIE.as [new file with mode: 0644]
typo3/contrib/flowplayer/src/flash/resources.fla [new file with mode: 0644]
typo3/contrib/flowplayer/src/flash/resources.swc [new file with mode: 0644]
typo3/contrib/flowplayer/src/flash/resources.swf [new file with mode: 0644]
typo3/contrib/videojs/video-js/LICENSE.txt [new file with mode: 0644]
typo3/contrib/videojs/video-js/README.markdown [new file with mode: 0644]
typo3/contrib/videojs/video-js/demo-subtitles.srt [new file with mode: 0644]
typo3/contrib/videojs/video-js/demo.html [new file with mode: 0644]
typo3/contrib/videojs/video-js/skins/hu.css [new file with mode: 0644]
typo3/contrib/videojs/video-js/skins/tube.css [new file with mode: 0644]
typo3/contrib/videojs/video-js/skins/vim.css [new file with mode: 0644]
typo3/contrib/videojs/video-js/video-js.css [new file with mode: 0644]
typo3/contrib/videojs/video-js/video.js [new file with mode: 0644]
typo3/sysext/cms/flexform_media.xml
typo3/sysext/cms/locallang_ttc.xlf
typo3/sysext/cms/tslib/content/class.tslib_content_media.php
typo3/sysext/cms/tslib/content/class.tslib_content_shockwaveflashobject.php
typo3/sysext/css_styled_content/static/constants.txt

diff --git a/t3lib/js/flowplayer/express-install.css b/t3lib/js/flowplayer/express-install.css
new file mode 100644 (file)
index 0000000..ea0fc66
--- /dev/null
@@ -0,0 +1,7 @@
+/* Selector for Flash express install div section*/
+
+.flash-install-info div {
+       padding-top: 105px;
+       background-image: url("flashplayerlogo.jpg");
+       background-repeat: no-repeat;
+}
\ No newline at end of file
diff --git a/t3lib/js/flowplayer/flashplayerlogo.jpg b/t3lib/js/flowplayer/flashplayerlogo.jpg
new file mode 100644 (file)
index 0000000..594a8bb
Binary files /dev/null and b/t3lib/js/flowplayer/flashplayerlogo.jpg differ
diff --git a/t3lib/js/videojs/audio-description.js b/t3lib/js/videojs/audio-description.js
new file mode 100644 (file)
index 0000000..6d94c5c
--- /dev/null
@@ -0,0 +1,64 @@
+/***************************************************************
+ *  Copyright notice
+ *
+ *  (c) 2011 Stanislas Rolland <typo3@sjbr.ca>
+ *  All rights reserved
+ *
+ *  This script is part of the TYPO3 project. The TYPO3 project is
+ *  free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  The GNU General Public License can be found at
+ *  http://www.gnu.org/copyleft/gpl.html.
+ *  A copy is found in the textfile GPL.txt and important notices to the license
+ *  from the author is found in LICENSE.txt distributed with these scripts.
+ *
+ *
+ *  This script is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  This copyright notice MUST APPEAR in all copies of the script!
+ ***************************************************************/
+/* Audio description Toggle Behaviors for videoJS */
+VideoJS.player.newBehavior("audioDescriptionToggle", function(element) {
+               _V_.addListener(element, "click", this.onAudioDescriptionToggleClick.context(this));
+       },{
+                       // When the user clicks on the audioDesription button, update audioDesription state
+               onAudioDescriptionToggleClick: function(event) {
+                       if (this.audioDescriptionEnabled) {
+                               this.disableAudioDescription();
+                       } else {
+                               this.enableAudioDescription();
+                       }
+               }
+       }
+);
+VideoJS.player.extend({
+               // Audio description state variable
+       audioDescriptionEnabled: false,
+               // Reference to the audio description audio element
+       audioDescription: null,
+               // Enable audio description
+       enableAudioDescription: function (event) {
+                       // Set reference if not yet done
+               if (!this.audioDescription) {
+                       var id = this.video.id.replace("video_js", "audio_element");
+                       this.audioDescription = document.getElementById(id);
+               }
+               if (this.audioDescription && this.audioDescription.nodeName == 'AUDIO') {
+                       this.audioDescription.muted = false;
+                       this.audioDescriptionEnabled = true;
+               }
+       },
+               // Disable audio description
+       disableAudioDescription: function (event) {
+               if (this.audioDescription && this.audioDescription.nodeName == 'AUDIO') {
+                       this.audioDescription.muted = true;
+                       this.audioDescriptionEnabled = false;
+               }
+       }       
+});
\ No newline at end of file
diff --git a/t3lib/js/videojs/audio-description.png b/t3lib/js/videojs/audio-description.png
new file mode 100644 (file)
index 0000000..2150c5d
Binary files /dev/null and b/t3lib/js/videojs/audio-description.png differ
diff --git a/t3lib/js/videojs/captions.js b/t3lib/js/videojs/captions.js
new file mode 100644 (file)
index 0000000..38e35c4
--- /dev/null
@@ -0,0 +1,59 @@
+/***************************************************************
+ *  Copyright notice
+ *
+ *  (c) 2011 Stanislas Rolland <typo3@sjbr.ca>
+ *  All rights reserved
+ *
+ *  This script is part of the TYPO3 project. The TYPO3 project is
+ *  free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  The GNU General Public License can be found at
+ *  http://www.gnu.org/copyleft/gpl.html.
+ *  A copy is found in the textfile GPL.txt and important notices to the license
+ *  from the author is found in LICENSE.txt distributed with these scripts.
+ *
+ *
+ *  This script is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  This copyright notice MUST APPEAR in all copies of the script!
+ ***************************************************************/
+/* Captions Toggle Behaviors for videoJS */
+VideoJS.player.newBehavior("captionsToggle",
+       function(element) {
+               _V_.addListener(element, "click", this.onCaptionsToggleClick.context(this));
+       },{
+               // When the user clicks on the subtitles button, update subtitles setting
+       onCaptionsToggleClick: function(event) {
+                       if (this.subtitlesDisplay.style.visibility != "hidden") {
+                               this.hideCaptions();
+                       } else {
+                               this.showCaptions();
+                       }
+               }
+       }
+);
+VideoJS.player.extend({
+               // Override to use captions kind of track rather than subtitles
+       getSubtitles: function(){
+               var tracks = this.video.getElementsByTagName("TRACK");
+               for (var i=0,j=tracks.length; i<j; i++) {
+                       if (tracks[i].getAttribute("kind") == "captions" && tracks[i].getAttribute("src")) {
+                               this.subtitlesSource = tracks[i].getAttribute("src");
+                               this.loadSubtitles();
+                               this.buildSubtitles();
+                       }
+               }
+       },
+       showCaptions: function (event) {
+               this.subtitlesDisplay.style.visibility = "visible";
+       },
+       hideCaptions: function (event) {
+               this.subtitlesDisplay.style.visibility = "hidden";
+       }       
+});
\ No newline at end of file
diff --git a/t3lib/js/videojs/captions.png b/t3lib/js/videojs/captions.png
new file mode 100644 (file)
index 0000000..33a56b1
Binary files /dev/null and b/t3lib/js/videojs/captions.png differ
diff --git a/t3lib/js/videojs/control-bar.css b/t3lib/js/videojs/control-bar.css
new file mode 100644 (file)
index 0000000..abfc66a
--- /dev/null
@@ -0,0 +1,27 @@
+/* Placement of Control Items 
+   - Left side of pogress bar, use left & width
+   - Rigth side of progress bar, use right & width
+   - Expand with the video (like progress bar) use left & right */
+.vjs-controls > div.vjs-play-control       { left: 5px;   width: 25px;  }
+.vjs-controls > div.vjs-progress-control   { left: 35px;  right: 221px; } /* Using left & right so it expands with the width of the video */
+.vjs-controls > div.vjs-time-control       { width: 75px; right: 156px;  } /* Time control and progress bar are combined to look like one */
+.vjs-controls > div.vjs-volume-control     { width: 50px; right: 101px;  }
+.vjs-controls > div.vjs-captions-control  { width: 31px; right: 65px;   }
+.vjs-controls > div.vjs-audio-description-control  { width: 25px; right: 35px;   }
+.vjs-controls > div.vjs-fullscreen-control { width: 25px; right: 5px;   }
+       /* Sub titles toggle*/
+.vjs-captions-control div { cursor: pointer !important; }
+.vjs-captions-control div {
+  padding: 0; text-align: left; vertical-align: top; cursor: pointer !important; 
+  margin: 5px 0 0 5px; /* Placement within the fullscreen control item */
+  width: 20px; height: 20px;
+}
+.vjs-captions-control div { background-image: url("captions.png"); background-repeat:no-repeat; background-position: center center;}
+       /* Audio description toggle*/
+.vjs-audio-description-control div { cursor: pointer !important; }
+.vjs-audio-description-control div {
+  padding: 0; text-align: left; vertical-align: top; cursor: pointer !important; 
+  margin: 5px 0 0 5px; /* Placement within the fullscreen control item */
+  width: 20px; height: 20px;
+}
+.vjs-audio-description-control div { background-image: url("audio-description.png"); background-repeat:no-repeat; }
\ No newline at end of file
diff --git a/t3lib/js/videojs/control-bar.js b/t3lib/js/videojs/control-bar.js
new file mode 100644 (file)
index 0000000..1af1f7b
--- /dev/null
@@ -0,0 +1,166 @@
+/***************************************************************
+ *  Copyright notice
+ *
+ *  (c) 2011 Stanislas Rolland <typo3@sjbr.ca>
+ *  All rights reserved
+ *
+ *  This script is part of the TYPO3 project. The TYPO3 project is
+ *  free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  The GNU General Public License can be found at
+ *  http://www.gnu.org/copyleft/gpl.html.
+ *  A copy is found in the textfile GPL.txt and important notices to the license
+ *  from the author is found in LICENSE.txt distributed with these scripts.
+ *
+ *
+ *  This script is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  This copyright notice MUST APPEAR in all copies of the script!
+ ***************************************************************/
+/* Extended control bar for videoJS */
+VideoJS.player.extend({
+  /* Control Bar override to add the subtitles control
+  ================================================================================ */
+  buildAndActivateControlBar: function(){
+    /* Creating this HTML
+      <div class="vjs-controls">
+        <div class="vjs-play-control">
+          <span></span>
+        </div>
+        <div class="vjs-progress-control">
+          <div class="vjs-progress-holder">
+            <div class="vjs-load-progress"></div>
+            <div class="vjs-play-progress"></div>
+          </div>
+        </div>
+        <div class="vjs-time-control">
+          <span class="vjs-current-time-display">00:00</span><span> / </span><span class="vjs-duration-display">00:00</span>
+        </div>
+        <div class="vjs-volume-control">
+          <div>
+            <span></span><span></span><span></span><span></span><span></span><span></span>
+          </div>
+        </div>
+        <div class="vjs-subtitles-control">
+          <div>
+            <span></span><span></span><span></span><span></span>
+          </div>
+        </div>
+        <div class="vjs-audio-description-control">
+          <div>
+            <span></span><span></span><span></span><span></span>
+          </div>
+        </div>
+        <div class="vjs-fullscreen-control">
+          <div>
+            <span></span><span></span><span></span><span></span>
+          </div>
+        </div>
+      </div>
+    */
+
+    // Create a div to hold the different controls
+    this.controls = _V_.createElement("div", { className: "vjs-controls" });
+    // Add the controls to the video's container
+    this.box.appendChild(this.controls);
+    this.activateElement(this.controls, "controlBar");
+    this.activateElement(this.controls, "mouseOverVideoReporter");
+
+    // Build the play control
+    this.playControl = _V_.createElement("div", { className: "vjs-play-control", innerHTML: "<span></span>" });
+    this.controls.appendChild(this.playControl);
+    this.activateElement(this.playControl, "playToggle");
+
+    // Build the progress control
+    this.progressControl = _V_.createElement("div", { className: "vjs-progress-control" });
+    this.controls.appendChild(this.progressControl);
+
+    // Create a holder for the progress bars
+    this.progressHolder = _V_.createElement("div", { className: "vjs-progress-holder" });
+    this.progressControl.appendChild(this.progressHolder);
+    this.activateElement(this.progressHolder, "currentTimeScrubber");
+
+    // Create the loading progress display
+    this.loadProgressBar = _V_.createElement("div", { className: "vjs-load-progress" });
+    this.progressHolder.appendChild(this.loadProgressBar);
+    this.activateElement(this.loadProgressBar, "loadProgressBar");
+
+    // Create the playing progress display
+    this.playProgressBar = _V_.createElement("div", { className: "vjs-play-progress" });
+    this.progressHolder.appendChild(this.playProgressBar);
+    this.activateElement(this.playProgressBar, "playProgressBar");
+
+    // Create the progress time display (00:00 / 00:00)
+    this.timeControl = _V_.createElement("div", { className: "vjs-time-control" });
+    this.controls.appendChild(this.timeControl);
+
+    // Create the current play time display
+    this.currentTimeDisplay = _V_.createElement("span", { className: "vjs-current-time-display", innerHTML: "00:00" });
+    this.timeControl.appendChild(this.currentTimeDisplay);
+    this.activateElement(this.currentTimeDisplay, "currentTimeDisplay");
+
+    // Add time separator
+    this.timeSeparator = _V_.createElement("span", { innerHTML: " / " });
+    this.timeControl.appendChild(this.timeSeparator);
+
+    // Create the total duration display
+    this.durationDisplay = _V_.createElement("span", { className: "vjs-duration-display", innerHTML: "00:00" });
+    this.timeControl.appendChild(this.durationDisplay);
+    this.activateElement(this.durationDisplay, "durationDisplay");
+
+    // Create the volumne control
+    this.volumeControl = _V_.createElement("div", {
+      className: "vjs-volume-control",
+      innerHTML: "<div><span></span><span></span><span></span><span></span><span></span><span></span></div>"
+    });
+    this.controls.appendChild(this.volumeControl);
+    this.activateElement(this.volumeControl, "volumeScrubber");
+
+    this.volumeDisplay = this.volumeControl.children[0];
+    this.activateElement(this.volumeDisplay, "volumeDisplay");
+
+    // Create the captions control
+    this.captionsControl = _V_.createElement("div", {
+      className: "vjs-captions-control",
+      innerHTML: "<div><span></span><span></span><span></span><span></span></div>"
+    });
+    this.controls.appendChild(this.captionsControl);
+       // Hide the control if there are no tracks
+    var tracks = this.video.getElementsByTagName("TRACK");
+    if (tracks.length) {
+         this.activateElement(this.captionsControl, "captionsToggle");
+    } else {
+         this.captionsControl.style.display = "none";
+    }
+
+    // Create the audio description control
+    this.audioDescriptionControl = _V_.createElement("div", {
+      className: "vjs-audio-description-control",
+      innerHTML: "<div><span></span><span></span><span></span><span></span></div>"
+    });
+       // Look for the audio description associated with this video element
+       // We could look for audio with same mediagroup...
+    var id = this.video.id.replace("video_js", "audio_element");
+    var audioDescription = document.getElementById(id);
+    if (!!audioDescription) {
+           this.controls.appendChild(this.audioDescriptionControl);
+           this.activateElement(this.audioDescriptionControl, "audioDescriptionToggle");
+    } else {
+           this.audioDescriptionControl.style.display = "none";
+    }
+
+    // Crete the fullscreen control
+    this.fullscreenControl = _V_.createElement("div", {
+      className: "vjs-fullscreen-control",
+      innerHTML: "<div><span></span><span></span><span></span><span></span></div>"
+    });
+    this.controls.appendChild(this.fullscreenControl);
+    this.activateElement(this.fullscreenControl, "fullscreenToggle");
+  }    
+});
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/LICENSE-exception.txt b/typo3/contrib/flowplayer/LICENSE-exception.txt
new file mode 100644 (file)
index 0000000..2b4b633
--- /dev/null
@@ -0,0 +1,23 @@
+Return-Path: <anssip@gmail.com>
+Message-ID: <4EB24F4B.9010707@gmail.com>
+Date: Thu, 03 Nov 2011 10:22:35 +0200
+From: Anssi Piirainen <anssip@gmail.com>
+To: Oliver Hader <oliver.hader@typo3.org>
+CC: info@flowplayer.org
+Subject: Re: Flowplayer: Question on GPLv3/GPLv2 FLOSS Exception
+References: <4EB12708.8030406@typo3.org>
+In-Reply-To: <4EB12708.8030406@typo3.org>
+
+
+Hi Oliver,
+
+You can use our Free version that is under our GPL 2 based license. You 
+have my blessing for this and you can archive this email for any future 
+needs.
+
+Let me know if you need something more from us. I think it would make 
+sense for us to include this kind of exception in our website, just like 
+Sencha does.
+
+Regards,
+Anssi
diff --git a/typo3/contrib/flowplayer/LICENSE.txt b/typo3/contrib/flowplayer/LICENSE.txt
new file mode 100644 (file)
index 0000000..2a00962
--- /dev/null
@@ -0,0 +1,721 @@
+The Flowplayer Free version is released under the
+GNU GENERAL PUBLIC LICENSE Version 3 (GPL).
+
+The GPL requires that you not remove the Flowplayer copyright notices
+from the user interface. See section 5.d below.
+
+Commercial licenses are available. The commercial player version
+does not require any Flowplayer notices or texts and also provides
+some additional features.
+
+========================================================================
+
+ADDITIONAL TERM per GPL Section 7
+If you convey this program (or any modifications of it) and assume
+contractual liability for the program to recipients of it, you agree
+to indemnify Flowplayer, Ltd. for any liability that those contractual
+assumptions impose on Flowplayer, Ltd.
+
+Except as expressly provided herein, no trademark rights are granted in
+any trademarks of Flowplayer, Ltd. Licensees are granted a limited,
+non-exclusive right to use the mark Flowplayer and the Flowplayer logos
+in connection with unmodified copies of the Program and the copyright
+notices required by section 5.d of the GPL license. For the purposes
+of this limited trademark license grant, customizing the Flowplayer
+by skinning, scripting, or including PlugIns provided by Flowplayer, Ltd.
+is not considered modifying the Program.
+
+Licensees that do modify the Program, taking advantage of the open-source
+license, may not use the Flowplayer mark or Flowplayer logos and must
+change the fullscreen notice (and the non-fullscreen notice, if that
+option is enabled), the copyright notice in the dialog box, and the
+notice on the Canvas as follows:
+
+the full screen (and non-fullscreen equivalent, if activated) notice
+should read: "Based on Flowplayer source code"; in the context menu
+(right-click menu), the link to "About Flowplayer free version #.#.#"
+can remain. The copyright notice can remain, but must be supplemented with
+an additional notice, stating that the licensee modified the Flowplayer. 
+A suitable notice might read "Flowplayer Source code modified by ModOrg 2009";
+for the canvas, the notice should read "Based on Flowplayer source code".
+In addition, licensees that modify the Program must give the modified
+Program a new name that is not confusingly similar to Flowplayer and
+may not distribute it under the name Flowplayer.
+
+========================================================================
+
+
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products.  If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+  Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary.  To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Use with the GNU Affero General Public License.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+  Each version is given a distinguishing version number.  If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+  If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+    <program>  Copyright (C) <year>  <name of author>
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+  The GNU General Public License does not permit incorporating your program
+into proprietary programs.  If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.  But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/README.txt b/typo3/contrib/flowplayer/README.txt
new file mode 100644 (file)
index 0000000..4609c6d
--- /dev/null
@@ -0,0 +1,350 @@
+Version history:
+
+3.2.7
+-----
+
+- Loads the new controlbar plugin version 3.2.5. No other functional changes.
+
+3.2.6
+-----
+- linkUrl should now work better with popup blockers: http://code.google.com/p/flowplayer-core/issues/detail?id=31
+- new linkWindow value "_popup" opens the linked page in a popup browser window
+- added new onClipResized event
+- Added new onUnload event, can be only listened in Flash and not triggered to JS
+- API: Added new url property to plugin objects
+Fixes:
+- it was not possible to call play() in an onFinish listener
+- fix to preserve the infoObject for custom netStream and netConnection clients in cases where the infoObject is a
+  primitive object without properties
+- does not show the error dialog in the debugger player when showErrors: false
+- fixed to correctly handle xx.ca subdomains when validating the license key
+- a custom logo is now sized correctly according to the configured size
+- does not show the buffer animation any more when the player receives the onBufferEmpty message from the netStream.
+  The animation was unnecessarily shown in some situations.
+- fixed #155. added new urlEncoding property to Clip for url ncoding ut8 urls
+
+3.2.5
+-----
+- added new scaling option 'crop' that resizes to fill all available space, cropping on top/bottom or left/right
+- improvements to RSS file parsing
+- Now displays a hand cursor when a linkUrl is used in clips
+
+3.2.4
+-----
+- new flowplayer.js version, with Apple iDevice fixes
+
+3.2.3
+-----
+- a new 'type' clip property exposed to JS
+- changed the clip type property to better work as a read-write property. Now accepts 'video', 'audio',
+  'image' and 'api' as configuration values.
+- moved parallel rtmp connection mechanism from the RTMP plugin to Core so other plugins can use it (ie: securestreaming)
+Fixes:
+- fixed #112, wrong URL computation when using clip with relative URL on a page with a / after a # in its url
+- fixed #111, wrong behavior of pre/post roll images with duration 0
+- fixed multiple license keys logic
+Fixes:
+- correct verification of license keys in *.ca domains
+- fix to make playback to always reach end of video
+- fixed resuming of live streams
+
+3.2.2
+-----
+Fixes:
+- Now recognizes following kind of urls as audio clips: 'mp3:audiostreamname' (ulrs with mp3 prefix and no extension)
+- Now ignores the duration from metadata if we already got one. Fix required for pseudostreaming
+- Fix to reuse buffered data when replaying a clip
+
+3.2.1
+---------
+- Support for RTMP redirects (tested with Wowza loadbalancing)
+- Fixed video size when no size info available in clip metadata
+
+Fixes:
+- Fix to correctly detect if the player SWF name contains a version number and if it does also use the version number
+when it automatically loads the controls plugin.
+
+3.2.0
+-----
+- canvas, controlbar and the content plugin backgound color and border color can be now given with rgb() and rgba() CSS style syntax
+- Added onMouseOver() and onMouseOut() listener registration methods to the Flowplayer API
+- enhancements to RSS playlist. Converted parsing to E4X, yahoo media and flowplayer namespace support. 
+- added feature to obtain bitrate and dimension information to a new clip custom property "bitrates" for future support for bitrate choosing. 
+- added getter for playerSwfName config
+- if clip.url has the string "mp3:" in it, the clip.type will report 'audio'
+- added setKeyboardShortcutsEnabled(), addKeyListener(), removeKeyListener() to FlowplayerBase
+Fixes:
+- onSeek() was not fired when seeking while paused and when using RTMP. An extra onStart was fired too.
+- fireErrorExternal() was not working properly with an error PlayerEvent
+- countPlugins() was throwing an error when a plugin was not found
+- external swf files were not scaled properly
+- the logo was unnecessary shown when going fullscreen if logo.displayTime was being used
+- added a loadPluginWithConfig method to FlowplayerBase, accessible from javascript. Fixed double onload callback call.
+- now handles cuepoint parameters injected using the Adobe Media Encoder
+- showPlugin was not working when config.play was null
+- handles 3-part duration values included in FLV metadata, like "500.123.123"
+- player wasn't always reaching end of video
+- fixed broken buffering: false
+- fixed event dispatching when embedding flowplayer without flowplayer.js (=without playlist config field)
+- fixed safari crashes when unloading player
+- fixed scrubber behaviour with a playlist containing 2 images (or swf) in a row
+- fixed errors in logs when using an RSS playlist
+- fixed OverlayPlayButton that was showing even if it shouldn't on some cases
+- fixed wrong behavior when onBeforeFinish was returning false within playlists
+- /!\ Don't use the fadeIn / fadeOut controlbar's API while using autoHide.
+- fixed play state button with images
+- fixed splash image flickering
+
+3.1.5
+-----
+Fixes:
+- The player went to a locked state when resuming playback after a period that was long enought to send the
+netConnection to an invalid state. Now when resuming playback on an invalid connection the clip starts again from
+the beginning. This is only when using RTMP connections and does not affect progressive download playback.
+- Custom netConnect and netStream events did not pass the info object to JS listeners
+
+3.1.4
+-----
+Fixes:
+- player did not initialize if the controlbar plugin was disabled and if the play button overlay was disabled with play: null
+- works properly without cachebusting on IE
+- RSS playlist parsing now respects the isDefault attribute used in mRSS media group items
+- Fixed passing of connection arguments
+
+3.1.3
+-----
+- enhancements to RSS playlist parsing: Now skips all media:content that have unsupported types. Now the type attribute
+of the media:content element is mandatory and has to be present in the RSS file
+- Possibility to pass a RSS file name with playFeed("playlist.rss") and setPlaylist("playlist.rss") calls.
+- changes to the ConnectionProvider and URLResolver APIs
+- Now automatically uses a plugin that is called 'rtmp' for all clips that have the rtmp-protocol in their URLs.
+- Added possibility to specify all clip properties in an RSS playlist
+
+Fixes:
+- the result of URL resolvers in now cached, and the resolvers will not be used again when a clip is replayed
+- some style properties like 'backgroundGradient' had no effect in config
+- video goes tiny on Firefox: http://flowplayer.org/forum/8/23226
+- RSS playlists: The 'type' attribute value 'audio/mp3' in the media:content element caused an error.
+- Dispatches onMetadata() if an URL resolver changes the clip URL (changes to a different file)
+- error codes and error message were not properly passed to onEvent JS listeners
+
+3.1.2
+-----
+- The domain of the logo url must the same domain from where the player SWF is loaded from.
+- Fullscreen can be toggled by doublclick on the video area.
+Fixes:
+- Player was not initialized correctly when instream playlists were used and the provider used in the instream clips was defined in the common clip.
+- A separator in the Context Menu made the callbacks in the following menu items out of order. Related forum post: http://flowplayer.org/forum/8/22541
+- the width and height settings of a logo were ignored if the logo was a sWF file
+- volume control and mute/unmute were not working after an instream clip had been played
+- now possible to use RTMP for mp3 files
+- Issue 12: cuepointMultiplier was undefined in the clip object set to JS event listeners
+- Issue 14: onBeforeStop was unnecessarily fired when calling setPlaylist() and the player was not playing,
+            additionally onStop was never fired even if onBeforeStop was
+- fixed screen vertical placement problems that reappeared with 3.1.1
+- The rotating animation now has the same size and position as it has after initialized
+
+3.1.1
+-----
+- External configuration files
+- Instream playback
+- Added toggleFullscreen() the API
+- Possibility to specify controls configuration in clips
+- Seek target position is now sent in the onBeforeSeek event
+Fixes:
+- The screen size was initially too small on Firefox (Mac)
+- Did not persist a zero volume value: http://www.flowplayer.org/forum/8/18413
+
+3.1.0
+-----
+New features:
+- clip's can have urlResolvers and connectionProviders
+- Added new configuration options 'connectionCallbacks' and 'streamCallbacks'. Both accept an Array of event names as a value.
+  When these events get fired on the connection or stream object, corresponding Clip events will be fired by the player.
+  This can be used for example when firing custom events from RTMP server apps
+- Added new clip event types: 'onConnectionEvent' and 'onStreamEvent' these get fired when the predefined events happen on the connection and stream objects.
+- Added Security.allowDomain() to allow loaded plugins to script the player
+- Added addClip(clip, index) to the API, index is optional
+- Possibility to view videos without metadata, using clip.metaData: false
+- Now the player's preloader uses the rotating animation instead of a percent text to indicate the progress
+  of loading the player SWF. You can disable the aninamtion by setting buffering: false
+- calling close() now does not send the onStop event
+- Clip's custom properties are now present in the root of the clip argument in all clip events that are sent to JS.
+
+Bug fixes:
+- The preloader sometimes failed to initialize the player
+- Allow seeking while in buffering state: http://flowplayer.org/forum/8/16505
+- Replay of a RTMP stream was failing after the connection had expired
+- Security error when clicking on the screen if there is an image in the playlist loaded from a foreign domain
+- loadPlugin() was not working
+- now fullscreen works with Flash versions older than 9.0.115, in versions that do not support hardware scaling
+- replaying a RTMP stream with an image in front of the stream in the playlist was not working (video stayed hidden). Happened
+  because the server does not send metadata if replaying the same stream.
+- the scrubber is disabled if the clip is not seekable in the first frame: http://flowplayer.org/forum/8/16526
+  By default if the clip has one of following extensions (the typical flash video extensions) it is seekable
+  in the first frame: 'f4b', 'f4p', 'f4v', 'flv'. Added new clip property seekableOnBegin that can be used to override the default.  
+
+3.0.6
+-----
+- added possibility to associate a linkUrl and linkWindow to the canvas
+Fixes:
+- fix for entering fullscreen for Flash versions that don't support the hardware scaled fullscreen-mode
+- when showing images the duration tracking starts only after the image has been completely loaded: http://flowplayer.org/forum/2/15301
+- fix for verifying license keys for domains that have more than 4 labels in them
+- if plugin loading failis because of a IO error, the plugin will be discarded and the player initialization continues:
+
+3.0.4
+-----
+- The "play" pseudo-plugin now supports fadeIn(), fadeOut(), showPlugin(), hidePlugin() and
+  additionally you can configure it like this:
+  // make only the play button invisible (buffering animation is still used)
+  play: { display: 'none' }
+  // disable the play button and the buffering animation
+  play: null
+  // disable the buffering animation
+  buffering: null 
+- Added possibility to seek when in the buffering state: http://flowplayer.org/forum/3/13896
+- Added copyright notices and other GPL required entries to the user interface
+
+Fixes:
+- clip urls were not resolved correctly if the HTML page URL had a query string starting with a question mark (http://flowplayer.org/forum/8/14016#post-14016)
+- Fixed context menu for with IE (commercial version)
+- a cuepoint at time zero was fired several times
+- screen is now arranged correctly even when only bottom or top is defined for it in the configuration
+- Fixed context menu for with IE (commercial version)
+- a cuepoint at time zero was fired several times
+- screen is now arranged correctly even when only bottom or top is defined for it in the configuration
+- Now possible to call play() in an onError handler: http://flowplayer.org/forum/8/12939
+- Does not throw an error if the player cannot persist the volume on the client computer: http://flowplayer.org/forum/8/13286#post-13495
+- Triggering fullscreen does not pause the player in IE
+- The play button overlay no longer has a gap between it's pieces when a label is used: http://flowplayer.org/forum/8/14250
+- clip.update() JS call now resets the duration
+- a label configured for the play button overlay did not work in the commercial version
+
+3.0.3
+-----
+- fixed cuepoint firing: Does not skip cuepoints any more
+- Plugins can now be loaded from a different domain to the flowplayer.swf
+- Specifying a clip to play by just using the 'clip' node in the configuration was not working, a playlist definition was required. This is now fixed.
+- Fixed: A playlist with different providers caused the onMetadata event to fire events with metadata from the previous clip in the playlist. Occurred when moving in the playlist with next() and prev()
+- the opacity setting now works with the logo
+- fadeOut() call to the "screen" plugin was sending the listenerId and pluginName arguments in wrong order
+- stop(), pause(), resume(), close() no longer return the flowplayer object to JS
+- changing the size of the screen in a onFullscreen listener now always works, there was a bug that caused this to fail occasionally
+- fixed using arbitrary SWFs as plugins
+- the API method setPlaylist() no longer starts playing if autoPlay: true, neither it starts buffering if autoBuffering: true
+- the API method play() now accepts an array of clip objects as an argument, the playlist is replaced with the specified clips and playback starts from the 1st clip
+
+3.0.2
+-----
+- setting play: null now works again
+- pressing the play again button overlay does not open a linkUrl associated with a clip
+- now displays a live feed even when the RTMP server does not send any metadata and the onStart method is not therefore dispatched
+- added onMetaData clip event
+- fixed 'orig' scaling: the player went to 'fit' scaling after coming back from fullscreen. This is now fixed and the original dimensions are preserved in non-fullscreen mode.
+- cuepoint times are now given in milliseconds, the firing precision is 100 ms. All cuepoint times are rounded to the nearest 100 ms value (for example 1120 rounds to 1100) 
+- backgroundGradient was drawn over the background image in the canvas and in the content and controlbar plugins. Now it's drawn below the image.
+- added cuepointMultiplier property to clips. This can be used to multiply the time values read from cuepoint metadata embedded into video files.
+- the player's framerate was increased to 24 FPS, makes all animations smoother
+
+3.0.1
+-----
+- Fixed negative cuepoints from common clip. Now these are properly propagated to the clips in playlist.
+- buffering animation is now the same size as the play button overlay
+- commercial version now supports license keys that allows the use of subdomains
+- error messages are now automatically hidden after a 4 second delay. They are also hidden when a new clips
+  starts playing (when onBeforeBegin is fired)
+- added possibility to disable the buffering animation like so: buffering: false
+- pressing the play button overlay does not open a linkUrl associated with a clip
+- license key verification failed if a port number was used in the URL (like in this url: http://mydomain.com:8080/video.html)
+- added audio support, clip has a new "image" property
+- workaround for missing "NetStream.Play.Start" notfication that was happending with Red5. Because of this issue the video was not shown.
+- commercial version has the possibility to change the zIndex of the logo
+
+3.0.0
+-----
+- Removed security errors that happened when loading images from foreign domains (domains other than the domain of the core SWF).
+  Using a backgroundImage on canvas, in the content plugin, and for the controls is also possible to be loaded
+  from a foreign domain - BUT backgroundRepeat cannot be used for foreign images.
+- Now allows the embedding HTML to script the player even if the player is loaded from another domain.
+- Added a 'live' property to Clips, used for live streams.
+- A player embedded to a foreign domain now loads images, css files and other resources from the domain where the palyer SWF was loaded from. This is to generate shorter embed-codes.
+- Added linkUrl and linkWindow properties to the logo, in commercial version you can set these to point to a linked page. The linked page gets opened
+  when the logo is clicked.  Possible values for linkWindow:
+    * "_self" specifies the current frame in the current window.
+    * "_blank" specifies a new window.
+    * "_parent" specifies the parent of the current frame.
+    * "_top" specifies the top-level frame in the current window.
+- Added linkUrl and linkWindow properties to clips. The linked page is opened when the video are is clicked and the corresponding clip has a linkUrl specified.
+- Made the play button overlay and the "Play again" button slightly bigger.
+
+RC4
+---
+- Now shows a "Play again" button at the end of the video/playlist
+- Commercial version shows a Flowplayer logo if invalidKey was supplied, but the otherwise the player works
+- setting play: null in configuration will disable the play button overlay
+- setting opacity for "play" also sets it for the buffering animation
+- Fixed firing of cuepoints too early. Cuepoint firing is now based on stream time and does not rely on timers
+- added onXMPData event listener
+- Should not stop playback too early before the clip is really completed
+- The START event is now delayed so that the metadata is available when the event is fired, METADATA event was removed,
+  new event BEGIN that is dispatched when the playback has been successfully started. Metadata is not normally
+  available when BEGIN is fired. 
+
+RC3
+---
+- stopBuffering() now dispatches the onStop event first if the player is playing/paused/buffering at the time of calling it
+- fixed detection of images based on file extensions
+- fixed some issues with having images in the playlist
+- made it possible to autoBuffer next video while showing an image (image without a duration)
+
+RC2
+---
+- fixed: setting the screen height in configuration did not have any effect
+
+RC1
+-----
+- better error message if plugin loading fails, shows the URL used
+- validates our redesigned multidomain license key correctly
+- fix to prevent the play button going visible when the onBufferEmpty event occurs
+- the commercial swf now correctly loads the controls using version information
+- fixed: the play button overlay became invisible with long fadeOutSpeeds
+
+beta6
+-----
+- removed the onFirstFramePause event
+- playing a clip for the second time caused a doubled sound
+- pausing on first frame did not work on some FLV files
+
+beta5
+-----
+- logo only uses percentage scaling if it's a SWF file (there is ".swf" in it's url)
+- context menu now correctly builds up from string entries in configuration
+-always closes the previous connection before starting a new clip
+
+beta4
+-----
+- now it's possible to load a plugin into the panel without specifying any position/dimensions
+ information, the plugin is placed to left: "50%", top: "50%" and using the plugin DisplayObject's width & height
+- The Flowplayer API was not fully initialized when onLoad was invoked on Flash plugins
+
+beta3
+-----
+- tweaking logo placement
+- "play" did not show up after repeated pause/resume
+- player now loads the latest controls SWF version, right now the latest SWF is called 'flowplayer.controls-3.0.0-beta2.swf'
+
+beta2
+-----
+- fixed support for RTMP stream groups
+- changed to loop through available fonts in order to find a suitable font also in IE
+- Preloader was broken on IE: When the player SWf was in browser's cache it did not initialize properly
+- Context menu now correctly handles menu items that are configured by their string labels only (not using json objects)
+- fixed custom logo positioning (was moved to the left edge of screen in fullscreen)
+- "play" now always follows the position and size of the screen
+- video was stretched below the controls in fullscreen when autoHide: 'never'
+- logo now takes 6.5% of the screen height, width is scaled so that the aspect ratio is preserved
+
+beta1
+-----
+- First public beta release
diff --git a/typo3/contrib/flowplayer/build.properties b/typo3/contrib/flowplayer/build.properties
new file mode 100644 (file)
index 0000000..d60d3f0
--- /dev/null
@@ -0,0 +1,54 @@
+
+# you need to adjust following to point to your Flex SDK
+flex3dir=/Users/Api/flex_sdk_4
+
+# change following to point to .exe files when running on Windows  
+mxmlc_bin= ${flex3bindir}/mxmlc
+compc_bin= ${flex3bindir}/compc
+asdoc_bin= /Users/Api/flex_sdk_3/bin/asdoc
+
+devkit-dir=../flowplayer.devkit
+plugins.dir=../
+deploy.dir=/Users/api/flowplayer.org/out/artifacts/setup_war_exploded/swf
+
+
+# 3.2.4
+#plugin.buildfiles=rtmp/build.xml,pseudostreaming/build.xml
+
+#plugin.buildfiles=bwcheck/build.xml, \
+#  analytics/build.xml, \
+#  audio/build.xml, \
+#  captions/build.xml, \
+#  cluster/build.xml, \
+#  controls/build.xml,controls/build-air.xml,controls/build-tube.xml,controls/build-skinless.xml, \
+#  pseudostreaming/build.xml, \
+#  securestreaming/build.xml, \
+#  viralvideos/build.xml, \
+#  sharing/build.xml
+#
+plugin.buildfiles=bwcheck/build.xml,controls/build.xml,controls/build-air.xml,controls/build-tube.xml,controls/build-skinless.xml, \
+  viralvideos/build.xml,pseudostreaming/build.xml,securestreaming/build.xml,smil/build.xml,sharing/build.xml
+
+
+for plugins that can be built inside the player
+
+plugin-classes=${plugins.dir}controls/src/actionscript ${plugins.dir}content/src/actionscript  \
+  ${plugins.dir}akamai/src/actionscript ${plugins.dir}rtmp/src/actionscript ${plugins.dir}pseudostreaming/src/actionscript \
+  ${plugins.dir}audio/src/actionscript ${plugins.dir}bwcheck/src/actionscript ${plugins.dir}cluster/src/actionscript \
+  ${plugins.dir}captions/src/actionscript ${plugins.dir}securestreaming/src/actionscript ${plugins.dir}smil/src/actionscript \
+  ${plugins.dir}common/src/actionscript
+
+plugin-swc=../controls/src/flash ../content/src/flash ../viralvideos/src/flash ../pseudostreaming/lib
+
+controls-dir=../controls
+
+# following can usually be left as they are
+flex3bindir=${flex3dir}/bin
+flex3libsdir=${flex3dir}/frameworks/libs
+flashplayer_bin= 
+framerate=24
+bgcolor=0xFFFFFF
+width=500
+height=350
+
+Str
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/build.xml b/typo3/contrib/flowplayer/build.xml
new file mode 100644 (file)
index 0000000..4e3ff34
--- /dev/null
@@ -0,0 +1,519 @@
+<project name="Flowplayer" default="build">
+    <property file="build.generated.properties"/>
+    <property file="build.properties"/>
+
+    <property name="version-1" value="3"/>
+    <property name="version-2" value="2"/>
+    <property name="version-3" value="7"/>
+    <property name="version-status" value=""/>
+    <property name="controls-version-info" value="3.2.5"/>
+    <property name="audio-version-info" value="3.2.2"/>
+    <property name="flowplayer-js-version-info" value="3.2.6"/>
+    <property name="source-dist-root-folder" value="flowplayer"/>
+
+    <property name="version-status-quoted" value="&quot;&#39;${version-status}&#39;&quot;"/>
+    <condition property="version-info" value="${version-1}.${version-2}.${version-3}"
+               else="${version-1}.${version-2}.${version-3}-${version-status}">
+        <equals arg1="${version-status}" arg2=""/>
+    </condition>
+
+    <property name="controls-version-info-quoted" value="&quot;&#39;${controls-version-info}&#39;&quot;"/>
+    <property name="audio-version-info-quoted" value="&quot;&#39;${audio-version-info}&#39;&quot;"/>
+
+    <property name="src" value="src"/>
+    <property name="src-as" value="${src}/actionscript"/>
+    <property name="src-flash" value="${src}/flash"/>
+    <property name="src-as-commercial" value="${src}/actionscript-commercial"/>
+    <property name="src-as-builtin" value="${src}/actionscript-builtin"/>
+    <property name="src-js" value="${src}/javascript"/>
+    <property name="src-test" value="test"/>
+    <property name="src-html" value="${src}/html"/>
+    <property name="build-dir" value="build"/>
+    <property name="dist-dir" value="dist"/>
+    <property name="apidoc-dir" value="build/apidoc"/>
+    <property name="lib-dir" value="lib"/>
+    <property name="locale" value="en_US"/>
+
+    <condition property="plugin-skin" value="${controls}" else="modern">
+        <isset property="controls"/>
+    </condition>
+    
+    <condition property="has-slowmotion-buttons" value="true" else="false">
+        <equals arg1="${plugin-skin}" arg2="modern"/>
+    </condition>
+
+    <condition property="plugin-libs" value="${controls-dir}/src/flash/${plugin-skin}" else="">
+        <available file="${controls-dir}/build.xml"/>
+    </condition>
+
+    <property name="libs-path" value="${flex3libsdir} ${lib-dir}/thunderbolt ${plugin-libs} ${plugin-swc}"/>
+    <property name="classes-for-lib"
+              value="org.flowplayer.view.Flowplayer org.flowplayer.util.PropertyBinder org.flowplayer.util.Arrange org.flowplayer.util.Assert org.flowplayer.model.PluginEvent org.flowplayer.util.TextUtil org.flowplayer.view.AbstractSprite org.flowplayer.view.AnimationEngine org.flowplayer.controller.NetStreamControllingStreamProvider org.flowplayer.controller.NetStreamClient org.flowplayer.controller.NetConnectionClient"/>
+    <property name="doc-classes"
+              value="${classes-for-lib} org.flowplayer.view.FlowplayerBase org.flowplayer.view.StyleableSprite org.flowplayer.model.Plugin org.flowplayer.model.PluginModel org.flowplayer.model.DisplayPluginModel org.flowplayer.model.ProviderModel org.flowplayer.model.Cloneable org.flowplayer.model.DisplayProperties org.flowplayer.model.Identifiable org.flowplayer.model.Callable org.flowplayer.model.Clip org.flowplayer.model.Playlist org.flowplayer.model.AbstractEvent org.flowplayer.model.ClipEvent org.flowplayer.model.PlayerEvent org.flowplayer.model.PluginEvent org.flowplayer.model.ClipEventDispatcher org.flowplayer.model.ClipEventSupport org.flowplayer.model.EventType org.flowplayer.model.ClipEventType org.flowplayer.model.PlayerEventType org.flowplayer.model.PluginEventType org.flowplayer.view.Styleable org.flowplayer.controller.StreamProvider org.flowplayer.model.PluginFactory org.flowplayer.controller.ClipURLResolver org.flowplayer.controller.ConnectionProvider org.flowplayer.util.Log"/>
+
+    <condition property="classpath-temp" value="${lib-dir}/corelib/src ${lib-dir}/goasp/src_go ${plugin-classes}"
+               else="${lib-dir}/corelib/src ${lib-dir}/goasp/src_go">
+        <isset property="plugin-classes"/>
+    </condition>
+
+    <condition property="classpath" value="${classpath-temp} ${plugins}" else="${classpath-temp} ${src-as-builtin}">
+        <isset property="plugins"/>
+    </condition>
+
+    <property name="library-binary" value="flowplayer.swc"/>
+    <property name="library-binary-versioned" value="flowplayer-${version-info}.swc"/>
+
+    <property name="player-binary" value="flowplayer.swf"/>
+    <property name="debug-player-binary" value="flowplayer.debug.swf"/>
+    <property name="commercial-debug-player-binary" value="flowplayer.commercial.debug.swf"/>
+    <property name="commercial-player-binary" value="flowplayer.commercial.swf"/>
+    <property name="player-binary-versioned" value="flowplayer-${version-info}.swf"/>
+    <property name="commercial-player-binary-versioned" value="flowplayer.commercial-${version-info}.swf"/>
+
+    <property name="dist-name" value="flowplayer-${version-info}.zip"/>
+    <property name="commercial-dist-name" value="flowplayer.commercial-${version-info}.zip"/>
+    <property name="multidomain-dist-name" value="flowplayer.multidomain-${version-info}.zip"/>
+    <property name="devkit-dist-name" value="flowplayer.devkit-${version-info}.zip"/>
+    <property name="apidoc-dist-name" value="flowplayer.asdoc-${version-info}.zip"/>
+    <property name="source-dist-name" value="flowplayer-${version-info}-src.zip"/>
+
+    <target name="clean" depends="clean-plugins">
+        <delete dir="${build-dir}">
+            <include name="*swf"/>
+            <include name="*swc"/>
+        </delete>
+        <delete dir="${build-dir}/example"></delete>
+    </target>
+
+    <target name="dobuild" depends="check-uptodate, build-lib, plugins" unless="uptodate.main">
+        <antcall target="prepare"/>
+        <property name="licenselib" value="${lib-dir}/licensekey"/>
+        <antcall target="compile"/>
+        <example player-swf="${player-binary-versioned}" example-dir="example-free"/>
+    </target>
+
+    <target name="deploy" if="deploy.dir">
+        <copy todir="${deploy.dir}">
+            <fileset dir="${build-dir}">
+                <include name="*swf"/>
+            </fileset>
+        </copy>
+    </target>
+
+    <target name="build" description="builds all" depends="dobuild, deploy" />
+
+    <target name="build-biz" description="builds all" depends="check-uptodate, build-lib, plugins"
+            unless="uptodate.commercial">
+        <antcall target="prepare"/>
+        <property name="licenselib" value="${lib-dir}/licensekey"/>
+        <antcall target="compile-commercial"/>
+        <example player-swf="${commercial-player-binary-versioned}" example-dir="example-biz"/>
+    </target>
+
+    <target name="build-all" description="builds all" depends="build, build-biz"/>
+
+    <target name="zip-bundled">
+        <antcall target="prepare"/>
+
+        <compile-player binary="${bundled-basename}.swf" commercial="true" free="false"
+                        license-lib="${bundled-license-lib}" debug="false"/>
+        <copy file="${build-dir}/${bundled-basename}.swf"
+              tofile="${build-dir}/${bundled-basename}-${version-info}.swf"/>
+        <example player-swf="${bundled-basename}-${version-info}.swf" example-dir="examble-bundled"/>
+        <zip-player license="LICENSE_UNLIMITED.txt" player-swf="${bundled-basename}-${version-info}.swf"
+                    player-swf-dir="${build-dir}" zip-name="${bundled-basename}-${version-info}.zip"
+                    example-dir="examble-bundled"/>
+    </target>
+
+    <target name="compile">
+        <compile-player binary="${player-binary}" commercial="false" free="true" license-lib="${licenselib}"
+                        debug="false"/>
+        <copy file="${build-dir}/${player-binary}" tofile="${build-dir}/${player-binary-versioned}"/>
+    </target>
+
+    <target name="build-debug" description="builds the debug version of the player" depends="prepare">
+        <property name="licenselib" value="${lib-dir}/licensekey"/>
+        <compile-player binary="${debug-player-binary}" commercial="false" free="true" license-lib="${licenselib}"
+                        debug="true"/>
+        <compile-player binary="${commercial-debug-player-binary}" commercial="true" free="false"
+                        license-lib="${licenselib}" debug="true"/>
+    </target>
+
+    <target name="compile-commercial">
+        <compile-player binary="${commercial-player-binary}" debug="false" commercial="true" free="false"
+                        license-lib="${licenselib}"/>
+        <copy file="${build-dir}/${commercial-player-binary}"
+              tofile="${build-dir}/${commercial-player-binary-versioned}"/>
+    </target>
+
+    <macrodef name="example">
+        <attribute name="player-swf"/>
+        <attribute name="example-dir"/>
+        <sequential>
+            <echo message="building example"/>
+            <delete dir="${build-dir}/@{example-dir}"/>
+            <copy todir="${build-dir}/@{example-dir}" overwrite="true">
+                <fileset dir="example">
+                    <include name="*.tmpl"/>
+                </fileset>
+                <mapper type="glob" from="*.tmpl" to="*"/>
+                <filterset begintoken="@" endtoken="@">
+                    <filter token="FLOWPLAYER_JS_VERSION_INFO" value="${flowplayer-js-version-info}"/>
+                    <filter token="PLAYER_SWF" value="../@{player-swf}"/>
+                </filterset>
+            </copy>
+            <copy todir="${build-dir}/@{example-dir}">
+                <fileset dir="example">
+                    <include name="*.js"/>
+                    <include name="*.html"/>
+                    <include name="*.css"/>
+                </fileset>
+            </copy>
+        </sequential>
+    </macrodef>
+
+    <macrodef name="compile-player">
+        <attribute name="binary"/>
+        <attribute name="commercial"/>
+        <attribute name="free"/>
+        <attribute name="license-lib"/>
+        <attribute name="debug"/>
+        <sequential>
+            <echo message="Building binary @{binary}, mxmlc is ${mxmlc_bin}"/>
+            <exec executable="${mxmlc_bin}" failonerror="true">
+                <arg line="-define=CONFIG::commercialVersion,'@{commercial}'"/>
+                <arg line="-define+=CONFIG::freeVersion,'@{free}'"/>
+                <arg line="-define+=CONFIG::version1,'${version-1}'"/>
+                <arg line="-define+=CONFIG::version2,'${version-2}'"/>
+                <arg line="-define+=CONFIG::version3,'${version-3}'"/>
+                <arg line="-define+=CONFIG::versionStatus,${version-status-quoted}"/>
+                <arg line="-define+=CONFIG::controlsVersion,${controls-version-info-quoted}"/>
+                <arg line="-define+=CONFIG::audioVersion,${audio-version-info-quoted}"/>
+                <arg line="-define+=CONFIG::skin,true"/>
+                <arg line="-define+=CONFIG::hasSlowMotion,'${has-slowmotion-buttons}'"/>
+                <arg line="-define+=CONFIG::debug,'@{debug}'"/>
+                <arg line="-define+=CONFIG::enableByteRange,'false'"/>
+                <arg line="-keep-as3-metadata=Value,External"/>
+                <arg line="-source-path ${src-as} ${src-as-commercial} ${classpath} ${plugin-libs}"/>
+                <arg line="-static-link-runtime-shared-libraries=true" />
+                <!--<arg  line="-link-report build/link-report.xml" />-->
+                <arg line="-library-path ${libs-path} ${src-flash} @{license-lib}"/>
+
+                <arg line="-default-frame-rate=${framerate}"/>
+                <arg line="-default-background-color=${bgcolor}"/>
+                <arg line="-strict=true"/>
+                <arg line="-incremental=true"/>
+                <arg line="-debug=@{debug}"/>
+
+                <arg line="-frame 'player' org.flowplayer.view.Launcher"/>
+                
+                <arg line="-file-specs '${src-as}/org/flowplayer/view/Preloader.as'"/>
+                <arg line="-output '${build-dir}/@{binary}'"/>
+                <arg line="-target-player '10.1.0'"/>
+            </exec>
+        </sequential>
+    </macrodef>
+
+
+    <target name="build-lib" description="builds the FlowPlayer library" depends="check-uptodate" unless="uptodate.lib">
+        <antcall target="prepare"/>
+        <antcall target="compile-lib"/>
+        <copy file="${build-dir}/${library-binary}" tofile="${build-dir}/${library-binary-versioned}"/>
+        <copy file="${build-dir}/${library-binary}" todir="${devkit-dir}"/>
+    </target>
+
+    <target name="compile-lib">
+        <exec executable="${compc_bin}" failonerror="true">
+            <arg line="-source-path ${src-as} ${src-as-commercial} ${classpath}"/>
+            <arg line="-compute-digest=false"/>
+            <arg line="-output '${build-dir}/${library-binary}'"/>
+            <arg line="-namespace http://flowplayer.org/flowplayer/2008 ${basedir}/manifest.xml -include-namespaces http://flowplayer.org/flowplayer/2008"/>
+            <arg line="-library-path ${libs-path} ${src-flash} "/>
+            <arg line="-default-frame-rate=${framerate}"/>
+            <arg line="-default-background-color=${bgcolor}"/>
+            <arg line="-strict=true"/>
+            <arg line="-incremental=true"/>
+                       <arg line="-define+=CONFIG::debug,'false'"/>
+        </exec>
+    </target>
+
+    <target name="copyhtml" description="copies html and javascript to the build folder">
+        <copy todir="${build-dir}">
+            <fileset dir="${src-html}">
+                <include name="*.html"/>
+            </fileset>
+            <fileset dir="${src-js}">
+                <include name="*.js"/>
+            </fileset>
+        </copy>
+    </target>
+
+    <target name="test" description="build testrunner">
+        <exec executable="${mxmlc_bin}" failonerror="true">
+            <arg line="-source-path ${src-as} ${src-test} ${classpath} -library-path ${libs-path} ${lib-dir}/flexunit -default-frame-rate=${framerate} -default-background-color=${bgcolor} -strict=true '${src-test}/org/flowplayer/css/CssTest.as' -output '${build-dir}/Test.swf'"/>
+        </exec>
+    </target>
+
+    <target name="prepare">
+        <mkdir dir="${build-dir}/example"/>
+        <mkdir dir="${dist-dir}"/>
+    </target>
+
+    <target name="check-uptodate">
+        <uptodate property="uptodate.main" targetfile="${build-dir}/${player-binary}">
+            <srcfiles dir="${src-as}">
+                <include name="**/*.as"/>
+            </srcfiles>
+            <srcfiles dir="${src-as-commercial}">
+                <include name="**/*.as"/>
+            </srcfiles>
+            <srcfiles dir="${src-as-builtin}">
+                <include name="**/*.as"/>
+            </srcfiles>
+            <srcfiles dir="${basedir}">
+                <include name="*.xml"/>
+                <include name="*.properties"/>
+                <include name="*.txt"/>
+                <include name="*.as"/>
+            </srcfiles>
+            <srcfiles dir="${lib-dir}">
+                <include name="**/*.as"/>
+                <include name="**/*.swc"/>
+            </srcfiles>
+        </uptodate>
+        <echo message="main up-to-date: ${uptodate.main}"/>
+
+        <uptodate property="uptodate.commercial" targetfile="${build-dir}/${commercial-player-binary}">
+            <srcfiles dir="${src-as}">
+                <include name="**/*.as"/>
+            </srcfiles>
+            <srcfiles dir="${src-as-commercial}">
+                <include name="**/*.as"/>
+            </srcfiles>
+            <srcfiles dir="${src-as-builtin}">
+                <include name="**/*.as"/>
+            </srcfiles>
+            <srcfiles dir="${basedir}">
+                <include name="*.xml"/>
+                <include name="*.properties"/>
+                <include name="*.txt"/>
+            </srcfiles>
+            <srcfiles dir="${lib-dir}">
+                <include name="**/*.as"/>
+                <include name="**/*.swc"/>
+            </srcfiles>
+        </uptodate>
+        <echo message="main up-to-date: ${uptodate.commercial}"/>
+
+        <uptodate property="uptodate.lib" targetfile="${build-dir}/${library-binary}">
+            <srcfiles dir="${src-as}">
+                <include name="**/*.as"/>
+            </srcfiles>
+            <srcfiles dir="${src-as-commercial}">
+                <include name="**/*.as"/>
+            </srcfiles>
+        </uptodate>
+        <echo message="lib up-to-date: ${uptodate.lib}"/>
+    </target>
+
+    <target name="plugins" description="Build all plugins">
+        <iterate-plugins target="deploy"/>
+    </target>
+
+    <target name="plugin-names" description="Echoes all plugin names">
+        <iterate-plugins target="echo-name"/>
+    </target>
+
+    <target name="clean-plugins" description="Cleans all plugins">
+        <iterate-plugins target="clean"/>
+    </target>
+
+    <macrodef name="iterate-plugins">
+        <attribute name="target"/>
+        <sequential>
+            <subant target="@{target}">
+                <fileset dir="${plugins.dir}" includes="${plugin.buildfiles}"/>
+                <property name="remotedir" value="${remotedir}"/>
+                <property name="all-swf-zip" value="${basedir}/dist/latest.zip"/>
+                <property name="swfremotedir" value="${swfremotedir}"/>
+                <property name="aws-accessId" value="${aws-accessId}"/>
+                <property name="aws-secretKey" value="${aws-secretKey}"/>
+                <property name="keyfile" value="${keyfile}"/>
+                <property name="url-file" value="${url-file}"/>
+                <property name="devkit-dir" value="${devkit-dir}"/>
+            </subant>
+        </sequential>
+    </macrodef>
+
+    <target name="release-plugin" description="releases one plugin, specify the plugin name with -Dplugin=">
+        <ant antfile="../${plugin}/build.xml" target="release-remote" dir="../${plugin}">
+            <property name="remotedir" value="${remotedir}"/>
+            <property name="all-swf-zip" value="${basedir}/dist/latest.zip"/>
+            <property name="swfremotedir" value="${swfremotedir}"/>
+            <property name="aws-accessId" value="${aws-accessId}"/>
+            <property name="aws-secretKey" value="${aws-secretKey}"/>
+            <property name="url-file" value="${url-file}"/>
+            <property name="keyfile" value="${keyfile}"/>
+        </ant>
+    </target>
+
+    <target name="doc" description="generates the apidocs">
+        <!--<exec executable="${asdoc_bin}" failonerror="true">-->
+            <!--<arg line="-source-path ${src-as} ${classpath}"/>-->
+            <!--<arg line="-library-path ${libs-path} ${src-flash}"/>-->
+            <!--<arg line="-doc-classes ${doc-classes}"/>-->
+            <!--<arg line="-exclude-dependencies"/>-->
+            <!--<arg line="-output ${apidoc-dir}"/>-->
+            <!--<arg line="-main-title 'FlowPlayer ${version-1}.${version-2}.${version-3} API documentation'"/>-->
+            <!--<arg line="-window-title 'FlowPlayer ${version-1}.${version-2}.${version-3} API documentation'"/>-->
+            <!--<arg line="-define+=CONFIG::debug,'false'"/>-->
+        <!--</exec>-->
+    </target>
+
+    <target name="zip" description="creates a distribution zip package" depends="build">
+        <zip-player zip-name="${dist-name}" player-swf-dir="${build-dir}" player-swf="${player-binary-versioned}"
+                    license="LICENSE.txt" example-dir="example-free"/>
+    </target>
+
+    <target name="zip-biz" description="creates a Commercial distribution zip package" depends="build-biz">
+        <zip-player zip-name="${commercial-dist-name}" player-swf-dir="${build-dir}"
+                    player-swf="${commercial-player-binary-versioned}" license="LICENSE_COMMERCIAL.txt"
+                    example-dir="example-biz"/>
+        <zip-player zip-name="${multidomain-dist-name}" player-swf-dir="${build-dir}"
+                    player-swf="${commercial-player-binary-versioned}" license="LICENSE_MULTIDOMAIN.txt"
+                    example-dir="example-biz"/>
+    </target>
+
+    <macrodef name="zip-player">
+        <attribute name="zip-name"/>
+        <attribute name="player-swf"/>
+        <attribute name="player-swf-dir"/>
+        <attribute name="license"/>
+        <attribute name="example-dir"/>
+        <sequential>
+            <echo message="++ Zipping @{zip-name} +++"></echo>
+
+            <zip destfile="${dist-dir}/@{zip-name}">
+                <zipfileset prefix="flowplayer" dir=".">
+                    <include name="@{license}"/>
+                    <include name="README.txt"/>
+                </zipfileset>
+                <zipfileset prefix="flowplayer" dir="@{player-swf-dir}">
+                    <include name="@{player-swf}"/>
+                </zipfileset>
+                <zipfileset prefix="flowplayer" dir="${dist-dir}">
+                    <include name="flowplayer.controls-${controls-version-info}.swf"/>
+                </zipfileset>
+                <zipfileset prefix="flowplayer/example" dir="${build-dir}/@{example-dir}">
+                    <include name="*"/>
+                    <exclude name="index.html.tmpl"/>
+                </zipfileset>
+            </zip>
+            <verify-zip zip-name="@{zip-name}" player-swf="@{player-swf}" license="@{license}"/>
+        </sequential>
+    </macrodef>
+
+    <target name="source-dist" description="prepares the source distribution package">
+        <zip zipfile="${dist-dir}/${source-dist-name}">
+            <zipfileset prefix="${source-dist-root-folder}" dir="."
+                        includes="${src-as}/**/*.as, ${src-as-commercial}/**/*.as, ${src-as-builtin}/**/*.as, ${src-flash}/**/*"/>
+            <zipfileset prefix="${source-dist-root-folder}" dir="." includes="example/**/*"/>
+            <zipfileset prefix="${source-dist-root-folder}" dir="." includes="lib/**/*"/>
+            <zipfileset prefix="${source-dist-root-folder}" dir=".">
+                <include name="LICENSE*.txt"/>
+                <include name="README.txt"/>
+                <include name="build.xml"/>
+                <include name="manifest.xml"/>
+                <include name="build.properties"/>
+            </zipfileset>
+        </zip>
+    </target>
+
+    <macrodef name="verify-zip">
+        <attribute name="zip-name"/>
+        <attribute name="player-swf"/>
+        <attribute name="license"/>
+        <sequential>
+            <echo message="verifying @{zip-name} contents"/>
+            <delete dir="${dist-dir}/flowplayer"/>
+            <unzip src="${dist-dir}/@{zip-name}" dest="${dist-dir}"/>
+            <condition property="${resources-available}" value="true">
+                <and>
+                    <available file="${dist-dir}/flowplayer/@{player-swf}"/>
+                    <available file="${dist-dir}/flowplayer/flowplayer.controls-${controls-version-info}.swf"/>
+                    <available file="${dist-dir}/flowplayer/@{license}"/>
+                    <available file="${dist-dir}/flowplayer/README.txt"/>
+                    <available file="${dist-dir}/flowplayer/example/index.html"/>
+                    <available file="${dist-dir}/flowplayer/example/style.css"/>
+                    <available file="${dist-dir}/flowplayer/example/flowplayer-${flowplayer-js-version-info}.min.js"/>
+                </and>
+            </condition>
+            <fail unless="${resources-available}" message="Not all required resources present in @{zip-name}"/>
+        </sequential>
+    </macrodef>
+
+    <target name="zip-devkit" depends="doc, build-lib">
+        <zip destfile="${dist-dir}/${devkit-dist-name}">
+            <zipfileset prefix="flowplayer.devkit" dir="${devkit-dir}">
+                <include name="LICENSE.txt"/>
+                <include name="README.txt"/>
+                <include name="*.properties"/>
+                <include name="*.xml"/>
+            </zipfileset>
+            <zipfileset prefix="flowplayer.devkit" dir="${build-dir}">
+                <include name="${library-binary}"/>
+            </zipfileset>
+            <zipfileset prefix="flowplayer.devkit/example" dir="${devkit-dir}/example">
+                <include name="*.xml"/>
+                <include name="*.fla"/>
+                <include name="*.properties"/>
+                <include name="src/**/*"/>
+            </zipfileset>
+            <zipfileset prefix="flowplayer.devkit/doc" dir="${apidoc-dir}">
+                <include name="**/*"/>
+            </zipfileset>
+        </zip>
+    </target>
+
+    <target name="dist" description="Create distribution packages">
+        <iterate-plugins target="dist"/>
+        <ant target="zip"/>
+        <ant target="zip-biz"/>
+        <ant target="zip-devkit"/>
+        <ant target="source-dist"/>
+    </target>
+
+    <!-- following is used when building from a webapp in our compile farm -->
+    <target name="copy" if="copy-source">
+        <copy file="${copy-source}" tofile="${copy-target}" verbose="true"/>
+    </target>
+
+    <target name="quick" description="builds the player quickly" depends="prepare">
+        <property name="licenselib" value="${lib-dir}/licensekey"/>
+        <antcall target="compile"/>
+    </target>
+
+    <target name="quick-biz" description="builds the player quickly" depends="prepare">
+        <property name="licenselib" value="${lib-dir}/licensekey"/>
+        <antcall target="compile-commercial"/>
+    </target>
+
+    <target name="echo-version" description="echos the flowpalyer version number">
+        <echo message="version-1: ${version-1}"/>
+        <echo message="version-2: ${version-2}"/>
+        <echo message="version-3: ${version-3}"/>
+        <echo message="version-status: ${version-status}"/>
+    </target>
+
+
+       <target name="debug-js">
+                <get src="http://flowplayer.org/js/tools/tools.flashembed-1.0.4.js" dest="${dist-dir}/flowplayer-debug.js"/>
+               
+               <concat destfile="${dist-dir}/flowplayer-debug.js" append="true">
+
+                       <fileset dir="${src-js}/flowplayer.js" includes="flowplayer-src.js"/>
+               </concat>
+       </target>
+
+</project>
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/example/flowplayer-3.2.6.min.js b/typo3/contrib/flowplayer/example/flowplayer-3.2.6.min.js
new file mode 100644 (file)
index 0000000..500492e
--- /dev/null
@@ -0,0 +1,24 @@
+/* 
+ * flowplayer.js 3.2.6. The Flowplayer API
+ * 
+ * Copyright 2009-2011 Flowplayer Oy
+ * 
+ * This file is part of Flowplayer.
+ * 
+ * Flowplayer is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * Flowplayer is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with Flowplayer.  If not, see <http://www.gnu.org/licenses/>.
+ * 
+ * Date: 2011-02-04 05:45:28 -0500 (Fri, 04 Feb 2011)
+ * Revision: 614 
+ */
+(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.slice(0,q)||"*";var o=s.slice(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).slice(2,10)}var h=function(t,r,s){var q=this,p={},u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.slice(0,v.length-1);var w="onBefore"+v.slice(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var o=this,s={},u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var z=q._api().fp_getPlugin(p);if(!z){return}i(o,z);delete o.methods;if(!u){m(z.methods,function(){var B=""+this;o[B]=function(){var C=[].slice.call(arguments);var D=q._api().fp_invoke(p,B,C);return D==="undefined"||D===undefined?o:D}});u=true}}var A=s[w];if(A){var y=A.apply(o,v);if(w.slice(0,1)=="_"){delete s[w]}return y}return o}})};function b(q,G,t){var w=this,v=null,D=false,u,s,F=[],y={},x={},E,r,p,C,o,A;i(w,{id:function(){return E},isLoaded:function(){return(v!==null&&v.fp_play!==undefined&&!D)},getParent:function(){return q},hide:function(H){if(H){q.style.height="0px"}if(w.isLoaded()){v.style.height="0px"}return w},show:function(){q.style.height=A+"px";if(w.isLoaded()){v.style.height=o+"px"}return w},isHidden:function(){return w.isLoaded()&&parseInt(v.style.height,10)===0},load:function(J){if(!w.isLoaded()&&w._fireEvent("onBeforeLoad")!==false){var H=function(){u=q.innerHTML;if(u&&!flashembed.isSupported(G.version)){q.innerHTML=""}if(J){J.cached=true;j(x,"onLoad",J)}flashembed(q,G,{config:t})};var I=0;m(a,function(){this.unload(function(K){if(++I==a.length){H()}})})}return w},unload:function(J){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(J){J(false)}return w}if(u.replace(/\s/g,"")!==""){if(w._fireEvent("onBeforeUnload")===false){if(J){J(false)}return w}D=true;try{if(v){v.fp_close();w._fireEvent("onUnload")}}catch(H){}var I=function(){v=null;q.innerHTML=u;D=false;if(J){J(true)}};setTimeout(I,50)}else{if(J){J(false)}}return w},getClip:function(H){if(H===undefined){H=C}return F[H]},getCommonClip:function(){return s},getPlaylist:function(){return F},getPlugin:function(H){var J=y[H];if(!J&&w.isLoaded()){var I=w._api().fp_getPlugin(H);if(I){J=new l(H,I,w);y[H]=J}}return J},getScreen:function(){return w.getPlugin("screen")},getControls:function(){return w.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return w.getPlugin("logo")._fireEvent("onUpdate")}catch(H){}},getPlay:function(){return w.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(H){return H?k(t):t},getFlashParams:function(){return G},loadPlugin:function(K,J,M,L){if(typeof M=="function"){L=M;M={}}var I=L?e():"_";w._api().fp_loadPlugin(K,J,M,I);var H={};H[I]=L;var N=new l(K,null,w,H);y[K]=N;return N},getState:function(){return w.isLoaded()?v.fp_getState():-1},play:function(I,H){var J=function(){if(I!==undefined){w._api().fp_play(I,H)}else{w._api().fp_play()}};if(w.isLoaded()){J()}else{if(D){setTimeout(function(){w.play(I,H)},50)}else{w.load(function(){J()})}}return w},getVersion:function(){var I="flowplayer.js 3.2.6";if(w.isLoaded()){var H=v.fp_getVersion();H.push(I);return H}return I},_api:function(){if(!w.isLoaded()){throw"Flowplayer "+w.id()+" not loaded when calling an API method"}return v},setClip:function(H){w.setPlaylist([H]);return w},getIndex:function(){return p},_swfHeight:function(){return v.clientHeight}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var H="on"+this;if(H.indexOf("*")!=-1){H=H.slice(0,H.length-1);var I="onBefore"+H.slice(2);w[I]=function(J){j(x,I,J);return w}}w[H]=function(J){j(x,H,J);return w}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","),function(){var H=this;w[H]=function(J,I){if(!w.isLoaded()){return w}var K=null;if(J!==undefined&&I!==undefined){K=v["fp_"+H](J,I)}else{K=(J===undefined)?v["fp_"+H]():v["fp_"+H](J)}return K==="undefined"||K===undefined?w:K}});w._fireEvent=function(Q){if(typeof Q=="string"){Q=[Q]}var R=Q[0],O=Q[1],M=Q[2],L=Q[3],K=0;if(t.debug){g(Q)}if(!w.isLoaded()&&R=="onLoad"&&O=="player"){v=v||c(r);o=w._swfHeight();m(F,function(){this._fireEvent("onLoad")});m(y,function(S,T){T._fireEvent("onUpdate")});s._fireEvent("onLoad")}if(R=="onLoad"&&O!="player"){return}if(R=="onError"){if(typeof O=="string"||(typeof O=="number"&&typeof M=="number")){O=M;M=L}}if(R=="onContextMenu"){m(t.contextMenu[O],function(S,T){T.call(w)});return}if(R=="onPluginEvent"||R=="onBeforePluginEvent"){var H=O.name||O;var I=y[H];if(I){I._fireEvent("onUpdate",O);return I._fireEvent(M,Q.slice(3))}return}if(R=="onPlaylistReplace"){F=[];var N=0;m(O,function(){F.push(new h(this,N++,w))})}if(R=="onClipAdd"){if(O.isInStream){return}O=new h(O,M,w);F.splice(M,0,O);for(K=M+1;K<F.length;K++){F[K].index++}}var P=true;if(typeof O=="number"&&O<F.length){C=O;var J=F[O];if(J){P=J._fireEvent(R,M,L)}if(!J||P!==false){P=s._fireEvent(R,M,L,J)}}m(x[R],function(){P=this.call(w,O,M);if(this.cached){x[R].splice(K,1)}if(P===false){return false}K++});return P};function B(){if($f(q)){$f(q).getParent().innerHTML="";p=$f(q).getIndex();a[p]=w}else{a.push(w);p=a.length-1}A=parseInt(q.style.height,10)||q.clientHeight;E=q.id||"fp"+e();r=G.id||E+"_api";G.id=r;t.playerId=E;if(typeof t=="string"){t={clip:{url:t}}}if(typeof t.clip=="string"){t.clip={url:t.clip}}t.clip=t.clip||{};if(q.getAttribute("href",2)&&!t.clip.url){t.clip.url=q.getAttribute("href",2)}s=new h(t.clip,-1,w);t.playlist=t.playlist||[t.clip];var I=0;m(t.playlist,function(){var K=this;if(typeof K=="object"&&K.length){K={url:""+K}}m(t.clip,function(L,M){if(M!==undefined&&K[L]===undefined&&typeof M!="function"){K[L]=M}});t.playlist[I]=K;K=new h(K,I,w);F.push(K);I++});m(t,function(K,L){if(typeof L=="function"){if(s[K]){s[K](L)}else{j(x,K,L)}delete t[K]}});m(t.plugins,function(K,L){if(L){y[K]=new l(K,L,w)}});if(!t.plugins||t.plugins.controls===undefined){y.controls=new l("controls",null,w)}y.canvas=new l("canvas",null,w);u=q.innerHTML;function J(L){var K=w.hasiPadSupport&&w.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(F[0].url)&&!K){return true}if(!w.isLoaded()&&w._fireEvent("onBeforeClick")!==false){w.load()}return f(L)}function H(){if(u.replace(/\s/g,"")!==""){if(q.addEventListener){q.addEventListener("click",J,false)}else{if(q.attachEvent){q.attachEvent("onclick",J)}}}else{if(q.addEventListener){q.addEventListener("click",f,false)}w.load()}}setTimeout(H,0)}if(typeof q=="string"){var z=c(q);if(!z){throw"Flowplayer cannot access element: "+q}q=z;B()}else{B()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var t=arguments[1],q=(arguments.length==3)?arguments[2]:{};if(typeof t=="string"){t={src:t}}t=i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:false},t);if(typeof o=="string"){if(o.indexOf(".")!=-1){var s=[];m(n(o),function(){s.push(new b(this,k(t),k(q)))});return new d(s)}else{var r=c(o);return new b(r!==null?r:o,t,q)}}else{if(o){return new b(o,t,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var e=typeof jQuery=="function";var i={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(e){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:i}}function j(){if(c.done){return false}var l=document;if(l&&l.getElementsByTagName&&l.getElementById&&l.body){clearInterval(c.timer);c.timer=null;for(var k=0;k<c.ready.length;k++){c.ready[k].call()}c.ready=null;c.done=true}}var c=e?jQuery:function(k){if(c.done){return k()}if(c.timer){c.ready.push(k)}else{c.ready=[k];c.timer=setInterval(j,13)}};function f(l,k){if(k){for(key in k){if(k.hasOwnProperty(key)){l[key]=k[key]}}}return l}function g(k){switch(h(k)){case"string":k=k.replace(new RegExp('(["\\\\])',"g"),"\\$1");k=k.replace(/^\s?(\d+)%/,"$1pct");return'"'+k+'"';case"array":return"["+b(k,function(n){return g(n)}).join(",")+"]";case"function":return'"function()"';case"object":var l=[];for(var m in k){if(k.hasOwnProperty(m)){l.push('"'+m+'":'+g(k[m]))}}return"{"+l.join(",")+"}"}return String(k).replace(/\s/g," ").replace(/\'/g,'"')}function h(l){if(l===null||l===undefined){return false}var k=typeof l;return(k=="object"&&l.push)?"array":k}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(k,n){var m=[];for(var l in k){if(k.hasOwnProperty(l)){m[l]=n(k[l])}}return m}function a(r,t){var q=f({},r);var s=document.all;var n='<object width="'+q.width+'" height="'+q.height+'"';if(s&&!q.id){q.id="_"+(""+Math.random()).substring(9)}if(q.id){n+=' id="'+q.id+'"'}if(q.cachebusting){q.src+=((q.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(q.w3c||!s){n+=' data="'+q.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(q.w3c||s){n+='<param name="movie" value="'+q.src+'" />'}q.width=q.height=q.id=q.w3c=q.src=null;for(var l in q){if(q[l]!==null){n+='<param name="'+l+'" value="'+q[l]+'" />'}}var o="";if(t){for(var m in t){if(t[m]!==null){o+=m+"="+(typeof t[m]=="object"?g(t[m]):t[m])+"&"}}o=o.substring(0,o.length-1);n+='<param name="flashvars" value=\''+o+"' />"}n+="</object>";return n}function d(m,p,l){var k=flashembed.getVersion();f(this,{getContainer:function(){return m},getConf:function(){return p},getVersion:function(){return k},getFlashvars:function(){return l},getApi:function(){return m.firstChild},getHTML:function(){return a(p,l)}});var q=p.version;var r=p.expressInstall;var o=!q||flashembed.isSupported(q);if(o){p.onFail=p.version=p.expressInstall=null;m.innerHTML=a(p,l)}else{if(q&&r&&flashembed.isSupported([6,65])){f(p,{src:r});l={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};m.innerHTML=a(p,l)}else{if(m.innerHTML.replace(/\s/g,"")!==""){}else{m.innerHTML="<h2>Flash version "+q+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(m.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(m.tagName=="A"){m.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!o&&p.onFail){var n=p.onFail.call(this);if(typeof n=="string"){m.innerHTML=n}}if(document.all){window[p.id]=document.getElementById(p.id)}}window.flashembed=function(l,m,k){if(typeof l=="string"){var n=document.getElementById(l);if(n){l=n}else{c(function(){flashembed(l,m,k)});return}}if(!l){return}if(typeof m=="string"){m={src:m}}var o=f({},i);f(o,m);return new d(l,o,k)};f(window.flashembed,{getVersion:function(){var m=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var l=navigator.plugins["Shockwave Flash"].description;if(typeof l!="undefined"){l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var n=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);var r=/r/.test(l)?parseInt(l.replace(/^.*r(.*)$/,"$1"),10):0;m=[n,r]}}else{if(window.ActiveXObject){try{var p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(q){try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");m=[6,0];p.AllowScriptAccess="always"}catch(k){if(m[0]==6){return m}}try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}}if(typeof p=="object"){l=p.GetVariable("$version");if(typeof l!="undefined"){l=l.replace(/^\S+\s+(.*)$/,"$1").split(",");m=[parseInt(l[0],10),parseInt(l[2],10)]}}}}return m},isSupported:function(k){var m=flashembed.getVersion();var l=(m[0]>k[0])||(m[0]==k[0]&&m[1]>=k[1]);return l},domReady:c,asString:g,getHTML:a});if(e){jQuery.fn.flashembed=function(l,k){var m=null;this.each(function(){m=flashembed(this,l,k)});return l.api===false?this:m}}})();
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/example/index.html.tmpl b/typo3/contrib/flowplayer/example/index.html.tmpl
new file mode 100644 (file)
index 0000000..a89192b
--- /dev/null
@@ -0,0 +1,74 @@
+<html><head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+<!-- A minimal Flowplayer setup to get you started -->
+  
+
+       <!-- 
+               include flowplayer JavaScript file that does  
+               Flash embedding and provides the Flowplayer API.
+       -->
+       <script type="text/javascript" src="flowplayer-@FLOWPLAYER_JS_VERSION_INFO@.min.js"></script>
+       
+       <!-- some minimal styling, can be removed -->
+       <link rel="stylesheet" type="text/css" href="style.css">
+       
+       <!-- page title -->
+       <title>Minimal Flowplayer setup</title>
+
+</head><body>
+
+       <div id="page">
+               
+               <h1>Minimal Flowplayer setup</h1>
+       
+               <p>View commented source code to get familiar with Flowplayer installation.</p>
+               
+               <!-- this A tag is where your Flowplayer will be placed. it can be anywhere -->
+               <a  
+                        href="http://pseudo01.hddn.com/vod/demo.flowplayervod/flowplayer-700.flv"
+                        style="display:block;width:520px;height:330px"  
+                        id="player"> 
+               </a> 
+       
+               <!-- this will install flowplayer inside previous A- tag. -->
+               <script>
+                       flowplayer("player", "@PLAYER_SWF@");
+               </script>
+       
+               
+               
+               <!-- 
+                       after this line is purely informational stuff. 
+                       does not affect on Flowplayer functionality 
+               -->
+
+               <p>             
+                       If you are running these examples <strong>locally</strong> and not on some webserver you must edit your 
+                       <a href="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html">
+                               Flash security settings</a>. 
+               </p>
+               
+               <p class="less">
+                       Select "Edit locations" &gt; "Add location" &gt; "Browse for files" and select
+                       flowplayer-x.x.x.swf you just downloaded.
+               </p>
+               
+               
+               <h2>Documentation</h2>
+               
+               <p>
+                       <a href="http://flowplayer.org/documentation/installation/index.html">Flowplayer installation</a>
+               </p>
+
+               <p>
+                       <a href="http://flowplayer.org/documentation/configuration/index.html">Flowplayer configuration</a>
+               </p>
+
+               <p>
+                       See this identical page on <a href="http://flowplayer.org/demos/example/index.htm">Flowplayer website</a> 
+               </p>
+               
+       </div>
+       
+       
+</body></html>
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/example/style.css b/typo3/contrib/flowplayer/example/style.css
new file mode 100644 (file)
index 0000000..98f090c
--- /dev/null
@@ -0,0 +1,41 @@
+
+body {
+       background-color:#fff;  
+       font-family:"Lucida Grande","bitstream vera sans","trebuchet ms",verdana,arial;
+       text-align:center;
+}
+
+#page {
+       background-color:#efefef;
+       width:600px;
+       margin:50px auto;
+       padding:20px 150px 20px 50px;
+       min-height:600px;
+       border:2px solid #fff;
+       outline:1px solid #ccc;
+       text-align:left;
+}
+
+h1, h2 {
+       letter-spacing:-1px;
+       color:#2D5AC3;
+       font-weight:normal;             
+       margin-bottom:-10px;
+}
+
+h1 {
+       font-size:22px;
+}
+
+h2 {
+       font-size:18px;
+}
+
+.less {
+       color:#999;
+       font-size:12px;
+}
+
+a {
+       color:#295c72;          
+}
diff --git a/typo3/contrib/flowplayer/expressinstall.swf b/typo3/contrib/flowplayer/expressinstall.swf
new file mode 100644 (file)
index 0000000..bdc3437
Binary files /dev/null and b/typo3/contrib/flowplayer/expressinstall.swf differ
diff --git a/typo3/contrib/flowplayer/flowplayer-3.2.7.swf b/typo3/contrib/flowplayer/flowplayer-3.2.7.swf
new file mode 100644 (file)
index 0000000..20a4119
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer-3.2.7.swf differ
diff --git a/typo3/contrib/flowplayer/flowplayer.audio-3.2.2.swf b/typo3/contrib/flowplayer/flowplayer.audio-3.2.2.swf
new file mode 100644 (file)
index 0000000..16aef5c
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.audio-3.2.2.swf differ
diff --git a/typo3/contrib/flowplayer/flowplayer.audio/LICENSE.txt b/typo3/contrib/flowplayer/flowplayer.audio/LICENSE.txt
new file mode 100644 (file)
index 0000000..bab38cb
--- /dev/null
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2008, 2009 Flowplayer Oy
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/typo3/contrib/flowplayer/flowplayer.audio/README.txt b/typo3/contrib/flowplayer/flowplayer.audio/README.txt
new file mode 100644 (file)
index 0000000..815e0ee
--- /dev/null
@@ -0,0 +1,57 @@
+Version history:
+
+3.2.2
+-----
+Fixes:
+- Now can download cover images from different domains without cross-domain security errors
+
+3.2.1
+-----
+Changes:
+- Supports cover images via a 'coverImage' configuration option
+- now works with securestreaming plugin
+Fixes:
+- fix to work properly if accessing the ID3 tag fails because Flash security prevents it
+- works better if the file does not have the ID3 tag
+
+3.2.0
+-----
+- added a new plugin event "onDuration" that is dispatched whenever a new duration value is estimated and the
+clip.duration value was changed. The new duration value is passed as event argument.
+
+3.1.3
+-----
+- added timeProvider setter as required by the changed StreamProvider interface
+- now checks the crossdomain.xml file to allow reading of the ID3 tag when this file is present in the domain
+  hosting the audio file
+
+3.1.2
+-----
+- compatible with the new ConnectionProvider and URLResolver API
+
+3.1.1
+-----
+Fixes:
+- calling closeBuffering() after the audio had finished caused an exception
+
+3.1.0
+-----
+- compatibility with core 3.1 StreamProvider interface
+
+3.0.4
+-----
+- fixed to stop audio when stop() is called
+
+3.0.3
+-----
+- changed to recalculate the duration until the end of the file has been reached,
+  this is needed to correctly estimate the duration of variable bitrate MP3's 
+
+3.0.2
+-----
+- dispatches the LOAD event when initialized (needed for flowplayer 3.0.2 compatibility)
+- fixed crashes of Mac  Safari when navigating out of a page that had a playing audio
+
+3.0.1
+-----
+- First public beta release
diff --git a/typo3/contrib/flowplayer/flowplayer.audio/build.properties b/typo3/contrib/flowplayer/flowplayer.audio/build.properties
new file mode 100644 (file)
index 0000000..87eaa39
--- /dev/null
@@ -0,0 +1,2 @@
+version=3.2.2
+devkit-dir=../flowplayer.devkit
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/flowplayer.audio/build.xml b/typo3/contrib/flowplayer/flowplayer.audio/build.xml
new file mode 100644 (file)
index 0000000..6692d0e
--- /dev/null
@@ -0,0 +1,28 @@
+<project name="Audio plugin for flowplayer" default="deploy">
+    <property file="build.generated.properties"/>
+       <property file="${user.home}/plugin.properties" />
+       <property file="build.properties" />
+       
+       <property file="${devkit-dir}/plugin-build.properties" />
+       <import file="${devkit-dir}/plugin-build.xml"/>
+       <property name="flowplayer_lib" value="${devkit-dir}/flowplayer.swc" />
+       
+       <property name="basename" value="flowplayer.audio" />
+    <property name="releasedir" value="flowplayer.audio" />
+       <property name="plugin-binary" value="${basename}.swf" />
+       <property name="plugin-binary-versioned" value="${basename}-${version}.swf" />
+       <property name="plugin-swc" value="${basename}.swc" />
+       
+       <property name="plugin-main-class" value="org/flowplayer/audio/AudioProviderFactory.as" />
+
+       <target name="release" description="makes a release" depends="build">
+               <copyrelease targetdir="flowplayer.audio">
+                       <releasefiles>
+                               <fileset dir="${build-dir}">
+                                   <include name="${plugin-binary-versioned}"/>
+                               </fileset>
+                       </releasefiles>
+               </copyrelease>
+       </target>
+
+</project>
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/flowplayer.audio/src/actionscript/org/flowplayer/audio/AudioProvider.as b/typo3/contrib/flowplayer/flowplayer.audio/src/actionscript/org/flowplayer/audio/AudioProvider.as
new file mode 100644 (file)
index 0000000..0eefb8f
--- /dev/null
@@ -0,0 +1 @@
+/*    \r *    Copyright (c) 2008-2011 Flowplayer Oy *\r *    This file is part of FlowPlayer.\r *\r *    FlowPlayer is free software: you can redistribute it and/or modify\r *    it under the terms of the GNU General Public License as published by\r *    the Free Software Foundation, either version 3 of the License, or\r *    (at your option) any later version.\r *\r *    FlowPlayer is distributed in the hope that it will be useful,\r *    but WITHOUT ANY WARRANTY; without even the implied warranty of\r *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r *    GNU General Public License for more details.\r *\r *    You should have received a copy of the GNU General Public License\r *    along with FlowPlayer.  If not, see <http://www.gnu.org/licenses/>.\r */\r\rpackage org.flowplayer.audio {\r    import flash.display.DisplayObject;\r    import flash.display.Loader;\r    import flash.events.Event;\r    import flash.events.IOErrorEvent;\r    import flash.events.ProgressEvent;\r    import flash.events.TimerEvent;\r    import flash.media.ID3Info;\r    import flash.media.Sound;\r    import flash.media.SoundChannel;\r    import flash.media.SoundLoaderContext;\r    import flash.net.NetConnection;\r    import flash.net.NetStream;\r    import flash.net.URLRequest;\r    import flash.utils.Dictionary;\r    import flash.utils.Timer;\r\r    import org.flowplayer.controller.ClipURLResolverHelper;\r    import org.flowplayer.controller.ConnectionProvider;\r    import org.flowplayer.controller.ResourceLoader;\r    import org.flowplayer.controller.StreamProvider;\r    import org.flowplayer.controller.TimeProvider;\r    import org.flowplayer.controller.VolumeController;\r    import org.flowplayer.model.Clip;\r    import org.flowplayer.model.ClipEvent;\r    import org.flowplayer.model.ClipEventType;\r    import org.flowplayer.model.DisplayProperties;\r    import org.flowplayer.model.Playlist;\r    import org.flowplayer.model.Plugin;\r    import org.flowplayer.model.PluginEventType;\r    import org.flowplayer.model.PluginModel;\r    import org.flowplayer.util.Log;\r    import org.flowplayer.view.Flowplayer;\r\r    /**\r     * @author api\r  */\r    public class AudioProvider implements StreamProvider, Plugin {\r         private var log:Log = new Log(this);\r           private var _sound:Sound;\r              private var _playing:Boolean;\r          private var _paused:Boolean;\r           private var _durationSeconds:Number;\r           private var _clip:Clip;\r                private var _pausedPosition:Number;\r            private var _channel:SoundChannel;\r             private var _playlist:Playlist;\r                private var _progressTimer:Timer;\r              private var _seeking:Boolean;\r          private var _started:Boolean;\r          private var _volumeController:VolumeController;\r                private var _pauseAfterStart:Boolean;\r          private var _bufferFullDispatched:Boolean;\r        private var _timeProvider:TimeProvider;\r        private var _model:PluginModel;\r        private var _lastDurationDispatched:Number = 0;\r        private var _imageLoader:ResourceLoader;\r        private var _imageDisplay:Loader = null;\r        private var context:SoundLoaderContext;\r        private var _screen:DisplayProperties;\r            private var _clipUrlResolverHelper:ClipURLResolverHelper;\r\r             public function stopBuffering():void {\r            closeSound();\r                       resetState();\r          }\r              \r               public function stop(event:ClipEvent, closeStream:Boolean = false):void {\r            seek(null, 0);\r            if (_channel) {\r                log.debug("in stop(), stopping channel");\r                _channel.stop();\r            }\r                      if (closeStream) {\r                closeSound();\r                       }\r                      \r                       resetState();\r                  if (event && _clip) {\r                          _clip.dispatchEvent(event);\r                    }\r              }\r\r        private function closeSound():void {\r            try {\r                _sound.close();\r            } catch (e:Error) {\r                // ignore\r            }\r        }\r            \r               private function resetState():void {\r                   _playing = false;\r                      _paused = false;\r                       _started = false;\r                      _bufferFullDispatched = false;\r                 _durationSeconds = 0;\r                  _pausedPosition = 0;\r                   if (_progressTimer) {\r                          _progressTimer.stop();\r                 }\r              }\r\r             public function attachStream(video:DisplayObject):void {\r               }\r              \r               private function doLoad():void {\r                       \r               }\r              \r               public function load(event:ClipEvent, clip:Clip, pauseAfterStart:Boolean = true):void {\r                        log.debug("load()");\r                   resetState();\r                  \r                       if (_clip == clip) {\r                           log.debug("load() reusing existing sound object");\r                             addListeners(_sound);\r                          play(0);\r                               _clip.dispatch(ClipEventType.BEGIN);\r                           _clip.dispatch(ClipEventType.START);\r                   } else {\r                log.debug("load() creating new sound object");\r                                _clip = clip;\r                          _sound = new Sound();\r               context = new SoundLoaderContext(1000, true);\r\r                            if (clip.getCustomProperty("coverImage")) {\r                    var cover:Object = getCoverImage(clip);\r                    log.debug("Loading Artwork For Audio " + cover.url);\r//                                     _imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageComplete);\r//                                    _imageLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onImageError);\r                                  _imageLoader.load(cover.url, onImageComplete);\r                         } else {\r                                       playAudio();\r                           }\r                      }\r                      \r                       _pauseAfterStart = pauseAfterStart;\r            }\r\r        private function getCoverImage(clip:Clip):Object {\r            var cover:Object = clip.getCustomProperty("coverImage");\r            if (cover is String) return { url: "" + cover };\r\r            if (cover.hasOwnProperty("scaling")) {\r                _clip.setScaling(cover["scaling"]);\r            }\r            return cover;\r        }\r              \r               private function playAudio():void {\r                    addListeners(_sound);\r                  _clipUrlResolverHelper.resolveClipUrl(_clip, function onClipUrlResolved(clip:Clip):void {\r                              _sound.load(new URLRequest(clip.url), context);\r                                play(0);\r                       });\r                    \r                       \r                               \r               }\r              \r               private function onImageError(error:IOErrorEvent):void {\r                       log.debug("Cover artwork doesn't exist playing now");\r                  playAudio();\r           }\r              \r               private function onImageComplete(loader:ResourceLoader):void {\r                 log.debug("Cover image loaded playing now");\r                   _imageDisplay = loader.getContent() as Loader;\r                 _clip.originalWidth = _imageDisplay.width;\r                     _clip.originalHeight = _imageDisplay.height;\r                   playAudio();\r           }\r              \r               private function addListeners(sound:Sound):void {\r                      sound.addEventListener(ProgressEvent.PROGRESS, onProgress);\r                    sound.addEventListener(Event.SOUND_COMPLETE, onComplete);\r                      sound.addEventListener(IOErrorEvent.IO_ERROR, onIoError);\r                      sound.addEventListener(Event.ID3, onId3);\r                      _progressTimer = new Timer(200);\r                       _progressTimer.addEventListener(TimerEvent.TIMER, onProgressTimer);\r                    _progressTimer.start();\r                }\r              \r               private function onIoError(event:IOErrorEvent):void {\r                  log.error("Unable to load audio file: " + event.text);\r\r                        //dispatching this error causes crashes in Safari:\r//                   _clip.dispatch(ClipEventType.ERROR, "Unable to load audio file: " + event.text);\r               }\r\r        private function addId3Metadata():void {\r            var metadata:Object = new Object();\r\r            try {\r                var tag:ID3Info = _sound.id3;\r            } catch (e:Error) {\r                log.warn("unable to access ID3 tag: " + e);\r            }\r\r            for (var prop:String in tag) {\r                log.debug(prop + ": " + _sound.id3[prop]);\r                metadata[prop] = _sound.id3[prop];\r            }\r            _clip.metaData = metadata;\r        }\r\r        private function onId3(event:Event):void {\r            log.debug("onId3(), _started == " + _started);\r            addId3Metadata();\r            if (_started) return;\r\r                        log.debug("dispatching START");\r                        _clip.dispatch(ClipEventType.METADATA);\r                        _clip.dispatch(ClipEventType.START);\r                   _started = true;\r\r                      if (_pauseAfterStart) {\r                                pause(new ClipEvent(ClipEventType.PAUSE));\r                     }\r              }\r\r             private function onProgress(event:ProgressEvent):void {\r                        if (_playing) return;\r                  _playing = true;\r            _clip.dispatch(ClipEventType.BEGIN);\r                      if (!_clip.metaData) {\r                         _clip.dispatch(ClipEventType.START);\r                   }\r              }\r\r             private function onProgressTimer(event:TimerEvent):void {\r                      estimateDuration();\r                    \r               if (! _sound.bytesTotal > 0) return;\r                   if (! _sound.bytesLoaded > 0) return;\r\r                 if(_sound.isBuffering == true && _sound.bytesTotal > _sound.bytesLoaded) {\r                             _clip.dispatch(ClipEventType.BUFFER_EMPTY);\r                    } else if (! _bufferFullDispatched){\r                           _clip.dispatch(ClipEventType.BUFFER_FULL);\r                             _bufferFullDispatched = true;\r                  }\r              }\r              \r               private function estimateDuration():void {\r             var durationSecs:Number = (_sound.length/(_sound.bytesLoaded/_sound.bytesTotal))/1000;\r            if (Math.abs(_lastDurationDispatched - durationSecs) >= 0.5) {\r                _lastDurationDispatched = durationSecs;\r                log.debug("dispatching onDuration(), " + durationSecs);\r                _model.dispatch(PluginEventType.PLUGIN_EVENT, "onDuration", durationSecs);\r            }\r            _clip.durationFromMetadata = durationSecs;\r        }\r\r           private function onComplete(event:Event):void {\r                        // dispatch a before event because the finish has default behavior that can be prevented by listeners\r                  _clip.dispatchBeforeEvent(new ClipEvent(ClipEventType.FINISH));\r                }\r\r             public function getVideo(clip:Clip):DisplayObject {\r            log.debug("getVideo() " + _imageDisplay);\r                      return _imageDisplay;\r          }\r              \r               public function resume(event:ClipEvent):void {\r                 log.debug("resume");\r                   _paused = false;\r                       play(_pausedPosition);\r                 if (event) {\r                           _clip.dispatchEvent(event);\r                    }\r              }\r              \r               public function pause(event:ClipEvent):void {\r                  log.debug("pause");\r                    _paused = true;\r                        _pausedPosition = _channel.position; \r                  _channel.stop();\r                       if (event) {\r                           _clip.dispatchEvent(event);\r                    }\r              }\r\r             public function seek(event:ClipEvent, seconds:Number):void {\r                   if (! _channel) return;\r            _channel.stop();\r                   _seeking = true;\r                       play(seconds * 1000);\r                  if (event && _clip) {\r                          _clip.dispatchEvent(event);\r                    }\r                      if (_paused) {\r                         _pausedPosition = _channel.position; \r                _channel.stop();\r                 }\r              }\r              \r               private function play(posMillis:Number):void {\r                 _channel = _sound.play(posMillis, 0);\r                  _volumeController.soundChannel = _channel;\r             }\r\r             public function get stopping():Boolean {\r                       return false;\r          }\r              \r               public function get allowRandomSeek():Boolean {\r                        return false;\r          }\r              \r               public function get bufferStart():Number {\r                     return 0;\r              }\r              \r               public function get playlist():Playlist {\r                      return _playlist;\r              }\r\r             public function get time():Number {\r            if (_timeProvider) {\r                return _timeProvider.getTime(null);\r            }\r                 return _channel ? _channel.position / 1000 : 0;\r                }\r\r             public function get bufferEnd():Number {\r                       return _sound && _clip ? _sound.bytesLoaded / _sound.bytesTotal * _clip.duration : 0;\r          }\r\r             public function get fileSize():Number {\r                        return _sound ? _sound.bytesLoaded : 0;\r                }\r              \r               public function set playlist(playlist:Playlist):void {\r                 _playlist = playlist;\r          }\r              \r               public function set netStreamClient(client:Object):void {\r              }\r              \r               public function set volumeController(controller:VolumeController):void {\r                       _volumeController = controller;\r                }\r              \r               public function onConfig(model:PluginModel):void {\r            _model = model;\r                 model.dispatchOnLoad();\r                }\r\r             public function getDefaultConfig():Object {\r                    return null;\r           }\r              \r               public function onLoad(player:Flowplayer):void {\r            _imageLoader = player.createLoader();\r                     _screen = player.pluginRegistry.getPlugin("screen") as DisplayProperties; \r                     _clipUrlResolverHelper = new ClipURLResolverHelper(player, this);\r              }\r\r        public function addConnectionCallback(name:String, listener:Function):void {\r        }\r        \r        public function addStreamCallback(name:String, listener:Function):void {\r        }\r\r        public function get netStream():NetStream {\r            return null;\r        }\r\r        public function get netConnection():NetConnection {\r            return null;\r        }\r\r        public function getDefaultConnectionProvider():ConnectionProvider {\r            return null;\r        }\r\r        public function set timeProvider(timeProvider:TimeProvider):void {\r            _timeProvider = timeProvider;\r        }\r\r        /**\r         * the value of this property is "audio"\r         */\r        public function get type():String {\r            return "audio";\r        }\r\r        public function switchStream(event:ClipEvent, clip:Clip, netStreamPlayOptions:Object = null):void {\r        }\r\r        public function get streamCallbacks():Dictionary {\r            return null;\r        }\r    }\r}\r
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/flowplayer.audio/src/actionscript/org/flowplayer/audio/AudioProviderFactory.as b/typo3/contrib/flowplayer/flowplayer.audio/src/actionscript/org/flowplayer/audio/AudioProviderFactory.as
new file mode 100644 (file)
index 0000000..88e6c87
--- /dev/null
@@ -0,0 +1 @@
+/*    \r *    Copyright (c) 2008-2011 Flowplayer Oy *\r *    This file is part of FlowPlayer.\r *\r *    FlowPlayer is free software: you can redistribute it and/or modify\r *    it under the terms of the GNU General Public License as published by\r *    the Free Software Foundation, either version 3 of the License, or\r *    (at your option) any later version.\r *\r *    FlowPlayer is distributed in the hope that it will be useful,\r *    but WITHOUT ANY WARRANTY; without even the implied warranty of\r *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r *    GNU General Public License for more details.\r *\r *    You should have received a copy of the GNU General Public License\r *    along with FlowPlayer.  If not, see <http://www.gnu.org/licenses/>.\r */\r\rpackage org.flowplayer.audio {\r      import org.flowplayer.model.PluginFactory;\r     \r       import flash.display.Sprite;            \r\r      /**\r     * @author api\r  */\r    public class AudioProviderFactory extends Sprite implements PluginFactory {\r            public function newPlugin():Object {\r                   return new AudioProvider();\r            }\r      }\r}\r
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/flowplayer.captions-3.2.3.swf b/typo3/contrib/flowplayer/flowplayer.captions-3.2.3.swf
new file mode 100644 (file)
index 0000000..5f1d773
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions-3.2.3.swf differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/LICENSE.txt b/typo3/contrib/flowplayer/flowplayer.captions/LICENSE.txt
new file mode 100644 (file)
index 0000000..7f04a62
--- /dev/null
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2009 Flowplayer Ltd
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/README.txt b/typo3/contrib/flowplayer/flowplayer.captions/README.txt
new file mode 100644 (file)
index 0000000..3301f7f
--- /dev/null
@@ -0,0 +1,52 @@
+Version history:
+
+3.2.3
+-----
+- The external method names are now loadCaptions() and addCaptions()
+
+3.2.2
+-----
+- Added support for MP4 embedded captions, issue #122. Demo: http://ec2-75-101-198-99.compute-1.amazonaws.com:8080/plugins/flash/captions.html
+
+3.2.1
+-----
+- Added ability to have line breaks with timed text caption files:
+<p begin = "00:00:00.01" dur="04.00">
+    A lazy fox jumps<br/>over a busy cat
+</p>
+
+3.2.0
+-----
+- Fixed visibility issue
+- Fixed multiple lines subtitles (#36)
+- Increasing font size when going fullscreen (#37)
+- Clip's autoPlay field wasn't taken in account (#66)
+- Wrong resize when going fullscreen if caption view was not displayed
+
+3.1.4
+-----
+- Timed Text parsing was fixed
+
+3.1.3
+-----
+Fixes:
+- loadCaptions() now removes all previous captions before adding the loaded ones
+
+3.1.2
+------
+- Now the captions can be initially made invisible by just specifying display: 'none' in the content plugin that is used
+  to show the captions
+
+3.1.1
+-----
+- added a file extension parameter to the loadCaptions external method
+
+3.1.0
+-----
+- added a button to toggle the captions, new config option 'button' can be used to control it
+- fixed error appearing in Firebug console with Timed Text captions: http://flowplayer.org/forum/8/16030)
+
+
+3.0.0
+-----
+- the first release
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/build.properties b/typo3/contrib/flowplayer/flowplayer.captions/build.properties
new file mode 100644 (file)
index 0000000..fd0a52f
--- /dev/null
@@ -0,0 +1,2 @@
+devkit-dir=../flowplayer.devkit
+version=3.2.3
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/build.xml b/typo3/contrib/flowplayer/flowplayer.captions/build.xml
new file mode 100644 (file)
index 0000000..a26abb7
--- /dev/null
@@ -0,0 +1,28 @@
+<project name="Flowplayer captions" default="deploy">
+    <property file="build.generated.properties"/>
+       <property file="${user.home}/plugin.properties" />
+       <property file="build.properties" />
+       
+       <property file="${devkit-dir}/plugin-build.properties" />
+       <import file="${devkit-dir}/plugin-build.xml"/>
+       <property name="flowplayer_lib" value="${devkit-dir}/flowplayer.swc" />
+       
+       <property name="basename" value="flowplayer.captions" />
+    <property name="releasedir" value="flowplayer.captions" />
+       <property name="plugin-binary" value="${basename}.swf" />
+       <property name="plugin-binary-versioned" value="${basename}-${version}.swf" />
+       <property name="plugin-swc" value="${basename}.swc" />
+       
+       <property name="plugin-main-class" value="org/flowplayer/captions/Caption.as" />
+
+       <target name="release" description="makes a release" depends="build">
+               <copyrelease targetdir="flowplayer.captions">
+                       <releasefiles>
+                               <fileset dir="${build-dir}">
+                                   <include name="${plugin-binary-versioned}"/>
+                               </fileset>
+                       </releasefiles>
+               </copyrelease>
+       </target>
+
+</project>
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/casa.dfxp.xml b/typo3/contrib/flowplayer/flowplayer.captions/example/casa.dfxp.xml
new file mode 100644 (file)
index 0000000..855b7e9
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?>\r<tt xml:lang="en" xmlns="http://www.w3.org/2006/10/ttaf1"  xmlns:tts="http://www.w3.org/2006/10/ttaf1#styling">\r  <head>\r     <styling>\r           <style id="1" tts:textAlign="left" tts:fontFamily="_sans" tts:color="#ffffff" tts:backgroundColor="#00000050" />\r    </styling>\r  </head>\r  <body id="text">\r     <div xml:lang="en" >\r                    <p begin="0:00:05.59" end="0:00:10.46" style="1">Ive heard of other programs like this but most of them are all geared toward the engineers</p>\r      <p begin="0:00:05.59" end="0:00:10.46" style="1">I've heard of other programs like this but most of them are all geared toward the engineers</p>\r      <p begin="0:00:10.46" end="0:00:16.48" style="1">or it's the final year of the engineer that you finally get to build a project</p>\r      <p begin="0:00:16.48" end="0:00:20.07" style="1">some culmination for all your work we've been doing that the whole four years</p>\r      <p begin="0:00:20.07" end="0:00:25.58" style="1">that we've been here and it really does make for an incredible learning environment</p>\r      <p begin="0:00:25.58" end="0:00:29.72" style="1">The professors are very one on one with the students and individualize with us</p>\r      <p begin="0:00:29.72" end="0:00:33.89" style="1">it's more of a friendship with the teachers instead of just a professor</p>\r      <p begin="0:00:33.89" end="0:00:38.14" style="1">in a regular lecture hall or something it's more one on one</p>\r      <p begin="0:00:38.14" end="0:00:43.70" style="1"> You got your different majors in CASA I'm in EST and then there's like four areas of study</p>\r      <p begin="0:00:43.70" end="0:00:49.30" style="1">that go into that your biomedical networking communications and industrial electronics technology</p>\r      <p begin="0:00:49.30" end="0:00:52.64" style="1">I plan to work in a dental office as a dental hygienist</p>\r      <p begin="0:00:52.64" end="0:00:57.90" style="1">Southern was the only dental hygiene school in Illinois that has a bachelor's degree</p>\r      <p begin="0:00:57.90" end="0:01:05.13" style="1">in dental hygiene and we perform cleanings on children at schools, visit nursing homes</p>\r      <p begin="0:01:05.13" end="0:01:10.46" style="1">and perform cleanings there We just get alot of experience outside of school</p>\r      <p begin="0:01:10.46" end="0:01:11.80" style="1">to get us ready for the real world</p>\r      <p begin="0:01:11.80" end="0:01:15.63" style="1">I have a really good time with this especially when we do work in the 737</p>\r      <p begin="0:01:15.63" end="0:01:21.72" style="1">Our professors and instructors push us to get things going like this plane we pretty much</p>\r      <p begin="0:01:21.72" end="0:01:27.36" style="1">got it running a couple of years ago and now its pretty much fully operational Its great</p>\r      <p begin="0:01:27.36" end="0:01:32.35" style="1">and you learn so much you get a lot of hands on experience working on live aircraft like this</p>\r      <p begin="0:01:32.35" end="0:01:37.30" style="1">The glass cockpit is two 15 inch screens  those screens provide you with all the information</p>\r      <p begin="0:01:37.30" end="0:01:41.10" style="1">that each gauge used to provide and it provides it in one centralized location</p>\r      <p begin="0:01:41.10" end="0:01:45.00" style="1">besides that it also provides a moving map like GPS type display</p>\r      <p begin="0:01:45.00" end="0:01:48.90" style="1">I would definitely say it’s a very good option they are providing us now</p>\r      <p begin="0:01:48.90" end="0:01:53.86" style="1">The club is an organization of students that  kind of wanted to go beyond the classroom</p>\r      <p begin="0:01:53.86" end="0:01:59.28" style="1">The whole point of it was you know this is what we do with what we learn every concept</p>\r      <p begin="0:01:59.28" end="0:02:04.57" style="1">that they picked up in all their classes digital analog discreet everything they applied in</p>\r      <p begin="0:02:04.57" end="0:02:08.90" style="1">in the dawgzooka project They started looking around at parts they asked the SIU Police</p>\r      <p begin="0:02:08.90" end="0:02:13.76" style="1">department they donated several old bomb disposal chassis that they could build on</p>\r      <p begin="0:02:13.76" end="0:02:19.17" style="1">and these principles they apply is what culminates into that final product</p>\r      <p begin="0:02:19.17" end="0:02:23.66" style="1">it’s great just build of everything that you learn</p>\r      <p begin="0:02:23.66" end="0:02:26.90" style="1">SIU is one of the only state schools that offers this program</p>\r      <p begin="0:02:26.90" end="0:02:29.64" style="1">that’s one of the  main reasons is because it is a  bachelors degree program</p>\r      <p begin="0:02:29.64" end="0:02:34.06" style="1">and it’s got the option for three different specializations</p>\r      <p begin="0:02:34.06" end="0:02:38.37" style="1">you’ve got CTMRI ultrasound and then you’ve got radiation therapy</p>\r      <p begin="0:02:38.37" end="0:02:43.75" style="1">I see it as the ability to pursue different job opportunities and also job security</p>\r      <p begin="0:02:43.75" end="0:02:47.50" style="1">mostly we’r e all really excited about clinicals because you don’t have to take any classes</p>\r      <p begin="0:02:47.50" end="0:02:51.95" style="1">when your doing it and it’s just kind of a real relief  to be out working rather than</p>\r      <p begin="0:02:51.95" end="0:02:53.67" style="1">taking classes all the time</p>\r      <p begin="0:02:53.67" end="0:02:57.91" style="1">That second semester when you got out to clinics and you actually had a real patient</p>\r      <p begin="0:02:57.91" end="0:03:05.25" style="1">you had real life scenarios and your working with real people that were trained to do the same</p>\r      <p begin="0:03:05.25" end="0:03:10.91" style="1">thing and you’re their as a student but your being treated essentially as an equal</p>\r      <p begin="0:03:10.91" end="0:03:15.92" style="1">and you get that real life experience and  it just adds to your education</p>\r      <p begin="0:03:15.92" end="0:03:24.07" style="1"></p>\r     </div> \r  </body>\r </tt>\r
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/casa.dfxp.xml.1 b/typo3/contrib/flowplayer/flowplayer.captions/example/casa.dfxp.xml.1
new file mode 100644 (file)
index 0000000..542d416
--- /dev/null
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tt xmlns="http://www.w3.org/2006/04/ttaf1"
+      xmlns:tts="http://www.w3.org/2006/04/ttaf1#styling" xml:lang="en">
+  <head>
+     <styling>
+    
+       <style id="1" tts:textAlign="left" tts:fontFamily="_sans" tts:color="#ffffff" tts:backgroundColor="#00000050" />
+</styling>
+  </head>
+  <body id="text">
+    <div id="1" xml:lang="en">
+      <p begin="0:00:05.59" end="0:00:10.46" style="1">I've heard of other programs like this but most of them are all geared toward the engineers</p>
+      <p begin="0:00:10.46" end="0:00:16.48" style="1">or it's the final year of the engineer that you finally get to build a project</p>
+      <p begin="0:00:16.48" end="0:00:20.07" style="1">some culmination for all your work we've been doing that the whole four years</p>
+      <p begin="0:00:20.07" end="0:00:25.58" style="1">that we've been here and it really does make for an incredible learning environment</p>
+      <p begin="0:00:25.58" end="0:00:29.72" style="1">The professors are very one on one with the students and individualize with us</p>
+      <p begin="0:00:29.72" end="0:00:33.89" style="1">it's more of a friendship with the teachers instead of just a professor</p>
+      <p begin="0:00:33.89" end="0:00:38.14" style="1">in a regular lecture hall or something it's more one on one</p>
+      <p begin="0:00:38.14" end="0:00:43.70" style="1"> You got your different majors in CASA I'm in EST and then there's like four areas of study</p>
+      <p begin="0:00:43.70" end="0:00:49.30" style="1">that go into that your biomedical networking communications and industrial electronics technology</p>
+      <p begin="0:00:49.30" end="0:00:52.64" style="1">I plan to work in a dental office as a dental hygienist</p>
+      <p begin="0:00:52.64" end="0:00:57.90" style="1">Southern was the only dental hygiene school in Illinois that has a bachelor's degree</p>
+      <p begin="0:00:57.90" end="0:01:05.13" style="1">in dental hygiene and we perform cleanings on children at schools, visit nursing homes</p>
+      <p begin="0:01:05.13" end="0:01:10.46" style="1">and perform cleanings there We just get alot of experience outside of school</p>
+      <p begin="0:01:10.46" end="0:01:11.80" style="1">to get us ready for the real world</p>
+      <p begin="0:01:11.80" end="0:01:15.63" style="1">I have a really good time with this especially when we do work in the 737</p>
+      <p begin="0:01:15.63" end="0:01:21.72" style="1">Our professors and instructors push us to get things going like this plane we pretty much</p>
+      <p begin="0:01:21.72" end="0:01:27.36" style="1">got it running a couple of years ago and now its pretty much fully operational Its great</p>
+      <p begin="0:01:27.36" end="0:01:32.35" style="1">and you learn so much you get a lot of hands on experience working on live aircraft like this</p>
+      <p begin="0:01:32.35" end="0:01:37.30" style="1">The glass cockpit is two 15 inch screens  those screens provide you with all the information</p>
+      <p begin="0:01:37.30" end="0:01:41.10" style="1">that each gauge used to provide and it provides it in one centralized location</p>
+      <p begin="0:01:41.10" end="0:01:45.00" style="1">besides that it also provides a moving map like GPS type display</p>
+      <p begin="0:01:45.00" end="0:01:48.90" style="1">I would definitely say it’s a very good option they are providing us now</p>
+      <p begin="0:01:48.90" end="0:01:53.86" style="1">The club is an organization of students that  kind of wanted to go beyond the classroom</p>
+      <p begin="0:01:53.86" end="0:01:59.28" style="1">The whole point of it was you know this is what we do with what we learn every concept</p>
+      <p begin="0:01:59.28" end="0:02:04.57" style="1">that they picked up in all their classes digital analog discreet everything they applied in</p>
+      <p begin="0:02:04.57" end="0:02:08.90" style="1">in the dawgzooka project They started looking around at parts they asked the SIU Police</p>
+      <p begin="0:02:08.90" end="0:02:13.76" style="1">department they donated several old bomb disposal chassis that they could build on</p>
+      <p begin="0:02:13.76" end="0:02:19.17" style="1">and these principles they apply is what culminates into that final product</p>
+      <p begin="0:02:19.17" end="0:02:23.66" style="1">it’s great just build of everything that you learn</p>
+      <p begin="0:02:23.66" end="0:02:26.90" style="1">SIU is one of the only state schools that offers this program</p>
+      <p begin="0:02:26.90" end="0:02:29.64" style="1">that’s one of the  main reasons is because it is a  bachelors degree program</p>
+      <p begin="0:02:29.64" end="0:02:34.06" style="1">and it’s got the option for three different specializations</p>
+      <p begin="0:02:34.06" end="0:02:38.37" style="1">you’ve got CTMRI ultrasound and then you’ve got radiation therapy</p>
+      <p begin="0:02:38.37" end="0:02:43.75" style="1">I see it as the ability to pursue different job opportunities and also job security</p>
+      <p begin="0:02:43.75" end="0:02:47.50" style="1">mostly we’r e all really excited about clinicals because you don’t have to take any classes</p>
+      <p begin="0:02:47.50" end="0:02:51.95" style="1">when your doing it and it’s just kind of a real relief  to be out working rather than</p>
+      <p begin="0:02:51.95" end="0:02:53.67" style="1">taking classes all the time</p>
+      <p begin="0:02:53.67" end="0:02:57.91" style="1">That second semester when you got out to clinics and you actually had a real patient</p>
+      <p begin="0:02:57.91" end="0:03:05.25" style="1">you had real life scenarios and your working with real people that were trained to do the same</p>
+      <p begin="0:03:05.25" end="0:03:10.91" style="1">thing and you’re their as a student but your being treated essentially as an equal</p>
+      <p begin="0:03:10.91" end="0:03:15.92" style="1">and you get that real life experience and  it just adds to your education</p>
+      <p begin="0:03:15.92" end="0:03:24.07" style="1"></p>
+    </div>
+  </body>
+</tt>
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/engineering.xml b/typo3/contrib/flowplayer/flowplayer.captions/example/engineering.xml
new file mode 100644 (file)
index 0000000..d9b8366
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?>\r<tt xml:lang="en" xmlns="http://www.w3.org/2006/10/ttaf1"  xmlns:tts="http://www.w3.org/2006/10/ttaf1#styling">\r  <head>\r     <styling>\r           <style id="1" tts:textAlign="left" tts:fontFamily="_sans" tts:color="#ffffff" tts:backgroundColor="#00000050" />\r    </styling>\r  </head>\r  <body id="text">\r     <div xml:lang="en" >\r      <p begin="0:00:05.56" end="0:00:08.34" style="1">The size of SIU I really liked</p> \r      <p begin="0:00:08.35" end="0:00:10.00" style="1">like our community is really tight</p> \r      <p begin="0:00:10.00" end="0:00:12.45" style="1">The college of engineering I know pretty much the whole class</p> \r      <p begin="0:00:12.45" end="0:00:16.00" style="1">because we are so small and your teachers are really friendly</p> \r      <p begin="0:00:16.00" end="0:00:19.12" style="1">and there’s lots of stuff to do here outside and inside</p> \r      <p begin="0:00:19.12" end="0:00:21.19" style="1">At some bigger schools they have</p> \r      <p begin="0:00:21.19" end="0:00:26.19" style="1">hundreds of people in their classrooms and there’s no interaction between the faculty and the students</p> \r      <p begin="0:00:26.19" end="0:00:32.03" style="1">students and down here it's a lot more accommodating to people and individuals</p> \r      <p begin="0:00:32.03" end="0:00:34.27" style="1">I haven't had a professor I don't like yet</p> \r      <p begin="0:00:34.27" end="0:00:37.39" style="1">I really like all of them they are all really passionate about what they do</p> \r      <p begin="0:00:37.39" end="0:00:40.75" style="1">and they all really want you to learn they want you to succeed</p> \r      <p begin="0:00:40.75" end="0:00:44.79" style="1">It's a lot of fun especially classes with labs you get a lot of hands on experience</p> \r      <p begin="0:00:44.79" end="0:00:49.45" style="1">which is nice because it's not all theoretical ideas that your learning</p> \r      <p begin="0:00:49.45" end="0:00:52.98" style="1">you get to apply those concepts that you learn in class</p> \r      <p begin="0:00:52.98" end="0:00:55.27" style="1">You have at least four classes with labs</p> \r      <p begin="0:00:55.27" end="0:00:56.26" style="1">you have design electives</p> \r      <p begin="0:00:56.26" end="0:00:59.20" style="1">where you actually pick apart things and fix things</p> \r      <p begin="0:00:59.20" end="0:01:03.09" style="1">and a design class a senior design class where you build something</p> \r      <p begin="0:01:03.09" end="0:01:06.23" style="1">We participate in all kinds of stuff like volunteer activities</p> \r      <p begin="0:01:06.23" end="0:01:08.90" style="1">the moon buggy team the race car team</p> \r      <p begin="0:01:08.90" end="0:01:10.87" style="1">we go to conferences twice a year</p> \r      <p begin="0:01:10.87" end="0:01:17.38" style="1">we have design competitions we have social events and we participate with all other organizations in the college of engineering</p> \r      <p begin="0:01:17.38" end="0:01:22.64" style="1">We design and build a moon buggy for  a competition at the NASA space camp</p> \r      <p begin="0:01:22.64" end="0:01:27.74" style="1">it's nice to have  seen  what I have seen as well as see the club come as far as it has</p> \r      <p begin="0:01:27.74" end="0:01:30.40" style="1">I don't know anyone who didn't have an internship this summer</p> \r      <p begin="0:01:30.40" end="0:01:35.56" style="1">we've got Caterpillar the Environmental Protection Agency Boeing John Deere</p> \r      <p begin="0:01:35.56" end="0:01:41.52" style="1">Caterpillar is a company I've wanted to work for since I was a little kid playing with my toy Tonka trucks</p> \r      <p begin="0:01:41.52" end="0:01:46.01" style="1">all the big yellow construction machinery that’s exciting for a little kid</p> \r      <p begin="0:01:46.01" end="0:01:48.43" style="1">and continued to be something that I wanted to get into</p> \r      <p begin="0:01:48.43" end="0:01:52.54" style="1">You know we're really proud of this school that we have we've got a really good engineering school</p> \r      <p begin="0:01:52.54" end="0:01:56.21" style="1">and we work really hard to keep it up and keep up our reputations</p> \r      <p begin="0:01:56.21" end="0:01:58.48" style="1">I'm really proud of our hard work</p> \r       </div> \r  </body>\r </tt>\r
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/flowplayer.captions.js b/typo3/contrib/flowplayer/flowplayer.captions/example/flowplayer.captions.js
new file mode 100644 (file)
index 0000000..788ab36
--- /dev/null
@@ -0,0 +1,186 @@
+/**
+ * flowplayer.playlist.js 3.0.0. Flowplayer JavaScript plugin.
+ * 
+ * This file is part of Flowplayer, http://flowplayer.org
+ *
+ * Author: Tero Piirainen, <support@flowplayer.org>
+ * Copyright (c) 2009 Flowplayer Ltd
+ *
+ * Dual licensed under MIT and GPL 2+ licenses
+ * SEE: http://www.opensource.org/licenses
+ * 
+ * Version: 3.0.0 - Tue Nov 25 2008 16:30:11 GMT-0000 (GMT+00:00)
+ */
+(function($) {
+       
+       $f.addPlugin("captions", function(container, options) {
+       
+               // self points to current Player instance
+               var self = this;        
+               var api = null;
+               var opts = {
+                       activeClass: 'active',
+                       template: '<img src="images/${time}.jpg"/>',
+                       padTime: true,
+                       fadeTime: 500
+               };              
+               
+               $.extend(opts, options);
+               var wrap = container;
+               var template = null;
+               
+               //wrap = $(wrap);               
+               //alert(wrap.html());
+               //var template = wrap.is(":empty") ? opts.template : wrap.html(); 
+               var el = "";
+               //wrap.empty();         
+                       
+       
+               function seek()
+               {
+                       var status = api.getStatus();   
+                       alert(status.index);
+               }
+               
+               function parseTemplate(values)
+               {
+                       $.each(values, function(key, val) {
+       
+                               if (typeof val == 'object')
+                               {       
+                                       parseTemplate(key);
+                               } else {
+                                       if (key == "time") {
+                                               val = Math.round(val / 1000);
+                                               if (opts.padTime && val < 10) val = "0" + val;
+                                       }
+                                       
+                                       el = el.replace("$\{" +key+ "\}", val).replace("$%7B" +key+ "%7D", val);
+
+                               }
+                       });
+               }
+               
+               // onStart
+               self.onStart(function(clip) {
+               
+                       var index = 1;
+                       
+                       wrap = $(wrap);         
+                       template = wrap.is(":empty") ? opts.template : wrap.html(); 
+                       wrap.fadeOut(opts.fadeTime).empty();
+                       
+                  // wrap.empty();
+               
+                       $.each(clip.cuepoints, function(key, val) {     
+                               
+                               el = template;
+                               if (val !== null) {
+                                       var time = Math.round(val[0].time / 1000);
+                                       parseTemplate(val[0]);
+       
+                                       el = $(el);     
+                                       el.attr("index",index);
+                                       index++;
+                                       el.click(function() {   
+                                               self.seek(time);
+                                               api.seekTo($(this).attr("index"));
+                                               //api.next();
+                                       });
+                       
+                                       wrap.append(el);
+                               }
+                       });
+                       
+                       if (wrap.parent().css('display') == "none") {
+                               wrap.show();
+                               wrap.parent('div').fadeIn(opts.fadeTime);
+                       } else {
+                               wrap.fadeIn(opts.fadeTime);
+                       }
+                       
+                       
+                       $(wrap.parent()).scrollable({items:wrap,size:4, clickable:true, activeClass: opts.activeClass});
+                   api = $(wrap.parent()).scrollable();
+                   
+       
+                       $("a.prevPage").click(function() {
+                               api.prevPage(500);                      
+                       });
+                       
+                       $("a.prevPage").mouseover(function() {
+                               api.prevPage(500);                      
+                       });
+                       
+                       $("a.nextPage").click(function() {
+                               api.nextPage(500);                      
+                       });      
+                       
+                       $("a.nextPage").mouseover(function() {
+                               api.nextPage(500);                      
+                       });     
+       
+                       els = wrap.children();
+
+                       
+               });     
+               
+               
+               self.onCuepoint(function(clip, cuepoint) { 
+                       
+                       //var cue = els.filter("[@time=" + cuepoint.time + "]");
+                       //api.move();
+                       api.next();
+               //      alert(api.getIndex());
+                       //alert(wrap.html());
+                       //self.getPlugin("scrollable").next();
+                       //console.log(cue.text());
+                       //alert(cuepoint.time);
+                      //alert("embedded cuepoint entered, time: " + cuepoint.time); 
+               });
+               /*
+               // onPause      
+               self.onPause(function(clip) {
+                       getEl(clip).removeClass(opts.playingClass).addClass(opts.pausedClass);          
+               });     
+               
+               // onResume
+               self.onResume(function(clip) {
+                       getEl(clip).removeClass(opts.pausedClass).addClass(opts.playingClass);          
+               });             
+               
+               // what happens when clip ends ?
+               if (!opts.loop && !manual) {
+                       
+                       // stop the playback exept on the last clip, which is stopped by default
+                       self.onBeforeFinish(function(clip) {
+                               if (clip.index < els.length -1) {
+                                       return false;
+                               }
+                       }); 
+               }*/
+               
+               // on manual setups perform looping here
+               /*if (manual && opts.loop) {
+                       self.onBeforeFinish(function(clip) {
+                               var el = getEl(clip);
+                               if (el.next().length) {
+                                       el.next().click();                      
+                               } else {
+                                       els.eq(0).click();      
+                               } 
+                               return false;                           
+                       }); 
+               }*/   
+               
+               // onUnload
+               self.onUnload(function() {
+                       clearCSS();             
+               });
+               
+               
+               return self;
+               
+       });
+               
+})(jQuery);            
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/flvtool2-cuepoints.sh b/typo3/contrib/flowplayer/flowplayer.captions/example/flvtool2-cuepoints.sh
new file mode 100644 (file)
index 0000000..a69dc04
--- /dev/null
@@ -0,0 +1,65 @@
+#!/bin/bash
+#
+# /usr/local/bin/cuepoints
+#
+# Generate an XML file used by FLVTool2 to add cuepoints to a flash file
+# The XML file adds a cuepoint every ten seconds, to line up with timestamps
+#
+# Syntax: cuepoints [<seconds>] [<filename>]
+#         cuepoints 1800 cuepoints-1800.xml
+#         cuepoints 7200
+#         cuepoints
+#
+# Options for start time and interval could be added
+#
+# -----------------------------------------------------------------------------
+
+# Add a help screen
+if [ "$1" = "-h" -o "$1" = "--help" -o "$1" = "help" ]
+ then echo -e "\ncuepoints [<seconds>] [<filename>]"
+  echo -e "\tThe cuepoints script creates an XML file used by FLVTool2 to add cuepoints to a flash file"
+  echo -e "\nSyntax:"
+  echo -e "\tcuepoints \t\t(defaults to 3600 seconds, or one hour, written to cuepoints.xml)"
+  echo -e "\tcuepoints 1800 \t\t(create cuepoints for a half-hour file)"
+  echo -e "\tcuepoints 1800 cuepoints-1800.xml\t(specify a filename)\n"
+   exit
+fi
+
+echo -e "\nCreating cuepoints.xml, used by FLVTool2 to add cuepoints to a flash file \
+(see \"cuepoints help\" for syntax and options)\n"
+
+# Check for length
+if [ "$1" = "" ]
+ then LENGTH="3600"
+ else LENGTH="$1"
+fi
+
+# Check for filename
+if [ "$2" = "" ]
+ then FIL="cuepoints.xml"
+ else FIL="$2"
+fi
+# Write the header
+echo "<?xml version=\"1.0\"?>" > $FIL
+echo "<tags>" >> $FIL
+echo "  <!-- navigation cue points -->" >> $FIL
+# Write the body
+for N in $(seq 0 10 $LENGTH)
+do
+ NAME="$( echo $(date -d "+$N seconds"\ 00:00:00 +%H:%M:%S) )"
+ echo "  <metatag event=\"onCuePoint\">" >> $FIL
+ echo "    <name>"$NAME"</name>" >> $FIL
+ echo "    <timestamp>"$N"000</timestamp>" >> $FIL
+ echo "    <type>navigation</type>" >> $FIL
+ echo "  </metatag>" >> $FIL
+done
+# Write the footer
+echo "</tags>" >> $FIL
+  
+echo -e "An XML file specifying $LENGTH timestamps has been written to $FIL\n"
+
+echo -e "To create a flash file with these cuepoints, use \"flvtool2 -AUPt cuepoints.xml input.flv output.flv\"\n"
+
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/left.png b/typo3/contrib/flowplayer/flowplayer.captions/example/images/left.png
new file mode 100644 (file)
index 0000000..bb9c9a7
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/left.png differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/right.png b/typo3/contrib/flowplayer/flowplayer.captions/example/images/right.png
new file mode 100644 (file)
index 0000000..469a229
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/right.png differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame00.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame00.jpg
new file mode 100644 (file)
index 0000000..6181408
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame00.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame01.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame01.jpg
new file mode 100644 (file)
index 0000000..e717366
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame01.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame02.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame02.jpg
new file mode 100644 (file)
index 0000000..0731d10
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame02.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame03.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame03.jpg
new file mode 100644 (file)
index 0000000..0d5a9ed
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame03.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame04.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame04.jpg
new file mode 100644 (file)
index 0000000..d920864
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame04.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame05.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame05.jpg
new file mode 100644 (file)
index 0000000..39a7d6a
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame05.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame06.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame06.jpg
new file mode 100644 (file)
index 0000000..54da933
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame06.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame07.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame07.jpg
new file mode 100644 (file)
index 0000000..fdcff69
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame07.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame08.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame08.jpg
new file mode 100644 (file)
index 0000000..378c5fb
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame08.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame09.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame09.jpg
new file mode 100644 (file)
index 0000000..2c0c57a
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame09.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame10.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame10.jpg
new file mode 100644 (file)
index 0000000..c6747cb
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame10.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame11.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame11.jpg
new file mode 100644 (file)
index 0000000..182e050
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame11.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame12.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame12.jpg
new file mode 100644 (file)
index 0000000..4bf650f
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame12.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame13.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame13.jpg
new file mode 100644 (file)
index 0000000..037e7e6
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame13.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame14.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame14.jpg
new file mode 100644 (file)
index 0000000..fd7f99d
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame14.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame15.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame15.jpg
new file mode 100644 (file)
index 0000000..933278d
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame15.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame16.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame16.jpg
new file mode 100644 (file)
index 0000000..bbf58f9
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame16.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame17.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame17.jpg
new file mode 100644 (file)
index 0000000..51c353f
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame17.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame18.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame18.jpg
new file mode 100644 (file)
index 0000000..5212f66
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame18.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame19.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame19.jpg
new file mode 100644 (file)
index 0000000..8b04c5e
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame19.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame20.jpg b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame20.jpg
new file mode 100644 (file)
index 0000000..9853641
Binary files /dev/null and b/typo3/contrib/flowplayer/flowplayer.captions/example/images/thumbs/frame20.jpg differ
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/index.html.tmpl b/typo3/contrib/flowplayer/flowplayer.captions/example/index.html.tmpl
new file mode 100644 (file)
index 0000000..918fdba
--- /dev/null
@@ -0,0 +1,1056 @@
+<!DOCTYPE html 
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<!-- 
+       Flowplayer website, forums & jQuery Tools by Tero Piirainen 
+       
+       Prefer web standards over Flash. Video is the only exception.   
+-->
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+
+<head>
+
+               <title>Flowplayer - Flash Video Player for the Web</title>
+               <meta name="Description" content="Embed video streams to your website. Superior alternative to YouTube. Open Sourced under the GPL license. No other software makes this smoother." />  
+               <meta name="Keywords" content="video player for the web, flash video player,web media player,free video player,free flv player,mp4 flash player,mp4 player,open source video player,flash 9 video,flash video,web video,flv player,flv video" />                
+       
+
+       
+       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+       <meta name="Distribution" content="Global" />
+       <meta name="Author" content="Tero Piirainen" />
+       <meta name="Robots" content="index,follow" /> 
+               
+       <link rel="stylesheet" type="text/css" href="http://static.flowplayer.org/css/global-0.25.css" />
+       
+       
+       <script type="text/javascript" src="http://static.flowplayer.org/js/flowplayer-3.2.2.min.js"></script>  
+       <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
+       <script type="text/javascript"  src="http://cdn.jquerytools.org/1.2.3/jquery.tools.min.js"></script>
+       <link rel="stylesheet" type="text/css" href="http://static.flowplayer.org/tools/css/overlay-apple.css"/>
+       <script type="text/javascript"  src="http://flowplayer.org/tools/download/1.2.3/overlay/overlay.apple.min.js"></script>         
+       
+       <script type="text/javascript" src="flowplayer.captions.js"></script>
+
+       
+
+       <style type="text/css">
+               div.overlay {
+               width:1024px; 
+               height:432px;
+
+               }
+               
+               #cuethumbs {
+                       height:115px;
+                       background:#f5fbfb url(/img/global/gradient/h150.png) repeat-x;
+                       padding:5px;
+                       border:1px solid #ddd;
+                       width: 780px;
+               }
+               
+               #cuethumbs div.items {
+                       height:115px;
+                       width: 700px;
+                       float:left;
+               }
+               
+               #cuethumbs div.items img:hover {
+                       border:3px solid #000000;
+               }
+               
+               active {
+                       border:3px solid #CCCCCC;
+               }
+               
+               #cuethumbs div.items img.active {
+                       border:3px solid #CCCCCC;
+               }
+               
+               #cuethumbs div.items img {
+                       border:1px solid #000000;
+                       float:left;
+                       height:113px;
+                       cursor:pointer;
+                       margin-right:7px;
+                       width:150px;
+               }
+               
+               #cuethumbs div.items a:hover {
+                       background-position:-140px 0;
+                       color:#000;
+               }
+               
+               #cuethumbs div.items a.playing {
+                       background-position:-280px 0;           
+                       color:#000;
+               }
+               
+               #cuethumbs div.items a.paused {
+                       background-position:-420px 0;           
+                       color:#000;
+               }
+               
+               #cuethumbs div.items a.progress {
+                       opacity:0.8;
+               }
+               
+               #cuethumbs div.items em {       
+                       float:right;
+                       margin-top:15px;
+                       color:red;
+                       font-style:normal;
+               }
+               
+               #cuethumbs a.nextPage, #cuethumbs a.prevPage {
+                       display:block;
+                       width:18px;
+                       height:18px;
+                       background:url(images/left.png) no-repeat;
+                       margin:30px 10px;
+                       cursor:pointer;
+                       float:left;
+               }
+               
+               #cuethumbs a.nextPage:hover, #cuethumbs a.prevPage:hover {
+                       background-position:0px -18px;          
+               }
+               
+               #cuethumbs a.nextPage {
+                       background-image:url(images/right.png); 
+               }
+               
+       </style>
+       
+
+       <!--[if lt IE 7]>
+               <style type="text/css">
+                       @import "http://static.flowplayer.org/css/ie6.css?v=0.2";
+               </style>
+       <![endif]-->
+       
+       <!--[if lt IE 8]>
+               <style>
+                       html { overflow-x:hidden; }
+                       #content ol, #content ul  {margin-left: 50px; }
+               </style>
+       <![endif]-->    
+
+</head>
+
+<body id="plugins_captions">
+
+<div id="wrap">        
+
+               <div id="content"> 
+
+<h1>
+       Flash plugin: <strong>Captions</strong>
+       <em>Subtitles for your videos</em>
+</h1>
+
+
+<h2>Introduction</h2>
+
+<p>
+       The Captions plugin is used to show Closed Captions (CC) for videos. You can supply the Captions information as an external text file. Closed Captioning is a term describing several systems developed to display text on a video screen to provide additional or interpretive information to viewers who wish to access it. The most common use is to provide subtitles for movies. See <a href="http://en.wikipedia.org/wiki/Closed_captioning" class="external">here for more info</a>.
+</p>
+
+
+<h2>Features</h2>
+
+<ul>
+ <li>Loading subtitles from the Timed Text or Subrip format files.</li>
+ <li>Styling text from styles set in the Time Text format files.</li>
+ <li>Loading of subtitles from embedded FLV cuepoints.</li>
+ <li>Controls an external Content plugin to show the cuepoints.</li>
+</ul>
+
+<p>
+       <strong>Timed Text</strong> is a W3C specification for delivering captioning and video description for the web. You can find
+       the spec <a href="http://www.w3.org/AudioVideo/TT/">here in the W3C site</a>.
+       <strong>SubRip</strong> is a common format for distributing Captions for DVD rips. It is the
+       native subtitle format of the <a href="http://zuggy.wz.cz/">SubRip program</a>.
+</p>
+
+
+<h2>SubRip example</h2>
+
+<p>
+       The following shows Captions from a SubRib file. You will need a recent version of Flash installed to view the video that is a H.264 encoded mp4 file. The first subtitle comes after 13 seconds.
+</p>
+
+<!-- player container-->
+<a 
+       href="http://vod01.netdna.com/vod/demo.flowplayer/flowplayer-700.flv" 
+       style="display:block;width:500px;height:330px;" 
+       id="player">
+        
+       <!-- splash image inside the container -->
+       <img src="http://www.flowplayer.org/img/home/flow_eye.jpg" alt="Search engine friendly content" />
+       
+</a>
+
+<!-- Flowplayer installation and configuration -->
+<script language="JavaScript">
+
+$f("player", "@PLAYER_SWF@", {
+       clip: { 
+               
+               // here is our high quality movie
+               //url: 'mp4:buffalo_soldiers.mp4',
+               url: 'http://video.flowplayer.org/flowplayer.flv',
+               // this is the SubRib file with captions info
+               captionUrl: 'http://releases.flowplayer.org/data/buffalo.srt',
+               
+               // we want to use RTMP since this is a 1,5 hour long movie.
+               //provider: 'rtmp'
+       },
+       log: {
+               level: 'error',
+               filter: 'org.flowplayer.captions.*'
+       },
+       plugins:  {
+               
+               // the captions plugin
+               captions: {
+                       url: '@MAIN_PLAYER_SWF@',
+                       
+                       // pointer to a content plugin (see below)
+                       captionTarget: 'content'
+               },
+               
+               /*
+                       configure a content plugin so that it 
+                       looks good for showing subtitles
+               */
+               content: {
+                       url:'../flowplayer.content.swf',
+                       bottom: 25,
+                       height:40,
+                       backgroundColor: 'transparent',
+                       backgroundGradient: 'none',
+                       border: 0,
+            textDecoration: 'outline',
+                       style: { 
+                               body: { 
+                                       fontSize: 14, 
+                                       fontFamily: 'Arial',
+                                       textAlign: 'center',
+                                       color: '#ffffff'
+                               } 
+                       } 
+               },
+               
+               // streaming plugin configuration
+               rtmp: { 
+                       url: '../flowplayer.rtmp.swf', 
+                       netConnectionUrl: 'rtmp://flashy.flowplayer.org:1935/fastplay'
+               },
+               
+               // change default skin to "tube"
+               controls: {
+                       url: '../flowplayer.controls.swf'
+               }
+               
+       }
+});
+</script>      
+
+
+
+
+<div class="box code">
+<pre><code class="javascript">$f("player", "@PLAYER_SWF@", {
+       clip: { 
+               
+               // here is our high quality movie
+               url: 'mp4:buffalo_soldiers.mp4',
+                       
+               // this is the SubRib file with captions info
+               captionUrl: 'http://releases.flowplayer.org/data/buffalo.srt',
+               
+               // we want to use RTMP since this is a 1,5 hour long movie.
+               provider: 'rtmp'
+       },
+       plugins:  {
+               
+               // the captions plugin
+               captions: {
+                       url: '@MAIN_PLAYER_SWF@',
+                       
+                       // pointer to a content plugin (see below)
+                       captionTarget: 'content'
+               },
+               
+               /*
+                       configure a content plugin so that it 
+                       looks good for showing subtitles
+               */
+               content: {
+                       url:'../flowplayer.content.swf',
+                       bottom: 25,
+                       height:40,
+                       backgroundColor: 'transparent',
+                       backgroundGradient: 'none',
+                       border: 0,
+            textDecoration: 'outline',
+                       style: { 
+                               body: { 
+                                       fontSize: 14, 
+                                       fontFamily: 'Arial',
+                                       textAlign: 'center',
+                                       color: '#ffffff'
+                               } 
+                       } 
+               },
+               
+               // streaming plugin configuration
+               rtmp: { 
+                       url: '../flowplayer.rtmp.swf', 
+                       netConnectionUrl: 'rtmp://flashy.flowplayer.org:1935/fastplay'
+               },
+               
+               // change default skin to "tube"
+               controls: {
+                       url: '../flowplayer.controls.swf'
+               }
+               
+       }
+});</code></pre>
+</div>
+
+
+<h2>Configuration</h2>
+
+<p>
+       Here is a list of all Captions specific clip properties. These go under the <samp>clip</samp> node in the player configuration:
+</p>
+
+<table class="listing">
+       <tr>
+               <th>property</th>
+               <th>datatype</th>
+
+               <th>default</th>
+               <th>description</th>
+       </tr>
+       <tr>
+               <td><code>captionUrl</code></td>
+               <td>String</td>
+               <td></td>
+
+               <td>
+                       Path to a Timed Text or SubRip Captions file.
+               </td>
+       </tr>
+       <tr>
+               <td><code>captions</code></td>
+               <td>array</td>
+               <td></td>
+
+               <td>
+                       A json array of cuepoint objects ie 
+                                       {
+                                               time: 0,
+                                               name: 'cue1',
+                                               parameters: {
+                                                       begin: 0,
+                                                       end: 4000,
+                                                       text: 'First caption with default style coming from the Content plugin config'
+                                                       }
+                                               }
+               </td>
+       </tr>
+       <tr>
+               <td><code>showCaptions</code></td>
+               <td>boolean</td>
+
+               <td>true</td>
+               <td>
+                       Show Captions for this clip. You can set this to false if you have embedded Captions in the video and you don't want to show them.
+               </td>
+       </tr>
+</table>
+
+<p>
+       Here is a list of configuration options for the Captions plugin. These go under the Captions <samp>plugin</samp> node in the player configuration:
+</p>
+
+<table class="listing">
+       <tr>
+               <th>property</th>
+
+               <th>description</th>
+       </tr>
+       <tr>
+               <td><code>captionTarget</code></td>
+               <td>
+                       The name of a Content plugin configured to show the Captions. The plugin needs to be specified in the player's initial configuration.
+               </td>
+
+       </tr>
+
+    <tr>
+        <td><code>template</code></td>
+        <td>
+            Used with embedded cuepoints. A template string that specifies tokens for names of cuepoint parameters. The tokens are replaced by values that are looked up from the cuepoint parameters. If you embed cuepoints where the subtitles are in the cuepoint parameter called <samp>subtitle</samp>, you should set the use of a template with the value '&#36;{subtitle}'.
+        </td>
+    </tr>
+
+    <tr>
+        <td><code>button</code></td>
+        <td>
+            <a href="/documentation/configuration/plugins.html#display-properties">Display properties</a> for the CC-button. The default
+            properties are: <samp>{ width: 20, height: 15, right: 5, bottom: 30, label: 'CC' }</samp>. Specify <samp>null</samp> and the button
+            is not shown at all. The <samp>label</samp> property in this object specifies the label text for the button. If you want to make the captions initially hidden, specify <samp>display: 'none'</samp> in the Content plugin that is used to show the captions. Once the CC button is clicked, the captions become visible.
+        </td>
+    </tr>
+
+</table>
+
+<a name="scripting"></a>
+<h2>Scripting</h2>
+
+<p>
+       The captions plugin has the following custom methods that can be used at runtime:
+</p>
+
+<table class="listing">
+       <thead>
+               <tr>
+                       <th>method</th>
+                       <th>example</th>
+                       <th>description</th>
+               </tr>
+       </thead>
+
+       <tr>
+               <td class="code">loadCaptionsFromFile(clipIndex, captionURL, fileExtension)</td>
+               <td class="code" nowrap>loadCaptions(0, 'captions.xml')</td>
+               <td>
+                       Loads captions for the specified clip. The <samp>fileExtension</samp> is an optional parameter
+                       and you should specify it if the <samp>captionURL</samp> does not contain a file extension that
+                       can be used to recognize the caption file format. The supported <samp>fileExtension</samp> values
+                       are 'txt' and 'srt'.
+               </td>
+       </tr>
+       <tr>
+               <td class="code">loadCaptions(clipIndex, captions)</td>
+               <td class="code" nowrap>loadCaptions(0, captions)</td>
+               <td>
+                       Loads a json array of captions for the specified clip. 
+               </td>
+       </tr>
+</table>
+
+
+<h2>Timed text example</h2>
+
+<a class="player" id="timedtext">
+       <img src="http://static.flowplayer.org/img/player/btn/showme.png"  />
+</a><div class="box code">
+<pre><code class="html">&lt;a class="player" id="timedtext"&gt;
+       &lt;img src="http://static.flowplayer.org/img/player/btn/showme.png"  /&gt;
+&lt;/a&gt;</code></pre>
+</div>
+
+
+<script language='javascript'>
+$f("timedtext", "@PLAYER_SWF@", {
+       log: { level: 'debug', filter: 'org.flowplayer.captions.*'},
+       clip: {
+               url: 'http://video.flowplayer.org/flowplayer.flv',
+
+               // this is the Timed Text file with captions info
+               captionUrl: 'http://releases.flowplayer.org/data/timedtext.xml'
+       },
+       plugins:  {
+
+               captions: {
+                       url: '@MAIN_PLAYER_SWF@',
+
+                       // pointer to a content plugin (see below)
+                       captionTarget: 'content'
+               },
+
+               // configure a content plugin to look good for our purpose
+               content: {
+                       url:'../flowplayer.content.swf',
+                       bottom: 25,
+                       width: '80%',
+                       height:40,
+                       backgroundColor: 'transparent',
+                       backgroundGradient: 'low',
+                       borderRadius: 4,
+                       border: 0,
+
+                       style: {
+                           'body': {
+                               fontSize: '14',
+                               fontFamily: 'Arial',
+                               textAlign: 'center',
+                               color: '#000000'
+                           }
+                   }
+               }
+       }
+});
+</script><div class="box code">
+<pre><code class="javascript">$f("timedtext", "@PLAYER_SWF@", {
+       log: { level: 'debug', filter: 'org.flowplayer.captions.*'},
+       clip: {
+               url: 'http://video.flowplayer.org/flowplayer.flv',
+
+               // this is the Timed Text file with captions info
+               captionUrl: 'http://releases.flowplayer.org/data/timedtext.xml'
+       },
+       plugins:  {
+
+               captions: {
+                       url: '@MAIN_PLAYER_SWF@',
+
+                       // pointer to a content plugin (see below)
+                       captionTarget: 'content'
+               },
+
+               // configure a content plugin to look good for our purpose
+               content: {
+                       url:'../flowplayer.content.swf',
+                       bottom: 25,
+                       width: '80%',
+                       height:40,
+                       backgroundColor: 'transparent',
+                       backgroundGradient: 'low',
+                       borderRadius: 4,
+                       border: 0,
+
+                       style: {
+                           'body': {
+                               fontSize: '14',
+                               fontFamily: 'Arial',
+                               textAlign: 'center',
+                               color: '#000000'
+                           }
+                   }
+               }
+       }
+});</code></pre>
+</div>
+
+
+<p>
+       The timed text XML file used in this example is shown below. The style definitions are in the first part of the file inside the <samp>head</samp> element and below that we have the Captions inside the <samp>body</samp> element.
+</p>
+
+<p>
+       The first caption does not include the <samp>style</samp> attribute and therefore the style used to render it comes from the styling settings used to configure our Content plugin. The second caption uses the style with id 1 that defines a white font and left text alignment. The third caption has a small font coming from the 2nd style referenced by its id 2.
+</p>
+
+<div class="box code">
+<pre><code class="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+&lt;tt xml:lang="en" xmlns="http://www.w3.org/2006/10/ttaf1"
+       xmlns:tts="http://www.w3.org/2006/10/ttaf1#styling"&gt;
+       &lt;head&gt;
+                &lt;styling&gt;
+                         &lt;style id="1" tts:fontFamily="Arial" tts:fontSize="14" tts:color="#FFFFFF"
+                       tts:textAlign="left" tts:fontStyle="Bold" /&gt;
+                         &lt;style id="2" tts:fontSize="10" tts:color="#000000" /&gt;
+                &lt;/styling&gt;
+       &lt;/head&gt;
+       &lt;body&gt;
+                 &lt;div xml:lang="en" &gt;
+                         &lt;p begin = "00:00:00.01" dur="04.00"&gt;
+                       First caption with default style coming from the Content plugin config
+               &lt;/p&gt;
+
+                         &lt;p begin = "00:00:04.19" dur="04.00" style="1"&gt;
+                 2nd caption with timed text styling to make the text white
+               &lt;/p&gt;
+
+                         &lt;p begin = "8s" dur="04.00" style="2"&gt;
+                 3rd caption using a small black font
+               &lt;/p&gt;
+                &lt;/div&gt;
+       &lt;/body&gt;
+&lt;/tt&gt;</code></pre>
+</div>
+
+
+
+
+<h2>Embedded Captions example</h2>
+
+<p>
+       This example show Captions based on data included in cuepoints that are embedded in the video file. The cuepoints were embedded into the video using <a href="http://www.richapps.de/?p=169" class="external">RichFLV</a>. The first caption is at 6 seconds.
+</p>
+
+<a class="player" id="embedded">
+       <img src="http://static.flowplayer.org/img/player/btn/showme.png"  />
+</a>
+
+<div class="box code">
+<pre><code class="html">&lt;a class="player" id="embedded"&gt;
+       &lt;img src="http://static.flowplayer.org/img/player/btn/showme.png"  /&gt;
+&lt;/a&gt;</code></pre>
+</div>
+
+
+<script language='javascript'>
+$f("embedded", "@PLAYER_SWF@", {
+       clip: {
+               url: 'http://video.flowplayer.org/flowplayer_cues.flv',
+               // cuepoint timing is in milliseconds in the file, so override
+               // the default multiplier value of 1000 that converts seconds
+               // to milliseconds
+               cuepointMultiplier: 1
+       },
+       log: {
+               level: 'debug',
+               filter: 'org.flowplayer.captions.*'
+       },
+       plugins:  {
+
+               captions: {
+                       url: '@MAIN_PLAYER_SWF@',
+
+                       // the content plugin we use to show the captions
+                       captionTarget: 'content'
+               },
+
+               // configure a content plugin to look good for our purpose
+               content: {
+                       url:'../flowplayer.content.swf',
+                       top: 10,
+                       width: '80%',
+                       height:40,
+                       backgroundColor: 'transparent',
+                       backgroundGradient: 'none',
+                       border: 0,
+
+            // an outline is useful so that the subtitles are more visible
+            textDecoration: 'outline',
+                       style: {
+                           'body': {
+                               fontSize: '14',
+                               fontFamily: 'Arial',
+                               textAlign: 'center',
+                               color: '#ffffff'
+                           }
+                   }
+               }
+       }
+});
+</script>
+
+<p>
+       The file used in the example above has cuepoints at the following points of the timeline: 6000, 13500, 16000, and at 20000 milliseconds. Using the RichFLV application it's easy to add them. Each of these cuepoints has one parameter called <samp>text</samp> that contins the text displayed as the caption text.
+</p>
+
+<div class="box code">
+<pre><code class="javascript">$f("embedded", "@PLAYER_SWF@", {
+       clip: {
+               url: 'http://video.flowplayer.org/flowplayer_cues.flv',
+               // cuepoint timing is in milliseconds in the file, so override
+               // the default multiplier value of 1000 that converts seconds
+               // to milliseconds
+               cuepointMultiplier: 1
+       },
+       plugins:  {
+
+               captions: {
+                       url: '@MAIN_PLAYER_SWF@',
+
+                       // the content plugin we use to show the captions
+                       captionTarget: 'content'
+               },
+
+               // configure a content plugin to look good for our purpose
+               content: {
+                       url:'../flowplayer.content.swf',
+                       top: 10,
+                       width: '80%',
+                       height:40,
+                       backgroundColor: 'transparent',
+                       backgroundGradient: 'none',
+                       border: 0,
+
+            // an outline is useful so that the subtitles are more visible
+            textDecoration: 'outline',
+                       style: {
+                           'body': {
+                               fontSize: '14',
+                               fontFamily: 'Arial',
+                               textAlign: 'center',
+                               color: '#ffffff'
+                           }
+                   }
+               }
+       }
+});</code></pre>
+</div>
+
+
+
+<h2>Json Config Captions Example</h2>
+
+<p>
+       This example is Captions based on a Json config. 
+</p>
+
+<a class="player" id="json">
+       <img src="http://static.flowplayer.org/img/player/btn/showme.png"  />
+</a>
+
+
+<script language='javascript'>
+$f("json", "@PLAYER_SWF@", {
+       clip: {
+               url: 'http://video.flowplayer.org/flowplayer.flv',
+               cuepointMultiplier: 1,
+               captions: [
+                                               {
+                                               time: 0,
+                                               name: 'cue1',
+                                               parameters: {
+                                                       begin: 0,
+                                                       end: 4000,
+                                                       text: 'First caption with default style coming from the Content plugin config'
+                                                       }
+                                               },
+                                               {
+                                               time: 4000,
+                                               name: 'cue2',
+                                               parameters: {
+                                                       begin: 4000,
+                                                       end: 8000,
+                                                       text: '2nd caption with timed text styling to make the text white'
+                                                       }
+                                               },
+                                               {
+                                               time: 8000,
+                                               name: 'cue3',
+                                               parameters: {
+                                                       begin: 8000,
+                                                       end: 12000,
+                                                       text: '3rd caption using a small black font'
+                                                       }
+                                               },
+                                               
+                                       ]
+       },
+       log: {
+               level: 'debug',
+               filter: 'org.flowplayer.captions.*'
+       },
+       plugins:  {
+
+               captions: {
+                       url: '@MAIN_PLAYER_SWF@',
+
+                       // the content plugin we use to show the captions
+                       captionTarget: 'content',
+               },
+
+               content: {
+                       url:'../flowplayer.content.swf',
+                       bottom: 25,
+                       height:40,
+                       backgroundColor: 'transparent',
+                       backgroundGradient: 'none',
+                       border: 0,
+            textDecoration: 'outline',
+                       style: { 
+                               body: { 
+                                       fontSize: 14, 
+                                       fontFamily: 'Arial',
+                                       textAlign: 'center',
+                                       color: '#ffffff'
+                               } 
+                       } 
+               },
+       }
+});
+</script>
+
+<div class="box code">
+<pre><code class="javascript">
+$f("json", "@PLAYER_SWF@", {
+       clip: {
+               url: 'http://video.flowplayer.org/flowplayer.flv',
+               captions: [
+                                               {
+                                               time: 0,
+                                               name: 'cue1',
+                                               parameters: {
+                                                       begin: 0,
+                                                       end: 4000,
+                                                       text: 'First caption with default style coming from the Content plugin config'
+                                                       }
+                                               },
+                                               {
+                                               time: 4000,
+                                               name: 'cue2',
+                                               parameters: {
+                                                       begin: 4000,
+                                                       end: 8000,
+                                                       text: '2nd caption with timed text styling to make the text white'
+                                                       }
+                                               },
+                                               {
+                                               time: 8000,
+                                               name: 'cue3',
+                                               parameters: {
+                                                       begin: 8000,
+                                                       end: 12000,
+                                                       text: '3rd caption using a small black font'
+                                                       }
+                                               },
+                                               
+                                       ]
+       },
+       plugins:  {
+
+               captions: {
+                       url: '@MAIN_PLAYER_SWF@',
+
+                       // the content plugin we use to show the captions
+                       captionTarget: 'content'
+               },
+
+               // configure a content plugin to look good for our purpose
+               content: {
+                       url:'../flowplayer.content.swf',
+                       top: 10,
+                       width: '80%',
+                       height:40,
+                       backgroundColor: 'transparent',
+                       backgroundGradient: 'none',
+                       border: 0,
+
+            // an outline is useful so that the subtitles are more visible
+            textDecoration: 'outline',
+                       style: {
+                           'body': {
+                               fontSize: '14',
+                               fontFamily: 'Arial',
+                               textAlign: 'center',
+                               color: '#ffffff'
+                           }
+                   }
+               }
+       }
+});
+</code></pre>
+</div>
+
+<a name="javascript_plugin"></a>
+<h2>Javascript Plugin</h2>
+
+<p>
+       Available is the captions javascript plugin which provides a means to dynamically produce a scrollable playlist of the cuepoints.
+</p>
+
+<p>
+       The captions setup is similar to the javascript playlist plugin, where the template can be provided by the html or config.
+</p>
+
+<a class="player" id="javascript-plugin">
+       <img src="http://static.flowplayer.org/img/player/btn/showme.png"  />
+</a>
+
+
+<script language='javascript'>
+$f("javascript-plugin", "@PLAYER_SWF@", {
+       clip: {
+               url: 'http://video.flowplayer.org/flowplayer.flv',
+               cuepointMultiplier: 1,
+               captions: [
+                                               {
+                                               time: 0,
+                                               name: 'cue1',
+                                               parameters: {
+                                                       begin: 0,
+                                                       end: 4000,
+                                                       thumb: 'images/frame01.jpg',
+                                                       text: 'First caption with default style coming from the Content plugin config'
+                                                       }
+                                               },
+                                               {
+                                               time: 4000,
+                                               name: 'cue2',
+                                               parameters: {
+                                                       begin: 4000,
+                                                       end: 8000,
+                                                       thumb: 'images/frame06.jpg',
+                                                       text: '2nd caption with timed text styling to make the text white'
+                                                       }
+                                               },
+                                               {
+                                               time: 8000,
+                                               name: 'cue3',
+                                               parameters: {
+                                                       begin: 8000,
+                                                       end: 12000,
+                                                       thumb: 'images/frame08.jpg',
+                                                       text: '3rd caption using a small black font'
+                                                       }
+                                               },
+                                               
+                                       ]
+       },
+       log: {
+               level: 'debug',
+               filter: 'org.flowplayer.captions.*'
+       },
+       plugins:  {
+
+               captions: {
+                       url: '@MAIN_PLAYER_SWF@',
+
+                       // the content plugin we use to show the captions
+                       captionTarget: 'content',
+               },
+
+               content: {
+                       url:'../flowplayer.content.swf',
+                       bottom: 25,
+                       height:40,
+                       backgroundColor: 'transparent',
+                       backgroundGradient: 'none',
+                       border: 0,
+            textDecoration: 'outline',
+                       style: { 
+                               body: { 
+                                       fontSize: 14, 
+                                       fontFamily: 'Arial',
+                                       textAlign: 'center',
+                                       color: '#ffffff'
+                               } 
+                       } 
+               },
+       }
+}).captions("div.items", {}); 
+</script>
+
+<div id="cuethumbs" style="display:none;">
+       <a class="prevPage"></a>
+       <div class="items" style="display:none;">
+               <img src="images/thumbs/frame${time}.jpg"/>
+       </div>
+       <a class="nextPage"></a>
+</div>
+
+<div class="box code">
+<pre><code class="javascript">
+$f("javascript-plugin", "@PLAYER_SWF@", {
+       clip: {
+               url: 'http://video.flowplayer.org/flowplayer.flv',
+               captions: [
+                                               {
+                                               time: 0,
+                                               name: 'cue1',
+                                               parameters: {
+                                                       begin: 0,
+                                                       end: 4000,
+                                                       text: 'First caption with default style coming from the Content plugin config'
+                                                       }
+                                               },
+                                               {
+                                               time: 4000,
+                                               name: 'cue2',
+                                               parameters: {
+                                                       begin: 4000,
+                                                       end: 8000,
+                                                       text: '2nd caption with timed text styling to make the text white'
+                                                       }
+                                               },
+                                               {
+                                               time: 8000,
+                                               name: 'cue3',
+                                               parameters: {
+                                                       begin: 8000,
+                                                       end: 12000,
+                                                       text: '3rd caption using a small black font'
+                                                       }
+                                               },
+                                               
+                                       ]
+       },
+       plugins:  {
+
+               captions: {
+                       url: '@MAIN_PLAYER_SWF@',
+
+                       // the content plugin we use to show the captions
+                       captionTarget: 'content'
+               },
+
+               // configure a content plugin to look good for our purpose
+               content: {
+                       url:'../flowplayer.content.swf',
+                       top: 10,
+                       width: '80%',
+                       height:40,
+                       backgroundColor: 'transparent',
+                       backgroundGradient: 'none',
+                       border: 0,
+
+            // an outline is useful so that the subtitles are more visible
+            textDecoration: 'outline',
+                       style: {
+                           'body': {
+                               fontSize: '14',
+                               fontFamily: 'Arial',
+                               textAlign: 'center',
+                               color: '#ffffff'
+                           }
+                   }
+               }
+       }
+}).captions("div.items", {}); 
+</code></pre>
+</div>
+
+
+<br/><br/><b>Configuration:</b>
+<table class="listing">
+       <thead>
+               <tr>
+                       <th nowrap="nowrap">property / datatype</th>
+                       <th>default</th>
+                       <th>description</th>
+               </tr>
+       </thead>
+
+    <tr>
+        <td class="code">activeClass <div class="type">string</div></td>
+        <td class="code default"></td>
+        <td class="description">
+            The active selected item class.
+        </td>
+    </tr>
+    <tr>
+        <td class="code">template <div class="type">string</div></td>
+        <td class="code default"><img src="images/${time}.jpg"/></td>
+        <td class="description">
+               The template config to be used for generating the thumbnails. The fields of the cuepoints are used for the template like ${time}.
+               If the wrapper has the template set, it will be used instead of the template config.
+        </td>
+    </tr>
+    <tr>
+        <td class="code">fadeTime <div class="type">int</div></td>
+        <td class="code default">100</td>
+        <td class="description">
+                               The interval time for fading the wrapper in and out. Useful for hiding the wrapper if a template is set in it. 
+        </td>
+    </tr>
+</table>
+
+               </div>  
+       </div>
+</body>
+</html>
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/example/tools.scrollable-1.1.2.js b/typo3/contrib/flowplayer/flowplayer.captions/example/tools.scrollable-1.1.2.js
new file mode 100644 (file)
index 0000000..319357c
--- /dev/null
@@ -0,0 +1,445 @@
+/**
+ * tools.scrollable 1.1.2 - Scroll your HTML with eye candy.
+ * 
+ * Copyright (c) 2009 Tero Piirainen
+ * http://flowplayer.org/tools/scrollable.html
+ *
+ * Dual licensed under MIT and GPL 2+ licenses
+ * http://www.opensource.org/licenses
+ *
+ * Launch  : March 2008
+ * Date: ${date}
+ * Revision: ${revision} 
+ */
+(function($) { 
+               
+       // static constructs
+       $.tools = $.tools || {};
+       
+       $.tools.scrollable = {
+               version: '1.1.2',
+               
+               conf: {
+                       
+                       // basics
+                       size: 5,
+                       vertical: false,
+                       speed: 400,
+                       keyboard: true,         
+                       
+                       // by default this is the same as size
+                       keyboardSteps: null, 
+                       
+                       // other
+                       disabledClass: 'disabled',
+                       hoverClass: null,               
+                       clickable: true,
+                       activeClass: 'active', 
+                       easing: 'swing',
+                       loop: false,
+                       
+                       items: '.items',
+                       item: null,
+                       
+                       // navigational elements                        
+                       prev: '.prev',
+                       next: '.next',
+                       prevPage: '.prevPage',
+                       nextPage: '.nextPage', 
+                       api: false
+                       
+                       // CALLBACKS: onBeforeSeek, onSeek, onReload
+               } 
+       };
+                               
+       var current;            
+       
+       // constructor
+       function Scrollable(root, conf) {   
+       
+               // current instance
+               var self = this, $self = $(this),
+                        horizontal = !conf.vertical,
+                        wrap = root.children(),
+                        index = 0,
+                        forward;  
+               
+               
+               if (!current) { current = self; }
+               
+               // bind all callbacks from configuration
+               $.each(conf, function(name, fn) {
+                       if ($.isFunction(fn)) { $self.bind(name, fn); }
+               });
+               
+
+               if (wrap.length > 1) { wrap = $(conf.items, root); }
+               
+               // navigational items can be anywhere when globalNav = true
+               function find(query) {
+                       var els = $(query);
+                       return conf.globalNav ? els : root.parent().find(query);        
+               }
+               
+               // to be used by plugins
+               root.data("finder", find);
+               
+               // get handle to navigational elements
+               var prev = find(conf.prev),
+                        next = find(conf.next),
+                        prevPage = find(conf.prevPage),
+                        nextPage = find(conf.nextPage);
+
+               
+               // methods
+               $.extend(self, {
+                       
+                       getIndex: function() {
+                               return index;   
+                       },
+                       
+                       getClickIndex: function() {
+                               var items = self.getItems(); 
+                               return items.index(items.filter("." + conf.activeClass));       
+                       },
+       
+                       getConf: function() {
+                               return conf;    
+                       },
+                       
+                       getSize: function() {
+                               return self.getItems().size();  
+                       },
+       
+                       getPageAmount: function() {
+                               return Math.ceil(this.getSize() / conf.size);   
+                       },
+                       
+                       getPageIndex: function() {
+                               return Math.ceil(index / conf.size);    
+                       },
+
+                       getNaviButtons: function() {
+                               return prev.add(next).add(prevPage).add(nextPage);      
+                       },
+                       
+                       getRoot: function() {
+                               return root;    
+                       },
+                       
+                       getItemWrap: function() {
+                               return wrap;    
+                       },
+                       
+                       getItems: function() {
+                               return wrap.children(conf.item);        
+                       },
+                       
+                       getVisibleItems: function() {
+                               return self.getItems().slice(index, index + conf.size); 
+                       },
+                       
+                       /* all seeking functions depend on this */              
+                       seekTo: function(i, time, fn) {
+
+                               if (i < 0) { i = 0; }                           
+                       
+                               
+                               // nothing happens
+                               if (index === i) { return self; }                               
+                               
+                               // function given as second argument
+                               if ($.isFunction(time)) {
+                                       fn = time;
+                               }
+
+                               // seeking exceeds the end                      
+                       
+                               if (i > self.getSize() - conf.size) { 
+                                       return conf.loop ? self.begin() : this.end(); 
+                               }               
+                               
+                               
+                               var item = self.getItems().eq(i);                                       
+                               if (!item.length) { return self; }                              
+                               
+                               // onBeforeSeek
+                               var e = $.Event("onBeforeSeek");
+
+                               $self.trigger(e, [i]);                  
+                               
+                               if (e.isDefaultPrevented()) { return self; }                            
+                               
+                               // get the (possibly altered) speed
+                               if (time === undefined || $.isFunction(time)) { time = conf.speed; }
+                               
+                               function callback() {
+                                       if (fn) { fn.call(self, i); }
+                                       $self.trigger("onSeek", [i]);
+                               }
+                               
+                               
+                               if (horizontal) {
+                                       wrap.animate({left: -item.position().left}, time, conf.easing, callback);                                       
+                               } else {
+                                       wrap.animate({top: -item.position().top}, time, conf.easing, callback);                                                 
+                               }
+                               
+                               
+                               current = self;
+                               index = i;                              
+                               
+                               // onStart
+                               e = $.Event("onStart");
+                               $self.trigger(e, [i]);                          
+                               if (e.isDefaultPrevented()) { return self; }                            
+       
+                               
+                               /* default behaviour */
+                               
+                               // prev/next buttons disabled flags
+                               prev.add(prevPage).toggleClass(conf.disabledClass, i === 0);
+                               next.add(nextPage).toggleClass(conf.disabledClass, i >= self.getSize() - conf.size);
+                               
+                               return self; 
+                       },                      
+                       
+                               
+                       move: function(offset, time, fn) {
+                               forward = offset > 0;
+                               return this.seekTo(index + offset, time, fn);
+                       },
+                       
+                       next: function(time, fn) {
+                               return this.move(1, time, fn);  
+                       },
+                       
+                       prev: function(time, fn) {
+                               return this.move(-1, time, fn); 
+                       },
+                       
+                       movePage: function(offset, time, fn) {
+                               forward = offset > 0;
+                               var steps = conf.size * offset;
+                               
+                               var i = index % conf.size;
+                               if (i > 0) {
+                                       steps += (offset > 0 ? -i : conf.size - i);
+                               }
+                               
+                               return this.move(steps, time, fn);              
+                       },
+                       
+                       prevPage: function(time, fn) {
+                               return this.movePage(-1, time, fn);
+                       },  
+       
+                       nextPage: function(time, fn) {
+                               return this.movePage(1, time, fn);
+                       },                      
+                       
+                       setPage: function(page, time, fn) {
+                               return this.seekTo(page * conf.size, time, fn);
+                       },                      
+                       
+                       begin: function(time, fn) {
+                               forward = false;
+                               return this.seekTo(0, time, fn);        
+                       },
+                       
+                       end: function(time, fn) {
+                               forward = true;
+                               var to = this.getSize() - conf.size;
+                               return to > 0 ? this.seekTo(to, time, fn) : self;       
+                       },
+                       
+                       reload: function() {                            
+                               $self.trigger("onReload");
+                               return self;
+                       },                      
+                       
+                       focus: function() {
+                               current = self;
+                               return self;
+                       },
+                       
+                       click: function(i) {
+       
+                               var item = self.getItems().eq(i), 
+                                        klass = conf.activeClass,
+                                        size = conf.size;                      
+                               
+                               // check that i is sane
+                               if (i < 0 || i >= self.getSize()) { return self; }
+                               
+                               // size == 1                                                    
+                               if (size == 1) {
+                                       if (conf.loop) { return self.next(); }
+                                       
+                                       if (i === 0 || i == self.getSize() -1)  { 
+                                               forward = (forward === undefined) ? true : !forward;     
+                                       }
+                                       return forward === false  ? self.prev() : self.next(); 
+                               } 
+                               
+                               // size == 2
+                               if (size == 2) {
+                                       if (i == index) { i--; }
+                                       self.getItems().removeClass(klass);
+                                       item.addClass(klass);                                   
+                                       return self.seekTo(i, time, fn);
+                               }                               
+                               
+                               if (!item.hasClass(klass)) {                            
+                                       self.getItems().removeClass(klass);
+                                       item.addClass(klass);
+                                       var delta = Math.floor(size / 2);
+                                       var to = i - delta;
+               
+                                       // next to last item must work
+                                       if (to > self.getSize() - size) { 
+                                               to = self.getSize() - size; 
+                                       }
+               
+                                       if (to !== i) {
+                                               return self.seekTo(to);         
+                                       }
+                               }
+                               
+                               return self;
+                       },
+                       
+                       // bind / unbind
+                       bind: function(name, fn) {
+                               $self.bind(name, fn);
+                               return self;    
+                       },      
+                       
+                       unbind: function(name) {
+                               $self.unbind(name);
+                               return self;    
+                       }                       
+                       
+               });
+               
+               // callbacks    
+               $.each("onBeforeSeek,onStart,onSeek,onReload".split(","), function(i, ev) {
+                       self[ev] = function(fn) {
+                               return self.bind(ev, fn);       
+                       };
+               });  
+                       
+                       
+               // prev button          
+               prev.addClass(conf.disabledClass).click(function() {
+                       self.prev(); 
+               });
+               
+
+               // next button
+               next.click(function() { 
+                       self.next(); 
+               });
+               
+               // prev page button
+               nextPage.click(function() { 
+                       self.nextPage(); 
+               });
+               
+               if (self.getSize() < conf.size) {
+                       next.add(nextPage).addClass(conf.disabledClass);        
+               }
+               
+
+               // next page button
+               prevPage.addClass(conf.disabledClass).click(function() { 
+                       self.prevPage(); 
+               });             
+               
+               
+               // hover
+               var hc = conf.hoverClass, keyId = "keydown." + Math.random().toString().substring(10); 
+                       
+               self.onReload(function() { 
+
+                       // hovering
+                       if (hc) {
+                               self.getItems().hover(function()  {
+                                       $(this).addClass(hc);           
+                               }, function() {
+                                       $(this).removeClass(hc);        
+                               });                                             
+                       }
+                       
+                       // clickable
+                       if (conf.clickable) {
+                               self.getItems().each(function(i) {
+                                       $(this).unbind("click.scrollable").bind("click.scrollable", function(e) {
+                                               if ($(e.target).is("a")) { return; }    
+                                               return self.click(i);
+                                       });
+                               });
+                       }                               
+                       
+                       // keyboard                     
+                       if (conf.keyboard) {                            
+                               
+                               // keyboard works on one instance at the time. thus we need to unbind first
+                               $(document).unbind(keyId).bind(keyId, function(evt) {
+
+                                       // do nothing with CTRL / ALT buttons
+                                       if (evt.altKey || evt.ctrlKey) { return; }
+                                       
+                                       // do nothing for unstatic and unfocused instances
+                                       if (conf.keyboard != 'static' && current != self) { return; }
+                                       
+                                       var s = conf.keyboardSteps;                             
+                                                                               
+                                       if (horizontal && (evt.keyCode == 37 || evt.keyCode == 39)) {                                   
+                                               self.move(evt.keyCode == 37 ? -s : s);
+                                               return evt.preventDefault();
+                                       }       
+                                       
+                                       if (!horizontal && (evt.keyCode == 38 || evt.keyCode == 40)) {
+                                               self.move(evt.keyCode == 38 ? -s : s);
+                                               return evt.preventDefault();
+                                       }
+                                       
+                                       return true;
+                                       
+                               });
+                               
+                       } else  {
+                               $(document).unbind(keyId);      
+                       }                               
+
+               });
+               
+               self.reload(); 
+               
+       } 
+
+               
+       // jQuery plugin implementation
+       $.fn.scrollable = function(conf) { 
+                       
+               // already constructed --> return API
+               var el = this.eq(typeof conf == 'number' ? conf : 0).data("scrollable");
+               if (el) { return el; }           
+               var globals = $.extend({}, $.tools.scrollable.conf);
+               conf = $.extend(globals, conf);
+               
+               conf.keyboardSteps = conf.keyboardSteps || conf.size;
+               
+               this.each(function() {                  
+                       el = new Scrollable($(this), conf);
+                       $(this).data("scrollable", el); 
+               });
+               
+               return conf.api ? el: this; 
+               
+       };
+                       
+       
+})(jQuery);
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/CCButton.as b/typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/CCButton.as
new file mode 100644 (file)
index 0000000..f077dd5
--- /dev/null
@@ -0,0 +1,68 @@
+/*
+ * This file is part of Flowplayer, http://flowplayer.org
+ *
+ * By: Anssi Piirainen, <support@flowplayer.org>
+ *Copyright (c) 2008-2011 Flowplayer Oy *
+ * Released under the MIT License:
+ * http://www.opensource.org/licenses/mit-license.php
+ */
+
+package org.flowplayer.captions {
+    import flash.display.Sprite;
+    import flash.events.MouseEvent;
+    import flash.text.TextField;
+
+    import org.flowplayer.view.AbstractSprite;
+    import org.flowplayer.view.Flowplayer;
+
+    public class CCButton extends AbstractSprite {
+        private var _text:TextField;
+        private var _background:Sprite;
+        private var _textColor:Number;
+        private var _label:String;
+
+        public function CCButton(player:Flowplayer, label:String) {
+            _label = label;
+                       _background = new Sprite();
+                       _background.buttonMode = true;
+                       addChild(_background);
+            createText(player);
+            
+            isDown = true;
+        }
+
+        protected override function onResize():void {
+            drawBackground();
+            _text.x = 2;
+            _text.y = 0;
+        }
+
+               public function get clickArea():Sprite
+               {
+                       return _background;
+               }
+
+        private function drawBackground():void {
+            _background.graphics.clear(),
+            _background.graphics.lineStyle(2, 0x555555);
+            _background.graphics.beginFill(0xaaaaaa, 1);
+            _background.graphics.drawRoundRect(0, 0, width, height, 6, 6);
+            _background.graphics.endFill();
+        }
+
+        private function createText(player:Flowplayer):void {
+            _text = player.createTextField(8, true);
+            _text.text = _label;
+            _text.textColor = _textColor;
+            addChild(_text);
+            _text.selectable = false;
+            _text.mouseEnabled = false;
+        }
+
+        public function set isDown(isDown:Boolean):void {
+            _textColor = isDown ? 0 : 0xff2222;
+            _text.textColor = _textColor;
+        }
+
+    }
+}
\ No newline at end of file
diff --git a/typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/Caption.as b/typo3/contrib/flowplayer/flowplayer.captions/src/actionscript/org/flowplayer/captions/Caption.as
new file mode 100644 (file)
index 0000000..2205d8d
--- /dev/null
@@ -0,0 +1,537 @@
+/*
+ * This file is part of Flowplayer, http://flowplayer.org
+ *
+ * By: Daniel Rossi, <electroteque@gmail.com>
+ * Copyright (c) 2009 Electroteque Multimedia
+ *
+ * Copyright 2009 Joel Hulen, loading of captions files from URLs without a file extension
+ *
+ * Released under the MIT License:
+ * http://www.opensource.org/licenses/mit-license.php
+ */
+package org.flowplayer.captions {
+    import flash.events.MouseEvent;
+    import flash.utils.*;
+
+    import org.flowplayer.captions.parsers.CaptionParser;
+    import org.flowplayer.captions.parsers.JSONParser;
+    import org.flowplayer.captions.parsers.SRTParser;
+    import org.flowplayer.captions.parsers.TTXTParser;
+    import org.flowplayer.controller.ResourceLoader;
+    import org.flowplayer.layout.LayoutEvent;
+    import org.flowplayer.model.Clip;
+    import org.flowplayer.model.ClipEvent;
+    import org.flowplayer.model.ClipEventType;
+    import org.flowplayer.model.DisplayPluginModel;
+    import org.flowplayer.model.PlayerEvent;
+    import org.flowplayer.model.Plugin;
+    import org.flowplayer.model.PluginModel;
+    import org.flowplayer.util.PropertyBinder;
+    import org.flowplayer.view.AbstractSprite;
+    import org.flowplayer.view.FlowStyleSheet;
+    import org.flowplayer.view.Flowplayer;
+    import org.flowplayer.view.Styleable;
+    import org.flowplayer.model.PlayerEventType;
+    
+    
+
+    /**
+     * A Subtitling and Captioning Plugin. Supports the following:
+     * <ul>
+     * <li>Loading subtitles from the Timed Text or Subrip format files.</li>
+     * <li>Styling text from styles set in the Time Text format files.</li>
+     * <li>Loading subtitles or cuepoints from a JSON config.</li>
+     * <li>Loading subtitles or cuepoints from embedded FLV cuepoints.</li>
+     * <li>Controls an external content plugin.</li>
+     * <li>Working with the Javascript captions plugin, it enables a scrolling cuepoint thumbnail menu.</li>
+     * </ul>
+     * <p>
+     * To setup an external subtitle caption file the config would look like so:
+     *
+     * captionType: 'external'
+     *
+     * For Timed Text
+     *
+     * captionUrl: 'timedtext.xml'
+     *
+     * For Subrip
+     *
+     * captionUrl: 'subrip.srt'
+     *
+     * <p>
+     * To enable the captioning to work properly a caption target must link to a content plugin like so:
+     *
+     * captionTarget: 'content'
+     *
+     * Where content is the config for a loaded content plugin.
+     *
+     * <p>
+     *
+     * To be able to customised the subtitle text a template string is able to tell the captioning plugin
+     * which text property is to be used for the subtitle text which is important for embedded cuepoints. It also
+     * enables to add extra properties to the text like so:
+     *
+     * template: '{text} {time} {custom}'
+     *
+     * <p>
+     * To enable simple formatting of text if Timed Text has style settings,
+     * only "fontStyle", "fontWeight" and "textAlign" properties are able to be set like so:
+     *
+     * simpleFormatting: true
+     *
+     * @author danielr, Anssi Piirainen (api@iki.fi)
+     */
+    public class Caption extends AbstractSprite implements Plugin, Styleable {
+        private var _player:Flowplayer;
+        private var _model:PluginModel;
+        private var _captionView:*;
+        private var _config:Config;
+        private var _styles:FlowStyleSheet;
+        private var _viewModel:DisplayPluginModel;
+        private var _template:String;
+        private var _button:CCButton;
+        private var _totalCaptions:int;
+        private var _numCaptionsLoaded:int;
+        private var _initialized:Boolean;
+
+        private var _currentCaption:Object;
+        private var _captionHeightRatio:Number;
+        private var _captionWidthRatio:Number;
+        private var _captionFontSizes:Object;
+
+               private var _captionViewWidth:int = 0;
+
+        /**
+         * Sets the plugin model. This gets called before the plugin
+         * has been added to the display list and before the player is set.
+         * @param plugin
+         */
+        public function onConfig(plugin:PluginModel):void {
+
+            _model = plugin;
+            _config = new PropertyBinder(new Config(), null).copyProperties(plugin.config) as Config;
+           
+        }
+
+        
+        public function hasCaptions():Boolean {
+            var clips:Array = _player.playlist.clips;
+            for (var i:Number = 0; i < clips.length; i++) {
+                var clip:Clip = clips[i] as Clip;
+                if (clip.customProperties && (clip.getCustomProperty("captions") || clip.getCustomProperty("captionUrl"))) {
+                    return true;
+                }
+            }
+            return false;
+
+        }
+
+        /**
+         * Sets the Flowplayer interface. The interface is immediately ready to use, all
+         * other plugins have been loaded an initialized also.
+         * @param player
+         */
+        public function onLoad(player:Flowplayer):void {
+            log.debug("onLoad");
+            _initialized = false;
+            _player = player;
+            _player.playlist.onCuepoint(onCuepoint);
+
+                       _player.playlist.commonClip.onNetStreamEvent(onNetStreamCaption);
+
+            if (! _config.captionTarget) {
+                throw Error("No captionTarget defined in the configuration");
+            }
+            _viewModel = _player.pluginRegistry.getPlugin(_config.captionTarget) as DisplayPluginModel;
+            _captionView = _viewModel.getDisplayObject();
+                       
+            _player.onLoad(onPlayerInitialized);
+
+            if (hasCaptions()) {
+               loadClipCaptions();
+            } else {
+                _model.dispatchOnLoad();
+            }
+        }
+
+        private function initializeRatios():void {
+            _captionHeightRatio = _captionView.height / _player.screen.getDisplayObject().height;
+            _captionWidthRatio = _captionView.width / _player.screen.getDisplayObject().width;
+        }
+
+        private function onPlayerInitialized(event:PlayerEvent):void {
+            initCaptionView();
+
+            log.debug("button", _config.button);
+            if (_config.button) {
+                _button = new CCButton(_player, _config.button["label"]);
+                _player.addToPanel(_button, _config.button);
+
+                _button.isDown = _viewModel.visible;
+                _button.clickArea.addEventListener(MouseEvent.CLICK, function(event:MouseEvent):void {
+                    _button.isDown = _player.togglePlugin(_config.capt