|
54 | 54 | </n-collapse-transition> |
55 | 55 |
|
56 | 56 | </div> |
57 | | - <div id="filename" class="setting-box"> |
58 | | - <n-h3>文件名</n-h3> |
59 | | - <optional-input style="max-width: 700px;" type="text" v-model:value="newConfig['optionalFileNameRecordTemplate']" |
60 | | - :same-as-default="false" /> |
61 | | - <n-button @click="toggleFileNamePreviewModal">预览</n-button> |
| 57 | + <div id="storage" class="setting-box"> |
| 58 | + <n-h3>文件写入</n-h3> |
| 59 | + <optional-input style="max-width: 700px;" label="文件名" type="text" |
| 60 | + v-model:value="newConfig['optionalFileNameRecordTemplate']" :same-as-default="false" /> |
| 61 | + <n-button @click="toggleFileNamePreviewModal">预览文件名</n-button> |
| 62 | + <optional-input type="boolean" label="保存直播封面" v-model:value="newConfig['optionalSaveStreamCover']" |
| 63 | + :same-as-default="true" /> |
| 64 | + <optional-input type="boolean" label="在flv中写入直播信息" v-model:value="newConfig['optionalFlvWriteMetadata']" |
| 65 | + :same-as-default="true" /> |
62 | 66 | </div> |
63 | 67 | <div id="record-quality" class="setting-box"> |
64 | 68 | <n-h3>录制画质</n-h3> |
65 | 69 | <optional-input style="max-width: 700px;" type="text" v-model:value="newConfig['optionalRecordingQuality']" |
66 | 70 | :same-as-default="false" /> |
67 | 71 | </div> |
68 | | - <div id="stream-cover" class="setting-box"> |
69 | | - <optional-input type="boolean" label="保存直播封面" v-model:value="newConfig['optionalSaveStreamCover']" |
70 | | - :same-as-default="true" /> |
71 | | - </div> |
72 | 72 | <div id="webhook" class="setting-box"> |
73 | 73 | <n-h3>Webhook</n-h3> |
74 | 74 | <p> |
|
133 | 133 | <n-anchor-link title="弹幕录制" href="#danmaku-record" @click="(e) => { e.preventDefault() }" /> |
134 | 134 | <n-anchor-link title="录制模式" href="#record-mode" @click="(e) => { e.preventDefault() }" /> |
135 | 135 | <n-anchor-link title="自动分段" href="#auto-split" @click="(e) => { e.preventDefault() }" /> |
136 | | - <n-anchor-link title="文件名" href="#filename" @click="(e) => { e.preventDefault() }" /> |
| 136 | + <n-anchor-link title="文件写入" href="#storage" @click="(e) => { e.preventDefault() }" /> |
137 | 137 | <n-anchor-link title="录制画质" href="#record-quality" @click="(e) => { e.preventDefault() }" /> |
138 | | - <n-anchor-link title="保存封面" href="#stream-cover" @click="(e) => { e.preventDefault() }" /> |
139 | 138 | <n-anchor-link title="Webhook" href="#webhook" @click="(e) => { e.preventDefault() }" /> |
140 | 139 | <n-anchor-link v-if="showAdvanced" title="请求的 API Host" href="#live-api-host" |
141 | 140 | @click="(e) => { e.preventDefault() }" /> |
@@ -269,6 +268,7 @@ const newConfig = ref<{ [key: string]: ConfigItem }>({ |
269 | 268 | 'optionalNetworkTransportAllowedAddressFamily': getEmptyConfigItem(defaultConfig.value.networkTransportAllowedAddressFamily), |
270 | 269 | 'optionalUserScript': getEmptyConfigItem(defaultConfig.value.userScript), |
271 | 270 | 'optionalSaveStreamCover': getEmptyConfigItem(defaultConfig.value.saveStreamCover), |
| 271 | + 'optionalFlvWriteMetadata': getEmptyConfigItem(defaultConfig.value.flvWriteMetadata), |
272 | 272 | }); |
273 | 273 |
|
274 | 274 | let lastload: string | undefined = ''; |
|
0 commit comments