Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpv_sync
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stefan Kraus
mpv_sync
Commits
3785c703
Commit
3785c703
authored
Dec 16, 2020
by
Simon Rainer
Browse files
Options
Downloads
Patches
Plain Diff
Rename sync_to_me command to sync_to_time
parent
fa78d6de
No related branches found
No related tags found
1 merge request
!5
Button icons
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/backendconnection/communication.ts
+1
-1
1 addition, 1 deletion
frontend/src/backendconnection/communication.ts
server/server.py
+4
-4
4 additions, 4 deletions
server/server.py
with
5 additions
and
5 deletions
frontend/src/backendconnection/communication.ts
+
1
−
1
View file @
3785c703
...
...
@@ -27,7 +27,7 @@ export const requestSyncToMe = (seconds: number) => {
return
{
type
:
"
REDUX_WEBSOCKET::SEND
"
,
payload
:
{
command
:
"
sync_to_me
"
,
command
:
"
sync_to_
ti
me
"
,
playback_time
:
seconds
,
target
:
"
server
"
,
},
...
...
This diff is collapsed.
Click to expand it.
server/server.py
+
4
−
4
View file @
3785c703
...
...
@@ -127,7 +127,7 @@ class ClientGroup:
set_pb_time_filled_req
[
"
data
"
]
=
min_time
await
self
.
_send_command
(
set_pb_time_filled_req
)
async
def
sync_to_me
(
self
,
playback_time
):
async
def
sync_to_
ti
me
(
self
,
playback_time
):
set_pb_time_filled_req
=
SET_PLAYBACK_TIME_REQUEST
.
copy
()
set_pb_time_filled_req
[
"
data
"
]
=
playback_time
await
self
.
_send_command
(
set_pb_time_filled_req
)
...
...
@@ -140,14 +140,14 @@ class ClientGroup:
await
self
.
pause
()
elif
command
==
"
sync
"
:
await
self
.
sync
()
elif
command
==
"
sync_to_me
"
:
elif
command
==
"
sync_to_
ti
me
"
:
if
"
playback_time
"
not
in
parsed
:
print
(
f
"
Ignoring sync_to_me command, because playback_time is missing: <
{
parsed
}
>
"
f
"
Ignoring sync_to_
ti
me command, because playback_time is missing: <
{
parsed
}
>
"
)
return
playback_time
=
parsed
[
"
playback_time
"
]
await
self
.
sync_to_me
(
playback_time
)
await
self
.
sync_to_
ti
me
(
playback_time
)
elif
command
==
"
show
"
:
await
self
.
show_connected_clients
()
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment