MTK手机软件开发 收藏
<script type="text/javascript"> document.body.oncopy = function() { if (window.clipboardData) { setTimeout(function() { var text = clipboardData.getData("text"); if (text && text.length>300) { text = text + "/r/n/n本文来自CSDN博客,转载请标明出处:" + location.href; clipboardData.setData("text", text); } }, 100); } } </script> <script type="text/javascript">function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script> MTK实现自动录像的过程
//#include "Gdi_image_bmp.h"
extern void mmi_vdorec_ck_release_hdlr(void);
extern void mmi_vdorec_ck_press_hdlr(void);
extern void mmi_vdorec_exit_app();
extern void mmi_vdorec_entry_app(void);
extern void btl_video_stop_hander(void);
void btl_video_auto_handler(void)
{
//进入录像状?
mmi_vdorec_entry_app();
//开始录像
kal_prompt_trace(MOD_MMI,"g_vdorec_cntx.state:%d",g_vdorec_cntx.state);
mmi_vdorec_ck_press_hdlr();
mmi_vdorec_ck_release_hdlr();
//到一定时间停?
StartTimer(auto_video, 10*1000, btl_video_stop_hander );
// StopTimer(auto_video);
}
void btl_video_stop_hander(void)
{
mmi_vdorec_rsk_press_hdlr();
kal_prompt_trace(MOD_MMI,"lizisong_video");
mmi_vdorec_rsk_release_hdlr();
kal_prompt_trace(MOD_MMI,"lizison_video");
mmi_vdorec_entry_saving_screen();
kal_prompt_trace(MOD_MMI,"lizisong_video");
EntryIdleScreen();
// mmi_vdorec_exit_app();
//mmi_vdorec_rsk_press_hdlr();
// mmi_vdorec_rsk_release_hdlr();
//mmi_vdorec_exit_sublcd_screen();
kal_prompt_trace(MOD_MMI,"lizisong_video_successful");
}