camera对象提供对设备默认摄像头应用程序的访问. 程序运行效果 相关代码 <!DOCTYPE html> <html> <head> <title> PhoneGap Device Ready Example </title> <link href="content/css/themes/default/jquery.mobile.structure-1.4.0-beta.1.min.css" rel="s…
PhoneGap API Events backbuttondevicereadymenubuttonpauseresumeonlineofflinebatterycriticalbatterylowbatterystatusvolumedownbuttonvolumeupbutton 点击下载源代码包 参考代码 <!DOCTYPE html> <html> <head> <title> PhoneGap Device Ready Example </…
使用Geolocation基于所在地理位置坐标调用百度地图API 效果图 示例代码 <!DOCTYPE html> <html> <head> <title> PhoneGap Device Ready Example </title> <link href="content/css/themes/default/jquery.mobile.structure-1.4.0-beta.1.min.css" rel=&quo…
创建鸣叫  使用 confirmation.beep 创建鸣叫 function playBeep() {     navigator.notification.beep(1); } 创建振动  使用 confirmation.vibrate 创建振动 function vibrate() {     navigator.notification.vibrate(1000); } 创建自定义警告  使用 notification.alert 创建自定义警告 创建自定义通知  使用 notific…
PhoneGap 再次点击返回键切换到桌面效果 相关代码 <!DOCTYPE html> <html> <head> <title> PhoneGap Device Ready Example </title> <link href="content/css/themes/default/jquery.mobile.structure-1.4.0-beta.1.min.css" rel="stylesheet&…
使用Accelerometer 加速器效果图 示例代码 <!DOCTYPE html> <html> <head> <title> Cude PhoneGap Demo </title> <link href="content/css/themes/default/jquery.mobile.structure-1.4.0-beta.1.min.css" rel="stylesheet" type=&…
加入 摄像头采集和264编码,再使用live555直播 1.摄像头采集和264编码 将x264改成编码一帧的接口,码流不写入文件而是直接写入内存中(int  Encode_frame 函数中). /* * Filename: encodeapp.h * Auther: mlj * Create date: 2013/ 1/20 */ #ifndef _ENCODEAPP_H_ #define _ENCODEAPP_H_ #include "x264.h" #include <st…
参看 有关live555 1.首先需要修改live555,定义从 内存中直接获取source而不是从文件读取source的类. 自己实现的类命名为 H264FramedLiveSource   /* * Filename: H264FramedLiveSource.hh * Auther: chenbin * Create date: 2013/ 1/22 */ #ifndef _H264FRAMEDLIVESOURCE_HH #define _H264FRAMEDLIVESOURCE_HH #…
PhoneGap和Appcelerator Titanium,对于封装和配置移动应用程序而言,二者都是非常受欢迎的开源JavaScript框架.本文为Appcelerator开发者Kevin Whinnery对PhoneGap和Appcelerator Titanium进行的全方位的比较. 以下为全部译文: 我在面向开发者的各项活动和大会上经常被问及一个问题:Titanium与PhoneGap相比到底怎样.我想,看来有必要抽点时间,从宏观层面解释每一项技术是如何工作的,并且评估这两项技术彼此相比…
一.       首个全流程跨平台界面开发套件,PowerUI正式发布 UIPower在DirectUI的基础上,自主研发全球首个全流程跨平台界面开发套件PowerUI(PUI)正式发布,PowerUI将于2016年8月底正式发布! PowerUI全流程跨平台界面开发套件包含有:PUI UXDesigner用户体验设计工具,PS Builder 视觉设计辅助工具,PUI Builder 可视化界面开发工具,PUI Control Creator 可视化控件开发工具,PUI SDK 界面开发系统支…