output mode as parameter
This commit is contained in:
parent
a1f1390b8e
commit
7b13e13d92
@ -40,8 +40,8 @@ def main():
|
||||
play out depending on output mode
|
||||
"""
|
||||
|
||||
if stdin_args.desktop:
|
||||
output = locate('ffplayout.output.desktop.output')
|
||||
if stdin_args.mode:
|
||||
output = locate('ffplayout.output.{}.output'.format(stdin_args.mode))
|
||||
output()
|
||||
|
||||
else:
|
||||
|
@ -52,10 +52,6 @@ stdin_parser.add_argument(
|
||||
'-c', '--config', help='file path to ffplayout.conf'
|
||||
)
|
||||
|
||||
stdin_parser.add_argument(
|
||||
'-d', '--desktop', help='preview on desktop', action='store_true'
|
||||
)
|
||||
|
||||
stdin_parser.add_argument(
|
||||
'-f', '--folder', help='play folder content'
|
||||
)
|
||||
@ -68,6 +64,10 @@ stdin_parser.add_argument(
|
||||
'-i', '--loop', help='loop playlist infinitely', action='store_true'
|
||||
)
|
||||
|
||||
stdin_parser.add_argument(
|
||||
'-m', '--mode', help='set output mode: desktop, hls, stream'
|
||||
)
|
||||
|
||||
stdin_parser.add_argument(
|
||||
'-p', '--playlist', help='path from playlist'
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user