Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
engine
Commits
2eeb2ad6
Commit
2eeb2ad6
authored
1 year ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
docs: add info on possible improvement
parent
6b90c82f
No related branches found
No related tags found
1 merge request
!35
ORM-less scheduling
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/aura_engine/engine.py
+5
-0
5 additions, 0 deletions
src/aura_engine/engine.py
src/aura_engine/events.py
+0
-3
0 additions, 3 deletions
src/aura_engine/events.py
with
5 additions
and
3 deletions
src/aura_engine/engine.py
+
5
−
0
View file @
2eeb2ad6
...
...
@@ -390,6 +390,11 @@ class Player:
queue (Boolean): If `True` the item is queued if the `ChannelType` does allow so;
otherwise a new channel of the same type is activated
TODO The command `item.play.set_playing()` sets the playlist item
'
s status to _playing_
and assigns the current play start time. This is required for resource like line-in.
Other source like audio files have their start marker natively assigned by Liquidsoap.
These timestamp represent the actual real start time and should somehow be retrieved
from Liquidsoap, in order to also have the _real deal_ in Engine.
"""
with
suppress
(
CoreConnectionError
):
# Stop any active channel
...
...
This diff is collapsed.
Click to expand it.
src/aura_engine/events.py
+
0
−
3
View file @
2eeb2ad6
...
...
@@ -23,7 +23,6 @@ Event binding and propagation.
from
__future__
import
annotations
import
datetime
import
logging
from
threading
import
Thread
...
...
@@ -222,8 +221,6 @@ class EngineEventDispatcher:
def
func
(
self
,
item
:
PlaylistItem
):
self
.
logger
.
debug
(
"
on_play(..)
"
)
# Assign timestamp indicating start play time. Use the actual playtime when possible.
item
.
play_start_time
=
datetime
.
datetime
.
now
()
self
.
call_event
(
"
on_play
"
,
item
)
thread
=
Thread
(
target
=
func
,
args
=
(
self
,
item
))
...
...
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