Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Fix buffer bar flickering issue. (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
anssip committed Jan 29, 2014
1 parent a8e6418 commit 45ba4c3
Show file tree
Hide file tree
Showing 6 changed files with 164 additions and 199 deletions.
80 changes: 24 additions & 56 deletions core/test/bwcheck-smil.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Flash embedding and provides the Flowplayer API.
-->
<!--<script type="text/javascript" src="flowplayer-3.0.5.min.js"></script>-->
<script src="../flowplayer-3.2.6.min.js"></script>
<script src="../src/javascript/flowplayer.js/flowplayer-3.2.11.min.js"></script>

<!-- some minimal styling, can be removed -->
<!--<link rel="stylesheet" type="text/css" href="style.css">-->
Expand All @@ -28,73 +28,41 @@

<!-- this will install flowplayer inside previous A- tag. -->
<script>
flowplayer("player", "../build/flowplayer.swf",
flowplayer("player", "../../../flash-build/build/flowplayer-3.2.19-dev.swf",
{
log: { level: 'debug', filter: 'org.flowplayer.bwcheck.*' },
log: { level: 'debug', filter: 'org.flowplayer.controls.scrubber.ScrubberSlider' },


// The playlist is loaded from the RSS file
debug: true,
clip: {
url: "bitrates.smil.xml",
provider: "rtmp",
scaling: "fit",
autoPlay: false,
provider: 'rtmp',

// use smil and bwcheck when resolving the clip URL
urlResolvers: [ 'smil', 'bwcheck' ]
urlResolvers: ["smil", "bwcheck"],
url: "http://flowplayer.blacktrash.org/test/live-smil.smil"
},

plugins: {

// the SMIL plugin reads in and parses the SMIL, and provides
// the bitrates info to the bw detection plugin
smil: {
url: 'flowplayer.smil.swf'
controls: {autoHide: false},
content: {url: "flowplayer.content.swf", height: 100},
smil: {url: "flowplayer.smil-3.2.9.swf"},
rtmp: {
url: "flowplayer.rtmp-3.2.13.swf",
netConnectionUrl: "rtmp://50.7.180.18/vod"
},

// bandwidth check plugin
bwcheck: {
url: 'flowplayer.bwcheck.swf',

// HDDN uses Wowza servers
serverType: 'wowza',

// we use dynamic switching, the appropriate bitrate is switched on the fly
url: "flowplayer.bwcheck-3.2.13.swf",
netConnectionUrl: "rtmp://50.7.180.18/vod",
serverType: "wowza",
dynamic: true,

hdIcon: true,

// netConnectionUrl: 'rtmp://vod01.netdna.com/play',

// show the selected file in the content box. This is not used in real installations.
//dynamicBuffer: true,
//qos: {waitDurationAfterDownSwitch: 1000},
onStreamSwitchBegin: function (newItem, currentItem) {
$f().getPlugin('content').setHtml("Will switch to: " + newItem.streamName +
" from " + currentItem.streamName);
this.getPlayer().getPlugin("content").setHtml("will switch from: " + currentItem.streamName + "<br />to: " + newItem.streamName);
},
onStreamSwitch: function (newItem) {
$f().getPlugin('content').setHtml("Switched to: " + newItem.streamName);
}
},

// RTMP streaming plugin
rtmp: {
url: 'flowplayer.rtmp.swf',
netConnectionUrl: 'rtmp://vod01.netdna.com/play'
},

// a content box so that we can see the selected bitrate. This is not normally
// used in real installations.
content: {
url: 'flowplayer.content.swf',
top: 0, left: 0, width: 400, height: 150,
backgroundColor: 'transparent', backgroundGradient: 'none', border: 0,
textDecoration: 'outline',
style: {
body: {
fontSize: 14,
fontFamily: 'Arial',
textAlign: 'center',
color: '#ffffff'
}
this.getPlayer().getPlugin("content").setHtml("switched to: " + newItem.streamName);
},
onStreamSwitchFailed: function (info) {
this.getPlayer().getPlugin("content").setHtml(info);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions core/test/jscontrols.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<html><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="../flowplayer-3.2.6.min.js"></script>
<script src="../../jsplugins/controls/trunk/flowplayer.controls.js"></script>
<script src="../../../flash-build/dist/flowplayer-3.2.13.min.js"></script>
<script src="../../../flash-build/dist/flowplayer.controls-3.2.11.min.js"></script>


<!-- page title -->
Expand Down Expand Up @@ -143,7 +143,7 @@
<div id="controls" class="hulu"></div>

<script>
flowplayer("player", "../build/flowplayer.swf",
flowplayer("player", "../../../flash-build/build/flowplayer-3.2.18.swf",
{
log: { level: 'debug', filter: 'org.flowplayer.bwcheck.*' },

Expand Down
2 changes: 1 addition & 1 deletion core/test/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
id="player">
</a>
<script>
flowplayer("player", "../../../flash-build/build/flowplayer-3.2.17-dev.swf",
flowplayer("player", "../../../flash-build/build/flowplayer-3.2.18.swf",
{
log: { level: 'debug', filter: 'org.flowplayer.controls.scrubber.ScrubberSlider'},

Expand Down
2 changes: 1 addition & 1 deletion plugins/controls/build.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=3.2.16
version=3.2.17-dev
devkit-dir=../../lib/devkit
Loading

0 comments on commit 45ba4c3

Please sign in to comment.