Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Video Recording Controls to Admin App #253

Open
jfgilliam opened this issue May 22, 2021 · 0 comments
Open

Add Video Recording Controls to Admin App #253

jfgilliam opened this issue May 22, 2021 · 0 comments

Comments

@jfgilliam
Copy link
Contributor

From David Tucker on 5/21.

I put in code for next season to let you start/stop video capture and trigger a screen shot from the broadcast message interface. Combining this with the replay and camera calls and you should be able to make some sort of a stop motion tool, or automate the overlay of two clips onto each other.

I also added in two new telemetry values so you can see if the video capture system is on, and if it is capturing video or not.

"VidCapEnabled", irsdk_bool, "True if video capture system is enabled", "", IRSDK_LOG_LIVE
"VidCapActive", irsdk_bool, "True if video currently being captured", "", IRSDK_LOG_LIVE

I'll put up a new SDK later today, but here are the new defines until then.

enum irsdk_BroadcastMsg
{
irsdk_BroadcastCamSwitchPos = 0, // car position, group, camera
irsdk_BroadcastCamSwitchNum, // driver #, group, camera
irsdk_BroadcastCamSetState, // irsdk_CameraState, unused, unused
irsdk_BroadcastReplaySetPlaySpeed, // speed, slowMotion, unused
irskd_BroadcastReplaySetPlayPosition, // irsdk_RpyPosMode, Frame Number (high, low)
irsdk_BroadcastReplaySearch, // irsdk_RpySrchMode, unused, unused
irsdk_BroadcastReplaySetState, // irsdk_RpyStateMode, unused, unused
irsdk_BroadcastReloadTextures, // irsdk_ReloadTexturesMode, carIdx, unused
irsdk_BroadcastChatComand, // irsdk_ChatCommandMode, subCommand, unused
irsdk_BroadcastPitCommand, // irsdk_PitCommandMode, parameter
irsdk_BroadcastTelemCommand, // irsdk_TelemCommandMode, unused, unused
irsdk_BroadcastFFBCommand, // irsdk_FFBCommandMode, value (float, high, low)
irsdk_BroadcastReplaySearchSessionTime, // sessionNum, sessionTimeMS (high, low)
irsdk_BroadcastVideoCapture, // irsdk_VideoCaptureMode, unused, unused
irsdk_BroadcastLast // unused placeholder
};

enum irsdk_VideoCaptureMode
{
irsdk_VideoCapture_TriggerScreenShot = 0, // save a screenshot to disk
irsdk_VideoCaptuer_StartVideoCapture, // start capturing video
irsdk_VideoCaptuer_EndVideoCapture, // stop capturing video
irsdk_VideoCaptuer_ToggleVideoCapture, // toggle video capture on/off
irsdk_VideoCaptuer_ShowVideoTimer, // show video timer in upper left corner of display
irsdk_VideoCaptuer_HideVideoTimer, // hide video timer
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant