mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
Create 'none' source
This commit is contained in:
@@ -510,6 +510,20 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
|
|
||||||
co.SourceLists = new Dictionary<string,Dictionary<string,SourceListItem>>();
|
co.SourceLists = new Dictionary<string,Dictionary<string,SourceListItem>>();
|
||||||
var newSl = new Dictionary<string, SourceListItem>();
|
var newSl = new Dictionary<string, SourceListItem>();
|
||||||
|
// add "none" source if VTC present
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(rmProps.VideoCodecKey))
|
||||||
|
{
|
||||||
|
var codecOsd = new SourceListItem()
|
||||||
|
{
|
||||||
|
Name = "None",
|
||||||
|
IncludeInSourceList = true,
|
||||||
|
Order = 1,
|
||||||
|
Type = eSourceListItemType.Route,
|
||||||
|
SourceKey = ""
|
||||||
|
};
|
||||||
|
newSl.Add("sourceNone", codecOsd);
|
||||||
|
}
|
||||||
// add sources...
|
// add sources...
|
||||||
for (uint i = 0; i<= 19; i++)
|
for (uint i = 0; i<= 19; i++)
|
||||||
{
|
{
|
||||||
@@ -525,7 +539,7 @@ namespace PepperDash.Essentials.Room.Cotija
|
|||||||
var newSLI = new SourceListItem{
|
var newSLI = new SourceListItem{
|
||||||
Icon = icon,
|
Icon = icon,
|
||||||
Name = name,
|
Name = name,
|
||||||
Order = (int)i + 1,
|
Order = (int)i + 10,
|
||||||
SourceKey = key,
|
SourceKey = key,
|
||||||
Type = eSourceListItemType.Route,
|
Type = eSourceListItemType.Route,
|
||||||
DisableCodecSharing = disableShare,
|
DisableCodecSharing = disableShare,
|
||||||
|
|||||||
Reference in New Issue
Block a user