[summary of the invention]
Technical problem to be solved by this invention provides a kind of mobile phone and video call method and device, adjusts the video calling pattern flexibly to make by the side of answering in the process at video according to the user, and is user-friendly.
The technical scheme that the present invention adopts for the technical solution problem provides a kind of mobile video call method, said method comprising the steps of:
When the user carries out video calling by mobile phone, judge the state that is arranged on the soft-touch control on the described mobile phone;
Whether the state of judging described soft-touch control changes, and obtains a judged result;
Controlling described mobile phone according to described judged result switches between the first video calling pattern and the second video calling pattern.
Wherein, described judged result comprises:
Described soft-touch control is changed to release condition from down state, and described soft-touch control is changed to down state from release condition.
Wherein, controlling the step that described mobile phone switches according to described judged result between the first video calling pattern and the second video calling pattern specifically comprises:
If described soft-touch control is changed to release condition from down state, then control described mobile phone from the described first video calling mode switch to the described second video calling pattern;
Described soft-touch control is changed to down state from release condition, then controls described mobile phone from the described second video calling mode switch to the described first video calling pattern.
Wherein, under the described first video calling pattern, described mobile phone is sent to video calling side with the alternate image that prestores as video image, and the receiver by described mobile phone is with the sound playing of described video calling side.
Under the described second video calling pattern, described mobile phone by camera head real-time obtain video image, and the video image that obtains is sent to video calling side, and the loud speaker by described mobile phone is with the sound playing of described video calling side.
Wherein, the alternate image that prestores of described mobile phone comprises video flowing or picture.
The technical scheme that the present invention adopts for the technical solution problem provides a kind of mobile video communicator, and described device comprises soft-touch control induction module, image switching module and track switching module,
Wherein, described soft-touch control induction module is used to judge the state that is arranged on the soft-touch control on the described mobile phone, judges whether the state of described soft-touch control changes, and obtains a judged result;
Described image switching module is used for controlling described mobile phone according to described judged result and carries out the switching of image acquisition according to the first video calling pattern or the second video calling pattern;
Described track switching module is used for controlling described mobile phone according to described judged result and carries out the switching of sound channel according to the first video calling pattern or the second video calling pattern.
Wherein, described judged result comprises:
Described soft-touch control is changed to release condition from down state, and described soft-touch control is changed to down state from release condition.
Wherein, under the described first video calling pattern, described image switching module is sent to video calling side with the alternate image that prestores as video image, and the receiver of described track switching module by described mobile phone is with the sound playing of described video calling side;
Under the described second video calling pattern, described image switching module by camera head real-time obtain video image, and the video image that obtains is sent to video calling side, the loud speaker of described track switching module by described mobile phone is with the sound playing of described video calling side.
Wherein, described device also comprises:
Alternate image is provided with module, is used to the alternate image that prestores, and described alternate image is video flowing or picture.
The technical scheme that the present invention adopts for the technical solution problem provides a kind of mobile phone, comprise soft-touch control, also comprise the mobile video communicator that the embodiment of the invention provides, described soft-touch control connects the soft-touch control induction module of described mobile video communicator.
Pass through the foregoing description, the present invention can adjust the video calling pattern flexibly according to the answer mode of user in video call process, when for example the mode of answering as the user is " near ear ", then be adjusted into a kind of video calling pattern automatically near ear, greatly convenient for users to use.
[embodiment]
The present invention is described in detail below in conjunction with drawings and Examples.
Fig. 1 shows the flow process of the mobile video call method that the embodiment of the invention provides.
In step S101, portable terminal obtains the state that is arranged on the soft-touch control on the described mobile phone in video call process.
Wherein, soft-touch control can be arranged on the earpiece place, also can be arranged on the position that other are touched easily, does not enumerate one by one herein.
In step S102, judge whether the state of soft-touch control changes, obtain a judged result.
Wherein, judged result comprises: soft-touch control is changed to release condition from down state, and soft-touch control is changed to down state from release condition.
In step S103, between the first video calling pattern and the second video calling pattern, switch according to judged result control mobile phone.
Wherein, step S103 specifically comprises:
If soft-touch control is changed to release condition from down state, then control mobile phone from first video calling mode switch to the second video calling pattern;
If soft-touch control is changed to down state from release condition, then control described mobile phone from the described second video calling mode switch to the described first video calling pattern.
Wherein, under the first frequency call mode, mobile phone is sent to video calling side with the alternate image that prestores as video image, and passes through the sound playing of the receiver of mobile phone with video calling side.
Preferably, the default alternate image of mobile phone comprises the video flowing that mobile phone intercepts or the picture of mobile phone storage in video call process, can certainly be other image format, does not enumerate one by one herein.
Wherein, alternate image is stored in fixed position in the mobile phone file, when the user preset image by mobile phone, behind the video flowing or picture that intercepts in one section video call process in select File, mobile phone will be kept at the positional information of this video flowing or picture in the setting option; In the time will obtaining default video flowing or picture, at first read the positional information of video flowing in the setting option or picture, can obtain corresponding video flowing or picture in the fixed position reading of data again.
Under the second video calling pattern, mobile phone by camera head real-time obtain video image, and the video image that obtains is sent to video calling side, and the loud speaker by mobile phone is with the sound playing of video calling side.
Wherein, the embodiment of the invention is example with the soft-touch control for the capacitive induction switch:
A pair of adjacent electrode (being the sensing part of capacitive induction switch) is arranged in the capacitive induction switch, fixed capacity is arranged between adjacent electrode.During near two electrodes, can produce a new coupling capacitance as human body between electrode and human body, there is the electric capacity of ground connection on one side in the capacitive induction switch, and the existence of human body has increased switch to the electric capacity between the ground connection.Therefore can detect whether certain position of human body is arranged by changes in capacitance, judge promptly whether soft-touch control is pressed near the capacitive induction switch.
A relaxation oscillator that constantly charges and discharge is arranged in the capacitive induction switch, if human body contact-making switch not, relaxation oscillator has one fixedly to discharge and recharge the cycle, and frequency can be measured.If certain part contact-making switch of human body is arranged, will increase the dielectric constant of capacitor, the cycle that relaxation oscillator discharges and recharges will be elongated, and frequency will correspondingly reduce.Based on above-mentioned principle, the state that the variation by sense cycle just can sense switch.The state that the current soft-touch control of one variable (int current_touch_button_status) record is arranged in the mobile phone, i.e. down state or release condition.
When certain part (as near the face ear, the ear) of user's health with after the switch list face portion contacts, switch produces an interrupt notification mobile phone, mobile phone calls the Interrupt Process function (void touch_button_close (void)) that button is pressed, this Interrupt Process function is done following processing: variable (int current_touch_button_status) value of at first checking the current key-press status of record, if current state also is for " pressing " state, then need not to handle this actuation of keys; If current state is " opening " state, be " closing " state with this variable update earlier; Whether be in video call state, if then current user's communication mode is changed to the first video calling pattern, i.e. " ear is pressed close to mode " in the video calling if then judging current; If current is not to be in the video call state, then any processing is not done in this touching act.
Equally, when certain part of user's health and contact-making switch surface portion are become when separating by contact, switch produces an interrupt notification mobile phone, mobile phone calls the Interrupt Process function (void touch_button_open (void)) that this button is opened, the Interrupt Process function is done following processing: variable (int current_touch_button_status) value of at first checking the current key-press status of record, if current state also is to be in " opening " state, then need not to handle this actuation of keys; If current state is " closing " state, be " opening " state with this variable update earlier; Whether be in video call state, if then current user's communication mode is changed to the second video calling pattern in the video calling, promptly " normally answer " if then at first judging current; If current is not in the video call state, then this separating behavior is not done any processing.
Fig. 2 shows the structure of the terminal real time video image deriving means that the embodiment of the invention provides, and described terminal comprises that alternate image is provided with module 21, soft-touch control induction module 22, image switching module 23 and track switching module 24.
Wherein, alternate image is provided with module 21 and is used to the alternate image that prestores.
Preferably, default alternate image is video flowing or picture, can certainly be the image of other form, does not enumerate one by one herein.
In the mobile terminal video communication process, soft-touch control induction module 22 obtains the state that is arranged on the soft-touch control on the mobile phone, judges whether the state of soft-touch control changes, and obtains a judged result.
If soft-touch control induction module 22 judges that soft-touch controls are changed to release condition from down state, image switching module 23 by camera head real-time obtain video image, and the video image that obtains is sent to video calling side; Track switching module 24 is switched to the loud speaker of portable terminal with the sound channel of portable terminal, by the sound playing of loud speaker with described video calling side.
If soft-touch control induction module 22 judges that soft-touch control is changed to down state from release condition, image switching module 23 is sent to video calling side with the alternate image that prestores as video image; Track switching module 24 is switched to the receiver of described portable terminal with the sound channel of portable terminal, by the sound playing of receiver with video calling side.
The principle of the control device of the mobile terminal video conversation that provides about the embodiment of the invention sees also above the flow process at the control method of mobile terminal video conversation, is not giving unnecessary details herein.
Fig. 3 shows the structure of the terminal that the embodiment of the invention provides, and comprises soft-touch control 31, also comprises the video calling device 32 that the embodiment of the invention provides, and soft-touch control 31 connects the soft-touch control induction module 22 of video calling devices 32.
The course of work that cooperatively interacts about video calling device 32 and soft-touch control 31 sees also above description, repeats no more herein.
The present invention can adjust the video calling pattern flexibly according to the answer mode of user in video call process, when for example the mode of answering as the user is " near ear ", then be adjusted into a kind of video calling pattern automatically near ear, greatly convenient for users to use.
In the above-described embodiments, only the present invention has been carried out exemplary description, but those skilled in the art can carry out various modifications to the present invention after reading present patent application under the situation that does not break away from the spirit and scope of the present invention.