Skip to content

Commit

Permalink
[K8sBroadcaster] Fix ICE candidate and layer request urls
Browse files Browse the repository at this point in the history
  • Loading branch information
mickel8 committed Jan 22, 2025
1 parent 3488af8 commit 489c523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k8s_broadcaster/assets/js/whep_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class WHEPClient {
//
// For more info refer to https://www.ietf.org/archive/id/draft-ietf-wish-whep-01.html#section-4.6.2
if (this.patchEndpoint) {
const response = await fetch(`${this.patchEndpoint}/layer`, {
const response = await fetch(`${this.url}/${this.patchEndpoint}/layer`, {
method: 'POST',
cache: 'no-cache',
headers: { 'Content-Type': 'application/json' },
Expand All @@ -123,7 +123,7 @@ export class WHEPClient {
}

async sendCandidate(candidate) {
const response = await fetch(this.patchEndpoint, {
const response = await fetch(`${this.url}/${this.patchEndpoint}`, {
method: 'PATCH',
cache: 'no-cache',
headers: {
Expand Down

0 comments on commit 489c523

Please sign in to comment.