fix wheplayer
This commit is contained in:
@@ -145,6 +145,11 @@ export function useWhepPlayer({
|
||||
|
||||
if (!res.ok) {
|
||||
const t = await res.text().catch(() => "");
|
||||
if (res.status === 405) {
|
||||
throw new Error(
|
||||
"whep_http_405: endpoint WebRTC khong cho phep POST. Kiem tra mediamtx_webrtc_url (host/port) va nginx proxy."
|
||||
);
|
||||
}
|
||||
throw new Error(`whep_http_${res.status}${t ? `: ${t}` : ""}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user