Add features from obs-websocket v5.1

pull/31/head
Dominik Nakamura 1 year ago
parent 6d33c86f0f
commit dc41351b7d
No known key found for this signature in database

@ -10,6 +10,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
<!-- next-header -->
## [Unreleased] - ReleaseDate
## Added
- New features from obs-websocket v5.1.0
- New `ScreenshotSaved` event, that is triggered by hotkeys in the OBS UI.
- New variants for the `OutputState` enum, that signal reconnecting and reconnected states.
## Changed
- Update all dependencies to their lates version, most notably `base64` and `tokio-tungstenite`.
## [0.10.0] - 2022-11-14
### Changed

@ -226,7 +226,7 @@ pub enum Event {
/// Name of the input.
#[serde(rename = "inputName")]
name: String,
/// New volume level in `multimap`.
/// New volume level multiplier.
#[serde(rename = "inputVolumeMul")]
mul: f64,
/// New volume level in `dB`.
@ -533,6 +533,15 @@ pub enum Event {
#[serde(rename = "studioModeEnabled")]
enabled: bool,
},
/// A screenshot has been saved.
///
/// **Note**: Triggered for the screenshot feature available in `Settings -> Hotkeys ->
/// Screenshot Output` ONLY.
ScreenshotSaved {
/// Path of the saved image file.
#[serde(rename = "savedScreenshotPath")]
path: String,
},
// --------------------------------
// Custom
// --------------------------------
@ -572,6 +581,12 @@ pub enum OutputState {
/// Output stopped successfully.
#[serde(rename = "OBS_WEBSOCKET_OUTPUT_STOPPED")]
Stopped,
/// Output disconnected and is reconnecting.
#[serde(rename = "OBS_WEBSOCKET_OUTPUT_RECONNECTING")]
Reconnecting,
/// Output reconnected successfully.
#[serde(rename = "OBS_WEBSOCKET_OUTPUT_RECONNECTED")]
Reconnected,
/// Current output paused.
#[serde(rename = "OBS_WEBSOCKET_OUTPUT_PAUSED")]
Paused,

Loading…
Cancel
Save