26class DtChannelManager;
99 virtual void tick(
double dt)
override;
107 virtual const char*
type()
const override;
132 virtual void selectVideoSource(
const std::string& guiText,
const std::string& window,
const std::string& channel);
170 virtual bool channelExists(
const std::string& windowName,
const std::string& channelName);
Provides handle classes for safe access to attributes.
std::string myStreamOutputFilenameOverride
Optional override for the stream output filename.
Definition streamingVideoUpdater.h:200
virtual void slot_channelAdded(makVrv::DtChannelManager *mgr, makVrv::DtChannel *channel)
Slot called when a channel is added to the system.
virtual void toggleVideoStream()
Toggles the video stream on or off.
virtual void selectVideoSource(const std::string &guiText, const std::string &window, const std::string &channel)
Selects a new video source for streaming.
makVre::DtAttributeHandleType< bool > myVideoStreamAttr
Handle for the video stream enabled state attribute.
Definition streamingVideoUpdater.h:207
virtual makVre::DtVreMessageResult handleScreenCapture(makVre::DtVreMessage *msg)
Handles screen capture messages.
makVre::DtAttributeHandleType< bool > myStreamSourceExistsAttr
Handle for stream source availability state.
Definition streamingVideoUpdater.h:216
std::string myReadBuffer
Buffer type to read for streaming (back, front, back_hardware, front_hardware)
Definition streamingVideoUpdater.h:192
virtual void tick(double dt) override
Called every frame to update the streaming state.
virtual makVre::DtVreMessageResult handleSelectVideoStreamChannel(makVre::DtVreMessage *msg)
Handles video source selection messages.
bool myRetryAutoStart
Flag indicating to retry auto-starting the stream on the next tick.
Definition streamingVideoUpdater.h:203
makVre::DtAttributeHandleType< std::string > myVideoStreamWindowAttr
Handle for the active video stream window attribute.
Definition streamingVideoUpdater.h:210
virtual bool channelExists(const std::string &windowName, const std::string &channelName)
Checks if a specified channel exists.
virtual void shutdown() override
Shuts down the streaming video updater component.
virtual void stopVideoStream()
Stops the active video stream.
DtStreamingVideoUpdater()
Constructor for DtStreamingVideoUpdater.
virtual void startVideoStream()
Starts the configured video stream.
virtual void updateStreamFilename(makVrv::DtVideoStream *stream)
Updates the output filename for a video stream.
makVre::DtAttributeHandleType< std::string > myVideoStreamChannelAttr
Handle for the active video stream channel attribute.
Definition streamingVideoUpdater.h:213
std::string myStreamName
Name of the video stream configuration to use.
Definition streamingVideoUpdater.h:187
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the streaming video updater component.
virtual makVre::DtVreMessageResult handleToggleVideoStream(makVre::DtVreMessage *msg)
Handles toggle video stream messages.
bool myAutoStartStream
Flag indicating whether to automatically start streaming when the channel appears.
Definition streamingVideoUpdater.h:195
virtual ~DtStreamingVideoUpdater() override
Virtual destructor for DtStreamingVideoUpdater.
virtual void slot_channelToBeRemoved(makVrv::DtChannelManager *mgr, makVrv::DtChannel *channel)
Slot called when a channel is about to be removed.
virtual const char * type() const override
Returns the type identifier for this component.
Type-specific handle class for attributes.
Definition attributeHandle.h:229
Table-based access to Lua state for configuration data.
Definition initializer.h:38
Base class for all role components in VR-Engage.
Definition playerComponent.h:102
virtual DtPlayerStation & player()
Gets the player station.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
constexpr const char * streamName
Definition streamingVideoUpdater.h:53
constexpr const char * defaultStreamChannel
Definition streamingVideoUpdater.h:41
constexpr const char * readBuffer
Definition streamingVideoUpdater.h:50
constexpr const char * defaultStreamLabel
Definition streamingVideoUpdater.h:44
constexpr const char * streamOutputFilenameOverride
Definition streamingVideoUpdater.h:56
constexpr const char * defaultStreamWindow
Definition streamingVideoUpdater.h:47
constexpr const char * videoStreamAutoStart
Definition streamingVideoUpdater.h:59
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition streamingVideoUpdater.h:33
!
Definition glsVreMessageUtil.h:50
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Definition appLauncherComponent.h:28
Defines the DtPlayerComponent base class for VR-Engage role components.
constexpr const char * DtStreamingVideoUpdaterType
Type identifier for DtStreamingVideoUpdater component.
Definition streamingVideoUpdater.h:66
Defines the base class for all VREngage messages.