commit/StationPlaylist: josephsl: Encoder columns (6.0-dev): Introduce new column commands to SAM Encoder.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Thu, 13 Aug 2015 07:48:58 -0000

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/fa72fe982e89/
Changeset: fa72fe982e89
Branch: 6.0/encoderColumns
User: josephsl
Date: 2015-08-13 07:48:26+00:00
Summary: Encoder columns (6.0-dev): Introduce new column commands to SAM
Encoder.

SAM Encoder gains three new scripts to announce encoder format, status and
status description, respectively. At this time, substrings are used (the long
term solution is to use column content routine from the app module). Next up is
SPL Encoder column scripts.

Affected #: 1 file

diff --git a/addon/globalPlugins/SPLStudioUtils/encoders.py
b/addon/globalPlugins/SPLStudioUtils/encoders.py
index ed3380b..b84c264 100755
--- a/addon/globalPlugins/SPLStudioUtils/encoders.py
+++ b/addon/globalPlugins/SPLStudioUtils/encoders.py
@@ -398,6 +398,20 @@ class SAMEncoder(Encoder):
# Translators: Presented when SAM Encoder is disconnecting from
a streaming server.
ui.message(_("Disconnecting..."))

+ # Announce SAM columns: encoder name/type, status and description.
+ def script_announceEncoderFormat(self, gesture):
+ typeIndex = self.description.find(", Status: ")
+ ui.message(self.description[:typeIndex])
+
+ def script_announceEncoderStatus(self, gesture):
+ typeIndex = self.description.find(", Status: ")
+ statusIndex = self.description.find(", Description: ")
+ ui.message(self.description[typeIndex+2:statusIndex])
+
+ def script_announceEncoderStatusDesc(self, gesture):
+ statusIndex = self.description.find(", Description: ")
+ ui.message(self.description[statusIndex+2:])
+
# The following mutators will be removed as part of Project Rainbow.
# These will be kept in 6.0 for backwards compatibility.

@@ -465,7 +479,10 @@ class SAMEncoder(Encoder):
"kb:f9":"connect",
"kb:control+f9":"connect",
"kb:f10":"disconnect",
- "kb:control+f10":"disconnect"
+ "kb:control+f10":"disconnect",
+ "kb:control+NVDA+3":"announceEncoderFormat",
+ "kb:control+NVDA+4":"announceEncoderStatus",
+ "kb:control+NVDA+5":"announceEncoderStatusDesc"
}

Repository URL: https://bitbucket.org/nvdaaddonteam/stationplaylist/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts:

  • » commit/StationPlaylist: josephsl: Encoder columns (6.0-dev): Introduce new column commands to SAM Encoder. - commits-noreply