Skip to content

Commit

Permalink
--amend
Browse files Browse the repository at this point in the history
  • Loading branch information
QVDev committed Sep 6, 2019
1 parent 99b07d6 commit f59246b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
Streaming components for Gun db. [See here for a working example](https://qvdev.github.io/GunStreamer)

# Integration
For an example use the index.html and the .js folder.
For an example use the index.html and the .js folder. If you use the cdn method as shown below do not forget to add the parse_worker.js file manually.

### HTML
```html
<head>
...
<script src="https://cdn.jsdelivr.net/npm/gun/gun.js"></script>
<script src="https://cdn.jsdelivr.net/gh/QVDev/[email protected]/js/GunRecorder.js"></script>
<script src="https://cdn.jsdelivr.net/gh/QVDev/[email protected]/js/GunStreamer.js"></script>
<script src="https://cdn.jsdelivr.net/gh/QVDev/[email protected]/js/GunRecorder.js"></script>
<script src="https://cdn.jsdelivr.net/gh/QVDev/[email protected]/js/GunStreamer.js"></script>
<script src="https://cdn.jsdelivr.net/gh/QVDev/[email protected]/js/GunViewer.js"></script>
<script src="https://cdn.jsdelivr.net/gh/QVDev/[email protected]/js/GunViewer.js"></script>
...
</head>
```
Expand All @@ -23,7 +25,7 @@ For an example use the index.html and the .js folder.
<br><br>
<video id="record_video" width="20%" poster="https://www.srsd.net/images/video-poster.png" autoplay controls muted /><!-- Streamer -->
<video id="qvdev" width="20%" poster="https://www.srsd.net/images/video-poster.png" autoplay muted/><!-- Viewer id is equal to streamId -->
<script src="https://cdn.jsdelivr.net/gh/QVDev/[email protected].2/js/integration.js"></script><!-- Default integration -->
<script src="https://cdn.jsdelivr.net/gh/QVDev/[email protected].3/js/integration.js"></script><!-- Default integration -->
...
</body>
```
Expand Down

0 comments on commit f59246b

Please sign in to comment.