1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-27 02:43:45 +02:00

Created shell script for combining source files.

This commit is contained in:
Steve Heffernan 2010-11-14 14:04:42 -08:00
parent 0274280d66
commit 45fa3dc45a
2 changed files with 5 additions and 3 deletions

View File

@ -78,8 +78,6 @@ VideoJS.player.newBehavior("video", function(element){
this.updatePlayProgress();
this.updateCurrentTimeDisplays();
this.updateDurationDisplays();
// currentTime changed, reset subtitles
// if (!this.subtitles) { this.currentSubtitlePosition = 0; }
},
// Play progress
updatePlayProgress: function(){
@ -530,7 +528,8 @@ VideoJS.player.newBehavior("subtitlesDisplay", function(element){
subtitlesDisplaysOnVideoTimeUpdate: function(){
// show the subtitles
if (this.subtitles) {
var x = this.currentSubtitlePosition;
// var x = this.currentSubtitlePosition;
var x = 0;
while (x<this.subtitles.length && this.video.currentTime>this.subtitles[x].endTime) {
if (this.subtitles[x].showing) {

3
dev/update_from_source.sh Executable file
View File

@ -0,0 +1,3 @@
#! /bin/csh
# Combines Source Files. In terminal, sh update_from_source.sh
cat src/video.js src/html5.js src/behaviors.js > combined.js