ossrs-srs
- Description:
Experience high-efficiency video streaming with SRS/6.0. Stream seamlessly with essential features included. Transform your streaming experience now! Explore RTMP, HLS, HTTP-FLV, SRT, MPEG-DASH protocols, and more. Get started easily!
- Copyright:
- 2025 Eyevinn Technology AB
Methods
(async, static) createOssrsSrsInstance(context, body) → {OssrsSrs}
- Description:
Create a new Simple Realtime Server instance
Example
import { Context } from '@osaas/client-core';
import { createOssrsSrsInstance } from '@osaas/client-services';
const ctx = new Context();
const body: OssrsSrsConfig = { name: 'myinstance', ... };
const instance = await createOssrsSrsInstance(ctx, body);
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
body |
OssrsSrsConfig | Service instance configuration |
Returns:
- Service instance
- Type
- OssrsSrs
(async, static) getOssrsSrsInstance(context, name) → {OssrsSrs}
- Description:
Get a Simple Realtime Server instance
Example
import { Context } from '@osaas/client-core';
import { getOssrsSrsInstance } from '@osaas/client-services';
const ctx = new Context();
const instance = await getOssrsSrsInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the srs to be retrieved |
Returns:
- Service instance
- Type
- OssrsSrs
(async, static) removeOssrsSrsInstance(context, name)
- Description:
Remove a Simple Realtime Server instance
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the srs to be removed |