OPAL
Version 3.14.3
|
#include <h281handler.h>
Data Structures | |
struct | Capability |
Public Member Functions | |
OpalH281Client () | |
~OpalH281Client () | |
P_DECLARE_ENUM (VideoSourceIds, CurrentVideoSource, MainCameraId, AuxiliaryCameraId, DocumentCameraId, AuxiliaryDocumentCameraId, VideoPlaybackSourceId, UserDefinedSourceId1, UserDefinedSourceId2, UserDefinedSourceId3, UserDefinedSourceId4, UserDefinedSourceId5, UserDefinedSourceId6, UserDefinedSourceId7, UserDefinedSourceId8, UserDefinedSourceId9, UserDefinedSourceId10) | |
virtual BYTE | GetClientID () const |
virtual bool | HasExtraCapabilities () const |
virtual void | OnReceivedExtraCapabilities (const BYTE *capabilities, PINDEX size) |
virtual void | OnReceivedMessage (const H224_Frame &message) |
unsigned | GetLocalNumberOfPresets () const |
void | SetLocalNumberOfPresets (unsigned presets) |
unsigned | GetRemoteNumberOfPresets () const |
bool | Action (PVideoControlInfo::Types type, int direction, const PTimeInterval &duration) |
bool | SelectVideoSource (const PString &source, H281_Frame::VideoMode mode=H281_Frame::MotionVideo) |
void | StoreAsPreset (BYTE presetNumber) |
void | ActivatePreset (BYTE presetNumber) |
void | SendExtraCapabilities () const |
virtual void | OnRemoteCapabilitiesChanged () |
virtual void | OnStartAction (int directions[PVideoControlInfo::NumTypes])=0 |
virtual void | OnStopAction ()=0 |
virtual void | OnSelectVideoSource (const PString &source, H281_Frame::VideoMode videoMode) |
virtual void | OnStoreAsPreset (BYTE presetNumber) |
virtual void | OnActivatePreset (BYTE presetNumber) |
void | SetCapabilityChangedNotifier (const PNotifier ¬ifier) |
void | SetOnActionNotifier (const PNotifier ¬ifier) |
void | SetLocalCapability (VideoSourceIds sourceId, const Capability &capability) |
const Capability & | GetRemoteCapability (VideoSourceIds sourceId) const |
![]() | |
OpalH224Client () | |
~OpalH224Client () | |
virtual BYTE | GetExtendedClientID () const |
virtual BYTE | GetCountryCode () const |
virtual BYTE | GetCountryCodeExtension () const |
virtual WORD | GetManufacturerCode () const |
virtual BYTE | GetManufacturerClientID () const |
virtual Comparison | Compare (const PObject &obj) |
void | SetH224Handler (OpalH224Handler *handler) |
void | SetRemoteClientAvailable (bool remoteClientAvailable, bool remoteClientHasExtraCapabilities) |
bool | GetRemoteClientAvailable () const |
bool | GetRemoteClientHasExtraCapabilities () const |
Static Public Member Functions | |
static const PConstString & | MainCamera () |
static const PConstString & | AuxiliaryCamera () |
static const PConstString & | DocumentCamera () |
static const PConstString & | AuxiliaryDocumentCamera () |
static const PConstString & | VideoPlayback () |
Protected Member Functions | |
PDECLARE_NOTIFIER (PTimer, OpalH281Client, ContinueAction) | |
PDECLARE_NOTIFIER (PTimer, OpalH281Client, StopAction) | |
PDECLARE_NOTIFIER (PTimer, OpalH281Client, ReceiveActionTimeout) | |
void | SendStopAction () |
Protected Attributes | |
PMutex | m_mutex |
PNotifier | m_capabilityChanged |
PNotifier | m_onAction |
VideoSourceIds | m_localSourceId |
Capability | m_localCapability [NumVideoSourceIds] |
unsigned | m_localNumberOfPresets |
PTimer | m_receiveTimer |
VideoSourceIds | m_remoteSourceId |
Capability | m_remoteCapability [NumVideoSourceIds] |
unsigned | m_remoteNumberOfPresets |
H281_Frame | m_transmitFrame |
PTimer | m_continueTimer |
PTimer | m_stopTimer |
![]() | |
bool | m_remoteClientAvailable |
bool | m_remoteClientHasExtraCapabilities |
OpalH224Handler * | m_h224Handler |
Additional Inherited Members | |
![]() | |
enum | { CMEClientID = 0x00, H281ClientID = 0x01, ExtendedClientID = 0x7e, NonStandardClientID = 0x7f } |
This class implements a default H.281 handler
OpalH281Client::OpalH281Client | ( | ) |
OpalH281Client::~OpalH281Client | ( | ) |
bool OpalH281Client::Action | ( | PVideoControlInfo::Types | type, |
int | direction, | ||
const PTimeInterval & | duration | ||
) |
Causes the H.281 handler to start the desired action if duration
os zero, then the action continues until an Action with direction
of zero is executed.
void OpalH281Client::ActivatePreset | ( | BYTE | presetNumber | ) |
Tells the remote side to activate the given preset
|
static |
|
static |
|
static |
|
inlinevirtual |
Overriding default OpalH224Client methods
Implements OpalH224Client.
References OpalH224Client::H281ClientID.
|
inline |
References m_localNumberOfPresets.
|
inline |
Get remote video source capability.
sourceId | From 1 to NumVideoSources |
References m_remoteCapability, and m_remoteSourceId.
|
inline |
References m_remoteNumberOfPresets.
|
inlinevirtual |
Return whether this client has extra capabilities. Default returns FALSE.
Reimplemented from OpalH224Client.
|
static |
|
virtual |
Indicates to activate the given preset number
|
virtual |
Process incoming frames. Overrides from OpalH224Client
Reimplemented from OpalH224Client.
|
virtual |
Called if a PDU for this client was received. Default does nothing.
Reimplemented from OpalH224Client.
|
virtual |
Called each time a remote endpoint sends its capability list
|
virtual |
Indicates to select the desired video source
|
pure virtual |
Indicates to start the action specified
Implemented in OpalFarEndCameraControl.
|
pure virtual |
Indicates to stop the action stared with OnStartAction()
Implemented in OpalFarEndCameraControl.
|
virtual |
Indicates to store the current camera settings as a preset
OpalH281Client::P_DECLARE_ENUM | ( | VideoSourceIds | , |
CurrentVideoSource | , | ||
MainCameraId | , | ||
AuxiliaryCameraId | , | ||
DocumentCameraId | , | ||
AuxiliaryDocumentCameraId | , | ||
VideoPlaybackSourceId | , | ||
UserDefinedSourceId1 | , | ||
UserDefinedSourceId2 | , | ||
UserDefinedSourceId3 | , | ||
UserDefinedSourceId4 | , | ||
UserDefinedSourceId5 | , | ||
UserDefinedSourceId6 | , | ||
UserDefinedSourceId7 | , | ||
UserDefinedSourceId8 | , | ||
UserDefinedSourceId9 | , | ||
UserDefinedSourceId10 | |||
) |
|
protected |
|
protected |
|
protected |
bool OpalH281Client::SelectVideoSource | ( | const PString & | source, |
H281_Frame::VideoMode | mode = H281_Frame::MotionVideo |
||
) |
Tells the remote side to select the desired video source using the mode specified. Does nothing if either video source or mode aren't available
|
virtual |
Causes the H.281 handler to send its capabilities. Capabilities include the number of available cameras, (default one) the camera abilities (default none) and the number of presets that can be stored (default zero)
Reimplemented from OpalH224Client.
|
protected |
void OpalH281Client::SetCapabilityChangedNotifier | ( | const PNotifier & | notifier | ) |
Set notifier for when remote camera capabilties change
|
inline |
Set local video source capability
sourceId | From 1 to NumVideoSources |
References m_localCapability, and m_localSourceId.
|
inline |
References m_localNumberOfPresets.
void OpalH281Client::SetOnActionNotifier | ( | const PNotifier & | notifier | ) |
Set notifier for when remote system sends action to local side. The notifier PINT_PTR parameter is actually a pointer to an array of integers, PVideoControlInfo::NumTypes long, with -1, 0 or 1 in them. A NULL pointer indicates that the action has stopped for all types.
void OpalH281Client::StoreAsPreset | ( | BYTE | presetNumber | ) |
Tells the remote side to store the current camera settings as a preset with the preset number given
|
static |
|
protected |
|
protected |
|
protected |
Referenced by SetLocalCapability().
|
protected |
Referenced by GetLocalNumberOfPresets(), and SetLocalNumberOfPresets().
|
protected |
Referenced by SetLocalCapability().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by GetRemoteCapability().
|
protected |
Referenced by GetRemoteNumberOfPresets().
|
protected |
Referenced by GetRemoteCapability().
|
protected |
|
protected |