Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
31a97918
Commit
31a97918
authored
Mar 06, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mozilla: test.html fix inputTracker usage
parent
4e250dc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
32 deletions
+47
-32
projects/mozilla/test.html
projects/mozilla/test.html
+47
-32
No files found.
projects/mozilla/test.html
View file @
31a97918
...
@@ -16,25 +16,29 @@
...
@@ -16,25 +16,29 @@
<SCRIPT
type=
"text/javascript"
src=
"blueshoes-4.5/javascript/components/slider/Bs_Slider.class.js"
></SCRIPT>
<SCRIPT
type=
"text/javascript"
src=
"blueshoes-4.5/javascript/components/slider/Bs_Slider.class.js"
></SCRIPT>
<SCRIPT
language=
"JavaScript"
>
<!--
<SCRIPT
language=
"JavaScript"
>
<!--
function init(){
function init()
{
inputTracker = new Bs_Slider();
inputTracker = new Bs_Slider();
inputTracker.attachOnChange(onInputTrackerChange);
if (inputTracker)
inputTracker.attachOnSlideStart(onInputTrackerScrollStart);
{
inputTracker.attachOnSlideEnd(onInputTrackerScrollEnd);
inputTracker.attachOnChange(onInputTrackerChange);
inputTracker.width = 530 ;
inputTracker.attachOnSlideStart(onInputTrackerScrollStart);
inputTracker.height = 15;
inputTracker.attachOnSlideEnd(onInputTrackerScrollEnd);
inputTracker.minVal = 0;
inputTracker.width = 530 ;
inputTracker.maxVal = 1.0;
inputTracker.height = 15;
inputTracker.valueDefault = 0;
inputTracker.minVal = 0;
inputTracker.valueInterval = 1/530;
inputTracker.maxVal = 1.0;
inputTracker.setDisabled(true);
inputTracker.valueDefault = 0;
inputTracker.imgDir = 'blueshoes-4.5/javascript/components/slider/img/';
inputTracker.valueInterval = 1/530;
inputTracker.setBackgroundImage('aluminumalloyvolcanic/horizontal_background.gif', 'repeat');
inputTracker.setDisabled(true);
inputTracker.setArrowIconLeft('aluminumalloyvolcanic/horizontal_backgroundLeft.gif', 2, 19);
inputTracker.imgDir = 'blueshoes-4.5/javascript/components/slider/img/';
inputTracker.setArrowIconRight('aluminumalloyvolcanic/horizontal_backgroundRight.gif', 2, 19);
inputTracker.setBackgroundImage('aluminumalloyvolcanic/horizontal_background.gif', 'repeat');
inputTracker.setSliderIcon('aluminumalloyvolcanic/horizontal_knob.gif', 15, 19);
inputTracker.setArrowIconLeft('aluminumalloyvolcanic/horizontal_backgroundLeft.gif', 2, 19);
inputTracker.useInputField = 0;
inputTracker.setArrowIconRight('aluminumalloyvolcanic/horizontal_backgroundRight.gif', 2, 19);
inputTracker.draw('inputTrackerDiv');
inputTracker.setSliderIcon('aluminumalloyvolcanic/horizontal_knob.gif', 15, 19);
inputTracker.useInputField = 0;
inputTracker.draw('inputTrackerDiv');
}
if( navigator.appName.indexOf("Microsoft Internet")==-1 )
if( navigator.appName.indexOf("Microsoft Internet")==-1 )
{
{
...
@@ -47,7 +51,8 @@ function init(){
...
@@ -47,7 +51,8 @@ function init(){
else
else
{
{
/* Explorer loads plugins asynchronously */
/* Explorer loads plugins asynchronously */
document.onreadystatechange=function() {
document.onreadystatechange=function()
{
if( document.readyState == 'complete' )
if( document.readyState == 'complete' )
{
{
onVLCPluginReady();
onVLCPluginReady();
...
@@ -219,6 +224,7 @@ var rate = 0;
...
@@ -219,6 +224,7 @@ var rate = 0;
var prevState = 0;
var prevState = 0;
var monitorTimerId = 0;
var monitorTimerId = 0;
var rateTimerId = 0;
var rateTimerId = 0;
var inputTracker;
var inputTrackerScrolling = false;
var inputTrackerScrolling = false;
var inputTrackerIgnoreChange = false;
var inputTrackerIgnoreChange = false;
var telxState = false;
var telxState = false;
...
@@ -677,31 +683,37 @@ var liveFeedRoll = 0;
...
@@ -677,31 +683,37 @@ var liveFeedRoll = 0;
function onPlaying()
function onPlaying()
{
{
if( !
inputTrackerScrolling )
if( !
inputTrackerScrolling )
{
{
var vlc = getVLC("vlc");
var vlc = getVLC("vlc");
var info = document.getElementById("info");
var info = document.getElementById("info");
var mediaLen = vlc.input.length;
var mediaLen = vlc.input.length;
inputTrackerIgnoreChange
= true;
inputTrackerIgnoreChange
= true;
if( mediaLen > 0 )
if( mediaLen > 0 )
{
{
// seekable media
// seekable media
if( inputTracker
.maxVal == 1.0 )
if( inputTracker
)
{
{
inputTracker.setDisabled(false);
if( inputTracker.maxVal == 1.0 )
inputTracker.maxVal = 1.0;
{
inputTracker.setDisabled(false);
inputTracker.maxVal = 1.0;
}
inputTracker.setValue(vlc.input.position);
}
}
inputTracker.setValue(vlc.input.position);
info.innerHTML = formatTime(vlc.input.time)+"/"+formatTime(mediaLen);
info.innerHTML = formatTime(vlc.input.time)+"/"+formatTime(mediaLen);
}
}
else
else
{
{
// non-seekable "live" media
// non-seekable "live" media
if( inputTracker
.maxVal != 0.0 )
if( inputTracker
)
{
{
inputTracker.maxVal = 0.0;
if( inputTracker.maxVal != 0.0 )
inputTracker.setValue(0.0);
{
inputTracker.setDisabled(true);
inputTracker.maxVal = 0.0;
inputTracker.setValue(0.0);
inputTracker.setDisabled(true);
}
}
}
liveFeedRoll = liveFeedRoll & 3;
liveFeedRoll = liveFeedRoll & 3;
info.innerHTML = liveFeedText[liveFeedRoll++];
info.innerHTML = liveFeedText[liveFeedRoll++];
...
@@ -721,10 +733,13 @@ function onStop()
...
@@ -721,10 +733,13 @@ function onStop()
// disable logging
// disable logging
vlc.log.verbosity = -1;
vlc.log.verbosity = -1;
if(
!inputTracker.disabled )
if(
inputTracker )
{
{
inputTracker.setValue(inputTracker.minVal);
if( !inputTracker.disabled )
inputTracker.setDisabled(true);
{
inputTracker.setValue(inputTracker.minVal);
inputTracker.setDisabled(true);
}
}
}
document.getElementById("info").innerHTML = "-:--:--/-:--:--";
document.getElementById("info").innerHTML = "-:--:--/-:--:--";
document.getElementById("state").innerHTML = "Stopped...";
document.getElementById("state").innerHTML = "Stopped...";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment