Specific 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 subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of elementBe conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mixGround uses.
In the embodiment of the present invention, screen sharing method is applied to mobile terminal, which can come in a variety of mannersImplement.For example, mobile terminal involved in the present invention may include such as mobile phone, tablet computer, laptop, palm electricityThe mobile terminals such as brain, personal digital assistant (Personal Digital Assistant, PDA).
It will be illustrated by taking tablet computer as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to specialExcept element for moving purpose, the construction of embodiment according to the present invention can also apply to other types of mobile wholeEnd.
Referring to Fig. 1, the hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention, the terminal100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V(audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, storageThe components such as device 109, processor 110 and power supply 111.It will be understood by those skilled in the art that terminal structure shown in Fig. 1The restriction to mobile terminal is not constituted, mobile terminal may include components more more or fewer than diagram, or combine certainComponent or different component layouts.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base stationDownlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetratingFrequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless 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, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous CodeDivision Multiple Access, TD SDMA), FDD-LTE (Frequency DivisionDuplexing-Long Term Evolution, frequency division duplex 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, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 showsGo out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to needIt to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received orThe audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103Audio output relevant to the specific function that terminal 100 executes can also be provided (for example, call signal receives sound, message connectsQuiet down sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition modeOr the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries outReason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be depositedStorage is sent 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 (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data canTo be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographiesSensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environmentThe light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's earDisplay panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generalFor three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of terminal 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 terminal, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of 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) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generates and set with the user of terminalIt sets and the related key signals of function control inputs.Specifically, user input unit 107 may include touch panel 1071 and itsHis input equipment 1072.Touch panel 1071, also referred to as touch screen collect the touch operation (ratio of user on it or nearbySuch as user is using finger, stylus any suitable object or attachment on touch panel 1071 or near touch panel 1071Operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detecting apparatusWith two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bringSignal transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and it is convertedAt contact coordinate, then processor 110 is given, and order that processor 110 is sent can be received and executed.Furthermore, it is possible to adoptTouch panel 1071 is realized with multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrapIt includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it 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, touch panel 1071 and display panel1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it canThe function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specificallyIt limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothingLine data port, 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 storing software program and various data.Memory 109 can mainly include storing program areaThe storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one functionSound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such asAudio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it 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 entire mobile terminal of connectionA part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storageData in device 109 execute the various functions and processing data of mobile terminal, to carry out to main screen page display terminal wholeMonitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulationDemodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processingDevice mainly handles wireless 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) powered to all parts, it is preferred that power supply 111Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, putThe functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 109 of computer storage mediumLetter module, Subscriber Interface Module SIM and Screen sharing program, processor 110 can be used for calling the screen stored in memory 109Curtain shared routing, and execute following steps:
ViLTE is established with receiving end to connect;
When receiving Screen sharing request, whether detection currently meets Screen sharing condition;
If currently meeting Screen sharing condition, screen display content is obtained, and is based on the ViLTE connection for the screenCurtain display content is sent to the receiving end.
Further, processor 110 can be used for calling the Screen sharing program stored in memory 109, also execute withLower step:
When receiving Screen sharing request, detect whether the receiving end is legitimate receipt end;
If the receiving end is legitimate receipt end, currently meet Screen sharing condition.
Further, processor 110 can be used for calling the Screen sharing program stored in memory 109, also execute withLower step:
When receiving Screen sharing request, the terminal identifier of the receiving end is obtained;
Detect whether the terminal identifier is stored in preset white list;
If the terminal identifier is stored in preset white list, it is determined that the receiving end is legitimate receipt end.
Further, processor 110 can be used for calling the Screen sharing program stored in memory 109, also execute withLower step:
If the terminal identifier is stored in preset white list, preset character string is encrypted by preset private key,Encryption information is obtained, and the encryption information is sent to the receiving end;
Receive the solution confidential information of receiving end feedback, and compare the solution confidential information and the preset character string whether oneIt causes;
If the solution confidential information is consistent with the preset character string, it is determined that the receiving end is legitimate receipt end.
Further, processor 110 can be used for calling the Screen sharing program stored in memory 109, also execute withLower step:
If currently meeting Screen sharing condition, the corresponding communication protocol of the ViLTE connection is obtained;
A screen display content is obtained every preset duration, and aobvious to the screen obtained every time based on the communication protocolShow that content is encoded, obtains encoded information;
The encoded information is sent to the receiving end based on the ViLTE connection.
Further, processor 110 can be used for calling the Screen sharing program stored in memory 109, also execute withLower step:
If currently meeting Screen sharing condition, camera is closed;
Preset privacy application is hidden, and obtains the corresponding communication protocol of the ViLTE connection.
Further, processor 110 can be used for calling the Screen sharing program stored in memory 109, also execute withLower step:
Screen is divided into N number of region, the display content in N number of region is obtained in first time node, as firstThe screen display content of secondary acquisition;
When the time reaching future time node, comparison current screen shows that the screen of content and a upper timing node is shownContent obtains comparing result;
According to the comparing result, the target area that screen display content is changed is determined;
The screen display content for obtaining the target area, as the screen display content currently obtained;
Repetition is described when the time reaching future time node, and comparison current screen shows content and a upper timing nodeScreen display content, the step of obtaining comparing result, until receiving disconnection shared instruction.
Further, processor 110 can be used for calling the Screen sharing program stored in memory 109, also execute withLower step:
If being currently unsatisfactory for Screen sharing condition, it is not responding to the Screen sharing request, and outputting alarm prompt.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below intoRow description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network systemSystem is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connectionFamily equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRANGround 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 details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returningJourney (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may 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, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registersSuch as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and useThe dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resourcePoint, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may 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 should know the present invention is not onlySuitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA withAnd the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
It is the flow diagram of screen sharing method first embodiment of the present invention referring to Fig. 3, Fig. 3.
In one embodiment, screen sharing method includes:
Step S10 establishes ViLTE with receiving end and connect;
Referring to Fig. 4, Fig. 4 is that the scene that two terminals establish ViLTE connection in one embodiment of screen sharing method of the present invention is shownIt is intended to.As shown in figure 4, terminal A is one end of application screen sharing method in Fig. 4, i.e., shared end, terminal B is receiving end, i.e. quiltShared end.Wherein, ViLTE is the abbreviation of " HD video is conversed (Video over LTE) ", is the extension of VoLTE, enhancingVoice service.ViLTE has the data transmission capabilities of high reliability, ensure that the data of terminal A can stablize, the biography of low time delayTransport to terminal B.
Step S20, when receiving Screen sharing request, whether detection currently meets Screen sharing condition;
In the present embodiment, when receiving Screen sharing request, whether detection first currently meets Screen sharing condition, onlyHave when meeting Screen sharing condition, just carries out Screen sharing, improve the security assurance information to shared end.
In one embodiment, when Screen sharing request is triggered by local terminal, such as user clicks shared pressing on terminal AButton, terminal A just receive the Screen sharing request based on user's operation triggering.At this time, it may be necessary to carry out authentication to operator.Authentication mode can be cipher authentication, finger print identifying, facial image certification etc..Specifically, being when using facial image certificationIt avoids user from implementing fraud using means such as mask, photos, In vivo detection is carried out to user first, when In vivo detection passes throughAfterwards, then it is acquired the facial image of user, and the facial image of acquisition and preset facial image is subjected to similarity calculation,Similarity calculation is obtained as a result, if similarity calculation result is greater than or equal to preset threshold, it is determined that authentication passes through, i.e., reallyMeet Screen sharing condition before settled.Carry out the process flow of In vivo detection are as follows: the user's head acquired by binocular cameraImage includes left view user's head image and right view user's head image, can get left and right by Binocular Stereo Matching AlgorithmThen anaglyph is converted to depth image by the corresponding anaglyph of view, after obtaining depth image, further calculate depthThe gray level co-occurrence matrixes of image extract the textural characteristics of face depth map from obtained gray level co-occurrence matrixes, and by each textureFeature is cascaded into gray level co-occurrence matrixes feature vector, in order to use the living body disaggregated model of support vector machines, to gray scale symbiosisMatrix characteristic vector is classified, and finally according to classification results, determines whether current detection object is living body.Wherein, it is carrying outBefore In vivo detection, in advance from a large amount of living bodies and the facial image of non-living body user extract gray level co-occurrence matrixes feature toAmount, and the sample labeling of living body and non-living body is carried out, then machine is carried out by training sample of gray level co-occurrence matrixes feature vector againDevice study, obtains the living body disaggregated model that can identify living body and non-living body, and the living body disaggregated model is enabled to be based on gray scaleCo-occurrence matrix feature vector carries out In vivo detection.
In another embodiment, when Screen sharing request is sent by his end.For example, user clicks asking on terminal BShared button is sought, Screen sharing request is sent to terminal A based on the operation of user by terminal B, and terminal A just receives terminal at this timeThe Screen sharing request that B is sent.After terminal A receives Screen sharing request, just further whether detection terminal B is legal endEnd, if terminal B is legal terminal, it is determined that current to meet shared condition.
Detection terminal B whether be legal terminal mode may is that terminal B send Screen sharing request in comprising itselfTerminal identifier (every terminal is endowed a unique terminal identifier when leaving the factory), terminal A is total from the screen receivedIt enjoys in request and extracts the terminal identifier, and search whether that there are the terminal identifiers in preset white list, and if it exists, then reallyDetermining terminal B is legal terminal, that is, determines and currently meet Screen sharing condition.Wherein, preset white list by terminal A legitimate userIt voluntarily configures, the terminal identifier for being shared end for carrying out Screen sharing will be allowed to be stored in white list in advance.
Detection terminal B whether be legal terminal mode may also is that terminal A receive the Screen sharing request after, lead toIt crosses the private key prestored to encrypt a character string X, obtains encryption information X1, X1 is then sent to terminal B.Terminal B is receivedTo after X1, X1 is decrypted by the public key that the public key prestored or user input, obtains solution confidential information X2, and X2 is fed back toTerminal A.After terminal A receives X2, whether comparison X and X2 is consistent, if unanimously, illustrating the private key that the public key and terminal A are prestoredIt is a pair of of unsymmetrical key, i.e. the owning user of terminal A has licensed to terminal B, it is thus determined that terminal B is legal terminalIt determines and currently meets Screen sharing condition.
Step S30 obtains screen display content, and be based on the ViLTE connection if currently meeting Screen sharing conditionThe screen display content is sent to the receiving end.
In the present embodiment, when local terminal (terminal A) is established ViLTE with receiving end and connect, communication protocol can be voluntarily consulted.It is logicalLetter agreement defines coding mode, decoding process, stream rate etc..When detect currently meet Screen sharing condition when, obtainScreen display content, and encoded to obtain encoded information according to screen display content of the coding mode of regulation to acquisition, soEncoded information is sent to receiving end according to the stream rate of regulation afterwards.And since data transmission is carried out based on ViLTE connection, by the data transmission capabilities of ViLTE high reliability, it ensure that encoded information can be stablized, low time delay is transmitted to receiving end.After receiving end receives encoded information, encoded information can be decoded according to the decoding process of regulation, it can be in receiving endThe screen display content of upper display terminal A realizes Screen sharing.
In one embodiment, when currently meeting Screen sharing condition, every preset duration, (preset duration is according to practical feelingsCondition is configured, such as is set as a thirtieth second) crawl terminal A screen display content, then according to regulationCoding mode encodes the screen display content got every time, obtains encoded information, according to the stream rate base of regulationEncoded information is sent to receiving end in ViLTE connection.Receiving end is according to the decoding process of regulation to the encoded information receivedIt is decoded, thus the screen display content of display terminal A.
In another embodiment, when currently meeting Screen sharing condition, screen is divided into N number of display area by terminal A.Wherein, N is set according to actual needs, such as is set as 9.As shown in figure 5, Fig. 5 is invention Screen sharing sideThe schematic diagram of a scenario of screen division is carried out in one embodiment of method to terminal.Screen is divided into 9 display areas, respectively region1,2,3,4,5,6,7,8,9.When first time obtaining screen display content (in first time node), 9 regions are obtainedDisplay content, and to the display content in 9 regions got carry out coding be then forwarded to receiving end, in receiving endThe upper display content for showing this 9 regions.By preset duration, (preset duration is configured according to the actual situation, such as is arrangedIt is a thirtieth second), when reaching the second timing node, comparison current screen shows screen when content and first time nodeIt shows content, obtains comparing result.Regional change detection algorithm specifically can be used and determine that current screen shows region 1 in contentShow whether content is consistent with the display content in region 1 in screen display content when first time node;Determine current screenWhether the display content in region 1 in screen display content when showing the display content and first time node in region 1 in contentUnanimously;Determine area in screen display content when current screen shows the display content and first time node in region 1 in contentWhether the display content in domain 1 is consistent;It determines when current screen shows the display content and first time node in region 2 in contentWhether the display content in region 2 is consistent in screen display content;Determine current screen show content in region 3 display content withWhether the display content in region 3 is consistent in screen display content when first time node ... determines that current screen shows contentWhether the display content in middle region 9 is consistent with the display content in region 9 in screen display content when first time nodeObtain comparing result.If comparing result are as follows: first time node and the second timing node are in region 1, region 2, region 5, region6, region 8, the display content on region 9 are consistent, and the display content on region 3, region 4, region 7 is inconsistent, it is determined that screenThe target area that curtain display content is changed is region 3, region 4 and region 7.Obtain current region 3, region 4 andThe display content in region 7, and trizonal display content is encoded respectively, obtain encoded information, the region 4 in region 3Encoded information and region 7 encoded information, while being separately added into station location marker in three encoded informations, then will be addedThe encoded information of station location marker is sent to receiving end.Receiving end is decoded encoded information, obtain region 3, region 4 andThe display content in region 7, and according to station location marker, it is replaced using the display content of current region 3, region 4 and region 7 originalThe display content in region 3, region 4 and region 7.It is subsequent when reaching future time node, repeat the above process, Ji KeshiExisting Screen sharing.
In the present embodiment, ViLTE is established with receiving end and is connect;When receiving Screen sharing request, detection it is current whetherMeet Screen sharing condition;If currently meeting Screen sharing condition, screen display content is obtained, and connect based on the ViLTEIt connects and the screen display content is sent to the receiving end.Through this embodiment before carrying out Screen sharing, carry out condition is sentencedIt is disconnected, the information protection to end is shared is strengthened, sharing client information is avoided and is illegally revealed.
Further, in one embodiment of screen sharing method of the present invention, step S10 includes:
Step S101 detects whether the receiving end is legitimate receipt end when receiving Screen sharing request;
In the present embodiment, when receiving Screen sharing request, if Screen sharing request, from receiving end, detection connectsWhether receiving end is legitimate receipt end.
Step S102 currently meets Screen sharing condition if the receiving end is legitimate receipt end.
In the present embodiment, only when detecting receiving end is legitimate receipt end, determination currently meets Screen sharing condition,To carry out subsequent Screen sharing.The information protection to end is shared is strengthened, sharing client information is avoided and is illegally revealed.
Further, in one embodiment of screen sharing method of the present invention, step S101 includes:
Step S1011 obtains the terminal identifier of the receiving end when receiving Screen sharing request;
In the present embodiment, comprising the terminal identifier of itself, (every terminal is going out in the Screen sharing request that terminal B is sentA unique terminal identifier is endowed when factory), terminal A can extract the terminal iidentification from the Screen sharing request receivedSymbol.
Step S1012, detects whether the terminal identifier is stored in preset white list;Step S1013, if the terminalIdentifier is stored in preset white list, it is determined that the receiving end is legitimate receipt end.
In the present embodiment, search whether that there are the terminal identifiers in preset white list, and if it exists, then determine terminal BFor legal terminal, that is, determines and currently meet Screen sharing condition.Wherein, preset white list is voluntarily matched by the legitimate user of terminal AIt sets, the terminal identifier for being shared end for carrying out Screen sharing will be allowed to be stored in white list in advance.
Through this embodiment, customized licensing scheme is provided, user will can allow to carry out the end that is shared of Screen sharingTerminal identifier is stored in white list, can be automatic when subsequent local terminal receives the Screen sharing request of corresponding terminal transmissionScreen sharing is established, it is convenient and efficient, and the information security of local terminal is ensured.
Further, in one embodiment of screen sharing method of the present invention, step S1013 includes:
Step S10131, if the terminal identifier is stored in preset white list, by preset private key to preset characterString is encrypted, and obtains encryption information, and the encryption information is sent to the receiving end;
In the present embodiment, if terminal identifier is stored in preset white list, it can further pass through the private key prestored to a wordSymbol string X is encrypted, and obtains encryption information X1, X1 is then sent to terminal B.
Step S10132, receives the solution confidential information of receiving end feedback, and compare the solution confidential information with it is described presetWhether character string is consistent;Step S10133, if the solution confidential information is consistent with the preset character string, it is determined that the receiving endFor legitimate receipt end.
In the present embodiment, after terminal A receives Screen sharing request, after terminal B receives X1, pass through the public key prestoredOr X1 is decrypted in the public key of user's input, obtains solution confidential information X2, and X2 is fed back to terminal A.Terminal A receives X2Afterwards, whether comparison X and X2 is consistent, if unanimously, the private key for illustrating that the public key and terminal A are prestored is a pair of of unsymmetrical key, i.e.,The owning user of terminal A has licensed to terminal B, it is thus determined that terminal B is legal terminal, that is, can determine and currently meets Screen sharingCondition.
The present embodiment further improves the security assurance information to local terminal by double verification.
Further, step S30 includes:
If currently meeting Screen sharing condition, the corresponding communication protocol of the ViLTE connection is obtained;
In the present embodiment, when local terminal (terminal A) is established ViLTE with receiving end and connect, communication protocol can be voluntarily consulted.It is logicalLetter agreement defines coding mode, decoding process, stream rate etc., these regulations are recorded in communication protocol with parametric form.
A screen display content is obtained every preset duration, and aobvious to the screen obtained every time based on the communication protocolShow that content is encoded, obtains encoded information;The encoded information is sent to the receiving end based on the ViLTE connection.
In the present embodiment, it can be and obtain primary whole screen display content every preset duration, can also be theThe primary screen display content for obtaining whole, it is subsequent that the screen display content changed is only obtained every preset duration.RootThe screen display content obtained every time is encoded according to coding mode as defined in communication protocol, obtains encoded information, then rootViLTE connection is based on according to stream rate as defined in communication protocol, and encoded information is sent to receiving end.
Further, if described currently meet Screen sharing condition, the corresponding communication protocol of the ViLTE connection is obtainedThe step of include:
If currently meeting Screen sharing condition, camera is closed;
In the present embodiment, when meeting Screen sharing condition, in order to save local terminal electricity, camera can be closed.
Preset privacy application is hidden, and obtains the corresponding communication protocol of the ViLTE connection.
In the present embodiment, since Screen sharing can share away local terminal screen content, user can in advance by it is some notThe application for wanting other people is allowed to see is set as privacy application, when detect meet Screen sharing condition when, privacy application is hidden, thisWhen, even if carrying out Screen sharing, privacy application will not be seen by other people, protect the privacy of user.
Further, described to include: the step of preset duration obtains a screen display content
Screen is divided into N number of region, the display content in N number of region is obtained in first time node, as firstThe screen display content of secondary acquisition;
In the present embodiment, when currently meeting Screen sharing condition, screen is divided into N number of display area by terminal A.ItsIn, N is set according to actual needs, such as is set as 9.As shown in figure 5, Fig. 5 is invention screen sharing methodThe schematic diagram of a scenario of screen division is carried out in one embodiment to terminal.Screen is divided into 9 display areas, respectively region 1,2,3,4,5,6,7,8,9.When first time obtaining screen display content (in first time node), 9 regions are obtainedIt shows content (screen display content obtained as first time), and the display content in 9 regions got is encodedIt is then forwarded to receiving end, for showing the display content in this 9 regions on the receive side.
When the time reaching future time node, comparison current screen shows that the screen of content and a upper timing node is shownContent obtains comparing result;
In the present embodiment, by preset duration, (preset duration is configured according to the actual situation, such as is set as 30 pointsOne of the second), when reaching the second timing node, in comparison current screen shows that content and screen when first time node are shownHold, obtains comparing result.Regional change detection algorithm specifically can be used and determine that current screen is shown in content in the display in region 1Hold whether consistent with the display content in region 1 in screen display content when first time node;In determining that current screen is shownWhether the display content in region 1 is consistent with the display content in region 1 in screen display content when first time node in appearance;ReallyRegion 1 is aobvious in screen display content in settled forth screen display content when the display content and first time node in region 1Show whether content is consistent;Determine that screen when current screen shows the display content and first time node in region 2 in content is aobviousShow whether the display content in region 2 in content is consistent;When determining that current screen shows that the display content in region 3 is with first in contentWhether the display content in region 3 is consistent in screen display content when intermediate node ... determines that current screen shows region in contentWhether 9 display content is consistent with the display content in region 9 in screen display content when first time node, can be obtained pairCompare result.Such as comparing result are as follows: first time node and the second timing node are in region 1, region 2, region 5, region 6, areaDisplay content on domain 8, region 9 is consistent, and the display content on region 3, region 4, region 7 is inconsistent.
According to the comparing result, the target area that screen display content is changed is determined;
In the present embodiment, according to above-mentioned comparing result, that is, the target area that screen display content is changed can determineFor region 3, region 4 and region 7.
The screen display content for obtaining the target area, as the screen display content currently obtained;
In the present embodiment, current region 3, region 4 and the display content in region 7 are obtained (as the screen currently obtainedShow content), and trizonal display content is encoded respectively, obtain the encoded information in region 3, the coding in region 4Information and the encoded information in region 7, while it being separately added into station location marker in three encoded informations, it then will joined positionThe encoded information of mark is sent to receiving end.Receiving end is decoded encoded information, obtains region 3, region 4 and region 7Display content use the display content of current region 3, region 4 and region 7 to replace original region and according to station location marker3, the display content in region 4 and region 7.
Repetition is described when the time reaching future time node, and comparison current screen shows content and a upper timing nodeScreen display content, the step of obtaining comparing result, until receiving disconnection shared instruction.
It is subsequent to repeat the above process when reaching future time node in the present embodiment, until it is shared to receive disconnectionInstruction, can be realized Screen sharing.
Through this embodiment, the encoded information in the region changed due to subsequent transmission display content, alleviatesBandwidth pressure, so that data transmission is more reliable and more stable, and time delay is lower, so that Screen sharing has more real-time.
Further, after step S20, further includes:
If being currently unsatisfactory for Screen sharing condition, it is not responding to the Screen sharing request, and outputting alarm prompt.
In the present embodiment, if being currently unsatisfactory for Screen sharing condition, show that this client information has the risk of leakage, therefore notResponse screen sharing request, while outputting alarm prompt.The mode of alarm prompt includes giving a warning sound, light flash, vibrationDeng.
In the present embodiment, when being currently unsatisfactory for Screen sharing condition, it is not responding to Screen sharing request, has ensured local terminalInformation security, and outputting alarm prompt can call user's attention, make counter-measure in time.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage mediumOn be stored with Screen sharing program, the Screen sharing program realizes screen sharing method as described above when being executed by processorThe step of.
Each embodiment base of the specific embodiment of computer readable storage medium of the present invention and above-mentioned screen sharing methodThis is identical, and this will not be repeated here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-rowHis property includes, so that the process, method, article or the system that include a series of elements not only include those elements, andAnd further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsicElement.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to doThere is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment sideMethod can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior artThe part contributed out can be embodied in the form of software products, which is stored in one as described aboveIn storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hairEquivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skillsArt field, is included within the scope of the present invention.