-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Hi all:
Excuse me to ask a question.I wirte some python code and want to modify video file full path of one input with vlc_source type.But input's video does not change.Please tell me how to implement this requirement.
def push_video(full_video_file_name):
scene_list = get_scene_list_request()
if len(scene_list) <= 0:
print("no scene")
return
first_scene_name = scene_list[0]["sceneName"]
print(first_scene_name)
vlc_input_settings = get_input_default_settings('vlc_source')
vlc_input_settings["file"] = 'e:/F_pan/tuiliu/test0537.mp4'
vlc_input_settings["loop"] = False
inputName = 'VLC 视频源1'
inputKind = "vlc_source"
#create_input_request(first_scene_name,inputName,inputKind)
create_scene_item(first_scene_name, inputName)
set_input_settings(inputName,vlc_input_settings)
Metadata
Metadata
Assignees
Labels
No labels