Modify the readme description (#2859)

This commit is contained in:
Deepslient 2023-10-12 14:38:45 +08:00 committed by GitHub
parent 6348e64cdf
commit 67bc0273b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
此目录下的所有.cpp文件将被编译成可执行程序(不包含此目录下的子目录).
子目录DeviceHK为海康IPC的适配程序,需要先下载海康的SDK才能编译,
由于操作麻烦,所以仅把源码放在这仅供参考.
由于操作麻烦,所以仅把源码放在这仅供参考.
- test_benchmark.cpp

View File

@ -93,8 +93,8 @@
var recvOnly = true;
var resArr = [];
var ishttps = 'https:' == document.location.protocol ? true : false;
var isLocal = "file:" == document.location.protocol ? true : false;
var ishttps = 'https:' === document.location.protocol;
var isLocal = "file:" === document.location.protocol;
const searchParams = new URL(document.location.href).searchParams;
let type = searchParams.get('type');
@ -105,7 +105,7 @@
const apiPath = `/index/api/webrtc?app=${searchParams.get('app') ?? 'live'}&stream=${searchParams.get('stream') ?? 'test'}&type=${type}`;
if(!ishttps && !isLocal){
alert('本demo需要在https的网站访问 ,如果你要推流的话(this demo must access in site of https if you want push stream)');
alert('本demo需要在https的网站访问, 如果你要推流的话(this demo must access in site of https if you want to push stream)');
}
const apiHost = isLocal ? "http://127.0.0.1" : `${document.location.protocol}//${window.location.host}`;