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:
parent
821e7e01df
commit
66ea34c514
2 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue