This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
List view for selecting video source and encoder. Window Picker and Screen Picker used instead of dropdowns. Quality, FPS options shown only when relevant. and more...
- Loading branch information
1 parent
ab07e34
commit 7e13fed
Showing
73 changed files
with
1,397 additions
and
962 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,7 @@ public interface IRegionProvider | |
void Release(); | ||
|
||
event Action SelectorHidden; | ||
|
||
IntPtr Handle { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Captura.Models | ||
{ | ||
public interface IVideoSourceProvider : IEnumerable<IVideoItem> | ||
public interface IVideoSourceProvider | ||
{ | ||
string Name { get; } | ||
|
||
IVideoItem Source { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,36 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace Captura.Models | ||
{ | ||
// ReSharper disable once ClassNeverInstantiated.Global | ||
public class NoVideoSourceProvider : VideoSourceProviderBase | ||
{ | ||
public NoVideoSourceProvider(LanguageManager Loc) : base(Loc) { } | ||
|
||
public override IEnumerator<IVideoItem> GetEnumerator() | ||
public NoVideoSourceProvider(LanguageManager Loc) : base(Loc) | ||
{ | ||
yield return WaveItem.Instance; | ||
Sources = new IVideoItem[] {WaveItem.Instance} | ||
.Concat(FFmpegAudioItem.Items) | ||
.ToArray(); | ||
} | ||
|
||
public IVideoItem[] Sources { get; } | ||
|
||
IVideoItem _selectedSource = WaveItem.Instance; | ||
|
||
foreach (var item in FFmpegAudioItem.Items) | ||
public IVideoItem SelectedSource | ||
{ | ||
get => _selectedSource; | ||
set | ||
{ | ||
yield return item; | ||
_selectedSource = value; | ||
|
||
OnPropertyChanged(); | ||
|
||
RaisePropertyChanged(nameof(Source)); | ||
} | ||
} | ||
|
||
public override IVideoItem Source => _selectedSource; | ||
|
||
public override string Name => Loc.OnlyAudio; | ||
} | ||
} |
Oops, something went wrong.