-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
1 parent
2e937e3
commit 0f3676a
Showing
6 changed files
with
65 additions
and
5 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 |
---|---|---|
|
@@ -44,7 +44,7 @@ dependencies: { | |
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon | ||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.4.77 | ||
* @version 1.4.78 | ||
* | ||
*/ | ||
|
||
|
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
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
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h | |
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon | ||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.4.77 | ||
* @version 1.4.78 | ||
* | ||
*/ | ||
|
||
|
@@ -63,6 +63,7 @@ const bars = document.querySelectorAll('.volume-bar'); | |
const userAgent = navigator.userAgent.toLowerCase(); | ||
const isTabletDevice = isTablet(userAgent); | ||
const isIPadDevice = isIpad(userAgent); | ||
const thisInfo = getInfo(); | ||
|
||
const Base64Prefix = 'data:application/pdf;base64,'; | ||
|
||
|
@@ -844,6 +845,44 @@ function getPeerInfo() { | |
}; | ||
} | ||
|
||
function getInfo() { | ||
const parser = new UAParser(userAgent); | ||
|
||
try { | ||
const parserResult = parser.getResult(); | ||
console.log('Info', parserResult); | ||
|
||
// Filter out properties with 'Unknown' values | ||
const filterUnknown = (obj) => { | ||
const filtered = {}; | ||
for (const [key, value] of Object.entries(obj)) { | ||
if (value && value !== 'Unknown') { | ||
filtered[key] = value; | ||
} | ||
} | ||
return filtered; | ||
}; | ||
|
||
const filteredResult = { | ||
//ua: parserResult.ua, | ||
browser: filterUnknown(parserResult.browser), | ||
cpu: filterUnknown(parserResult.cpu), | ||
device: filterUnknown(parserResult.device), | ||
engine: filterUnknown(parserResult.engine), | ||
os: filterUnknown(parserResult.os), | ||
}; | ||
|
||
// Convert the filtered result to a readable JSON string | ||
const resultString = JSON.stringify(filteredResult, null, 2); | ||
|
||
extraInfo.innerText = resultString; | ||
|
||
return parserResult; | ||
} catch (error) { | ||
console.error('Error parsing user agent:', error); | ||
} | ||
} | ||
|
||
// #################################################### | ||
// ENTER YOUR NAME | Enable/Disable AUDIO/VIDEO | ||
// #################################################### | ||
|
@@ -4032,7 +4071,7 @@ function showAbout() { | |
imageUrl: image.about, | ||
customClass: { image: 'img-about' }, | ||
position: 'center', | ||
title: 'WebRTC SFU v1.4.77', | ||
title: 'WebRTC SFU v1.4.78', | ||
html: ` | ||
<br /> | ||
<div id="about"> | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon | ||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.4.77 | ||
* @version 1.4.78 | ||
* | ||
*/ | ||
|
||
|
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