scripts: update web_overlay example

This commit is contained in:
Mathieu Duponchelle 2022-03-09 23:28:43 +01:00
Родитель 205bd41de3
Коммит 4e91f5f8c1
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1,6 +1,6 @@
import argparse
from node_schedule import create_mixer, create_rtmp_destination, start_node, connect, schedule_source, add_control_point, later, get_info
from node_schedule import create_mixer, create_local_playback_destination, start_node, connect, schedule_source, add_control_point, later, get_info
if __name__ == '__main__':
parser = argparse.ArgumentParser('web-overlay')
@ -16,9 +16,9 @@ if __name__ == '__main__':
'height': 720,
'sample-rate': 44100
})
create_rtmp_destination('centricular-output', 'rtmp://learntv-transcoder.eastus.azurecontainer.io/live/centricular-output')
start_node('centricular-output')
create_local_playback_destination('centricular-output')
connect('channel-1', 'centricular-output')
start_node('centricular-output')
start_node('channel-1')
source_slot = schedule_source(source_uri, 'source_slot', 'channel-1', later(0),