vlc-video plugin: Add option to suppress stop and restart stream on playlist update #10918
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, the stream is stopped whenever you update a video playlist in vlc-video plugin properties. This enhancement adds an option to disable starting and stopping the stream so that the current video will continue and play the next video in the updated playlist when the current video finishes.
Description
Currently, when you update a video playlist in the vlc-video plugins properties page and commit the changes, the plugin stops the stream and restarts the playlist from the beginning. This option allows the user to suppress the stop and restart so that the updated stream and playlist continues playing.
The current stream will continue playing and the video in the next index position in the playlist will be played next.
![restart stream](https://private-user-images.githubusercontent.com/1878087/342530337-e01bec4d-028b-4336-be49-125d80314250.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MTU0OTIsIm5iZiI6MTcyMTkxNTE5MiwicGF0aCI6Ii8xODc4MDg3LzM0MjUzMDMzNy1lMDFiZWM0ZC0wMjhiLTQzMzYtYmU0OS0xMjVkODAzMTQyNTAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjVUMTM0NjMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjYzNjFmZGM5NTFlMTgyMDhmMGNmMDEyYWE5YTM2ZmJkODUzODIwNmMzODU2ZDc1OGZjOWUzYzExZWQ3ODdkMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.MWCDu6IDDS1EbaOUydWdkdM4zarJqjHL5dCK2065ZxA)
Motivation and Context
Many people have said that the current behavior is not expected, and they wish that the vlc-video plugin did not behave this way. Here is an example: https://obsproject.com/forum/threads/media-playlist-source.168774/#post-648347
How Has This Been Tested?
I tested it on Windows 11.
Created a playlist and updated it on the fly while the stream was playing. When I unchecked "Restart Stream" and rearranged videos in playlists, the vlc-video plugin played the expected videos based on the updated playlists. When the "Restart Stream" checkbox is checked, the stream stops and starts at the beginning of the updated playlist, which is the expected current functionality.
Types of changes
Tweak (non-breaking change to improve existing functionality)
When the user unchecks the Restart Stream checkbox, the plugin skips the "Stop and Starts a new stream with the updated playlist", which continues playing the current video and continues with the next video in the updated playlist. This checkbox is set to True by default, which matches the current plugin functionality. The user has to take the action of unchecking the box to get the enhanced functionality.
Checklist: