-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
``` | ||
|
@@ -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> | ||
``` | ||
|