Skip to content

Commit

Permalink
更换demo页面中eruda插件cdn地址
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Jan 26, 2022
1 parent 2ac4e51 commit 77d9667
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion QuickStart.html
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@
//移动端加载控制台组件
var elem=document.createElement("script");
elem.setAttribute("type","text/javascript");
elem.setAttribute("src","https://cdn.bootcss.com/eruda/1.5.4/eruda.min.js");
elem.setAttribute("src","https://cdn.bootcdn.net/ajax/libs/eruda/1.5.4/eruda.min.js");
document.body.appendChild(elem);
elem.onload=function(){
eruda.init();
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,9 @@ set={

另外:普通的麦克风录音时,因为此方法会调起用户授权请求,如果仅仅想知道浏览器是否支持录音(比如:如果浏览器不支持就走另外一套录音方案),应使用`Recorder.Support()`方法。

**注意:打开普通麦克风录音后,如果未调用close关闭,可能会影响audio音频的播放,表现为移动端audio播放有明显的杂音(麦克风的电流音?),因此如果你录音后有别的操作,尽量录完音就立即调用close关闭录音。**
**注意:打开普通麦克风录音后,如果未调用close关闭,可能会影响audio音频的播放,表现为移动端audio播放有明显的杂音(麦克风的电流音?)、音量严重降低(被切换到听筒播放?)等奇形怪状的问题,因此如果你录音后有别的操作,尽量录完音就立即调用close关闭录音。**

> **特别注**: 鉴于UC系浏览器(大部分老旧国产手机厂商系统浏览器)大概率表面支持录音但永远不会有任何回调、或者此浏览器支持第三种情况(用户忽略 并且 此浏览器认为此种情况不需要回调 并且程序员完美实现了);如果当前环境是移动端,可以在调用此方法`8秒`后如果未收到任何回调,弹出一个自定义提示框(只需要一个按钮),提示内容范本:`录音功能需要麦克风权限,请允许;如果未看到任何请求,请点击忽略~`,按钮文本:`忽略`;当用户点击了按钮,直接手动执行`fail`逻辑,因为此时浏览器压根就没有弹移动端特有的模态话权限请求对话框;但如果收到了回调(可能是同步的,因此弹框必须在`rec.open`调用前准备好随时取消),需要把我们弹出的提示框自动关掉,不需要用户做任何处理。pc端的由于不是模态化的请求对话框,可能会被用户误点,所以尽量要判断一下是否是移动端。
> **特别注**: 鉴于UC系浏览器(大部分老旧国产手机厂商系统浏览器)大概率表面支持录音但永远不会有任何回调、或者此浏览器支持第三种情况(用户忽略 并且 此浏览器认为此种情况不需要回调 并且程序员完美实现了);如果当前环境是移动端,可以在调用此方法`8秒`后如果未收到任何回调,弹出一个自定义提示框(只需要一个按钮),提示内容范本:`录音功能需要麦克风权限,请允许;如果未看到任何请求,请点击忽略~`,按钮文本:`忽略`;当用户点击了按钮,直接手动执行`fail`逻辑,因为此时浏览器压根就没有弹移动端特有的模态化权限请求对话框;但如果收到了回调(可能是同步的,因此弹框必须在`rec.open`调用前准备好随时取消),需要把我们弹出的提示框自动关掉,不需要用户做任何处理。pc端的由于不是模态化的请求对话框,可能会被用户误点,所以尽量要判断一下是否是移动端。

`success`=fn();

Expand Down
2 changes: 1 addition & 1 deletion app-support-sample/QuickStart.html
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
//移动端加载控制台组件
var elem=document.createElement("script");
elem.setAttribute("type","text/javascript");
elem.setAttribute("src","https://cdn.bootcss.com/eruda/1.5.4/eruda.min.js");
elem.setAttribute("src","https://cdn.bootcdn.net/ajax/libs/eruda/1.5.4/eruda.min.js");
document.body.appendChild(elem);
elem.onload=function(){
eruda.init();
Expand Down
2 changes: 1 addition & 1 deletion app-support-sample/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@
//移动端加载控制台组件
var elem=document.createElement("script");
elem.setAttribute("type","text/javascript");
elem.setAttribute("src","https://cdn.bootcss.com/eruda/1.5.4/eruda.min.js");
elem.setAttribute("src","https://cdn.bootcdn.net/ajax/libs/eruda/1.5.4/eruda.min.js");
$("head")[0].appendChild(elem);
elem.onload=function(){
eruda.init();
Expand Down
2 changes: 1 addition & 1 deletion assets/demo-vue/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//移动端加载控制台组件
var elem=document.createElement("script");
elem.setAttribute("type","text/javascript");
elem.setAttribute("src","https://cdn.bootcss.com/eruda/1.5.4/eruda.min.js");
elem.setAttribute("src","https://cdn.bootcdn.net/ajax/libs/eruda/1.5.4/eruda.min.js");
document.body.appendChild(elem);
elem.onload=function(){
eruda.init();
Expand Down
2 changes: 1 addition & 1 deletion assets/demo-vue/recordapp.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
//移动端加载控制台组件
var elem=document.createElement("script");
elem.setAttribute("type","text/javascript");
elem.setAttribute("src","https://cdn.bootcss.com/eruda/1.5.4/eruda.min.js");
elem.setAttribute("src","https://cdn.bootcdn.net/ajax/libs/eruda/1.5.4/eruda.min.js");
document.body.appendChild(elem);
elem.onload=function(){
eruda.init();
Expand Down
2 changes: 1 addition & 1 deletion assets/ztest_iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
//移动端加载控制台组件
var elem=document.createElement("script");
elem.setAttribute("type","text/javascript");
elem.setAttribute("src","https://cdn.bootcss.com/eruda/1.5.4/eruda.min.js");
elem.setAttribute("src","https://cdn.bootcdn.net/ajax/libs/eruda/1.5.4/eruda.min.js");
document.body.appendChild(elem);
elem.onload=function(){
eruda.init();
Expand Down
4 changes: 2 additions & 2 deletions assets/ztext_collab-project_videojs-record.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<title>用videojs测试浏览器兼容性</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<script src="https://cdn.bootcss.com/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/eruda/1.5.4/eruda.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/eruda/1.5.4/eruda.min.js"></script>
<script>
eruda.init();
</script>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@
//移动端加载控制台组件
var elem=document.createElement("script");
elem.setAttribute("type","text/javascript");
elem.setAttribute("src","https://cdn.bootcss.com/eruda/1.5.4/eruda.min.js");
elem.setAttribute("src","https://cdn.bootcdn.net/ajax/libs/eruda/1.5.4/eruda.min.js");
$("head")[0].appendChild(elem);
elem.onload=function(){
eruda.init();
Expand Down

0 comments on commit 77d9667

Please sign in to comment.