[mirotalksfu] - popup recording info
هذا الالتزام موجود في:
@@ -1421,6 +1421,7 @@ function handleRoomClientEvents() {
|
||||
hide(startRecButton);
|
||||
show(stopRecButton);
|
||||
show(pauseRecButton);
|
||||
show(recordingTime);
|
||||
startRecordingTimer();
|
||||
});
|
||||
rc.on(RoomClient.EVENTS.pauseRec, () => {
|
||||
@@ -1438,6 +1439,7 @@ function handleRoomClientEvents() {
|
||||
hide(stopRecButton);
|
||||
hide(pauseRecButton);
|
||||
hide(resumeRecButton);
|
||||
hide(recordingTime);
|
||||
show(startRecButton);
|
||||
stopRecordingTimer();
|
||||
});
|
||||
@@ -1698,6 +1700,10 @@ function isImageURL(url) {
|
||||
return url.match(/\.(jpeg|jpg|gif|png|tiff|bmp)$/) != null;
|
||||
}
|
||||
|
||||
function isMobile(userAgent) {
|
||||
return !!/Android|webOS|iPhone|iPad|iPod|BB10|BlackBerry|IEMobile|Opera Mini|Mobile|mobile/i.test(userAgent || '');
|
||||
}
|
||||
|
||||
function isTablet(userAgent) {
|
||||
return /(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(
|
||||
userAgent,
|
||||
@@ -1712,6 +1718,13 @@ function openURL(url, blank = false) {
|
||||
blank ? window.open(url, '_blank') : (window.location.href = url);
|
||||
}
|
||||
|
||||
function bytesToSize(bytes) {
|
||||
let sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
|
||||
if (bytes == 0) return '0 Byte';
|
||||
let i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));
|
||||
return Math.round(bytes / Math.pow(1024, i), 2) + ' ' + sizes[i];
|
||||
}
|
||||
|
||||
function setCookie(name, value, expDays) {
|
||||
let date = new Date();
|
||||
date.setTime(date.getTime() + expDays * 24 * 60 * 60 * 1000);
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم