-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
93 lines (77 loc) · 3.54 KB
/
index.html
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<!--
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
-->
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="WebRTC code samples">
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1">
<meta itemprop="description" content="Client-side WebRTC code samples">
<meta itemprop="name" content="Kaltura WebRTC">
<meta name="mobile-web-app-capable" content="yes">
<meta id="theme-color" name="theme-color" content="#ffffff">
<base target="_blank">
<title>MediaStream Recording</title>
<link rel="icon" sizes="192x192" href="../../../images/webrtc-icon-192x192.png">
<link href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/gmain.css">
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<div class="content" id="container">
<h1><a href="//webrtc.github.io/samples/" title="WebRTC samples homepage">WebRTC samples</a> <span>MediaRecorder</span></h1>
<p>This demo requires Firefox 29 or later, or Chrome 47 or later with <strong>Enable experimental Web Platform features</strong> enabled from chrome://flags.</p>
<fieldset>
<div class="row">
<div class="col-sm-6">
<div class="form-group valid-row">
<label for="serviceUrl">Kaltura Service URL: <span class="required" title="This field is required.">*</span></label>
<input id="serviceUrl" type="text" value="https://www.kaltura.com" size="30">
</div>
<div class="form-group valid-row">
<label for="userId">User: <span class="required" title="This field is required.">*</span></label>
<input id="userId" type="text" size="30">
</div>
<div class="form-group valid-row">
<label for="password">Password: <span class="required" title="This field is required.">*</span></label>
<input id="mypassword" type="password" size="30">
</div>
<div class="form-group valid-row">
<label for="partnerId">Partner ID (optional):</label>
<input id="partnerId" type="text" size="30">
</div>
<div class="form-group valid-row">
<input id="gen_ks" type="button" value="Generate KS" onclick="genKS(document.getElementById('serviceUrl').value+'/api_v3',document.getElementById('userId').value,document.getElementById('mypassword').value,document.getElementById('partnerId').value)"> </td></tr>
</div>
<div class="form-group valid-row">
<textarea cols="100" id="inputKS" placeholder="Input a valid Kaltura Session or input creds above to generate one"></textarea>
</div>
<div class="form-group valid-row">
<label for="entryName">Entry Name:</label>
<input id="entryName" type="text" value="TestEntry" size="30">
</div>
</div>
</div>
<fieldset>
<p>Cam Live</p>
<video id="gum" autoplay muted></video>
<p>Recorded Stream</p>
<video id="recorded" autoplay loop></video>
<div>
<button id="record" disabled>Start Recording</button>
<button id="play" disabled>Play Last Recording</button>
<button id="download" disabled>Download Rec</button>
<button id="upload" disabled>Upload to Kaltura</button>
</div>
</div>
<!-- include adapter for srcObject shim -->
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="js/main.js"></script>
</body>
</html>