Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Camera represents camera devices Camera DeviceType = "camera" // Microphone represents microphone devices Microphone = "microphone" // Screen represents screen devices Screen = "screen" )
View Source
const ( // StateClosed means that the driver has not been opened. In this state, // all information related to the hardware are still unknown. For example, // if it's a video driver, the pixel format information is still unknown. StateClosed State = "closed" // StateOpened means that the driver is already opened and information about // the hardware are already known and may be extracted from the driver. StateOpened = "opened" // StateRunning means that the driver has been sending data. The caller // who started the driver may start reading data from the hardware. StateRunning = "running" )
Variables ¶
This section is empty.
Functions ¶
func IsAvailable ¶
Types ¶
type AudioRecorder ¶
type AvailabilityAdapter ¶
type DeviceType ¶
type DeviceType string
DeviceType represents human readable device type. DeviceType can be useful to filter the drivers too.
type FilterFn ¶
FilterFn is being used to decide if a driver should be included in the query result.
func FilterAudioRecorder ¶
func FilterAudioRecorder() FilterFn
FilterAudioRecorder return a filter function to get a list of registered AudioRecorders
func FilterDeviceType ¶
func FilterDeviceType(t DeviceType) FilterFn
FilterDeviceType returns a filter function to get registered drivers which matches t type
func FilterVideoRecorder ¶
func FilterVideoRecorder() FilterFn
FilterVideoRecorder return a filter function to get a list of registered VideoRecorders
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is a singleton to manage multiple drivers and their states
Directories ¶
Path | Synopsis |
---|---|
Package audiotest provides dummy audio driver for testing.
|
Package audiotest provides dummy audio driver for testing. |
Package camera provides a video camera driver.
|
Package camera provides a video camera driver. |
Package videotest provides dummy video driver for testing.
|
Package videotest provides dummy video driver for testing. |
Package videotest provides vncDevice video driver for testing.
|
Package videotest provides vncDevice video driver for testing. |
vnc
Package vnc implements a VNC client.
|
Package vnc implements a VNC client. |
Click to show internal directories.
Click to hide internal directories.