VideoRecorder module

filename:SamplePlugin.py
author:roar@tordivel.no
requirements:Scorpion 10.1.1.569 or higher

VideoRecorder - Scorpion plugin for creating video from Scorpion GUI

1.0.0.15, 11nov2015, RL: modified for autodoc
1.0.0.14, 25jan2014, roar@tordivel.no
  format combobox accepts any text (FOURCC)
1.0.0.13, 24jan2014, roar@tordivel.no
  added video format
1.0.0.12, 17jan2014, RL:
  added hints and adjusted control position in config dialog
1.0.0.11, 16jan2014, RL:
  added start recording on start option
1.0.0.10, 18apr2013, RL:
  new filename <prefix>_<YYYYMMDD>_<nnnnnn>.avi
1.0.0.9, 10oct2012, RL:
  using icon stripes
  added allowOnlineRecording
1.0.0.8, 08oct2012, TV:
  new metro icons
1.0.0.7, 06sep2012, RL:
  fixed video source mapping when creating video
  fixed button hints
  new icons
1.0.0.6, 04sep2012, RL:
  uses <Storage>\Video folder
  added filename prefix
  changed button order/captions/hint
1.0.0.5, 30aug2012, RL:
  added simulation button
1.0.0.4, 30aug2012, RL:
  using SpeedButtons with graphis
  added configuration dialog
1.0.0.3, 21aug2012, RL:
  layout improvements
1.0.0.2, 10aug2012, RL:
  resizes controls
  added autoStart flag
  added start/stopRecording methods
  added shortcut
  added configure method
1.0.0.1, 02jul2012, RL:
  created
VideoRecorder.ConfigureVideoRecorderPlugin(videoRecorderPlugin)[source]

show up the setup dialog

class VideoRecorder.VideoRecorderPlugin(cntr, name)[source]

Bases: object

getConfig()[source]

returns plugin configuration as string

setConfig(value)[source]

set plugin configuration from the string ‘value’

configure()[source]

launch an input dialog for editing tool

enableControls()[source]

enable controls due to operation state

registerShortcut()[source]

register for shortcut events

getNextFileno(path, prefix, cnt)[source]

return unique filename by adding trailing integer

getNextFilename()[source]

return next unique filename

startRecording()[source]

start recording if not recording

stopRecording()[source]

stop recording if active

playVideo(filename)[source]

play video

playLastVideo()[source]

play last video

selectSequence()[source]

select sequence

reset()[source]

reset sequence

explore()[source]

launch explorer in video folder

cntrResize(sender, args)[source]

center buttons in panel

bSequenceClick(sender, args)[source]

select guard tagname

bResetClick(sender, args)[source]

reset sequence

bRecordClick(sender, args)[source]

start/stop recording

bPlayClick(sender, args)[source]

view last video

bSimulationClick(sender, args)[source]

toggle simulation

bExploreClick(sender, args)[source]

launch explorer in video folder

miConfigClick(sender, args)[source]

launch configuration dialog

systemAccessControlChanged(settings, service)[source]

update rights

actionsBeforeStart()[source]

start

actionsAfterStop()[source]

end of video if recording

actionsAfterInspect()[source]

add image to video

systemSimulationChanged(simulation, folder)[source]
actionsFn()[source]

start/stop on shortcut

VideoRecorder.CreatePlugin(hWnd, name='')[source]

Scorpion Plugin Stub - Required