Skip to content

Commit

Permalink
feat: video mute
Browse files Browse the repository at this point in the history
  • Loading branch information
equinoy committed Jul 31, 2024
1 parent d85812a commit 14e6016
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 7 deletions.
Binary file not shown.
Binary file modified PDT.PanasonicDisplay.EPI/PDT.PanasonicDisplay.EPI.suo
Binary file not shown.
Binary file modified PDT.PanasonicDisplay.EPI/PDT.PanasonicDisplay.projectinfo
Binary file not shown.
14 changes: 7 additions & 7 deletions PDT.PanasonicDisplay.EPI/PanasonicDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ public class PanasonicDisplay : TwoWayDisplayBase, IBasicVolumeWithFeedback, ICo
public const string SelectIrCmd = "";
public const string ExitIrCmd = "";

public const string VideoMuteOnCmd = "\02VMT:1\03";
public const string VideoMuteOffCmd = "\02VMT:0\03";
public const string VideoMuteOnCmd = "\x02VMT:1\x03";
public const string VideoMuteOffCmd = "\x02VMT:0\x03";
public const string VideoMutePartialCmd = "\x02VMT:";
public const string VideoMutePoll = "\02QVM\03";
public const string VideoMutePoll = "\x02QVM\x03";

public const string PollInput = "\x02QMI\x03";
#endregion
Expand All @@ -118,7 +118,7 @@ public bool VideoIsMuted
set
{
_VideoIsMuted = value;

VideoIsMutedFeedback.FireUpdate();
}
}
public BoolFeedback VideoIsMutedFeedback;
Expand Down Expand Up @@ -215,7 +215,7 @@ void Port_LineReceived(object dev, GenericCommMethodReceiveTextArgs args)
{
if (Debug.Level == 2)
Debug.Console(2, this, "Received: '{0}'", ComTextHelper.GetEscapedText(args.Text));
char[] trimChars = { '\x02', '\x03' };
char[] trimChars = { '\x02', '\x03' }; //QVM:0
var FB = args.Text.Trim(trimChars);
Debug.Console(2, this, "Received cmd: '{0}'", FB);
switch (FB)
Expand Down Expand Up @@ -288,12 +288,12 @@ void Port_LineReceived(object dev, GenericCommMethodReceiveTextArgs args)
}
case "QVM:1":
{
VideoIsMuted = true;
VideoIsMuted = true;
break;
}
case "QVM:0":
{
VideoIsMuted = false;
VideoIsMuted = false;
break;
}
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 14e6016

Please sign in to comment.