srs-stack icon indicating copy to clipboard operation
srs-stack copied to clipboard

NOETA: Support HTTP API to kickoff stream

Open winlinvip opened this issue 1 year ago • 3 comments

You can directly call SRS HTTP API, via SRS Stack:

curl -v -X DELETE https://test.com/api/v1/clients/id 

However, it can only operate based on ID. Meanwhile, SRS Stack enables operation according to stream names or room names.

For George

Support in v5.14.16, API: Support kickoff stream by name. v5.14.16

  • /terraform/v1/mgmt/streams/query Query the active streams.
  • /terraform/v1/mgmt/streams/kickoff Kickoff the stream by name.

winlinvip avatar Apr 18 '24 13:04 winlinvip

  • Now /terraform/v1/mgmt/streams/kickoff supports name query
  • But /terraform/v1/mgmt/streams/query does not support name query

The business side implements signaling by itself and needs to determine the existence of the stream by name

https://github.com/ossrs/oryx/blob/77e6ee8b549686640c5cc36a3e5691b470f86dbd/platform/service.go#L1562 https://github.com/ossrs/oryx/blob/77e6ee8b549686640c5cc36a3e5691b470f86dbd/platform/service.go#L1612

starriesWEB avatar Aug 15 '24 11:08 starriesWEB

Make sense. Need to support /query filter by names.

winlinvip avatar Aug 15 '24 22:08 winlinvip

Make sense. Need to support /query filter by names.

I submitted a PR. You can take a look if you have time. https://github.com/ossrs/oryx/pull/210

starriesWEB avatar Aug 16 '24 07:08 starriesWEB