A kind of processing method of communication traffic, terminal and computer-readable recording mediumTechnical field
The present invention relates to electronic technology field, more particularly to a kind of processing method of communication traffic, terminal and computer canRead storage medium.
Background technology
With the fast development of mobile phone terminal technology, mobile phone can be supported more and more to apply, and such as game, video, regardFrequency call etc., but when user is using these applications, the various communication informations that terminal receives can influence user to current applicationBe continuing with.For example, when user watches video or played games, terminal receives the message of short message, wechat or QQ classes,Running background only can be switched to after ejecting prompting frame, if user is needed at these message at the current operation interface of userReason, just will exit current application, find corresponding message processing platform.Although present existing split screen technology can solve the problem that above-mentionedProblem, but operating procedure is relatively complicated, and the use to user is made troubles.
Especially, when terminal receives calling class communication information, current application can be directly interrupted, full screen display calling class is led toInformation is interrogated, although after to the processing of such communication information, terminal can return to the application being interrupted, and some applications also need user againOpen.This pressure to current application, which interrupts, to bring serious shadow to the user for playing games or holding video conferenceRing, bad usage experience is brought to user.
The content of the invention
In view of this, the embodiment of the present invention it is expected to provide a kind of processing method of communication traffic, terminal and computer-readableStorage medium, solve the problems, such as in prior art, and lift user experience.
To achieve the above object, the embodiment of the present invention provides a kind of processing method of communication traffic, including:
Whether the current application for judging terminal device is intended application;
When current application is intended application, the communication information of terminal device is obtained;
Barrage and suspension ball are generated according to communication information, and barrage and suspension ball are shown in the display interface of current application;
Barrage is handled using suspension ball.
Alternatively, also include before the step of being handled using suspension ball barrage:
Whether detecting user clicks on one in barrage, if so, then being entered using suspension ball to one in the barrage of clickRow processing;
If it is not, then sequentially handled from first of barrage using suspension ball.
Alternatively, communication information includes at least one of text information, pictorial information, voice messaging and call request;
When communication information is text information, barrage includes head portrait, the user name or remark names, word of source person of source personAt least one of the lorry icon in content and source;
When communication information is pictorial information, barrage includes head portrait, the user name or remark names, picture of source person of source personAt least one of keyword and the lorry icon in source;
When communication information is voice messaging, barrage includes head portrait, the user name or remark names, voice of source person of source personAt least one of lorry icon of icon and informed source;
When communication information is call request, barrage includes the remark names of caller, the ownership place of caller and callerAt least one of telephone number.
Alternatively, when communication information is text information, pictorial information, a kind of in voice messaging, suspension ball includes quickThe step of replying key, reminding key, keyboard to reply key and speech message play button, handled using suspension ball barrage later is wrappedInclude:
When selecting Quick-return key, the conventional reply language for barrage is presented below Quick-return key, commonly uses and replysPragmatic is replied in barrage, and after replying barrage, control barrage disappears from the display interface of current application;
When selection reminds key later, control barrage to be disappeared from the display interface of current application and be changed into running backgroundConventional information frame, and after current application terminates, eject message box;
When selecting keyboard to reply key, ejection keyboard is directed in the display interface of current application, and being sent using keyboardAfter the message of barrage, barrage and keyboard is controlled to disappear;
When selecting speech message play button, the speech message in barrage is read out.
Alternatively, method also includes, and when communication information is call request, suspension ball includes Answer Key, hang-up key, laterThe step of reminding key and Quick-return key, being handled using suspension ball barrage is included:
When selecting Answer Key, control suspension ball becomes the small circle of flicker, and the duration of call is shown in small circle,When again tapping on small circle, control barrage to disappear and terminate current talking;
When selecting hang-up key, control barrage disappears from the display interface of current application;
When selection reminds key later, control barrage to be disappeared from the display interface of current application and be changed into running backgroundTraditional missed call asks frame, and after current application terminates, ejection missed call request frame;
When selecting Quick-return key, conventional reply language is presented below control Quick-return key, commonly uses and replys pragmatic in rightBarrage is replied, and after replying barrage, control barrage disappears from the display interface of current application.
Alternatively, after barrage disappears from the display interface of current application, display circle of the suspension ball from current application is controlledFace disappears.
Alternatively, when long-press barrage and/or suspension ball, barrage and/or suspension ball is made to be drawn to current application and showThe optional position at interface;
When double-clicking barrage and/or suspension ball, skin function frame, skin function frame are ejected in the display interface of current applicationIncluding color adaptation function and/or transparency regulatory function, changing for color adaptation function and/or transparency regulatory function is controlledBecome, the color and/or transparency for making barrage and/or the suspension ball change.
Another aspect according to embodiments of the present invention, also provides a kind of processing terminal of communication traffic, including processor, depositsReservoir and communication bus;
Communication bus is used to realize the connection communication between processor and memory;
Processor is used to perform the communication traffic processing routine stored in memory, to realize following steps:
Whether the current application for judging terminal device is intended application;
When current application is intended application, the communication information of terminal device is obtained;
Barrage and suspension ball are generated according to communication information, and barrage and suspension ball are shown in the display interface of current application;
Barrage is handled using suspension ball.
Alternatively, processing terminal includes processor, memory;
Memory, it is configured to memory communicating business processing program;
Processor, it is configured to perform the communication traffic processing routine stored in memory, to realize in claim 2 to 7Step described in any one.
Another aspect according to embodiments of the present invention, additionally provide a kind of computer-readable recording medium.The computer canRead storage medium be stored with one or more program, one or more program can by one or more computing device,The step of to realize the processing method of any one of claim 1 to 7 communication traffic.
By the present invention, whether the current application for judging terminal device is intended application, if intended application, is then obtained eventuallyThe communication information of end equipment, barrage and suspension ball are generated according to communication information, and barrage is shown in the display interface of current applicationAnd suspension ball, barrage is handled using suspension ball, current application processing communication information is interrupted without user during this, carriesHigh Consumer's Experience.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of communication traffic processing method provided in an embodiment of the present invention;
Fig. 4 is the flow chart of another communication traffic processing method provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of communication traffic processing method provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of another communication traffic processing method provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of Fig. 6 call request answer modes;
Fig. 8 is the structural representation of the mobile terminal of communication traffic processing method provided in an embodiment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is onlyBe advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mixGround uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat boardComputer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portableMedia player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. moveDynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except specialOutside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shiftingDynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base stationDownlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrateFrequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communicationStandard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunicationsSystem), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (CodeDivision Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code DivisionMultiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous CodeDivision Multiple Access, TD SDMA), FDD-LTE (Frequency DivisionDuplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time DivisionDuplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 showsGo out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to needTo be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100When under formula, speech recognition mode, broadcast reception mode isotype, by radio frequency unit 101 or WiFi module 102 it is receiving orIt is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 is alsoThe audio output related to the specific function that mobile terminal 100 performs can be provided (for example, call signal receives sound, messageReceive sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition modeOr the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried outReason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be depositedStorage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.MikeWind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing canTo be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send soundCaused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographiesSensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environmentThe light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's earDisplay panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generalFor three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrapDisplay panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be usedForms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminalThe key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 withAnd other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detectionTwo parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bandThe signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by itContact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, canTo realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrapInclude but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 orAfter neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thingThe type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, canInput and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specificallyLimit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothingLine FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) endMouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, numberIt is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be withFor transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program areaAnd storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one functionSound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such asVoice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easyThe property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connectionIndividual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storageData in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out whole monitoring to mobile terminal.PlaceReason device 110 may include one or more processing units;Alternatively, processor 110 can integrate application processor and modulatedemodulate is mediatedDevice is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainHandle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, alternatively, power supply 111Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, putThe function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention entersRow description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network systemUnite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is usedFamily equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS landsGround wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returningJourney (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy andCharging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 andThe control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registersSuch as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc.The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IPAddress is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resourcesPoint, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimediaSystem) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not onlySuitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA withAnd following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Embodiment 1
Referring to Fig. 3, Fig. 3 is a kind of flow chart of communication traffic processing method provided in an embodiment of the present invention, as schemed instituteShow, this method comprises the following steps:
Step S301:Whether the current application for judging terminal device is intended application.Intended application includes game, video leads toWords, video conference, video.
Step S302:When current application is intended application, the communication information of terminal device is obtained.Communication information includes textAt least one of word information, pictorial information, voice messaging and call request.
Step S303:Barrage and suspension ball are generated according to communication information, and barrage is shown in the display interface of current applicationAnd suspension ball.
Specifically, when communication information be text information, pictorial information and voice messaging in it is a kind of when, barrage includes sourceThe head portrait of person, the user name or remark names of source person, at least one of the lorry icon in the information content and source, suspension ball includesQuick-return key, key, keyboard is reminded to reply key and speech message play button later;
When communication information is call request, barrage includes the remark names of caller, the ownership place of caller and callerAt least one of telephone number, suspension ball includes Answer Key, hang-up key, reminds key and Quick-return key later.
Step S304:Barrage is handled using suspension ball.
By above-mentioned steps, whether the current application for judging terminal device is intended application, if intended application, is then obtainedThe communication information of terminal device, barrage and suspension ball are generated according to communication information, and bullet is shown in the display interface of current applicationCurtain and suspension ball, are handled barrage using suspension ball, interrupt current application processing communication information without user during this,Improve the usage experience of user.
Referring to Fig. 4, Fig. 4 is the flow chart of another communication traffic processing method provided in an embodiment of the present invention, such as schemeShown, this method comprises the following steps:
Step S401:Goal-selling application, the intended application include game, video calling, video conference, video.NeedIllustrate, intended application include but is not limited to game, video calling, video conference, video, can also be not desired to including user becauseAny application being interrupted when communication information enters terminal.
Step S402:Judge whether to receive communication information, if so, then performing step S403;Step is performed if it is not, then returningS402。
Step S403:Whether the current application for judging terminal device is intended application, if so, then performing step S404;IfIt is no, then perform step S410.Specifically, when terminal device receives communication information, judging the current application of terminal device isIt is no to belong to goal-selling application.Further, the identification information of current application is obtained, is entered with the identification information of goal-selling applicationRow contrast, if the identification information of current application belongs to the identification information of goal-selling application, current application is intended application;IfThe identification information of current application is not in the identification information of goal-selling application, then current application is not belonging to intended application, according toOld process handles communication information.
Step S404:Obtain the communication information of terminal device.Specifically, will after terminal device receives communication informationCommunication information is transferred to buffer zone.
Step S405:Judge the classification of communication information.Specifically, will be logical according to the content of communication information in buffer zoneNews information is divided into four classes:Text information, pictorial information, voice messaging and call request.
Further, when to detect communication information content be word, extract the head portrait of the source person of this communication information, comeAt least one of the user name or remark names of source person, the lorry icon of word content and source, generate a memory cell, storageTo text information buffer zone.
When to detect communication information content be picture, head portrait, the net of source person of the source person of this communication information are extractedAt least one of lorry icon of name or remark names, picture keyword and source, generates a memory cell, and picture is arrived in storageInformation cache region.
When to detect communication information content be voice, head portrait, the net of source person of the source person of this communication information are extractedAt least one of lorry icon of name or remark names, picture keyword and source, generates a memory cell, and voice is arrived in storageInformation cache region.
When to detect communication information be call request, the remark names of the caller of this communication information, caller are extractedAt least one of ownership place and the telephone number of caller, generate a memory cell, and call request buffer zone is arrived in storage.
Step S406:According to the classification of communication information, the generation barrage and suspension ball corresponding with communication information classification.
Specifically, when communication information is text information, the storage list of this information is extracted from text information buffer zoneMember, generate barrage.Barrage includes the head portrait of source person, the user name or remark names of source person, the platform figure in word content and sourceAt least one of mark;
When communication information is pictorial information, the memory cell of this information is extracted from pictorial information buffer zone, is generatedBarrage.Barrage is included in the head portrait, the user name of source person or the lorry icon of remark names, picture keyword and source of source personIt is at least one;
When communication information is voice messaging, the memory cell of this information is extracted from voice messaging buffer zone, is generatedBarrage.Barrage is included in the head portrait, the user name of source person or the lorry icon of remark names, voice icon and informed source of source personAt least one;
When communication information is call request, the memory cell of this information is extracted from call request buffer zone, is generatedBarrage.Barrage includes at least one of telephone number of the remark names of caller, the ownership place of caller and caller.
Further, when communication information is text information, pictorial information, a kind of in voice messaging, suspension ball includesQuick-return key, key, keyboard is reminded to reply key and speech message play button later;
When communication information is call request, suspension ball includes Answer Key, hang-up key, reminds key and Quick-return laterKey.
Step S407:In the barrage and suspension ball of the display interface display generation of current application, specifically, current application isIntended application, it can be shown according to the barrage of communication information classification generation and suspension ball in the display interface of current application, Bu HuizhongDisconnected current application.
Step S408:Using the suspension ball to match with barrage, barrage is handled.Specifically, whether user is detectedOne in barrage is clicked on, if so, then being handled using suspension ball one in the barrage of click;If it is not, then using outstandingBall float is sequentially handled from first of barrage.
Further, when communication information is text information, pictorial information, a kind of in voice messaging, suspension ball pair is utilizedThe step of barrage is handled includes:
When selecting Quick-return key, the conventional reply language for barrage is presented below Quick-return key, commonly uses and replysPragmatic is replied in barrage, and after replying barrage, control barrage disappears from the display interface of current application;
When selection reminds key later, control barrage to be disappeared from the display interface of current application and be changed into running backgroundConventional information frame, and after current application terminates, eject message box;
When selecting keyboard to reply key, ejection keyboard is directed in the display interface of current application, and being sent using keyboardAfter the message of barrage, barrage and keyboard is controlled to disappear;
When selecting speech message play button, the speech message in barrage is read out.
Further, when communication information is call request, the step of being handled using suspension ball barrage, is included:
When selecting Answer Key, control suspension ball becomes the small circle of flicker, and the duration of call is shown in small circle,When again tapping on small circle, control barrage to disappear and terminate current talking;
When selecting hang-up key, control barrage disappears from the display interface of current application;
When selection reminds key later, control barrage to be disappeared from the display interface of current application and be changed into running backgroundTraditional missed call asks frame, and after current application terminates, ejection missed call request frame;
When selecting Quick-return key, conventional reply language is presented below control Quick-return key, commonly uses and replys pragmatic in rightBarrage is replied, and after replying barrage, control barrage disappears from the display interface of current application.
Step S409:After having handled barrage using suspension ball, the display interface of barrage and suspension ball from current application is controlledDisappear.Specifically, processed barrage controls display of the suspension ball from current application after the display interface of current application disappearsInterface disappears.
Step S410:Communication information is handled according to old process.Specifically, when terminal device receives communication information,If the current application of terminal device is not belonging to intended application, communication information is handled according to old process.
When communication information be text information, pictorial information and voice messaging in it is a kind of when, terminal device is in current applicationDisplay interface Pop-up message frame, remind after user has communication information, message box disappears from the display interface of current application, retractsTo running background.
When communication information is call request, then current application is interrupted, calling is displayed in full screen in the display screen of terminal deviceRequest processing interface.
Referring to Fig. 5, Fig. 5 is a kind of schematic diagram of communication traffic processing method provided in an embodiment of the present invention.As schemedShow, when current application is intended application, terminal device receives communication information, and the display screen of terminal device, which is still shown, currently shouldDisplay interface.Communication traffic described herein is one kind in text information, pictorial information, voice messaging.For example, when currentThe display interface of application is that transverse screen is shown, the communication information received is one kind in text information, pictorial information, voice messagingWhen, control barrage and suspension ball 500 to occur in the form of Fig. 5 is shown, but be not limited to such a display form.
Suspension ball 500 includes Quick-return key, reminds key, keyboard to reply key and speech message play button later, using outstandingBall float 500 is handled barrage.Clicking on needs barrage to be processed, the barrage that the processing of suspension ball 500 is chosen;If not clicking on,Acquiescence suspension ball 500 is sequentially handled from first barrage.Specifically, the step handled using suspension ball 500 barrageSuddenly include:
When selecting Quick-return key, the conventional reply language for barrage is presented below Quick-return key, commonly uses and replysPragmatic is replied in barrage, and after replying barrage, control barrage disappears from the display interface of current application;
When selection reminds key later, control barrage to be disappeared from the display interface of current application and be changed into running backgroundConventional information frame, and after current application terminates, eject message box;
When selecting keyboard to reply key, ejection keyboard is directed in the display interface of current application, and being sent using keyboardAfter the message of barrage, barrage and keyboard is controlled to disappear;
When selecting speech message play button, the speech message in barrage is read out.
Processed barrage controls display of the suspension ball 500 from current application after the display interface of current application disappearsInterface disappears.
It should be noted that in actual applications, user is set when using the current application for belonging to intended application to terminalThe processing of standby sound play device has following three kinds of situations:
Do not connect earphone and the loudspeaker for equipment of closing a terminal on the terminal device;
By the sound for connecting earphone receiving terminal apparatus on the terminal device;
Pass through the sound of the loudspeaker receiving terminal apparatus of terminal device.
When selecting the speech message play button in suspension ball 500, if wanting to receive the content of speech message, must protectThe sound-playing function normal operation of terminal device is demonstrate,proved, including:
When terminal device, which is not connected with earphone, does not open loudspeaker, the loudspeaker of opening terminal apparatus, and adjust automaticallyThe volume of current application, the volume of current application is turned down, the volume that speech message plays tunes up;
When there is earphone connection on terminal device, the volume of adjust automatically current application, by the volume of current applicationTurn down, the volume that speech message plays tunes up;
When the loudspeaker of terminal device is open mode, the volume of adjust automatically current application, by current applicationVolume turn down, speech message play volume tune up;
After speech message is read, the volume of current application is adjusted to original volume.
During this, user need not interrupt current application, can be to including in text information, pictorial information, voice messagingA kind of communication information handled, the process of processing does not interfere with user yet and uses current application, improves making for userWith experience.
The position that the barrage and suspension ball 500 of Fig. 5 displayings occur only is terminal device to the default of barrage and suspension ball 500Position.Barrage flows to opposite side from the side of terminal device, and the barrage close to opposite side leads to for what terminal device received for the first timeInformation is interrogated, suspension ball 500 is shown in the opposite side of barrage.
The determination of barrage predeterminated position includes:The control icon that detection current application display interface is shown;Determine control figureIt is marked on the position occurred on display interface;Control barrage shows paths to evade the control figure that current application display interface is shownCursor position.
The determination of the predeterminated position of suspension ball 500 includes:Detect and determine the direction of user's handheld terminal;Monitor the big thumb of userThe regional extent of finger activity;In the regional extent of user's thumb activity, user's thumb touch display screen curtain most frequency is determinedNumerous position;Control suspension ball 500 is shown in the position.
Further, user can arbitrarily change barrage and suspension ball 500 in current application according to the use habit of oneselfDisplay interface occur position.
When long-press barrage and/or suspension ball 500, barrage and/or suspension ball 500 is set to be drawn to current application and show boundaryThe optional position in face;
When double-clicking barrage and/or suspension ball 500, skin function frame, skin work(are ejected in the display interface of current applicationCan frame include color adaptation function and/or transparency regulatory function, control color adaptation function and/or transparency regulatory functionChange, the color and/or transparency for making barrage and/or suspension ball 500 change.
Referring to Fig. 6, Fig. 6 is the schematic diagram of another communication traffic processing method provided in an embodiment of the present invention.Such as figureShown, when current application is intended application, terminal device receives communication information, and the display screen of terminal device is still shown currentlyThe display interface of application.Communication traffic described herein is call request.For example, when the display interface of current application shows for transverse screenShow, when the communication information received is call request, control barrage and suspension ball 500 to occur in the form of Fig. 6 is shown, wherein,The ripple spread from inside to outside is set around the control key of suspension ball 500, represents that the communication information that terminal device receives please for callingAsk, but be not limited to such a display form.
Suspension ball 500 includes Answer Key, hang-up key, reminds key and Quick-return key later, using suspension ball 500 to barrageThe step of being handled includes:
When selecting Answer Key, control suspension ball 500 becomes the small circle of flicker, and is shown in small circle when having conversedIt is long, when again tapping on small circle, control barrage to disappear and terminate current talking;
When selecting hang-up key, control barrage disappears from the display interface of current application;
When selection reminds key later, control barrage to be disappeared from the display interface of current application and be changed into running backgroundTraditional missed call asks frame, and after current application terminates, ejection missed call request frame;
When selecting Quick-return key, conventional reply language is presented below control Quick-return key, commonly uses and replys pragmatic in rightBarrage is replied, and after replying barrage, control barrage disappears from the display interface of current application.
Processed barrage controls display of the suspension ball 500 from current application after the display interface of current application disappearsInterface disappears.
It should be noted that in actual applications, user is set when using the current application for belonging to intended application to terminalThe processing of standby sound play device has following three kinds of situations:
Do not connect earphone and the loudspeaker for equipment of closing a terminal on the terminal device;
By the sound for connecting earphone receiving terminal apparatus on the terminal device;
Pass through the sound of the loudspeaker receiving terminal apparatus of terminal device.
When selecting the Answer Key of suspension ball 500, if thinking normal talking, it must assure that the sound of terminal device plays work(Energy normal operation, including:
When terminal device, which is not connected with earphone, does not open loudspeaker, the answer mode given tacit consent to now is hands-free mode, is openedThe loudspeaker of terminal device, and the volume of adjust automatically current application are opened, the volume of current application is turned down, call modeVolume tune up;
When there is earphone connection on terminal device, the volume of adjust automatically current application, by the volume of current applicationTurn down, the volume of call mode tunes up;
When the loudspeaker of terminal device is open mode, the answer mode given tacit consent to now is hands-free mode, adjust automaticallyThe volume of current application, the volume of current application is turned down, the volume of call mode tunes up;
After talk-through, the volume of current application is adjusted to original volume.
During this, user need not interrupt current application, and call request can be handled, and the process of processing also will notInfluence user and use current application, improve user experience.
The position that the barrage and suspension ball 500 of Fig. 6 displayings occur only is terminal device to the default of barrage and suspension ball 500Position.The determination of predeterminated position is identical with described in Fig. 5, and here is omitted.
Referring to Fig. 7, Fig. 7 is the schematic diagram of Fig. 6 call request answer modes.As illustrated, call request answer modeUnder, control the suspension ball 500 of barrage to be changed into the small circle of flicker, the duration of call can be shown in small circle.Now, barrage is believedBreath can still be shown in the display interface of current application, when again tapping on small circle, controlled barrage to disappear and terminated current talking.
It should be noted that it is only predeterminated position of the terminal device to small circle that position, which occurs, in the small circle of Fig. 7 displayings.It is smallThe determination of circle predeterminated position includes:The control icon that detection current application display interface is shown;Determine that control icon is being shownThe position occurred on interface, the display location for controlling small circle are to evade the control figure mark that current application display interface is shownPut.
Further, user can arbitrarily change display interface of the small circle in current application according to the use habit of oneselfThe position of appearance.
When long-press small circle, small circle is set to be drawn to the optional position of current application display interface;
When double-clicking small circle, skin function frame is ejected in the display interface of current application, skin function frame includes colorRegulatory function and/or transparency regulatory function, the change of color adaptation function and/or transparency regulatory function is controlled, makes roundletThe color and/or transparency of circle change.
Embodiment 2
Another aspect according to embodiments of the present invention, additionally provides a kind of mobile terminal, and Fig. 8 provides for the embodiment of the present inventionCommunication traffic processing method mobile terminal 100 structural representation, including processor 110, memory 109 and communication bus112;
Communication bus 112 is used to realize the connection communication between processor 110 and memory 109;
Processor 110 is used to perform the communication traffic processing routine stored in memory 109, to realize following steps:
Whether the current application for judging terminal device is intended application;
When current application is intended application, the communication information of terminal device is obtained;
Barrage and suspension ball are generated according to communication information, and barrage and suspension ball are shown in the display interface of current application;
Barrage is handled using suspension ball.
Alternatively, processor 110 is additionally operable to perform communication traffic processing routine, to realize following steps:
Also include before the step of being handled using suspension ball barrage:
Whether detecting user clicks on one in barrage, if so, then being entered using suspension ball to one in the barrage of clickRow processing;
If it is not, then sequentially handled from first of barrage using suspension ball.
Alternatively, processor 110 is additionally operable to perform communication traffic processing routine, to realize following steps:
Communication information includes at least one of text information, pictorial information, voice messaging and call request;
When communication information is text information, barrage includes head portrait, the user name or remark names, word of source person of source personAt least one of the lorry icon in content and source;
When communication information is pictorial information, barrage includes head portrait, the user name or remark names, picture of source person of source personAt least one of keyword and the lorry icon in source;
When communication information is voice messaging, barrage includes head portrait, the user name or remark names, voice of source person of source personAt least one of lorry icon of icon and informed source;
When communication information is call request, barrage includes the remark names of caller, the ownership place of caller and callerAt least one of telephone number.
Alternatively, processor 110 is additionally operable to perform communication traffic processing routine, to realize following steps:
When communication information is text information, pictorial information, a kind of in voice messaging, suspension ball include Quick-return key,The step of reminding key, keyboard to reply key and speech message play button, handled using suspension ball barrage later is included:
When selecting Quick-return key, the conventional reply language for barrage is presented below Quick-return key, commonly uses and replysPragmatic is replied in barrage, and after replying barrage, control barrage disappears from the display interface of current application;
When selection reminds key later, control barrage to be disappeared from the display interface of current application and be changed into running backgroundConventional information frame, and after current application terminates, eject message box;
When selecting keyboard to reply key, ejection keyboard is directed in the display interface of current application, and being sent using keyboardAfter the message of barrage, barrage and keyboard is controlled to disappear;
When selecting speech message play button, the speech message in barrage is read out.
Alternatively, processor 110 is additionally operable to perform communication traffic processing routine, to realize following steps:
When communication information is call request, suspension ball includes Answer Key, hang-up key, reminds key and Quick-return laterKey, the step of being handled using suspension ball barrage, are included:
When selecting Answer Key, control suspension ball becomes the small circle of flicker, and the duration of call is shown in small circle,When again tapping on small circle, control barrage to disappear and terminate current talking;
When selecting hang-up key, control barrage disappears from the display interface of current application;
When selection reminds key later, control barrage to be disappeared from the display interface of current application and be changed into running backgroundTraditional missed call asks frame, and after current application terminates, ejection missed call request frame;
When selecting Quick-return key, conventional reply language is presented below control Quick-return key, commonly uses and replys pragmatic in rightBarrage is replied, and after replying barrage, control barrage disappears from the display interface of current application.
Alternatively, processor 110 is additionally operable to perform communication traffic processing routine, to realize following steps:
After barrage disappears from the display interface of current application, control suspension ball disappears from the display interface of current application.
Alternatively, processor 110 is additionally operable to perform communication traffic processing routine, to realize following steps:
When long-press barrage and/or suspension ball, barrage and/or suspension ball is set to be drawn to appointing for current application display interfaceMeaning position;
When double-clicking barrage and/or suspension ball, skin function frame, skin function frame are ejected in the display interface of current applicationIncluding color adaptation function and/or transparency regulatory function, changing for color adaptation function and/or transparency regulatory function is controlledBecome, the color and/or transparency for making barrage and/or the suspension ball change.
Embodiment 3
Another aspect according to embodiments of the present invention, a kind of computer-readable recording medium is additionally provided, the computer canRead storage medium be stored with one or more program, one or more program can by one or more computing device,The step of to realize above-mentioned communication traffic processing method.
The embodiment of the present invention, whether the current application for judging terminal device is intended application, if intended application, is then obtainedThe communication information of terminal device, barrage and suspension ball are generated according to communication information, and bullet is shown in the display interface of current applicationCurtain and suspension ball, are handled barrage using suspension ball, interrupt current application processing communication information without user during this,Improve Consumer's Experience.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-rowHis property includes, so that process, method, article or device including a series of elements not only include those key elements, andAnd also include the other element being not expressly set out, or also include for this process, method, article or device institute inherentlyKey element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including thisOther identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment sideMethod can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other wordsGoing out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage mediumIn (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, serviceDevice, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specificEmbodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the artUnder the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lotForm, these are belonged within the protection of the present invention.