-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #276 from boostcampwm-2024/feature-be-#231-live_th…
…umbnail_url [FEAT] 썸네일 API URL 추가 / 다시보기 등록 기준으로 정렬
- Loading branch information
Showing
6 changed files
with
136 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"private": true, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@hoeeeeeh/node-media-server": "3.0.2", | ||
"@hoeeeeeh/node-media-server": "3.0.7", | ||
"@types/node": "^22.9.0", | ||
"dotenv": "^16.4.5", | ||
"path": "0.12.7" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
interface Config { | ||
logType?: number; | ||
rtmp?: RtmpConfig; | ||
http?: HttpConfig; | ||
https?: SslConfig; | ||
trans?: TransConfig; | ||
relay?: RelayConfig; | ||
fission?: FissionConfig; | ||
auth?: AuthConfig; | ||
} | ||
|
||
interface RtmpConfig { | ||
port?: number; | ||
ssl?: SslConfig; | ||
chunk_size?: number; | ||
gop_cache?: boolean; | ||
ping?: number; | ||
ping_timeout?: number; | ||
} | ||
|
||
interface SslConfig { | ||
key: string; | ||
cert: string; | ||
port?: number; | ||
} | ||
|
||
interface HttpConfig { | ||
mediaroot: string; | ||
port?: number; | ||
allow_origin?: string; | ||
} | ||
|
||
interface AuthConfig { | ||
play?: boolean; | ||
publish?: boolean; | ||
secret?: string; | ||
api?: boolean; | ||
api_user?: string; | ||
api_pass?: string; | ||
} | ||
|
||
interface TransConfig { | ||
ffmpeg: string; | ||
tasks: TransTaskConfig[]; | ||
} | ||
|
||
interface RelayConfig { | ||
tasks: RelayTaskConfig[]; | ||
ffmpeg: string; | ||
} | ||
|
||
interface FissionConfig { | ||
ffmpeg: string; | ||
tasks: FissionTaskConfig[]; | ||
} | ||
|
||
interface TransTaskConfig { | ||
app: string; | ||
hls?: boolean; | ||
hlsFlags?: string; | ||
dash?: boolean; | ||
dashFlags?: string; | ||
vc?: string; | ||
vcParam?: string[]; | ||
ac?: string; | ||
acParam?: string[]; | ||
rtmp?: boolean; | ||
rtmpApp?: string; | ||
mp4?: boolean; | ||
mp4Flags?: string; | ||
} | ||
|
||
interface RelayTaskConfig { | ||
app: string; | ||
name?: string; | ||
mode: string; | ||
edge: string; | ||
rtsp_transport?: string; | ||
appendName?: boolean; | ||
} | ||
|
||
interface FissionTaskConfig { | ||
rule: string; | ||
model: FissionTaskModel[]; | ||
} | ||
|
||
interface FissionTaskModel { | ||
ab: string; | ||
vb: string; | ||
vs: string; | ||
vf: string; | ||
} | ||
|
||
declare class NodeMediaServer { | ||
constructor(config: Config); | ||
run(): void; | ||
on(eventName: string, listener: (id: string, StreamPath: string, args: object) => void): void; | ||
stop(): void; | ||
getSession(id: string): Map<string, unknown>; | ||
} | ||
|
||
declare module '@hoeeeeeh/node-media-server' { | ||
export default NodeMediaServer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ | |
"compilerOptions": { | ||
"baseUrl": ".", | ||
"outDir": "./.dist" | ||
} | ||
}, | ||
"typeRoots": ["./src/types"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters