sergey.agapov commited on
Commit
af66757
1 Parent(s): 0981ae6

player update

Browse files
Files changed (1) hide show
  1. templates/tiktok_player.html +5 -5
templates/tiktok_player.html CHANGED
@@ -127,9 +127,9 @@
127
  },
128
  buffer: {
129
  bufferToKeep: 40,
130
- bufferTimeAtTopQuality: 50,
131
- bufferTimeAtTopQualityLongForm: 50,
132
- initialBufferLevel: 50,
133
  },
134
  }
135
  });
@@ -177,7 +177,7 @@
177
  setupCaptions();
178
  setInterval(refreshCaptions, refreshInterval);
179
  waitForInitialData();
180
- player.play()
181
  }
182
 
183
  function onPlayerError(e) {
@@ -202,7 +202,7 @@
202
  console.log("Initial data buffered, starting playback");
203
  waitingMessage.style.display = "none";
204
  video.style.display = "block";
205
- //player.play();
206
  } else {
207
  setTimeout(waitForInitialData, 100);
208
  }
 
127
  },
128
  buffer: {
129
  bufferToKeep: 40,
130
+ bufferTimeAtTopQuality: 40,
131
+ bufferTimeAtTopQualityLongForm: 40,
132
+ initialBufferLevel: 30,
133
  },
134
  }
135
  });
 
177
  setupCaptions();
178
  setInterval(refreshCaptions, refreshInterval);
179
  waitForInitialData();
180
+ //player.play()
181
  }
182
 
183
  function onPlayerError(e) {
 
202
  console.log("Initial data buffered, starting playback");
203
  waitingMessage.style.display = "none";
204
  video.style.display = "block";
205
+ player.play();
206
  } else {
207
  setTimeout(waitForInitialData, 100);
208
  }