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:
parent
0274280d66
commit
45fa3dc45a
@ -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
3
dev/update_from_source.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user