mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 19:58:10 +08:00
添加测试web文件
This commit is contained in:
12
www/webrtc/js/common.js
Normal file
12
www/webrtc/js/common.js
Normal file
@@ -0,0 +1,12 @@
|
||||
function trace(text) {
|
||||
// This function is used for logging.
|
||||
if (text[text.length - 1] === '\n') {
|
||||
text = text.substring(0, text.length - 1);
|
||||
}
|
||||
if (window.performance) {
|
||||
var now = (window.performance.now() / 1000).toFixed(3);
|
||||
console.log(now + ': ' + text);
|
||||
} else {
|
||||
console.log(text);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user