python-vlc
python-vlc copied to clipboard
Media.add.options() does not set start/stop times for URLs
Media.add.options() does not set start/stop time for URLs (e.g., YouTube) but works fine for files. For URLs, the start/stop time is ignored and the entire video is played. An example is shown below: media_list = vlc_instance.media_list_new() media = vlc_instance.media_new("source") #where source = file name or URL media.add_options("start-time=5", "stop-time=10", "run-time=5") media_list.add_media(media)