Commit 1195ca0e authored by Anssi Piirainen's avatar Anssi Piirainen
Browse files

Add external methods showButton() and hideButton() that can be used for the CC button. (#41)

parent 3223e796
......@@ -28,7 +28,7 @@
<!-- this will install flowplayer inside previous A- tag. -->
<script>
// flowplayer("player", { src: "../build/flowplayer.commercial-3.2.5-16.swf", wmode: "transparent" },
flowplayer("player", { src: "../build/flowplayer.swf", wmode: "transparent" },
flowplayer("player", { src: "../../flash-build/build/flowplayer.swf", wmode: "transparent" },
{
//debug: true,
log : {
......@@ -79,7 +79,7 @@
plugins: {
lighttpd: {
url: '../build/flowplayer.pseudostreaming.swf'
url: 'flowplayer.pseudostreaming.swf'
},
// advert: {
......@@ -94,20 +94,6 @@
// }
// },
port_logo: {
url: "../build/flowplayer.content.swf",
top: 0,
left: 5,
height: 42,
width: 94,
padding: 0,
backgroundColor: "transparent",
backgroundGradient: "none",
opacity: 0.9,
border: 0,
html: '<img src="http:\/\/media.port-network.com\/sponsoration_elements\/development\/zolee\/player\/port_logo_watherpix_32bit.png" hspace="0"/>'
},
subtitle: {
url: "../build/flowplayer.content.swf",
top: 5,
......
......@@ -2,8 +2,7 @@
<head>
<meta http-equiv="content-type"
content="text/html; charset=UTF-8">
<!--<script type="text/javascript" src="flowplayer-3.0.5.min.js"></script>-->
<script src="../src/javascript/flowplayer.js/flowplayer-3.2.9.min.js"></script>
<script src="../src/javascript/flowplayer.js/flowplayer-3.2.11.min.js"></script>
<!-- page title -->
......@@ -19,7 +18,7 @@
id="player">
</a>
<script>
flowplayer("player", "../build/flowplayer.swf",
flowplayer("player", "../../../flash-build/build/flowplayer.swf",
{
log: { level: 'debug', filter: 'org.flowplayer.captions.*' },
......@@ -46,16 +45,16 @@
clip: {
// here is our high quality movie
url: 'http://pseudo01.hddn.com/vod/demo.flowplayervod/flowplayer-700.flv'
url: 'http://pseudo01.hddn.com/vod/demo.flowplayervod/flowplayer-700.flv',
// this is the SubRib file with captions info
// captionUrl: 'http://releases.flowplayer.org/data/timedtext.xml'
captionUrl: 'http://releases.flowplayer.org/data/timedtext.xml'
},
plugins: {
// the captions plugin
captions: {
url: 'flowplayer.captions.swf',
url: 'flowplayer.captions-3.2.10-dev.swf',
// pointer to a content plugin (see below)
captionTarget: 'content'
......
Version history:
3.2.10
------
- Added external methods showButton() and hideButton() that can be used for the CC button.
3.2.9
-----
- #19, loadCaptions() had disappeared somewhere, now works again
......
devkit-dir=../../lib/devkit
version=3.2.9
\ No newline at end of file
version=3.2.10-dev
\ No newline at end of file
......@@ -279,5 +279,15 @@ package org.flowplayer.captions {
internal function set config(value:Config):void {
_config = value;
}
[External]
public function showButton():void {
_captionView.showButton();
}
[External]
public function hideButton():void {
_captionView.hideButton();
}
}
}
......@@ -152,5 +152,13 @@ package org.flowplayer.captions {
internal function css(styleObj:Object):void {
_view.css(styleObj);
}
internal function hideButton():void {
_player.panel.removeChild(_button);
}
internal function showButton():void {
_player.addToPanel(_button, _config.button);
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment