index
:
bm/content
master
Unnamed repository; edit this file 'description' to name the repository.
Jonas Smedegaard
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
tag
/
Individuel_undervisning.mdwn
diff options
context:
1
2
3
4
#!/usr/bin/python3
import
logging
import
json
from
lib
.
config
import
Config
from
lib
.
videomix
import
CompositeModes
class
ControlServerCommands
():
def
__init__
(
self
,
pipeline
):
self
.
log
=
logging
.
getLogger
(
'ControlServerCommands'
)
self
.
pipeline
=
pipeline
self
.
sources
=
Config
.
getlist
(
'mix'
,
'sources'
)
self
.
blankersources
=
Config
.
getlist
(
'stream-blanker'
,
'sources'
)
def
decodeSourceName
(
self
,
src_name_or_id
):
if
isinstance
(
src_name_or_id
,
str
):
try
:
return
self
.
sources
.
index
(
src_name_or_id