@streamfarm/sdk 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/cjs/generated/openapi.d.ts +89 -1
- package/dist/cjs/types.d.ts +4 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/generated/openapi.d.ts +89 -1
- package/dist/esm/types.d.ts +4 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Версии — по [SemVer](https://semver.org/lang/ru/), свои у библиотеки, не связаны с версиями StreamFarm.
|
|
4
4
|
|
|
5
|
+
## 1.3.0 — 2026-12-04
|
|
6
|
+
|
|
7
|
+
- У трансляции поле `input`: что передаёт энкодер во время эфира — кодек, размер и частота кадров, битрейт видео,
|
|
8
|
+
интервал ключевых кадров (`input.video.keyframeIntervalSec`), кодек и битрейт звука; `null` — эфира нет или
|
|
9
|
+
сервер ещё не прислал отчёт. Трансляция без перекодирования уходит на площадки как есть, так по нему можно
|
|
10
|
+
проверить настройки энкодера: H.264 и AAC, ключевой кадр раз в 2 с. Типы `StreamInput`, `StreamInputVideo`,
|
|
11
|
+
`StreamInputAudio`.
|
|
12
|
+
|
|
13
|
+
## 1.2.0 — 2026-12-03
|
|
14
|
+
|
|
15
|
+
- У подключения соцсети поле `tokenExpiredSince`: с этого времени соцсеть не продлевает токен доступа (её сервер
|
|
16
|
+
не отвечал или отвечал ошибкой), и StreamFarm не может к ней обращаться; `null` — токен действует.
|
|
17
|
+
|
|
5
18
|
## 1.1.0 — 2026-12-03
|
|
6
19
|
|
|
7
20
|
- У трансляции поле `blocked`: администрация StreamFarm заблокировала её, эфир не начнётся.
|
|
@@ -820,6 +820,11 @@ export interface components {
|
|
|
820
820
|
avatar: string | null;
|
|
821
821
|
/** @description Для OK, Twitch и GoodGame: сохранены сервер и ключ. */
|
|
822
822
|
streamKeySaved: boolean;
|
|
823
|
+
/**
|
|
824
|
+
* Format: date-time
|
|
825
|
+
* @description С этого времени соцсеть не продлевает токен доступа подключения (её сервер не отвечал или отвечал ошибкой): StreamFarm не может к ней обращаться — например, создать трансляцию. Токены сохраняются, и обычно следующее продление проходит; если нет — подключите соцсеть в кабинете заново. `null` — токен действует. Появляется, когда токен просрочен больше чем на 30 минут.
|
|
826
|
+
*/
|
|
827
|
+
tokenExpiredSince: string | null;
|
|
823
828
|
};
|
|
824
829
|
Stream: {
|
|
825
830
|
/** Format: uuid */
|
|
@@ -958,6 +963,31 @@ export interface components {
|
|
|
958
963
|
/** @description Скорость обработки относительно реального времени (1 — успевает). */
|
|
959
964
|
speed: number;
|
|
960
965
|
};
|
|
966
|
+
/** @description Что передаёт энкодер, по отчёту сервера во время эфира. Трансляция без перекодирования уходит на площадки и в плеер как есть, так по этим полям можно проверить настройки энкодера: H.264 и AAC, ключевой кадр раз в 2 с, до 1080p и 60 к/с. `null` — энкодер выключен или сервер ещё не прислал отчёт (первые секунды эфира). */
|
|
967
|
+
input: {
|
|
968
|
+
/** @description Видео; `null` — энкодер не передаёт видео. */
|
|
969
|
+
video: {
|
|
970
|
+
/** @description Кодек: `h264` — площадки принимают только его; `hevc`, `av1`, `vp9`… уходят на площадки только с перекодированием. */
|
|
971
|
+
codec: string;
|
|
972
|
+
/** @description Ширина кадра, пикселей. */
|
|
973
|
+
width: number;
|
|
974
|
+
/** @description Высота кадра, пикселей. */
|
|
975
|
+
height: number;
|
|
976
|
+
/** @description Кадров в секунду. */
|
|
977
|
+
fps: number;
|
|
978
|
+
/** @description Битрейт видео, кбит/с. */
|
|
979
|
+
bitrateKbps: number;
|
|
980
|
+
/** @description Сколько секунд между ключевыми кадрами: оценка по счётчикам кадров с начала эфира, точность — полинтервала. Площадки ждут ключевой кадр раз в 2 с; у трансляции без перекодирования (`transcoding: false`) при интервале больше 2,5 с эфир на площадке может запускаться с ошибкой, зрители дольше ждут картинку, а после сбоя она дольше стоит. В OBS — «Интервал ключевых кадров» 2 (у «авто» — 250 кадров, 8 с при 30 к/с). Перекодированный поток получает свой ключевой кадр раз в 2 с, эфир из браузера — тоже. `null` — первые секунды эфира. */
|
|
981
|
+
keyframeIntervalSec: number | null;
|
|
982
|
+
} | null;
|
|
983
|
+
/** @description Звук; `null` — звук не приходит: энкодер его не передаёт или передаёт по RTMP в кодеке, который сервер отбрасывает (MP3, Opus). */
|
|
984
|
+
audio: {
|
|
985
|
+
/** @description Кодек: `aac` — площадки и плеер принимают только его. */
|
|
986
|
+
codec: string;
|
|
987
|
+
/** @description Битрейт звука, кбит/с. */
|
|
988
|
+
bitrateKbps: number;
|
|
989
|
+
} | null;
|
|
990
|
+
} | null;
|
|
961
991
|
/** @description Страница плеера StreamFarm. */
|
|
962
992
|
playerUrl: string;
|
|
963
993
|
/** @description Плеер без страницы вокруг: видео на весь фрейм, для `<iframe>` на вашем сайте. В эфире и на заставке ведёт себя так же, как страница плеера. */
|
|
@@ -1859,7 +1889,8 @@ export interface operations {
|
|
|
1859
1889
|
* "connected": true,
|
|
1860
1890
|
* "name": "streamer",
|
|
1861
1891
|
* "avatar": null,
|
|
1862
|
-
* "streamKeySaved": true
|
|
1892
|
+
* "streamKeySaved": true,
|
|
1893
|
+
* "tokenExpiredSince": null
|
|
1863
1894
|
* }
|
|
1864
1895
|
* ]
|
|
1865
1896
|
* }
|
|
@@ -1942,6 +1973,20 @@ export interface operations {
|
|
|
1942
1973
|
* "totalViewers": 51,
|
|
1943
1974
|
* "speed": 1
|
|
1944
1975
|
* },
|
|
1976
|
+
* "input": {
|
|
1977
|
+
* "video": {
|
|
1978
|
+
* "codec": "h264",
|
|
1979
|
+
* "width": 1280,
|
|
1980
|
+
* "height": 720,
|
|
1981
|
+
* "fps": 30,
|
|
1982
|
+
* "bitrateKbps": 2852.5,
|
|
1983
|
+
* "keyframeIntervalSec": 2
|
|
1984
|
+
* },
|
|
1985
|
+
* "audio": {
|
|
1986
|
+
* "codec": "aac",
|
|
1987
|
+
* "bitrateKbps": 160
|
|
1988
|
+
* }
|
|
1989
|
+
* },
|
|
1945
1990
|
* "playerUrl": "https://player.streamfarm.ru/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
1946
1991
|
* "embedUrl": "https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
1947
1992
|
* "embedCode": "<iframe src=\"https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21\" width=\"640\" height=\"360\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen frameborder=\"0\"></iframe>",
|
|
@@ -2060,6 +2105,7 @@ export interface operations {
|
|
|
2060
2105
|
* "totalViewers": 0,
|
|
2061
2106
|
* "speed": 0
|
|
2062
2107
|
* },
|
|
2108
|
+
* "input": null,
|
|
2063
2109
|
* "playerUrl": "https://player.streamfarm.ru/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2064
2110
|
* "embedUrl": "https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2065
2111
|
* "embedCode": "<iframe src=\"https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21\" width=\"640\" height=\"360\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen frameborder=\"0\"></iframe>",
|
|
@@ -2142,6 +2188,20 @@ export interface operations {
|
|
|
2142
2188
|
* "totalViewers": 51,
|
|
2143
2189
|
* "speed": 1
|
|
2144
2190
|
* },
|
|
2191
|
+
* "input": {
|
|
2192
|
+
* "video": {
|
|
2193
|
+
* "codec": "h264",
|
|
2194
|
+
* "width": 1280,
|
|
2195
|
+
* "height": 720,
|
|
2196
|
+
* "fps": 30,
|
|
2197
|
+
* "bitrateKbps": 2852.5,
|
|
2198
|
+
* "keyframeIntervalSec": 2
|
|
2199
|
+
* },
|
|
2200
|
+
* "audio": {
|
|
2201
|
+
* "codec": "aac",
|
|
2202
|
+
* "bitrateKbps": 160
|
|
2203
|
+
* }
|
|
2204
|
+
* },
|
|
2145
2205
|
* "playerUrl": "https://player.streamfarm.ru/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2146
2206
|
* "embedUrl": "https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2147
2207
|
* "embedCode": "<iframe src=\"https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21\" width=\"640\" height=\"360\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen frameborder=\"0\"></iframe>",
|
|
@@ -2275,6 +2335,20 @@ export interface operations {
|
|
|
2275
2335
|
* "totalViewers": 51,
|
|
2276
2336
|
* "speed": 1
|
|
2277
2337
|
* },
|
|
2338
|
+
* "input": {
|
|
2339
|
+
* "video": {
|
|
2340
|
+
* "codec": "h264",
|
|
2341
|
+
* "width": 1280,
|
|
2342
|
+
* "height": 720,
|
|
2343
|
+
* "fps": 30,
|
|
2344
|
+
* "bitrateKbps": 2852.5,
|
|
2345
|
+
* "keyframeIntervalSec": 2
|
|
2346
|
+
* },
|
|
2347
|
+
* "audio": {
|
|
2348
|
+
* "codec": "aac",
|
|
2349
|
+
* "bitrateKbps": 160
|
|
2350
|
+
* }
|
|
2351
|
+
* },
|
|
2278
2352
|
* "playerUrl": "https://player.streamfarm.ru/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2279
2353
|
* "embedUrl": "https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2280
2354
|
* "embedCode": "<iframe src=\"https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21\" width=\"640\" height=\"360\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen frameborder=\"0\"></iframe>",
|
|
@@ -2357,6 +2431,20 @@ export interface operations {
|
|
|
2357
2431
|
* "totalViewers": 51,
|
|
2358
2432
|
* "speed": 1
|
|
2359
2433
|
* },
|
|
2434
|
+
* "input": {
|
|
2435
|
+
* "video": {
|
|
2436
|
+
* "codec": "h264",
|
|
2437
|
+
* "width": 1280,
|
|
2438
|
+
* "height": 720,
|
|
2439
|
+
* "fps": 30,
|
|
2440
|
+
* "bitrateKbps": 2852.5,
|
|
2441
|
+
* "keyframeIntervalSec": 2
|
|
2442
|
+
* },
|
|
2443
|
+
* "audio": {
|
|
2444
|
+
* "codec": "aac",
|
|
2445
|
+
* "bitrateKbps": 160
|
|
2446
|
+
* }
|
|
2447
|
+
* },
|
|
2360
2448
|
* "playerUrl": "https://player.streamfarm.ru/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2361
2449
|
* "embedUrl": "https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2362
2450
|
* "embedCode": "<iframe src=\"https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21\" width=\"640\" height=\"360\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen frameborder=\"0\"></iframe>",
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ export type Connection = Schemas['Connection'];
|
|
|
16
16
|
export type Stream = Schemas['Stream'];
|
|
17
17
|
export type StreamSession = Stream['session'];
|
|
18
18
|
export type StreamStats = Stream['stats'];
|
|
19
|
+
/** What the encoder publishes while live: codecs, frame size and rate, bitrates, the keyframe interval. */
|
|
20
|
+
export type StreamInput = NonNullable<Stream['input']>;
|
|
21
|
+
export type StreamInputVideo = NonNullable<StreamInput['video']>;
|
|
22
|
+
export type StreamInputAudio = NonNullable<StreamInput['audio']>;
|
|
19
23
|
/** What an encoder publishes with: RTMP, and WHIP where the region takes it. */
|
|
20
24
|
export type Credentials = Schemas['Credentials'];
|
|
21
25
|
export type Platform = Schemas['Platform'];
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The SDK's version: sent in the User-Agent. test/resources.test.ts keeps it equal to package.json's. */
|
|
2
|
-
export declare const VERSION = "1.
|
|
2
|
+
export declare const VERSION = "1.3.0";
|
package/dist/cjs/version.js
CHANGED
|
@@ -820,6 +820,11 @@ export interface components {
|
|
|
820
820
|
avatar: string | null;
|
|
821
821
|
/** @description Для OK, Twitch и GoodGame: сохранены сервер и ключ. */
|
|
822
822
|
streamKeySaved: boolean;
|
|
823
|
+
/**
|
|
824
|
+
* Format: date-time
|
|
825
|
+
* @description С этого времени соцсеть не продлевает токен доступа подключения (её сервер не отвечал или отвечал ошибкой): StreamFarm не может к ней обращаться — например, создать трансляцию. Токены сохраняются, и обычно следующее продление проходит; если нет — подключите соцсеть в кабинете заново. `null` — токен действует. Появляется, когда токен просрочен больше чем на 30 минут.
|
|
826
|
+
*/
|
|
827
|
+
tokenExpiredSince: string | null;
|
|
823
828
|
};
|
|
824
829
|
Stream: {
|
|
825
830
|
/** Format: uuid */
|
|
@@ -958,6 +963,31 @@ export interface components {
|
|
|
958
963
|
/** @description Скорость обработки относительно реального времени (1 — успевает). */
|
|
959
964
|
speed: number;
|
|
960
965
|
};
|
|
966
|
+
/** @description Что передаёт энкодер, по отчёту сервера во время эфира. Трансляция без перекодирования уходит на площадки и в плеер как есть, так по этим полям можно проверить настройки энкодера: H.264 и AAC, ключевой кадр раз в 2 с, до 1080p и 60 к/с. `null` — энкодер выключен или сервер ещё не прислал отчёт (первые секунды эфира). */
|
|
967
|
+
input: {
|
|
968
|
+
/** @description Видео; `null` — энкодер не передаёт видео. */
|
|
969
|
+
video: {
|
|
970
|
+
/** @description Кодек: `h264` — площадки принимают только его; `hevc`, `av1`, `vp9`… уходят на площадки только с перекодированием. */
|
|
971
|
+
codec: string;
|
|
972
|
+
/** @description Ширина кадра, пикселей. */
|
|
973
|
+
width: number;
|
|
974
|
+
/** @description Высота кадра, пикселей. */
|
|
975
|
+
height: number;
|
|
976
|
+
/** @description Кадров в секунду. */
|
|
977
|
+
fps: number;
|
|
978
|
+
/** @description Битрейт видео, кбит/с. */
|
|
979
|
+
bitrateKbps: number;
|
|
980
|
+
/** @description Сколько секунд между ключевыми кадрами: оценка по счётчикам кадров с начала эфира, точность — полинтервала. Площадки ждут ключевой кадр раз в 2 с; у трансляции без перекодирования (`transcoding: false`) при интервале больше 2,5 с эфир на площадке может запускаться с ошибкой, зрители дольше ждут картинку, а после сбоя она дольше стоит. В OBS — «Интервал ключевых кадров» 2 (у «авто» — 250 кадров, 8 с при 30 к/с). Перекодированный поток получает свой ключевой кадр раз в 2 с, эфир из браузера — тоже. `null` — первые секунды эфира. */
|
|
981
|
+
keyframeIntervalSec: number | null;
|
|
982
|
+
} | null;
|
|
983
|
+
/** @description Звук; `null` — звук не приходит: энкодер его не передаёт или передаёт по RTMP в кодеке, который сервер отбрасывает (MP3, Opus). */
|
|
984
|
+
audio: {
|
|
985
|
+
/** @description Кодек: `aac` — площадки и плеер принимают только его. */
|
|
986
|
+
codec: string;
|
|
987
|
+
/** @description Битрейт звука, кбит/с. */
|
|
988
|
+
bitrateKbps: number;
|
|
989
|
+
} | null;
|
|
990
|
+
} | null;
|
|
961
991
|
/** @description Страница плеера StreamFarm. */
|
|
962
992
|
playerUrl: string;
|
|
963
993
|
/** @description Плеер без страницы вокруг: видео на весь фрейм, для `<iframe>` на вашем сайте. В эфире и на заставке ведёт себя так же, как страница плеера. */
|
|
@@ -1859,7 +1889,8 @@ export interface operations {
|
|
|
1859
1889
|
* "connected": true,
|
|
1860
1890
|
* "name": "streamer",
|
|
1861
1891
|
* "avatar": null,
|
|
1862
|
-
* "streamKeySaved": true
|
|
1892
|
+
* "streamKeySaved": true,
|
|
1893
|
+
* "tokenExpiredSince": null
|
|
1863
1894
|
* }
|
|
1864
1895
|
* ]
|
|
1865
1896
|
* }
|
|
@@ -1942,6 +1973,20 @@ export interface operations {
|
|
|
1942
1973
|
* "totalViewers": 51,
|
|
1943
1974
|
* "speed": 1
|
|
1944
1975
|
* },
|
|
1976
|
+
* "input": {
|
|
1977
|
+
* "video": {
|
|
1978
|
+
* "codec": "h264",
|
|
1979
|
+
* "width": 1280,
|
|
1980
|
+
* "height": 720,
|
|
1981
|
+
* "fps": 30,
|
|
1982
|
+
* "bitrateKbps": 2852.5,
|
|
1983
|
+
* "keyframeIntervalSec": 2
|
|
1984
|
+
* },
|
|
1985
|
+
* "audio": {
|
|
1986
|
+
* "codec": "aac",
|
|
1987
|
+
* "bitrateKbps": 160
|
|
1988
|
+
* }
|
|
1989
|
+
* },
|
|
1945
1990
|
* "playerUrl": "https://player.streamfarm.ru/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
1946
1991
|
* "embedUrl": "https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
1947
1992
|
* "embedCode": "<iframe src=\"https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21\" width=\"640\" height=\"360\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen frameborder=\"0\"></iframe>",
|
|
@@ -2060,6 +2105,7 @@ export interface operations {
|
|
|
2060
2105
|
* "totalViewers": 0,
|
|
2061
2106
|
* "speed": 0
|
|
2062
2107
|
* },
|
|
2108
|
+
* "input": null,
|
|
2063
2109
|
* "playerUrl": "https://player.streamfarm.ru/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2064
2110
|
* "embedUrl": "https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2065
2111
|
* "embedCode": "<iframe src=\"https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21\" width=\"640\" height=\"360\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen frameborder=\"0\"></iframe>",
|
|
@@ -2142,6 +2188,20 @@ export interface operations {
|
|
|
2142
2188
|
* "totalViewers": 51,
|
|
2143
2189
|
* "speed": 1
|
|
2144
2190
|
* },
|
|
2191
|
+
* "input": {
|
|
2192
|
+
* "video": {
|
|
2193
|
+
* "codec": "h264",
|
|
2194
|
+
* "width": 1280,
|
|
2195
|
+
* "height": 720,
|
|
2196
|
+
* "fps": 30,
|
|
2197
|
+
* "bitrateKbps": 2852.5,
|
|
2198
|
+
* "keyframeIntervalSec": 2
|
|
2199
|
+
* },
|
|
2200
|
+
* "audio": {
|
|
2201
|
+
* "codec": "aac",
|
|
2202
|
+
* "bitrateKbps": 160
|
|
2203
|
+
* }
|
|
2204
|
+
* },
|
|
2145
2205
|
* "playerUrl": "https://player.streamfarm.ru/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2146
2206
|
* "embedUrl": "https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2147
2207
|
* "embedCode": "<iframe src=\"https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21\" width=\"640\" height=\"360\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen frameborder=\"0\"></iframe>",
|
|
@@ -2275,6 +2335,20 @@ export interface operations {
|
|
|
2275
2335
|
* "totalViewers": 51,
|
|
2276
2336
|
* "speed": 1
|
|
2277
2337
|
* },
|
|
2338
|
+
* "input": {
|
|
2339
|
+
* "video": {
|
|
2340
|
+
* "codec": "h264",
|
|
2341
|
+
* "width": 1280,
|
|
2342
|
+
* "height": 720,
|
|
2343
|
+
* "fps": 30,
|
|
2344
|
+
* "bitrateKbps": 2852.5,
|
|
2345
|
+
* "keyframeIntervalSec": 2
|
|
2346
|
+
* },
|
|
2347
|
+
* "audio": {
|
|
2348
|
+
* "codec": "aac",
|
|
2349
|
+
* "bitrateKbps": 160
|
|
2350
|
+
* }
|
|
2351
|
+
* },
|
|
2278
2352
|
* "playerUrl": "https://player.streamfarm.ru/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2279
2353
|
* "embedUrl": "https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2280
2354
|
* "embedCode": "<iframe src=\"https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21\" width=\"640\" height=\"360\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen frameborder=\"0\"></iframe>",
|
|
@@ -2357,6 +2431,20 @@ export interface operations {
|
|
|
2357
2431
|
* "totalViewers": 51,
|
|
2358
2432
|
* "speed": 1
|
|
2359
2433
|
* },
|
|
2434
|
+
* "input": {
|
|
2435
|
+
* "video": {
|
|
2436
|
+
* "codec": "h264",
|
|
2437
|
+
* "width": 1280,
|
|
2438
|
+
* "height": 720,
|
|
2439
|
+
* "fps": 30,
|
|
2440
|
+
* "bitrateKbps": 2852.5,
|
|
2441
|
+
* "keyframeIntervalSec": 2
|
|
2442
|
+
* },
|
|
2443
|
+
* "audio": {
|
|
2444
|
+
* "codec": "aac",
|
|
2445
|
+
* "bitrateKbps": 160
|
|
2446
|
+
* }
|
|
2447
|
+
* },
|
|
2360
2448
|
* "playerUrl": "https://player.streamfarm.ru/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2361
2449
|
* "embedUrl": "https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21",
|
|
2362
2450
|
* "embedCode": "<iframe src=\"https://player.streamfarm.ru/embed/3f6c1e1a-8a3b-4f43-9a52-0c0b6a5e7d21\" width=\"640\" height=\"360\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen frameborder=\"0\"></iframe>",
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ export type Connection = Schemas['Connection'];
|
|
|
16
16
|
export type Stream = Schemas['Stream'];
|
|
17
17
|
export type StreamSession = Stream['session'];
|
|
18
18
|
export type StreamStats = Stream['stats'];
|
|
19
|
+
/** What the encoder publishes while live: codecs, frame size and rate, bitrates, the keyframe interval. */
|
|
20
|
+
export type StreamInput = NonNullable<Stream['input']>;
|
|
21
|
+
export type StreamInputVideo = NonNullable<StreamInput['video']>;
|
|
22
|
+
export type StreamInputAudio = NonNullable<StreamInput['audio']>;
|
|
19
23
|
/** What an encoder publishes with: RTMP, and WHIP where the region takes it. */
|
|
20
24
|
export type Credentials = Schemas['Credentials'];
|
|
21
25
|
export type Platform = Schemas['Platform'];
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The SDK's version: sent in the User-Agent. test/resources.test.ts keeps it equal to package.json's. */
|
|
2
|
-
export declare const VERSION = "1.
|
|
2
|
+
export declare const VERSION = "1.3.0";
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The SDK's version: sent in the User-Agent. test/resources.test.ts keeps it equal to package.json's. */
|
|
2
|
-
export const VERSION = '1.
|
|
2
|
+
export const VERSION = '1.3.0';
|