mirror of
https://github.com/dfpc-coe/CloudTAK.git
synced 2025-12-22 05:37:16 +00:00
Add Share
This commit is contained in:
@@ -174,6 +174,10 @@ export default async function router(schema: Schema, config: Config) {
|
||||
default: false,
|
||||
description: 'Publish stream URL to TAK Server Video Manager'
|
||||
}),
|
||||
share: Type.Boolean({
|
||||
default: false,
|
||||
description: 'Allow other users to manage lease if they are also members of the channel'
|
||||
}),
|
||||
secure: Type.Boolean({
|
||||
default: false,
|
||||
description: 'Increase stream security by enforcing a seperate read and write username/password'
|
||||
@@ -216,6 +220,7 @@ export default async function router(schema: Schema, config: Config) {
|
||||
source_type: req.body.source_type,
|
||||
source_model: req.body.source_model,
|
||||
recording: req.body.recording,
|
||||
share: req.body.share,
|
||||
publish: req.body.publish,
|
||||
path: randomUUID(),
|
||||
secure: req.body.secure,
|
||||
@@ -252,6 +257,9 @@ export default async function router(schema: Schema, config: Config) {
|
||||
source_model: Type.Optional(Type.String()),
|
||||
channel: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
||||
secure: Type.Optional(Type.Boolean()),
|
||||
share: Type.Optional(Type.Boolean({
|
||||
description: 'Allow other users to manage lease if they are also members of the channel'
|
||||
})),
|
||||
secure_rotate: Type.Boolean({
|
||||
default: false,
|
||||
description: 'Rotate Read-User Credentials if using seperate read/write user - infers secure: true'
|
||||
@@ -312,6 +320,7 @@ export default async function router(schema: Schema, config: Config) {
|
||||
secure_rotate: req.body.secure_rotate,
|
||||
expiration,
|
||||
recording: req.body.recording,
|
||||
share: req.body.share,
|
||||
publish: req.body.publish,
|
||||
source_id: req.body.source_id,
|
||||
source_type: req.body.source_type,
|
||||
|
||||
@@ -427,6 +427,7 @@ export default async function router(schema: Schema, config: Config) {
|
||||
name: req.body.name,
|
||||
ephemeral: req.body.ephemeral,
|
||||
channel: req.body.channel,
|
||||
share: req.body.share,
|
||||
expiration: req.body.permanent ? null : moment().add(req.body.duration, 'seconds').toISOString(),
|
||||
source_id: req.body.source_id,
|
||||
source_type: req.body.source_type,
|
||||
|
||||
Reference in New Issue
Block a user