module FFMPEG::WindowTitles

@since 1.0.0-beta4

Constants

FILTERED_TITLES

Regex to filter out “Window Title: N/A” from Chrome extensions and “Window Title: ”. This is done to remove unusable titles and to match the Ffmpeg expected input format for capturing specific windows. For example, “Window Title: Google - Mozilla Firefox” becomes “Google - Mozilla Firefox”.

Public Class Methods

fetch(application) click to toggle source

Returns a list of available window titles for the given application (process) name.

# File lib/ffmpeg/window_titles.rb, line 13
def self.fetch(application)
  FFMPEG.logger.debug "Retrieving available windows for: #{application}"
  WindowGrabber.new.available_windows_for application
end