End of video plays out, no false 'loading' near/after the end; bigger status pill avatars; start card fits the mini
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8effa573a0
commit
cf80bb2167
9 files changed
+113
-52
No files matched your search
@@ -556,6 +556,17 @@ class MemberView {
|
||||
}
|
||||
|
||||
class StateBroadcast {
|
||||
/// Buffer an in-set member needs before playback can go on, as the
|
||||
/// server's gate counts it: [RelayConstants.minBufferSecs], less near the
|
||||
/// end (mpv cannot buffer past it), none once finished.
|
||||
double get bufferNeed {
|
||||
if (transport == 'finished') return 0;
|
||||
final d = (media?['duration'] as num?)?.toDouble() ?? 0;
|
||||
const full = RelayConstants.minBufferSecs;
|
||||
if (d <= 0) return full;
|
||||
return (d - position - RelayConstants.endSlackSecs).clamp(0.0, full).toDouble();
|
||||
}
|
||||
|
||||
final int eventId;
|
||||
final String transport;
|
||||
final double position;
|
||||
|
||||
Reference in new issue
Block a user