最近公司项目出了个新需求,根据告警事件自动播放对应告警声音(加载对应mp3文件),发现audio谷歌浏览器中无法自动播放,火狐就没有问题,查了资料,看了半天,曲线救国一下: 具体思路如下:在指定文件夹中放置对应.mp3格式文件,然后根据文件名去动态切换audio的src,切记不要在source中切换 ...
分类:
其他好文 时间:
2020-06-28 22:16:10
阅读次数:
113
工具/原料 阿里云服务器centos 方法/步骤 执行firewall-cmd --permanent --zone=public --add-port=3306/tcp,提示FirewallD is not running,如下图所示。 通过systemctl status firewalld查看 ...
分类:
其他好文 时间:
2020-06-28 18:57:58
阅读次数:
49
{ #include <iostream> #include <SDL.h> static Uint8 *pAudio_chunk; static Uint32 audio_len; static Uint8 *pAudio_pos; void fill_audio_buffer(void *use ...
分类:
其他好文 时间:
2020-06-28 00:24:38
阅读次数:
52
#-*- codeing = utf-8 -*- #@Time : 2020/6/14 15:10 #@Author : zhangfudong #@FILE :testSqlite.py #@Software : PyCharm import sqlite3 ## python 支持的轻便的数据库 ...
分类:
数据库 时间:
2020-06-27 20:24:34
阅读次数:
74
<audio autoplay="autoplay" controls="controls"loop="loop" preload="auto" src="http://demo.mimvp.com/html5/take_you_fly.mp3"> 你的浏览器版本太低,不支持audio标签 </au ...
分类:
其他好文 时间:
2020-06-27 19:53:02
阅读次数:
62
1、创建数据库 2、导入相应jar包 3、创建相应的sqlite或者导入相应sqlite 出现问题:java.lang.ClassNotFoundException: org.sqlite.JDBC project structure 打开方式:ctrl + shift + alt + s 新建ja ...
分类:
数据库 时间:
2020-06-26 23:58:16
阅读次数:
127
源码位置 [Code:webrtc\src\api\audio_codecs\] [Code:modules\audio_coding\codecs\] WebRTC默认是采用OPUS编码。 Opus WebRTC中默认是采用Opus编码,Opus编码是由silk编码和celt编码合并在一起,sil ...
分类:
Web程序 时间:
2020-06-26 18:42:36
阅读次数:
154
“Database is locked” errors SQLite is meant to be a lightweight database, and thus can’t support a high level of concurrency. OperationalError: databa ...
分类:
数据库 时间:
2020-06-26 18:20:12
阅读次数:
165
修改了数据库表名之后,更新数据库时跳错: django.db.utils.NotSupportedError: Renaming the 'app_class' table while in a transaction is not supported on SQLite because it wo ...
分类:
数据库 时间:
2020-06-26 18:10:51
阅读次数:
72
1,高通AR流程 HiAR_各种功能案例: HiAR SDK:Unity Package包形式:http://pan.baidu.com/s/1jItIyjW AR 脱卡(小明离开背景图片时也会显示出来) 脚本挂ImageTarget上 using System.Collections; using ...
分类:
其他好文 时间:
2020-06-26 10:34:13
阅读次数:
73