mirror of
https://github.com/onyx-and-iris/gobs-cli.git
synced 2025-06-30 07:20:30 +01:00
check if output is paused before attempting record split/chapter.
add note to changelog about supported file format for record chapter.
This commit is contained in:
parent
10d50df445
commit
f01fd0ca84
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Added
|
||||
|
||||
- record split and record chapter commands, see [RecordCmd](https://github.com/onyx-and-iris/gobs-cli?tab=readme-ov-file#recordcmd)
|
||||
- As of OBS 30.2.0, the only file format supporting *record chapter* is Hybrid MP4.
|
||||
|
||||
# [0.12.1] - 2025-06-21
|
||||
|
||||
|
@ -204,6 +204,9 @@ func (cmd *RecordSplitCmd) Run(ctx *context) error {
|
||||
if !status.OutputActive {
|
||||
return fmt.Errorf("recording is not in progress")
|
||||
}
|
||||
if status.OutputPaused {
|
||||
return fmt.Errorf("recording is paused, cannot split")
|
||||
}
|
||||
|
||||
_, err = ctx.Client.Record.SplitRecordFile()
|
||||
if err != nil {
|
||||
@ -229,6 +232,9 @@ func (cmd *RecordChapterCmd) Run(ctx *context) error {
|
||||
if !status.OutputActive {
|
||||
return fmt.Errorf("recording is not in progress")
|
||||
}
|
||||
if status.OutputPaused {
|
||||
return fmt.Errorf("recording is paused, cannot create chapter")
|
||||
}
|
||||
|
||||
var params *record.CreateRecordChapterParams
|
||||
if cmd.ChapterName == "" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user