Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MBetterc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mbetter
MBetterc
Commits
398d40ba
Commit
398d40ba
authored
Nov 25, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce debug message that were flooding the bus
parent
1e837e54
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
85 deletions
+4
-85
player.py
mbetterclient/qt_player/player.py
+4
-11
results.html
mbetterclient/qt_player/templates/results.html
+0
-74
No files found.
mbetterclient/qt_player/player.py
View file @
398d40ba
...
...
@@ -3215,19 +3215,12 @@ class QtVideoPlayer(QObject):
def
_on_position_changed
(
self
,
position
:
int
,
duration
:
int
):
"""Handle position changes from player window"""
try
:
# Send progress update via message bus
if
duration
>
0
:
percentage
=
(
position
/
duration
)
*
100
progress_message
=
MessageBuilder
.
video_progress
(
sender
=
self
.
name
,
position
=
position
/
1000.0
,
# Convert to seconds
duration
=
duration
/
1000.0
,
# Convert to seconds
percentage
=
percentage
)
self
.
message_bus
.
publish
(
progress_message
,
broadcast
=
True
)
# Progress updates are now handled by the throttled periodic _send_progress_update method
# to prevent flooding the message bus with VIDEO_PROGRESS messages
pass
except
Exception
as
e
:
logger
.
error
(
f
"Failed to
send progress updat
e: {e}"
)
logger
.
error
(
f
"Failed to
handle position chang
e: {e}"
)
def
_on_video_loaded
(
self
,
file_path
:
str
):
"""Handle video loaded event"""
...
...
mbetterclient/qt_player/templates/results.html
View file @
398d40ba
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment