UNPKG

onvif-rx

Version:

Interact with ONVIF cameras and devices using RXJS

129 lines (128 loc) 11 kB
import { IDeviceConfig } from "../config"; import { ReferenceToken, Layout, PaneConfiguration } from "./types"; export declare class ONVIFDisplay { private config; constructor(config: IDeviceConfig); /** * Returns the capabilities of the display service. The result is returned in a typed answer. */ static GetServiceCapabilities(): import("typescript-monads").IReader<IDeviceConfig, import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>>; /** * Return the current layout of a video output. The Layout assigns a pane configuration to a certain area of the display. The layout settings * directly affect a specific video output. The layout consists of a list of PaneConfigurations and * their associated display areas. */ static GetLayout(VideoOutput: ReferenceToken): import("typescript-monads").IReader<IDeviceConfig, import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>>; /** * Change the layout of a display (e.g. change from * single view to split screen view).The Layout assigns a pane configuration to a certain area of the display. The layout settings * directly affect a specific video output. The layout consists of a list of PaneConfigurations and * their associated display areas. * A device implementation shall be tolerant against rounding errors when matching a layout against its fixed set of layouts by accepting differences of at least one percent. * */ static SetLayout(VideoOutput: ReferenceToken, Layout: Layout): import("typescript-monads").IReader<IDeviceConfig, import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>>; /** * The Display Options contain the supported layouts (LayoutOptions) and the decoding and * encoding capabilities (CodingCapabilities) of the device. The GetDisplayOptions command * returns both, Layout and Coding Capabilities, of a VideoOutput. */ static GetDisplayOptions(VideoOutput: ReferenceToken): import("typescript-monads").IReader<IDeviceConfig, import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>>; /** * List all currently defined panes of a device for a specified video output * (regardless if this pane is visible at a moment). A Pane is a display area on the monitor that is attached to a video output. A pane has a * PaneConfiguration that describes which entities are associated with the pane. A client has to configure the pane according to the connection to be established by setting the * AudioOutput and/or AudioSourceToken. If a Token is not set, the corresponding session will * not be established. */ static GetPaneConfigurations(VideoOutput: ReferenceToken): import("typescript-monads").IReader<IDeviceConfig, import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>>; /** * Retrieve the pane configuration for a pane token. */ static GetPaneConfiguration(VideoOutput: ReferenceToken, Pane: ReferenceToken): import("typescript-monads").IReader<IDeviceConfig, import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>>; /** * Modify one or more configurations of the specified video output. * This method will only modify the provided configurations and leave the others unchanged. * Use DeletePaneConfiguration to remove pane configurations. */ static SetPaneConfigurations(VideoOutput: ReferenceToken, PaneConfiguration: PaneConfiguration): import("typescript-monads").IReader<IDeviceConfig, import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>>; /** * This command changes the configuration of the specified pane (tbd) */ static SetPaneConfiguration(VideoOutput: ReferenceToken, PaneConfiguration: PaneConfiguration): import("typescript-monads").IReader<IDeviceConfig, import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>>; /** * Create a new pane configuration describing the streaming and coding settings for a display area. * This optional method is only supported by devices that signal support of dynamic pane creation via their capabilities. * The content of the Token field may be ignored by the device. * */ static CreatePaneConfiguration(VideoOutput: ReferenceToken, PaneConfiguration: PaneConfiguration): import("typescript-monads").IReader<IDeviceConfig, import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>>; /** * Delete a pane configuration. A service must respond with an error if the pane configuration * is in use by the current layout. * This optional method is only supported by devices that signal support of dynamic pane creation via their capabilities. * */ static DeletePaneConfiguration(VideoOutput: ReferenceToken, PaneToken: ReferenceToken): import("typescript-monads").IReader<IDeviceConfig, import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>>; /** * Returns the capabilities of the display service. The result is returned in a typed answer. */ GetServiceCapabilities(): import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>; /** * Return the current layout of a video output. The Layout assigns a pane configuration to a certain area of the display. The layout settings * directly affect a specific video output. The layout consists of a list of PaneConfigurations and * their associated display areas. */ GetLayout(VideoOutput: ReferenceToken): import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>; /** * Change the layout of a display (e.g. change from * single view to split screen view).The Layout assigns a pane configuration to a certain area of the display. The layout settings * directly affect a specific video output. The layout consists of a list of PaneConfigurations and * their associated display areas. * A device implementation shall be tolerant against rounding errors when matching a layout against its fixed set of layouts by accepting differences of at least one percent. * */ SetLayout(VideoOutput: ReferenceToken, Layout: Layout): import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>; /** * The Display Options contain the supported layouts (LayoutOptions) and the decoding and * encoding capabilities (CodingCapabilities) of the device. The GetDisplayOptions command * returns both, Layout and Coding Capabilities, of a VideoOutput. */ GetDisplayOptions(VideoOutput: ReferenceToken): import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>; /** * List all currently defined panes of a device for a specified video output * (regardless if this pane is visible at a moment). A Pane is a display area on the monitor that is attached to a video output. A pane has a * PaneConfiguration that describes which entities are associated with the pane. A client has to configure the pane according to the connection to be established by setting the * AudioOutput and/or AudioSourceToken. If a Token is not set, the corresponding session will * not be established. */ GetPaneConfigurations(VideoOutput: ReferenceToken): import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>; /** * Retrieve the pane configuration for a pane token. */ GetPaneConfiguration(VideoOutput: ReferenceToken, Pane: ReferenceToken): import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>; /** * Modify one or more configurations of the specified video output. * This method will only modify the provided configurations and leave the others unchanged. * Use DeletePaneConfiguration to remove pane configurations. */ SetPaneConfigurations(VideoOutput: ReferenceToken, PaneConfiguration: PaneConfiguration): import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>; /** * This command changes the configuration of the specified pane (tbd) */ SetPaneConfiguration(VideoOutput: ReferenceToken, PaneConfiguration: PaneConfiguration): import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>; /** * Create a new pane configuration describing the streaming and coding settings for a display area. * This optional method is only supported by devices that signal support of dynamic pane creation via their capabilities. * The content of the Token field may be ignored by the device. * */ CreatePaneConfiguration(VideoOutput: ReferenceToken, PaneConfiguration: PaneConfiguration): import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>; /** * Delete a pane configuration. A service must respond with an error if the pane configuration * is in use by the current layout. * This optional method is only supported by devices that signal support of dynamic pane creation via their capabilities. * */ DeletePaneConfiguration(VideoOutput: ReferenceToken, PaneToken: ReferenceToken): import("rxjs").Observable<import("typescript-monads").IResult<import("../soap/request").IResultStructure<any>, import("../config").ITransportPayoad>>; }