共 69 篇文章 |
|
JS 控制VIEWPORT在微信上正常显示。<meta name="viewport" content="width=device-width, target-densityDpi=device-dpi, user-scalable=yes">var viewport = document.querySelector("meta[name=viewport]");if(isWeixin()){viewport.setAttribute(''content'', ''width=640, ta... 阅366 转4 评0 公众公开 16-10-19 11:13 |
1、第一个方法:添加水印效果。我们在推流的过程中有时候为了推广自己或者其他效果,会在视频中添加水印功能,这个也是在推流的过程中比较重要的功能,下面来通过源码分析他是如何进行添加水印的:showWaterMarkLogo方法和showWaterMarkTime方法:第一个参数:水印展示的X坐标第二个参数:水印展示的Y坐标第三个参数:时间戳其实是一张图片,水... 阅6 转自放松神经 公众公开 16-09-22 16:26 |
开发中请勿这样写,如果发生异常流关闭不了 ObjectMapper mapper = CommonUtil.getMapperInstance(false); StringWriter writer = new StringWriter(); JsonGenerator gen = new JsonFactory().createJsonGenerator(writer); mapper.writeValue(gen, obj); gen.close(); String json = ... 阅4947 转26 评0 公众公开 16-08-16 15:52 |
How to allow getUserMedia on a ionic project with crosswalk.When I run my ionic app with crosswalk, and try open the camera through the getUserMedia api.1o Simply using pure cordova, without ionic or CCA.cordova plugin add cordova-plugin-crosswalk-webview.http://stackoverflow.com/questions/31186176/how-to-allow-getuse... 阅298 转0 评0 公众公开 16-04-05 17:54 |
-- 要想在桌面不显示图标,只需注释掉APP入口Activity中的下面这句即可,或者把下面的LAUNCHER改成DEFAULT也行 --> <!-- <category android:name="android.intent.category.LAUNCHER" /> --> </intent-filter> </activity></application></manifest>3、上面的设置可以让桌面图标不显示的原因... 阅371 转2 评0 公众公开 16-03-21 15:09 |
Android 平台语音通话及回音消除、噪音消除研究 Android 平台语音通话及回音消除、噪音消除研究一 Android操作系统由来 Android是一种基于Linux的自由及开放源代码的操作系统,主要使用于移动设备,如智能手机和平板电脑,由Google公司和开放手机联盟领导及开发。 阅1649 转5 评0 公众公开 16-03-09 13:42 |
阅762 转1 评0 公众公开 16-02-24 11:56 |
阅82 转0 评0 公众公开 16-02-24 11:56 |
关于支付宝即时到帐异步通知(notify_url)一点总结。这样很有可能直接就跳转到别处(3)notify_url会按照一定的频率,发送验证请求,一旦返回success,则中断。如果商户反馈给支付宝的字符不是success这7个字符,支付宝服务器会不断重发通知,直到超过24小时22分钟。客户端接入了支付宝付款,支付过程调用服务器端进行签名,客户端完成了付款... 阅14890 转10 评0 公众公开 16-02-24 10:19 |
纯脚本编译WebRTC For Android.检出后在webrtc-build-scripts\android可以看到核心脚本build.sh。# Boot up and provision the vagran t box ,Linux用户请忽略vagran t up # SSH into the vagran t box,Linux用户请忽略vagran t ssh # Source all the routinessource android/build.sh # Install any dependencies neededinstall_dependencie... 阅1602 转0 评0 公众公开 16-02-19 14:30 |