|
|
@@ -65,7 +65,6 @@ var jsmpeg = window.jsmpeg = function( url, opts ) {
|
|
65
|
65
|
|
|
66
|
66
|
jsmpeg.prototype.waitForIntraFrame = true;
|
|
67
|
67
|
jsmpeg.prototype.socketBufferSize = 512 * 1024; // 512kb each
|
|
68
|
|
-jsmpeg.prototype.onlostconnection = null;
|
|
69
|
68
|
|
|
70
|
69
|
jsmpeg.prototype.initSocketClient = function( client ) {
|
|
71
|
70
|
this.buffer = new BitReader(new ArrayBuffer(this.socketBufferSize));
|
|
|
@@ -324,7 +323,7 @@ jsmpeg.prototype.loadCallback = function(file) {
|
|
324
|
323
|
this.firstSequenceHeader = this.buffer.index;
|
|
325
|
324
|
this.decodeSequenceHeader();
|
|
326
|
325
|
|
|
327
|
|
- // Calculate the duration. This only works if the video is seekable and we have a frame count.
|
|
|
326
|
+ // Calculate the duration. This only works if the video is seekable and we have a frame count
|
|
328
|
327
|
this.duration = this.frameCount / this.pictureRate;
|
|
329
|
328
|
|
|
330
|
329
|
// Load the first frame
|