mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Refactored for source change handler updates
This commit is contained in:
parent
c22e95cad2
commit
ed468add2c
19 changed files with 178 additions and 73 deletions
|
|
@ -1064,8 +1064,7 @@ namespace PepperDash.Essentials
|
|||
/// <summary>
|
||||
/// Handles source change
|
||||
/// </summary>
|
||||
void CurrentRoom_SourceInfoChange(EssentialsRoomBase room,
|
||||
SourceListItem info, ChangeType change)
|
||||
void CurrentRoom_SourceInfoChange(SourceListItem info, ChangeType change)
|
||||
{
|
||||
if (change == ChangeType.WillChange)
|
||||
DisconnectSource(info);
|
||||
|
|
|
|||
|
|
@ -1050,7 +1050,7 @@ namespace PepperDash.Essentials
|
|||
/// <param name="room"></param>
|
||||
/// <param name="info"></param>
|
||||
/// <param name="type"></param>
|
||||
void CurrentRoom_CurrentSingleSourceChange(EssentialsRoomBase room, SourceListItem info, ChangeType type)
|
||||
void CurrentRoom_CurrentSingleSourceChange(SourceListItem info, ChangeType type)
|
||||
{
|
||||
if (_CurrentRoom.VideoCodec.SharingContentIsOnFeedback.BoolValue && _CurrentRoom.CurrentSourceInfo != null)
|
||||
TriList.StringInput[UIStringJoin.CallSharedSourceNameText].StringValue = _CurrentRoom.CurrentSourceInfo.PreferredName;
|
||||
|
|
@ -1363,8 +1363,7 @@ namespace PepperDash.Essentials
|
|||
/// <summary>
|
||||
/// Handles source change
|
||||
/// </summary>
|
||||
void CurrentRoom_SourceInfoChange(EssentialsRoomBase room,
|
||||
SourceListItem info, ChangeType change)
|
||||
void CurrentRoom_SourceInfoChange(SourceListItem info, ChangeType change)
|
||||
{
|
||||
if (change == ChangeType.WillChange)
|
||||
DisconnectSource(info);
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ namespace PepperDash.Essentials
|
|||
parent.SetItemButtonAction(index, buttonAction);
|
||||
}
|
||||
|
||||
void room_CurrentSourceInfoChange(EssentialsRoomBase room, SourceListItem info, ChangeType type)
|
||||
void room_CurrentSourceInfoChange(SourceListItem info, ChangeType type)
|
||||
{
|
||||
UpdateItem(info);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue