You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/stream/webrtc-beta.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,13 +47,13 @@ Every live input has a unique URL that one creator can be stream to. This URL sh
47
47
48
48
Copy the URL from the `webRTC` key in the API response (see above), or directly from the [Cloudflare Dashboard](https://dash.cloudflare.com/?to=/:account/stream/inputs).
49
49
50
-
Paste this URL into the provided [WHIP example code](https://github.com/cloudflare/workers-sdk/blob/main/templates/stream/webrtc/src/whip.html#L13).
50
+
Paste this URL into the example code.
51
51
52
52
```javascript title="Simplified example code" {4}
53
53
// Add a <video> element to the HTML page this code runs in:
importWHIPClientfrom"./WHIPClient.js"; // an example WHIP client, see https://github.com/cloudflare/workers-sdk/blob/main/templates/stream/webrtc/src/WHIPClient.ts
56
+
importWHIPClientfrom"./WHIPClient.js";
57
57
58
58
consturl="<WEBRTC_URL_FROM_YOUR_LIVE_INPUT>"; // add the webRTC URL from your live input here
@@ -68,13 +68,13 @@ You can also use this URL with any client that supports the [WebRTC-HTTP ingesti
68
68
69
69
Copy the URL from the `webRTCPlayback` key in the API response (see above), or directly from the [Cloudflare Dashboard](https://dash.cloudflare.com/?to=/:account/stream/inputs). There are no limits on the number of concurrent viewers.
70
70
71
-
Paste this URL into the provided [WHEP example code](https://github.com/cloudflare/workers-sdk/blob/main/templates/stream/webrtc/src/whep.html#L13).
71
+
Paste this URL into the example code.
72
72
73
73
```javascript title="Simplified example code" {4}
74
74
// Add a <video> element to the HTML page this code runs in:
importWHEPClientfrom"./WHEPClient.js"; // an example WHEP client, see https://github.com/cloudflare/workers-sdk/blob/main/templates/stream/webrtc/src/WHEPClient.ts
77
+
importWHEPClientfrom"./WHEPClient.js";
78
78
79
79
consturl="<WEBRTC_URL_FROM_YOUR_LIVE_INPUT>"; // add the webRTCPlayback URL from your live input here
@@ -97,7 +97,7 @@ If you are building a native app, the example code above can run within a [WkWeb
97
97
98
98
## Supported WHIP and WHEP clients
99
99
100
-
Beyond the [example WHIP client](https://github.com/cloudflare/workers-sdk/blob/main/templates/stream/webrtc/src/WHIPClient.ts) and [example WHEP client](https://github.com/cloudflare/workers-sdk/blob/main/templates/stream/webrtc/src/WHEPClient.ts) used in the examples above, we have tested and confirmed that the following clients are compatible with Cloudflare Stream:
100
+
Beyond the example WHIP client and example WHEP client used in the examples above, we have tested and confirmed that the following clients are compatible with Cloudflare Stream:
0 commit comments