-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathembed-javascript.html
More file actions
56 lines (50 loc) · 3.12 KB
/
embed-javascript.html
File metadata and controls
56 lines (50 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Pipe Embed v2.0 JavaScript Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Pipe Embed v2.0 JavaScript Demo</h1>
<p>Made by the <a href="https://addpipe.com" target="_blank">Pipe Video Recording Platform</a></p>
<p>This demo page embeds the <a target="_blank" href="https://addpipe.com/recording-client/">Pipe Video Recording Client</a> using the <a target="_blank" href="https://addpipe.com/docs/introduction/two-versions-embed-code/#embed-code-v20">2.0 JS embed code</a>.</p>
<p>The recording client is controlled through a custom HTML UI linked to the recorder through the JavaScript <a href="https://addpipe.com/docs/javascript/js-api-v2/#javascript-events-api-v20-recording-client" target="_blank">events</a> and <a href="https://addpipe.com/docs/javascript/js-api-v2/#javascript-control-api-v20-recording-client" target="_blank">control API</a>. The recorder's default UI is hidden.</p>
<p class="add-padding-bottom">You can study the source code on <a href="https://github.com/addpipe/embed-code-v2.0-demos" target="_blank">GitHub</a>.</p>
<!-- The DIV below will contain the Pipe recorder HTML elements -->
<div id="first-recorder" style="width:640px;height:360px;border:1px solid grey;text-align:center;border-radius:8px;"><span style="line-height:180px">Loading...</span></div>
<div id="controls" class="controls">
<button id="recordbtn" disabled>Record</button>
<button id="stopbtn" disabled>Stop</button>
<button id="playbtn" disabled>Play</button>
<button id="pausebtn" disabled>Pause</button>
<button id="savebtn" disabled>Save</button>
<button id="removebtn">Remove First Recorder</button>
</div>
<br/>
<p>The 2.0 embed code supports multiple recorders on the page. The example below illustrates how easily a Pipe recorder can be added and removed from a page. This allows it to be easily integrated in single page apps built with React, Angular or Vue. This here for example inserts and removes a Pipe recorder with default UI.</p>
<!-- Div that will be replaced with a Pipe recorder -->
<div id="second-recorder"></div>
<div class="controls">
<button id="addbtn">Add Second Recorder</button>
<button id="removebtn2" disabled>Remove Second Recorder</button>
</div>
<br/>
<h3>Log</h3>
<pre id="log"></pre>
<div>
<h2>Others Demos</h2>
<ul>
<li>1. <a href="https://addpipe.com/embed-code-v2-demos/embed-html.html">Pipe Embed v2.0 HTML Demo</a></li>
<li>2. <a href="https://addpipe.com/embed-code-v2-demos/custom-form.html">Simple Form With Video Recorder </a></li>
<li>3. <a href="https://addpipe.com/embed-code-v2-demos/video-recorder-with-teleprompter.html">Video Recorder With Teleprompter </a></li>
</ul>
</div>
<!-- Inserting the pipe.js and pipe.css -->
<link rel="stylesheet" href="//s1.addpipe.com/2.0/pipe.css"/>
<script type="text/javascript" src = "//s1.addpipe.com/2.0/pipe.js"></script>
<!-- Our custom code for implementing Pipe -->
<script src="js/embed-javascript.js"></script>
</body>
</html>