OdyseeTeam / odysee-frontend

The code that runs odysee.com
https://odysee.com
MIT License
216 stars 68 forks source link

buffer duration / recount may not be correct for long buffer events #648

Open tzarebczan opened 2 years ago

tzarebczan commented 2 years ago

I think there's an issue when you force buffering with throttling and we buffer way too long, we don't properly capture. And sometimes you get:

{"message":"rebufferung duration cannot be larger than duration"}

from:

bitrate: 4930920
device: "web"
duration: 10000
player: "use-p2"
position: 2000
protocol: "stb"
rebuf_count: 1
rebuf_duration: 17750
rel_position: 0
url: "@cryptoinvestsvk#2/Bitcoin-update2#0"
user_id: "1662955"

To reproduce, add slow 3g and watch playback requests.

tzarebczan commented 2 years ago

This was hacked around to send the full duration for now.