Skip to content

Commit 9c35b62

Browse files
Merge pull request #16 from TakayukiHoshi1984/modify_mediastreamrecording_preview_mute
Previewに音声ミュート機能を追加
2 parents 987d555 + 7ac3f91 commit 9c35b62

File tree

2 files changed

+147
-0
lines changed

2 files changed

+147
-0
lines changed

api/mediaStreamRecording.json

+76
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,82 @@
883883
}
884884
}
885885
},
886+
"/preview/mute": {
887+
"put": {
888+
"operationId": "mediaStreamRecordingPreviewMutePut",
889+
"x-type": "one-shot",
890+
"summary": "音声が付加されているPreview映像に対し、 その映像の音声をミュート状態にするリクエストを送る。",
891+
"description": "例えば、Preview映像がRTSPの場合に、このAPIにより音声をミュート状態にする。",
892+
"parameters": [
893+
{
894+
"name": "serviceId",
895+
"description": "サービスID。取得対象スマートデバイス",
896+
"in": "formData",
897+
"required": true,
898+
"type": "string"
899+
},
900+
{
901+
"name": "target",
902+
"description": "ターゲット。レコーダーを識別するID。<br> 省略された場合にはデフォルトのレコーダーを使用する。<br> デバイスが音声・動画の両方のレコーダーをサポートする場合、 どちらのレコーダーが使用されるかどうかはデバイスプラグイン依存とする。",
903+
"in": "formData",
904+
"required": false,
905+
"type": "string"
906+
}
907+
],
908+
"responses": {
909+
"200": {
910+
"description": "Previewの音声をミュート状態にするリクエストを送った結果を返す。 ミュートリクエストの送信に失敗した場合はエラーを返す。",
911+
"schema": {
912+
"$ref": "#/definitions/RecorderControlResponse"
913+
},
914+
"examples": {
915+
"application/json": {
916+
"result": 0,
917+
"product": "Example System",
918+
"version": "1.0.0"
919+
}
920+
}
921+
}
922+
}
923+
},
924+
"delete": {
925+
"operationId": "mediaStreamRecordingPreviewMuteDelete",
926+
"x-type": "one-shot",
927+
"summary": "音声が付加されているPreview映像に対し、 その映像の音声のミュート状態を解除するリクエストを送る。",
928+
"description": "例えば、Preview映像がRTSPの場合に、このAPIにより音声のミュート状態を解除する。",
929+
"parameters": [
930+
{
931+
"name": "serviceId",
932+
"description": "サービスID。取得対象スマートデバイス",
933+
"in": "formData",
934+
"required": true,
935+
"type": "string"
936+
},
937+
{
938+
"name": "target",
939+
"description": "ターゲット。レコーダーを識別するID。<br> 省略された場合にはデフォルトのレコーダーを使用する。<br> デバイスが音声・動画の両方のレコーダーをサポートする場合、 どちらのレコーダーが使用されるかどうかはデバイスプラグイン依存とする。",
940+
"in": "formData",
941+
"required": false,
942+
"type": "string"
943+
}
944+
],
945+
"responses": {
946+
"200": {
947+
"description": "Previewの音声のミュート状態を解除するリクエストを送った結果を返す。 ミュート解除リクエストの送信に失敗した場合はエラーを返す。",
948+
"schema": {
949+
"$ref": "#/definitions/RecorderControlResponse"
950+
},
951+
"examples": {
952+
"application/json": {
953+
"result": 0,
954+
"product": "Example System",
955+
"version": "1.0.0"
956+
}
957+
}
958+
}
959+
}
960+
}
961+
},
886962
"/onRecordingChange": {
887963
"get": {
888964
"operationId": "mediaStreamRecordingOnRecordingChangeGet",

yaml/mediaStreamRecording.yaml

+71
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,77 @@ paths:
727727
result: 0
728728
product: Example System
729729
version: 1.0.0
730+
/preview/mute:
731+
put:
732+
operationId: mediaStreamRecordingPreviewMutePut
733+
x-type: one-shot
734+
summary: >-
735+
音声が付加されているPreview映像に対し、
736+
その映像の音声をミュート状態にするリクエストを送る。
737+
description: >-
738+
例えば、Preview映像がRTSPの場合に、このAPIにより音声をミュート状態にする。
739+
parameters:
740+
- name: serviceId
741+
description: サービスID。取得対象スマートデバイス
742+
in: formData
743+
required: true
744+
type: string
745+
- name: target
746+
description: >-
747+
ターゲット。レコーダーを識別するID。<br>
748+
省略された場合にはデフォルトのレコーダーを使用する。<br>
749+
デバイスが音声・動画の両方のレコーダーをサポートする場合、
750+
どちらのレコーダーが使用されるかどうかはデバイスプラグイン依存とする。
751+
in: formData
752+
required: false
753+
type: string
754+
responses:
755+
'200':
756+
description: >-
757+
Previewの音声をミュート状態にするリクエストを送った結果を返す。
758+
ミュートリクエストの送信に失敗した場合はエラーを返す。
759+
schema:
760+
$ref: '#/definitions/RecorderControlResponse'
761+
examples:
762+
application/json:
763+
result: 0
764+
product: Example System
765+
version: 1.0.0
766+
delete:
767+
operationId: mediaStreamRecordingPreviewMuteDelete
768+
x-type: one-shot
769+
summary: >-
770+
音声が付加されているPreview映像に対し、
771+
その映像の音声のミュート状態を解除するリクエストを送る。
772+
description: >-
773+
例えば、Preview映像がRTSPの場合に、このAPIにより音声のミュート状態を解除する。
774+
parameters:
775+
- name: serviceId
776+
description: サービスID。取得対象スマートデバイス
777+
in: formData
778+
required: true
779+
type: string
780+
- name: target
781+
description: >-
782+
ターゲット。レコーダーを識別するID。<br>
783+
省略された場合にはデフォルトのレコーダーを使用する。<br>
784+
デバイスが音声・動画の両方のレコーダーをサポートする場合、
785+
どちらのレコーダーが使用されるかどうかはデバイスプラグイン依存とする。
786+
in: formData
787+
required: false
788+
type: string
789+
responses:
790+
'200':
791+
description: >-
792+
Previewの音声のミュート状態を解除するリクエストを送った結果を返す。
793+
ミュート解除リクエストの送信に失敗した場合はエラーを返す。
794+
schema:
795+
$ref: '#/definitions/RecorderControlResponse'
796+
examples:
797+
application/json:
798+
result: 0
799+
product: Example System
800+
version: 1.0.0
730801
/onRecordingChange:
731802
get:
732803
operationId: mediaStreamRecordingOnRecordingChangeGet

0 commit comments

Comments
 (0)