Skip to content

Commit

Permalink
add sample in readme using webrtc-player whep-video
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Jun 8, 2024
1 parent c5340bf commit a3687f8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ defaults: &defaults

version: 2.1

orbs:
heroku: circleci/heroku@1.2.6

jobs:
# -------------------------------------
# dowload common tools
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,20 @@ It allow to stream using draft standard [WHEP](https://www.ietf.org/archive/id/d

[WebRTC player](https://github.com/Eyevinn/webrtc-player) can display WebRTC stream from webrtc-streamer.

A minimal example:
```html
<html>
<head>
<script src="https://unpkg.com/@eyevinn/whep-video-component@latest/dist/whep-video.component.js"></script>
</head>
<body>
<whep-video id="video" muted autoplay></whep-video>
<script>
video.setAttribute('src', `${location.origin}/api/whep?url=Asahi&options=rtptransport%3dtcp%26timeout%3d60`);
</script>
</body>
</html>
```
[Live Demo](https://webrtc-streamer-whep.pages.dev/)


Expand Down

0 comments on commit a3687f8

Please sign in to comment.