Skip to content

how to modify full video file path of one input #20

Description

@guohua24

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions