1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine the ui buffer effect

This commit is contained in:
winlin 2013-12-21 13:10:02 +08:00
parent 821e7e01df
commit 66ea34c514
2 changed files with 3 additions and 5 deletions

View file

@ -266,6 +266,8 @@ function __srs_on_player_timer(id, time, buffer_length) {
buffer_length = Math.max(0, buffer_length);
buffer_length = Math.min(player.buffer_time, buffer_length);
time = Math.max(0, time);
// user may override the on_player_timer,
// so set the data before invoke it.
player.time = time;