obs-ffmpeg: Add "restart when active" media source property

Adds the option of making the media file restart when the source becomes
active (such as switching to a scene with it).

Due to lack of libff features to start/stop/pause/seek media files,
currently this just destroys the demuxer and recreates it.  Ideally,
libff should have some functions to allow a more optimal means of doing
those things.
This commit is contained in:
jp9000
2016-01-23 02:36:57 -08:00
parent 419d6b1a22
commit 22885713b0
2 changed files with 37 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ DiscardBiDir="Bi-Directional Frames"
DiscardNonIntra="Non-Intra Frames"
DiscardNonKey="Non-Key Frames"
DiscardAll="All Frames (Careful!)"
RestartWhenActivated="Restart playback when source becomes active"
MediaFileFilter.AllMediaFiles="All Media Files"
MediaFileFilter.VideoFiles="Video Files"