サイマルキャスト API

RequestSimulcastRid

x-sora-target:

Sora_20251210.RequestSimulcastRid

指定した視聴者が受信するストリームの rid をリクエストします。

キー

channel_id

string

receiver_connection_id

string

sender_connection_id (オプション)

string

rid

string (none | r0 | r1 | r2 | auto)

auto

boolean (オプション)

  • r1 までしか配信されていない場合、 r2 をリクエストすると r1 を受信し始めます

  • none をリクエストすると映像ストリームが配信されなくなります

  • autotrue を指定すると視聴側の環境に合わせた rid で映像ストリームが配信されます

$ http POST 127.0.0.1:3000/ \
    x-sora-target:Sora_20201005.RequestRtpStream \
    channel_id=sora \
    recv_connection_id=4EVK3MN5Z17GB62RE5TGD045ZM \
    send_connection_id=EKNQ103WRD4ZZ74B6TKRM9YK78 \
    rid=r1 \
    -vvv
POST / HTTP/1.1
Accept: application/json, */*;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 139
Content-Type: application/json
Host: 127.0.0.1:3000
User-Agent: HTTPie/2.2.0
x-sora-target: Sora_20251210.RequestSimulcastRid

{
    "channel_id": "sora",
    "receiver_connection_id": "4EVK3MN5Z17GB62RE5TGD045ZM",
    "rid": "r1",
    "sender_connection_id": "EKNQ103WRD4ZZ74B6TKRM9YK78"
}

HTTP/1.1 200 OK
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, x-sora-target
access-control-allow-methods: POST, OPTIONS
access-control-allow-origin: http://127.0.0.1:5000
access-control-max-age: 1000
content-length: 132
content-type: application/json
date: Wed, 25 Nov 2020 09:31:11 GMT
server: Cowboy

{
    "channel_id": "sora",
    "receiver_connection_id": "4EVK3MN5Z17GB62RE5TGD045ZM",
    "rid": "r1",
    "sender_connection_id": "EKNQ103WRD4ZZ74B6TKRM9YK78"
}
© Copyright 2025, Shiguredo Inc Created using Sphinx 8.2.3