Background technology
Video telephone belongs to the multimedia communication category, it is the video meeting system in a kind of extensive application field, make people when conversation, can see the other side's image, it is not only applicable to family life, but also can be widely used in the multiple field of different industries such as every commercial activity, remote teaching, secret monitoring, hospital care, medical diagnosis, scientific investigation, thereby very vast market prospect is arranged.
An important use is exactly the recording function in conversing in the visual telephone service.By recording function, can make the user in the process of conversation, record communication process timely, convenient watching once more later.The process of video telephone video recording is exactly that the frame frame data that far-end transmits are stored in local process in fact.And the memory space on the mobile phone terminal is certain, and how in the process of recording, time or the remaining memory space of reminding the user to record dynamically just seem very necessary.
Therefore, the recording time that how to calculate video telephone just seems very necessary.In the TD-SCDMA/WCDMA system, because present visual telephone service is to realize as a kind of bearer service of circuit domain, therefore, under RDI/UDI (the restricted digital information of the Restricted Digital Information/unconfined digital information of Unrestricted Digital Information) pattern, speed only can reach 56kbit/s or 64kbit/s.The reasons such as speed that move owing to network reason, user, the transmission rate of video telephone is not unalterable 56kbit/s or the 64kbit/s of being fixed on, its transmission rate is the value of a variation, therefore just can not calculate the time that video telephone can be recorded according to such two indexs.
At present, in the control of the recording time of handing photographic equipment, a lot of control methods are arranged, for example application number is the Chinese patent application of CN200610062912.This patent is the identical audio, video data buffering area of 2 sizes of disposable application in the RAM of system memory, carrying out when audio frequency and video record, audio, video data is put into the first audio, video data buffering area, when this buffering area is filled with, the first audio, video data buffering area is indicated with the exchange of the second audio, video data buffering area, the first audio, video data buffering area behind the exchange sign continues to deposit in the audio, video data of recording, the data of the second audio, video data buffering area behind the exchange sign write the flash memory, form recycling of the RAM of system memory middle pitch video data buffer.
This technical scheme realizes comparatively complicated, at first need to be based upon on the data basis of constant that at every turn writes buffering area, secondly the size of this buffering area is not determined, too big can waste, the too little process that writes is too frequent again, the 3rd, this method also is not suitable for recording and storing in the calling course of video telephone.
Summary of the invention
Technical problem to be solved by this invention is, the control method and the device of prompting video information in a kind of conversation on video telephone is provided, thus remaining recording time of dynamic reminding user or the remaining space of recording.
In order to address the above problem, the invention discloses the control method of prompting video information in a kind of conversation on video telephone, comprising:
After terminal is opened visual telephone service, detect described terminal free memory size and current video telephone image transmission rate, according to described storage size and transmission rate calculates recording time left in real time and/or residue is recorded the space, and show that to the user described recording time left and/or residue record the space.
Further, in the said method, after described terminal is calculated recording time left and/or residue in real time and recorded the space, record the space smaller or equal to first thresholding that is provided with in advance if judge this recording time left or residue, then point out the user to record ending message, and finish current recording operation.
Wherein, when if described recording time left or residue are recorded the space greater than described first thresholding, further judge that described recording time left or residue record second the thresholding whether space reaches prior setting, if, then detect current video telephone image transmission rate and free memory size once more, and record the space according to transmission rate that detects and big or small described recording time left and/or the residue calculated in real time of free memory.
Described second thresholding comprises when being worth more than two, reach any value in described second thresholding if the described recording time left of described terminal judges or residue are recorded the space, all will detect current video telephone image transmission rate and free memory size once more.
When described second threshold value is rate value, whether the ratio that the described current residual recording time of described terminal judges accounts for the total time that can record reaches described second thresholding, judges that perhaps described current residual records the ratio that the space accounts for the gross space that can record and whether reach described second thresholding.
After described terminal is opened visual telephone service, periodically detect current video telephone image transmission rate and free memory size, and record the space according to transmission rate that detects and big or small described recording time left and/or the residue calculated in real time of free memory.
The invention also discloses the control device of prompting video information in a kind of conversation on video telephone, comprise the detection module, computing module and the processing module that connect successively, wherein:
Described detection module is used to detect described terminal free memory size and current video telephone image transmission rate, and testing result is sent to described computing module;
Described computing module is used for the free memory size that sends according to described detection module and video telephone image transmission rate is calculated the current residual recording time and/or residue is recorded the space, and result of calculation is sent to described processing module;
Described processing module is used for current residual recording time that described processing module is sent and/or residue and records the space and be shown to the user.
Further, in the said apparatus, also comprise a judge module, described judge module all links to each other with described computing module and processing module, described judge module, be used to judge that whether described current residual recording time or residue record the space smaller or equal to first thresholding that is provided with in advance, if then judged result is sent to described processing module;
Described processing module, according to described judged result, the prompting user records ending message, finishes current recording operation.
Wherein, described judge module, judge when described current residual recording time or residue are recorded the space greater than described first thresholding, further judge that described recording time left or residue record second the thresholding whether space reaches prior setting, if then judged result is sent to described processing module;
Described processing module according to described judged result, is called described detection module and is detected current video telephone image transmission rate and free memory size once more.
When described second thresholding comprises plural value, record the space and reach any value in described second thresholding, all judged result is sent to described processing module if described judge module is judged described recording time left or residue.
When described second threshold value is rate value, described judge module judges that described current residual recording time accounts for the ratio of the total time that can record and whether reaches described second thresholding, judges that perhaps described current residual records the ratio that the space accounts for the gross space that can record and whether reach described second thresholding.
Described detection module periodically detects current video telephone image transmission rate and free memory size, and testing result is periodically sent to described computing module.
Adopt technical solution of the present invention in calling course of video telephone, to record the space, thereby improve user experience for the user dynamically shows recording time left and/or residue.
Embodiment
Main design of the present invention is, according to the video telephone image transmission rate that detects and the size of terminal free memory, can calculate the remaining time of recording a video in the calling course of video telephone and/or the remaining space of video recording, and be shown to the user, like this, the user just can be according to the prompting of terminal, better to the video telephone operation of recording a video.
Below in conjunction with embodiment and accompanying drawing technical solution of the present invention is described in further detail.
The control device of prompting video information in a kind of conversation on video telephone as shown in Figure 1, comprises successively the detection module, computing module and the judge module that connect, and the processing module that all links to each other with computing module and judge module.Introduce the function of each module below.
Detection module is used for the free memory size and the video telephone image transmission rate of sense terminals, and testing result is sent to computing module, wherein, and can be according to prior art sense terminals video telephone image transmission rate.
Computing module is used for the free memory size of sending according to detection module and video telephone image transmission rate calculates recording time left and/or residue is recorded the space, and result of calculation is sent to judge module and processing module respectively;
Wherein, computing module is recorded the space with the free memory that detection module sends as current residual, and free memory is obtained the current residual recording time divided by current video telephone image transmission rate.
Judge module, be used to judge that current residual recording time or residue record the space whether smaller or equal to setting first thresholding (being that least residue recording time or least residue are recorded the space), if, then judged result is sent to processing module, otherwise, further judge that current residual recording time or residue record the space and whether reach second thresholding (promptly whether triggering terminal detects current video telephone image transmission rate once more), if then judged result is sent to processing module;
Preferably, second threshold value is a rate value, at this moment, judge module judges whether current residual recording time and the ratio of the total time that can record arrive second threshold value, judges that perhaps current residual records the ratio of space and the gross space that can record and whether arrive second threshold value;
In other embodiments, second thresholding can also include plural value, and at this moment, judge module judges that current residual recording time or current residual record the space when reaching in second thresholding any value, all judged result is sent to processing module.
Processing module is used for recording the space according to recording time left and/or residue that computing module sends, shows in real time that to the user current residual recording time and/or residue record the space, and this module is also handled accordingly according to the judged result that judge module sends;
Wherein, after processing module receives that recording time left that computing module sends and/or residue are recorded the space, this recording time left and/or residue are recorded the space to be recorded the space as current residual recording time and/or residue and is shown to the user, afterwards, arrive whenever the unit interval of setting, the recording time left that processing module just will show before deducts this unit interval, with result of calculation as new recording time left, perhaps the space of recording with current residual deducts and records the shared space of recording in the unit interval, result of calculation is recorded the space as new residue, be shown to the user;
Processing module receives that judged result that judge module sends is that current residual recording time or residue are recorded the space when setting first thresholding, then finishes recording process, and the prompting user to record the space full;
Processing module receives that judged result that judge module sends when reaching second thresholding, then calls detection module the free memory size and the video telephone image transmission rate of sense terminals once more.
Preferably, periodically the free memory size and the video telephone image transmission rate of sense terminals of detection module in the said apparatus, and testing result sent to computing module.Like this, judge module just can only judge that current residual recording time or residue record the space whether smaller or equal to setting first thresholding (being that least residue recording time or least residue are recorded the space).
Said apparatus can be widely used in the various terminal equipments, for example, and mobile phone, desktop telephones etc.
Said apparatus is controlled the process of video recording in calling course of video telephone, as shown in Figure 2, may further comprise the steps:
Step 201: obtain the terminal free memory;
Step 202: detect current video telephone image transmission rate;
In this step, can detect current video telephone image transmission rate according to prior art.
Step 203: the recording time left and/or the residue that calculate video telephone according to terminal free memory and video telephone image transmission rate are recorded the space;
Step 204: above-mentioned recording time left and/or residue are recorded the space be shown to the terminal use;
Step 205: every a set time, just the recording time left that will show last time deducts this set time as the current residual recording time, and update displayed is given the user, perhaps be multiply by video telephone image transmission rate this set time and obtain the shared memory space of video recording in this set time, and record the space with the residue that showed last time and deduct the shared memory space of video recording in this set time as current residual organizational system space, update displayed is to the user;
Step 206: during each update displayed, judge that current residual recording time or residue record the space whether smaller or equal to first thresholding of setting, if, execution instep 207a then; Otherwise, execution instep 207b;
Step 207a: it is full that the prompting user records the space, finishes recording process;
Step 207b: judge that current residual recording time or residue record second the thresholding whether space reaches setting, if then returnstep 201; Otherwise, returnstep 205.
In the above-mentioned steps, second threshold value is a rate value, at this moment, judge module judges whether current residual recording time and the ratio of the total time that can record arrive second threshold value, judge that perhaps current residual records the ratio of space and the gross space that can record and whether arrive second threshold value, in other embodiments, second thresholding can also include plural value, at this moment, judge module judges that current residual recording time or current residual record the space when reaching in second thresholding any value, all judged result is sent to processing module.
In other embodiments,step 202 can periodically detect current video telephone image transmission rate, and above-mentioned flow process just can be recorded the space according to recording time left and/or residue that terminal free memory and video telephone image transmission rate periodically calculate video telephone, and be shown to the user, at this moment, only judge that current residual recording time or residue record the space and whether get final product smaller or equal to first thresholding of setting, and need not to judge that current residual recording time or residue record second the thresholding whether space reaches setting.
In the above-mentioned flow process, the control procedure of the incipient stage of recording a video in the calling course of video telephone as shown in Figure 3, may further comprise the steps:
Step 301: the user carries out conversation on video telephone, begins to record;
Step 302: obtain system's free memory;
Step 303: detect current video telephone image transmission rate;
Step 304: calculate recording time left and/or residue recording and storing space according to system's free memory and video telephone image transmission rate;
Step 305: above-mentioned recording time left as the current residual recording time, is recorded the space with above-mentioned residue recording and storing space as current residual, be shown to the user;
Step 306: judge that current residual recording time or residue record the space whether smaller or equal to first thresholding of setting, then execution instep 307, otherwise, returnstep 305,
Step 307: it is full that the prompting user records the space, finishes recording operation.
The process of video recording control in the calling course of video telephone as shown in Figure 4, may further comprise the steps:
Step 401: the user records a video in conversation on video telephone;
Step 402: every a set time, recording time left is deducted the set time as the current residual recording time, perhaps residue is recorded the space and deducted the shared memory space of video recording in the set time, record the space, be shown to the user as residue;
Step 403: when each update displayed recording time left and/or residue are recorded the space, judge that current residual recording time or residue record second the thresholding whether space reaches setting,, otherwise returnstep 402 if then execution instep 404;
Step 404: obtain system's free memory;
Step 405: detect current video telephone image transmission rate;
Step 406: according to the terminal free memory with video telephone image transmission rate calculates recording time left or residue is recorded the space;
Step 407: above-mentioned recording time left as the current residual recording time, is recorded the space with above-mentioned residue recording and storing space as current residual, be shown to the user;
Step 408: judge that current residual recording time or current residual record the space whether smaller or equal to first thresholding of setting, if then execution instep 409, otherwise, returnstep 402;
Step 409: it is full that the prompting user records the space, finishes recording process.
From the foregoing description as can be seen, technical solution of the present invention is based on the characteristics of video telephone image variable rate transmission, in the process that conversation on video telephone is recorded, calculate in real time recording time left and/or residue and record the space, and show dynamically that to the terminal use recording time left and/or residue record the space.Simultaneously, technical solution of the present invention is applicable to all kinds telephone terminal, no matter is fixed line terminal or mobile telephone terminal, can realize conveniently dynamically showing that recording time left and/or residue record the function in space.In addition, operator adopts and need not after the technical solution of the present invention switch device of existing telephone network is transformed and upgraded and can realize.
Certainly; the present invention can also have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.