Skip to content

Commit f568e19

Browse files
MediaStreamRecordingのRecord APIの仕様修正
# 修正内容 * 記録開始時点(record)でURIが利用できるケース⇒recordのレスポンスにURIを記載(オプション※) * 記録終了時点(stop)ののレスポンスにURIを記載(必須) * onRecordingChangeでの状態管理でURIをイベント通知、APIに依らない記録終了動作がある場合はこちらを利用
1 parent 8f06539 commit f568e19

1 file changed

Lines changed: 28 additions & 6 deletions

File tree

api/mediaStreamRecording.json

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@
301301
"200": {
302302
"description": "",
303303
"schema": {
304-
"$ref": "#/definitions/RecorderControlResponse"
304+
"$ref": "#/definitions/RecorderStopResponse"
305305
},
306306
"examples": {
307307
"application/json": {
@@ -1151,10 +1151,6 @@
11511151
},
11521152
{
11531153
"type": "object",
1154-
"required": [
1155-
"uri",
1156-
"path"
1157-
],
11581154
"properties": {
11591155
"uri": {
11601156
"type": "string",
@@ -1410,10 +1406,15 @@
14101406
"description": "レコーディングの状態を識別する文字列。",
14111407
"enum": ["recording", "stop", "pause", "resume", "mutetrack", "unmutetrack", "error", "warning"]
14121408
},
1409+
"uri": {
1410+
"type": "string",
1411+
"title": "URI",
1412+
"description": "動画または音声のURI。"
1413+
},
14131414
"path": {
14141415
"type": "string",
14151416
"title": "ファイルパス",
1416-
"description": "ファイルが存在するパス。ルートはデバイスプラグインごとに違う。File APIで使用可能。"
1417+
"description": "ファイルが存在するパス。ルートはデバイスプラグインごとに違う。"
14171418
},
14181419
"mimeType": {
14191420
"type": "string",
@@ -1429,6 +1430,27 @@
14291430
}
14301431
}
14311432
},
1433+
"RecorderStopResponse": {
1434+
"type": "object",
1435+
"allOf": [
1436+
{
1437+
"$ref": "#/definitions/CommonResponse"
1438+
},
1439+
{
1440+
"type": "object",
1441+
"required": [
1442+
"uri"
1443+
],
1444+
"properties": {
1445+
"uri": {
1446+
"type": "string",
1447+
"title": "URI",
1448+
"description": "動画または音声のURI。"
1449+
}
1450+
}
1451+
}
1452+
]
1453+
},
14321454
"RecorderControlResponse": {
14331455
"type": "object",
14341456
"allOf": [

0 commit comments

Comments
 (0)