CN113382194B - Screen projection code processing method, screen projection device, electronic equipment and storage medium - Google Patents

Screen projection code processing method, screen projection device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113382194B
CN113382194B CN202110652258.XA CN202110652258A CN113382194B CN 113382194 B CN113382194 B CN 113382194B CN 202110652258 A CN202110652258 A CN 202110652258A CN 113382194 B CN113382194 B CN 113382194B
Authority
CN
China
Prior art keywords
screen projection
code
screen
target
codes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110652258.XA
Other languages
Chinese (zh)
Other versions
CN113382194A (en
Inventor
邓海金
茅志翔
丁东杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202110652258.XA priority Critical patent/CN113382194B/en
Publication of CN113382194A publication Critical patent/CN113382194A/en
Application granted granted Critical
Publication of CN113382194B publication Critical patent/CN113382194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/441Acquiring end-user identification, e.g. using personal code sent by the remote control or by inserting a card
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6402Address allocation for clients

Abstract

The embodiment of the disclosure discloses a screen projection code processing method, a screen projection device, an electronic device and a storage medium, wherein the screen projection code processing method comprises the following steps: in response to a screen projection code application instruction, determining a target screen projection code from candidate screen projection codes in an idle state; changing the state identifier of the target screen projection code into a non-idle state; wherein the target screen projection code is used for determining the video conference equipment to be projected. By the screen-projecting code processing method provided by the embodiment of the disclosure, the application efficiency of the target screen-projecting code is improved, and the global uniqueness of the target screen-projecting code can be ensured, i.e. no repeated target screen-projecting codes are used at the same time.

Description

Screen projection code processing method, screen projection device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a screen projection code processing method, a screen projection apparatus, an electronic device, and a storage medium.
Background
With the continuous development of network technology, people in different areas can carry out video conferences at any time and any place through various electronic terminals. In the process of carrying out the video conference, users participating in the conference may have some information sharing requirements, so that the sharing user in charge of sharing information needs to screen the information file of the sharing user to the video conference device used by the shared user, so that the shared user can see the information file shared by the sharing user based on the video conference device used by the sharing user.
Before a sharing user casts a screen of an information file of the sharing user to a video conference device used by the sharing user, the sharing user generally needs to input a screen casting code on the video conference device used by the sharing user, so that a server casts the screen of the information file to a correct video conference device based on the screen casting code, namely the video conference device used by the sharing user. The screen-projecting code needs to have a globally unique characteristic, and if repeated screen-projecting codes exist at the same time, the server cannot uniquely determine the video conference equipment to be projected after the screen-projecting code is input by the sharing user.
In the prior art, to ensure global uniqueness of a screen-projecting code, a UUID (Universally Unique Identifier) is generally generated in real time, the UUID is used as the screen-projecting code, and if the generated UUID is currently used, the UUID needs to be regenerated. Therefore, in actual use, there may be a case where it is necessary to generate a UUID multiple times, which takes a long time, and there is a case where the same UUID is reused in a short time, increasing the probability of being attacked.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, embodiments of the present disclosure provide a screen-projecting code processing method, an apparatus, an electronic device, and a storage medium, which improve application efficiency of a target screen-projecting code and ensure that no repeated target screen-projecting codes are used at the same time.
In a first aspect, an embodiment of the present disclosure provides a screen-projecting code processing method, where the method includes:
in response to a screen projection code application instruction, determining a target screen projection code from candidate screen projection codes in an idle state;
changing the state identifier of the target screen projection code into a non-idle state;
wherein the target screen projection code is used for determining the video conference equipment which is projected.
In a second aspect, an embodiment of the present disclosure further provides a screen projection method, where the method includes:
in response to a screen projection instruction, determining partition information based on a target screen projection code, wherein the screen projection instruction comprises the target screen projection code;
routing the screen projection instruction to a target end according to the partition information so as to project the current screen information to the target end;
and after the target screen projection code is determined from the candidate screen projection codes in the idle state, the state identifier of the target screen projection code is changed into a non-idle state.
In a third aspect, an embodiment of the present disclosure further provides a device for processing a screen-projecting code, where the device includes:
the target screen projection code determining module is used for responding to a screen projection code application instruction and determining a target screen projection code from candidate screen projection codes in an idle state;
the first changing module is used for changing the state identifier of the target screen projection code into a non-idle state;
wherein the target screen projection code is used for determining the video conference equipment to be projected.
In a fourth aspect, an embodiment of the present disclosure further provides a screen projection apparatus, where the apparatus includes:
the partition information determining module is used for responding to a screen projection instruction and determining partition information based on a target screen projection code, wherein the screen projection instruction comprises the target screen projection code;
the routing module is used for routing the screen projection instruction to a target end according to the partition information so as to project the current screen information to the target end;
the target screen projection code is determined from candidate screen projection codes in an idle state, and after the target screen projection code is determined from the candidate screen projection codes in the idle state, the state identification of the target screen projection code is changed into a non-idle state.
In a fifth aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, the one or more programs cause the one or more processors to implement a screen projection code processing method and a screen projection method according to any embodiment of the present disclosure.
In a sixth aspect, the disclosed embodiments further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a screen projecting code processing method and a screen projecting method according to any embodiment of the present disclosure.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has at least the following advantages:
according to the screen-projecting code processing method provided by the embodiment of the disclosure, when an application instruction of screen-projecting codes is received, a target screen-projecting code is determined from candidate screen-projecting codes in an idle state, and the state identifier of the target screen-projecting code is changed into a non-idle state, so that when the application instruction of the screen-projecting codes is received again, the target screen-projecting code is not distributed to other video conference equipment any more, the application efficiency of the target screen-projecting code is improved, and the situation that no repeated target screen-projecting codes are used at the same time can be ensured.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a flowchart of a screen-shot code processing method in an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating a queue of candidate screen-shot codes according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a screen-shot code processing method in an embodiment of the present disclosure;
FIG. 4 is a flowchart of a screen-shot code processing method in an embodiment of the present disclosure;
FIG. 5 is a flowchart of a screen code projecting method in an embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating a queue of candidate screen-shot codes according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a processing apparatus for screen projection codes according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a screen projection apparatus according to an embodiment of the disclosure;
fig. 9 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more complete and thorough understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 is a flowchart of a screen-projecting code processing method in the embodiment of the present disclosure. The method can be executed by a screen-projecting code processing device, which can be implemented in software and/or hardware, and can be configured in an electronic device, such as a server.
As shown in fig. 1, the method may specifically include the following steps:
and step 110, responding to a screen projection code application instruction, and determining a target screen projection code from candidate screen projection codes in an idle state.
The screen projection code is an identifier used for determining the screen projected equipment, and a user with screen projection requirements can project contents displayed on a screen of the user terminal to other terminal screens for displaying by inputting the specific screen projection code at the terminal, namely displaying on a display screen of the screen projected equipment, so that the purpose of information sharing is achieved. The screen-projecting code is usually associated with an IP (Internet Protocol) address of the screen-projecting device, and because the IP address is usually complex and is not suitable for a use scene manually input by a user, the IP address is associated with the screen-projecting code, after the user inputs a specific screen-projecting code, the system automatically searches the IP address associated with the screen-projecting code, and then finds the screen-projecting device based on the IP address, so that the screen-projecting purpose is realized. The target screen projection code is a specific screen projection code distributed for the user and used for determining the video conference equipment to be projected. The candidate screen projection codes are screen projection codes which can be allocated to the user as target screen projection codes. The target screen projection code and the candidate screen projection code are both specific screen projection codes. In order to reuse each screen projection code, the screen projection codes are not fixedly associated with a certain IP address but are randomly and dynamically associated, after screen projection is finished, the screen projection codes used at this time can be recycled, and when the same user has the screen projection requirement again, the screen projection codes are regenerated, namely the screen projection codes used when the user projects the screen in each video conference are not necessarily the same, the screen projection codes are generated in real time, the same screen projection codes cannot exist at the same moment, and otherwise, the screen projection equipment cannot be accurately determined. Therefore, the number of screen projection codes is a sea level, so that the screen projection requirements of a large number of users at the same time can be met.
The screen-shot code may be generated from a preset number of characters, which may include at least one of: numbers, letters (including upper and lower case letters), punctuation, or other symbols. For convenience of user input, simplification of complexity of user input and consideration of attractiveness, the screen-projecting code can be composed of similar characters, for example, the screen-projecting code only comprises numbers or letters and the like. In order to meet the requirement of the number of screen-projecting codes, the characters forming the screen-projecting codes can be multiple. In order to fully utilize each character, screen-shot codes as many as possible are generated based on the characters with limited digits, and the screen-shot codes can be generated according to the rules of permutation and combination based on the characters with limited digits. Illustratively, for example, composed of 6-digit capital English letters, the total number of screen-projected codes is 26^6=308915776. In another embodiment, the Chinese character may also consist of 7-digit or 5-digit capital English letters, or 3-digit capital English letters + 3-digit small-case English letters, or 6-digit numbers. In one embodiment, the candidate screen-casting codes in the idle state are stored in a database table, and the storage sequence of the candidate screen-casting codes in the idle state in the database table is different from the initial generation sequence of each candidate screen-casting code, so that the storage sequence of each candidate screen-casting code in the database table is disturbed, and the probability of attacking the screen-casting codes is reduced. The initial generation sequence of each candidate screen-projecting code generated according to the rule of permutation and combination has regularity, such as ACDEFA, ACDEFB, ACDEFC and the like. If the initial generation sequence of each candidate screen-casting code is not disturbed, an attacker can easily calculate the next used screen-casting code based on the currently used screen-casting code, so that the screen-casting code is attacked, the screen-casting error of a user is caused, and the screen-casting information of the user is leaked. In another embodiment, in order to maintain the disorder relation among the candidate screen-casting codes when the target screen-casting codes are restored to the candidate screen-casting codes in the idle state after being used by the user, the candidate screen-casting codes are sorted according to the time when the candidate screen-casting codes are used for the last time, the candidate screen-casting codes are stored in a database table or stored in a queue form based on the sorted order, as shown in fig. 2, a schematic diagram of the candidate screen-casting codes stored in the queue form, an original candidate screen-casting Code generated based on the permutation and combination (the original candidate screen-casting Code refers to an initial candidate screen-casting Code which is not allocated to the user for use) is stored in the queue in a disordered order, the state identifier of each candidate screen-casting Code is marked to be in the idle state, when a screen-casting Code application instruction is received, the candidate screen-casting codes stored at the head of the queue (such as the candidate screen-casting Code1 shown in fig. 2) are determined as the target screen-casting codes, the target screen-casting codes can be supplemented to the tail after the target screen-casting codes are used, and the disorder relation can be maintained, so that the target screen-casting probability of attacks is reduced. In another embodiment, determining a target screen projection code from candidate screen projection codes in an idle state comprises: sorting the candidate screen-casting codes according to the latest used time of the candidate screen-casting codes; and randomly determining target screen projection codes from the sorted candidate screen projection codes.
In order to ensure that only one screen projecting code is the same at the same time, the screen projecting code in use is marked to be in a non-idle state, and when a new screen projecting code is obtained, the screen projecting code is determined from candidate screen projecting codes in the idle state. The screen projection codes in the idle state belong to candidate screen projection codes and can be provided for users to use.
And step 120, changing the state identification of the target screen projection code into a non-idle state.
The state identification of the target screen-projecting code determined to be provided for the user to use is changed into a non-idle state, so that the target screen-projecting code is not repeatedly distributed to other users when other users apply for screen-projecting codes, and the situation that the repeated screen-projecting codes are used at the same time is avoided.
According to the screen projection code processing method provided by the embodiment of the disclosure, when an application instruction of screen projection codes is received, a target screen projection code is determined from candidate screen projection codes in an idle state, and a state identifier of the target screen projection code is changed into a non-idle state, so that when the application instruction of the screen projection codes is received again, the target screen projection code is not distributed to other video conference equipment any more, the application efficiency of the target screen projection code is improved, and the condition that no repeated target screen projection code is used at the same time can be ensured.
Fig. 3 is a flowchart of a screen-shot code processing method in the embodiment of the present disclosure. On the basis of the above embodiments, the screen-projecting code processing method is further optimized in this embodiment, specifically, the following steps are added: and responding to a release instruction of the target screen projection code, and changing the state identifier of the target screen projection code into an idle state. The method has the advantage of realizing the reutilization of the same screen projection code at different moments so as to ensure that the number of the screen projection codes can meet the application requirements of massive users. The same or similar descriptions in this embodiment are not repeated, and reference may be made to the related contents in the above embodiments.
As shown in fig. 3, the screen-projecting code processing method includes the following steps:
and step 310, responding to a screen projection code application instruction, and determining a target screen projection code from candidate screen projection codes in an idle state.
Wherein the target screen projection code is used for determining the video conference equipment which is projected.
And step 320, changing the state identification of the target screen projection code into a non-idle state.
And step 330, changing the state identifier of the target screen projection code into an idle state in response to the release instruction of the target screen projection code.
When a video conference is finished once, specifically when a user triggers a video conference finishing button or an icon to finish the video conference, triggering a release instruction of the target screen projection code. When the system receives the release instruction, the state identification of the target screen projection code used by the current video conference screen projection is changed into an idle state, so that the target screen projection code is recycled, and the screen projection code quantity can meet the application requirements of a large number of users.
Fig. 4 is a flowchart of a screen-shot code processing method in the embodiment of the present disclosure. On the basis of the above embodiments, the screen-projecting code processing method is further optimized in this embodiment, specifically, the following steps are added: after the state identification of the target screen projection code is changed into an idle state, setting the target screen projection code as a non-candidate screen projection code; and when the time length for setting the target screen projection code as the non-candidate screen projection code reaches a time length threshold value, setting the target screen projection code as the candidate screen projection code. The optimization method has the advantages that the target screen projection code can not be used in a short time, so that the probability that the target screen projection code is attacked is reduced, the screen projection safety of a user is improved, and the risk that user information is leaked is reduced. The same or similar descriptions in this embodiment are not repeated, and reference may be made to the related contents in the above embodiments.
As shown in fig. 4, the method comprises the steps of:
and step 410, responding to a screen projection code application instruction, and determining a target screen projection code from candidate screen projection codes in an idle state.
Wherein the target screen projection code is used for determining the video conference equipment to be projected.
And step 420, changing the state identifier of the target screen projection code into a non-idle state.
And 430, responding to the release instruction of the target screen projection code, and changing the state identifier of the target screen projection code into an idle state.
And step 440, setting the target screen projection code as a non-candidate screen projection code.
And step 450, when the time length for setting the target screen projection code as the non-candidate screen projection code reaches a time length threshold value, setting the target screen projection code as the candidate screen projection code.
By setting the target screen projection code as the non-candidate screen projection code, the target screen projection code can be guaranteed not to be allocated to a user for use when the screen projection code application instruction is received again, so that the purpose of guaranteeing that the target screen projection code which is just released cannot be reused immediately is achieved, and the probability that the target screen projection code is attacked is reduced. For example, when screen casting codes are distributed to users, target screen casting codes sent to the users are intercepted by hackers, if the target screen casting codes can be reused immediately after being released, when the hackers detect that other users apply for screen casting codes, the target screen casting codes are distributed to other users for use, so that the users cast screens to equipment preset by the hackers, screen casting information of the users is leaked, and the process is a process that the screen casting codes are attacked. When the time length for setting the target screen projection code as the non-candidate screen projection code reaches the time length threshold value, the target screen projection code is set as the candidate screen projection code, so that the target screen projection code is recycled.
Fig. 5 is a flowchart of a screen projection method in an embodiment of the present disclosure. The method can be executed by a screen projection device, which can be implemented in software and/or hardware, and can be configured in an electronic device, such as a server.
As shown in fig. 5, the method comprises the steps of: and step 510, responding to a screen projection instruction, and determining partition information based on a target screen projection code. The screen projection instruction comprises the target screen projection codes, the target screen projection codes are determined from candidate screen projection codes in an idle state, and after the target screen projection codes are determined from the candidate screen projection codes in the idle state, the state identification of the target screen projection codes is changed into a non-idle state.
The screen projection code is used for determining the identifier of the screen projected equipment, and a user with screen projection requirements can project the content displayed on the screen of the user terminal to other terminal screens for displaying by inputting the specific screen projection code at the terminal, namely displaying on the display screen of the screen projected equipment, so that the purpose of information sharing is achieved. The screen-projecting code is usually associated with an IP (Internet Protocol) address of the screen-projecting device, and because the IP address is usually complex and is not suitable for a use scene manually input by a user, the IP address is associated with the screen-projecting code, after the user inputs a specific screen-projecting code, the system automatically searches the IP address associated with the screen-projecting code, and then finds the screen-projecting device based on the IP address, so that the screen-projecting purpose is realized. The target screen projection code is a specific screen projection code distributed for the user and used for determining the video conference equipment to be projected. The candidate screen projection codes are screen projection codes which can be allocated to the user as target screen projection codes. The target screen projection code and the candidate screen projection code are both specific screen projection codes. In order to reuse each screen projection code, the screen projection codes are not fixedly associated with a certain IP address but are randomly and dynamically associated, after screen projection is finished, the screen projection codes used at this time can be recycled, and when the same user has the screen projection requirement again, the screen projection codes are regenerated, namely the screen projection codes used when the user projects the screen in each video conference are not necessarily the same, the screen projection codes are generated in real time, the same screen projection codes cannot exist at the same moment, and otherwise, the screen projection equipment cannot be accurately determined. Therefore, the number of screen projection codes is a sea level, so that the screen projection requirements of a large number of users at the same time can be met.
The screen-shot code may be generated from a preset number of characters, which may include at least one of: numbers, letters (including upper and lower case letters), punctuation, or other symbols. For convenience of user input, simplification of complexity of user input and consideration of attractiveness, the screen-projecting code can be composed of similar characters, for example, the screen-projecting code only comprises numbers or letters and the like. In order to meet the requirement of the number of screen-projecting codes, the characters forming the screen-projecting codes can be multiple. In order to fully utilize each character, screen-shot codes as many as possible are generated based on the characters with limited digits, and the screen-shot codes can be generated according to the rules of permutation and combination based on the characters with limited digits. Illustratively, for example, composed of 6-digit capital English letters, the total number of screen-projected codes is 26^6=308915776. In another embodiment, the English letters can also consist of 7-digit or 5-digit capital English letters, or 3-digit capital English letters + 3-digit small capital English letters, or 6-digit numbers, and the like. In one embodiment, the candidate screen-casting codes in the idle state are stored in a database table, and the storage sequence of the candidate screen-casting codes in the idle state in the database table is different from the initial generation sequence of each candidate screen-casting code, so that the storage sequence of each candidate screen-casting code in the database table is disturbed, and the attack probability of the screen-casting codes is reduced. Each candidate screen-projecting code generated based on the permutation and combination has regularity, such as ACDEFA, ACDEFB, ACDEFC and the like. If the initial generation sequence of each candidate screen-casting code is not disturbed, an attacker can easily calculate the next used screen-casting code based on the currently used screen-casting code, so that the screen-casting code is attacked, the screen-casting error of a user is caused, and the screen-casting information of the user is leaked. In another embodiment, in order to maintain the disorder relation among the candidate screen-casting codes when the target screen-casting codes are restored to the candidate screen-casting codes in the idle state after being used by the user, the candidate screen-casting codes are sorted according to the time when the candidate screen-casting codes are used for the last time, the candidate screen-casting codes are stored in a database table or stored in a queue form based on the sorted order, as shown in fig. 2, a schematic diagram of the candidate screen-casting codes stored in the queue form, an original candidate screen-casting Code generated based on the permutation and combination (the original candidate screen-casting Code refers to an initial candidate screen-casting Code which is not allocated to the user for use) is stored in the queue in a disordered order, the state identifier of each candidate screen-casting Code is marked to be in the idle state, when a screen-casting Code application instruction is received, the candidate screen-casting codes stored at the head of the queue (such as the candidate screen-casting Code1 shown in fig. 2) are determined as the target screen-casting codes, the target screen-casting codes can be supplemented to the tail after the target screen-casting codes are used, and the disorder relation can be maintained, so that the target screen-casting probability of attacks is reduced. In another embodiment, determining a target screen projection code from candidate screen projection codes in an idle state comprises: sorting the candidate screen-casting codes according to the latest used time of the candidate screen-casting codes; and randomly determining target screen projection codes from the sorted candidate screen projection codes.
In order to ensure that only one screen projecting code is the same at the same time, the screen projecting code in use is marked to be in a non-idle state, and when a new screen projecting code is obtained, the screen projecting code is determined from candidate screen projecting codes in the idle state. The screen projection codes in the idle state belong to candidate screen projection codes and can be provided for users to use. The state identification of the target screen-projecting code determined to be provided for the user to use is changed into a non-idle state, so that the target screen-projecting code is not repeatedly distributed to other users when other users apply for screen-projecting codes, and the situation that the repeated screen-projecting codes are used at the same time is avoided.
In one embodiment, determining the partition information based on the target screen projection code comprises: converting the target screen projection code into binary digits; determining partition information based on preset digits in the binary digits; and determining partition information according to the partition information. For example, each candidate screen-projecting code is generated by arranging and combining six digits (other digits such as five digits or seven digits) of capital letters (also numbers, lowercase letters, combinations of numbers and uppercase letters, combinations of numbers and lowercase letters, combinations of numbers, uppercase letters and lowercase letters, or combinations of lowercase letters and uppercase letters), one candidate screen-projecting code corresponds to an integer of 26 digits of 6 digits, AAAAAA =0, zzzz zz =308915775, assuming that the target screen-projecting code is OVAZYQ, the corresponding integer is 175330950, the corresponding binary digit is 0000 1010 0111 1100 0101101 1 0100100100100, assuming that partition information is determined based on the lower 14 digits, the corresponding lower 14 digits is 01 0101 0101001 0, and the partition information is 5524, and further determining an ecological domain according to the partition information 5524. An ecological domain is a self-closed software service system which can provide complete functions for users. And (4) isolating resources among different ecological domains, such as storage resources like MySQL and Abase, machine resources and the like. The ecological domain is often used as an identifier of a place where the resource is located, and user or tenant data belongs to a certain ecological domain. If the binary digits of the lower 14 bits are used for determining the partition information, 2^14=16384 partitions can be obtained, and if the binary digits are further increased by 15 bits, the number of screen shots of each partition after combination is about 18855. As shown in fig. 6, each of the candidate screen-casting codes is stored in a queue, and each partition corresponds to a certain number of screen-casting codes. Original candidate screen-casting codes (the original candidate screen-casting codes refer to initial candidate screen-casting codes which are not allocated to a user and used) generated based on permutation and combination are stored in a queue after being scrambled in sequence, the state identification of each candidate screen-casting Code is marked as an idle state, when a screen-casting Code application instruction is received, the candidate screen-casting codes (such as the candidate screen-casting Code1 shown in figure 6) stored at the head of the queue are determined as target screen-casting codes, and the target screen-casting codes are supplemented to the tail of the queue after being used, so that the purpose of keeping the disorder relation among the candidate screen-casting codes can be achieved, and the probability of attacking the screen-casting codes is reduced.
In another embodiment, the determining the partition information based on the target screen-projecting code includes determining the partition information stored in association with the target screen-projecting code based on the target screen-projecting code, that is, the target screen-projecting code and the partition information are two different pieces of information and are stored in different positions respectively. It can be understood that the screen projection codes are converted into binary digits, the preset digits in the binary digits are used for determining the partition information, the purpose of determining the partition information based on the target screen projection codes is achieved, the partition information corresponding to each screen projection code does not need to be additionally stored, the storage space is saved, meanwhile, the searching operation is not needed when the partition information is determined, the determining efficiency and the determining accuracy of the partition information are improved, and the screen projection efficiency and the screen projection accuracy are further improved.
And 520, routing the screen projection instruction to a target end according to the partition information so as to project the current screen information to the target end.
Specifically, routing the screen projection instruction to a target end according to the partition information includes: determining an ecological domain according to the partition information, determining the matched target end from the ecological domain based on the target screen projection code, and routing the screen projection instruction to the target end. An ecological domain is a self-closed software service system which can provide complete functions for users. And (4) isolating resources among different ecological domains, such as storage resources like MySQL and Abase, machine resources and the like. The ecological domain is often used as an identifier of a place where the resource is located, and user or tenant data belongs to a certain ecological domain. After the ecological domain is determined, a corresponding target end is determined based on the target screen projection code, the screen projection instruction is routed to the target end, and the target end can be video conference equipment, so that the purpose of projecting the information of the current screen to the target end is achieved.
In one embodiment, the screen projection method further comprises: and responding to a release instruction of the target screen projection code, and changing the state identifier of the target screen projection code into an idle state. When a video conference is finished once, specifically when a user triggers a video conference finishing button or an icon to finish the video conference, triggering a release instruction of the target screen projection code. When the system receives the release instruction, the state identification of the target screen projection code used by the current video conference screen projection is changed into an idle state, so that the target screen projection code is recycled, and the screen projection code quantity can meet the application requirements of a large number of users.
In one embodiment, the screen projection method further comprises: and after the state identification of the target screen projection code is changed into an idle state, setting the target screen projection code as a non-candidate screen projection code. And when the time length for setting the target screen projection code as the non-candidate screen projection code reaches a time length threshold value, setting the target screen projection code as the candidate screen projection code. By setting the target screen-projecting code as the non-candidate screen-projecting code, the target screen-projecting code can be guaranteed not to be allocated to the user for use when the screen-projecting code application instruction is received again, so that the aim of guaranteeing that the target screen-projecting code which is just released cannot be reused immediately is fulfilled, and the probability that the target screen-projecting code is attacked is reduced. For example, when screen casting codes are distributed to users, target screen casting codes sent to the users are intercepted by hackers, if the target screen casting codes can be reused immediately after being released, when the hackers detect that other users apply for screen casting codes, the target screen casting codes are distributed to other users for use, so that the users cast screens to equipment preset by the hackers, screen casting information of the users is leaked, and the process is a process that the screen casting codes are attacked. When the time length for setting the target screen projection code as the non-candidate screen projection code reaches the time length threshold value, the target screen projection code is set as the candidate screen projection code, so that the target screen projection code is recycled. Fig. 7 is a schematic structural diagram of a screen-projecting code processing apparatus in an embodiment of the present disclosure. As shown in fig. 7, the processing device for screen projection codes specifically includes: a target screen projection code determining module 710 and a first modifying module 720; the target screen-projecting code determining module 710 is configured to determine a target screen-projecting code from candidate screen-projecting codes in an idle state in response to a screen-projecting code application instruction; the first changing module 720 is configured to change the state identifier of the target screen-projecting code to a non-idle state; wherein the target screen projection code is used for determining the video conference equipment to be projected.
Optionally, the method further includes: and the second changing module is used for responding to a release instruction of the target screen projection code, changing the state identifier of the target screen projection code into an idle state, and setting the target screen projection code as a non-candidate screen projection code.
Optionally, the second changing module is further configured to: and when the time length for setting the target screen projection code as the non-candidate screen projection code reaches a time length threshold value, setting the target screen projection code as the candidate screen projection code.
Optionally, the target screen-projection code determining module 710 includes: the sorting unit is used for sorting the candidate screen projection codes according to the latest used time of the candidate screen projection codes; and the first determining unit is used for randomly determining the target screen projection code from the sorted candidate screen projection codes.
Optionally, the candidate screen-projecting code is generated by a character with a preset number of digits; and the candidate screen projection codes in the idle state are stored in a database table, and the storage sequence of the candidate screen projection codes in the idle state in the database table is different from the initial generation sequence of each candidate screen projection code.
According to the screen-projecting code processing device provided by the embodiment of the disclosure, when an application instruction of screen-projecting codes is received, a target screen-projecting code is determined from candidate screen-projecting codes in an idle state, and the state identifier of the target screen-projecting code is changed into a non-idle state, so that when the application instruction of the screen-projecting codes is received again, the target screen-projecting code is not distributed to other video conference equipment, the application efficiency of the target screen-projecting code is improved, and the situation that no repeated target screen-projecting codes are used at the same time can be ensured.
The processing device for screen-projecting code provided by the embodiment of the disclosure can execute the steps executed in the screen-projecting code processing method provided by the embodiment of the disclosure, and the steps and the beneficial effects are not repeated herein.
Fig. 8 is a schematic structural diagram of a screen projection device in an embodiment of the present disclosure. As shown in fig. 8, the screen projection device specifically includes: a partition information determination module 810 and a routing module 820; the partition information determining module 810 is configured to determine partition information based on a target screen projection code in response to a screen projection instruction, where the screen projection instruction includes the target screen projection code; a routing module 820, configured to route the screen projection instruction to a target end according to the partition information, so as to project the current screen information to the target end; and after the target screen projection code is determined from the candidate screen projection codes in the idle state, the state identifier of the target screen projection code is changed into a non-idle state.
Optionally, the partition information determining module 810 includes: the conversion unit is used for converting the target screen projection code into binary digits; a first determination unit for determining partition information based on a preset digit among the binary digits.
Optionally, the method further includes: and the changing module is used for responding to a release instruction of the target screen projection code, changing the state identifier of the target screen projection code into an idle state, and setting the target screen projection code as a non-candidate screen projection code.
Optionally, the changing module is further configured to: and when the time length for setting the target screen projection code as the non-candidate screen projection code reaches a time length threshold value, setting the target screen projection code as the candidate screen projection code.
Optionally, the method further includes: the sorting module is used for sorting the candidate screen projection codes according to the latest used time of the candidate screen projection codes; and the target screen projection code determining module is used for randomly determining the target screen projection codes from the sorted candidate screen projection codes. Optionally, the candidate screen-projecting code is generated by a character with a preset number of digits; and the candidate screen projection codes in the idle state are stored in a database table, and the storage sequence of the candidate screen projection codes in the idle state in the database table is different from the initial generation sequence of each candidate screen projection code.
Fig. 9 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure. Referring specifically to fig. 9, a schematic diagram of an electronic device 500 suitable for implementing embodiments of the present disclosure is shown. The electronic device 500 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), a wearable electronic device, and the like, and fixed terminals such as a digital TV, a desktop computer, a smart home device, and the like. The electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 9, the electronic device 500 may include a processing means (e.g., a central processing unit, a graphic processor, etc.) 501, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503 to implement a screen projecting code processing method and a screen projecting method according to an embodiment of the present disclosure. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 9 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program containing program code for executing the method illustrated in the flowchart, thereby implementing the screen projection code processing method and the screen projection method as described above. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program, when executed by the processing device 501, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving an intention character input by a user through an input method; and determining candidate words according to the intention characters and the application type of the current application of the input method.
Optionally, when the one or more programs are executed by the electronic device, the electronic device may further perform other steps described in the above embodiments.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a screen-projecting code processing method, including: in response to a screen projection code application instruction, determining a target screen projection code from candidate screen projection codes in an idle state; changing the state identifier of the target screen projection code into a non-idle state; wherein the target screen projection code is used for determining the video conference equipment to be projected.
According to one or more embodiments of the present disclosure, in the screen-projection code processing method provided by the present disclosure, the method further includes: and responding to a release instruction of the target screen projection code, changing the state identifier of the target screen projection code into an idle state, and setting the target screen projection code as a non-candidate screen projection code.
According to one or more embodiments of the present disclosure, the present disclosure provides a screen projection code processing method, further including: and when the time length for setting the target screen projection code as the non-candidate screen projection code reaches a time length threshold value, setting the target screen projection code as the candidate screen projection code.
According to one or more embodiments of the present disclosure, in a screen projection code processing method, the determining a target screen projection code from candidate screen projection codes in an idle state includes: sorting each candidate screen-casting code according to the time when each candidate screen-casting code is used for the last time; and randomly determining the target screen projection codes from the sorted candidate screen projection codes.
According to one or more embodiments of the present disclosure, there is provided a screen projection code processing method in which the candidate screen projection code is generated from characters of a preset number of bits; and the candidate screen projection codes in the idle state are stored in a database table, and the storage sequence of the candidate screen projection codes in the idle state in the database table is different from the initial generation sequence of each candidate screen projection code.
According to one or more embodiments of the present disclosure, there is provided a screen projection method including: in response to a screen projection instruction, determining partition information based on a target screen projection code, wherein the screen projection instruction comprises the target screen projection code; routing the screen projection instruction to a target end according to the partition information so as to project the current screen information to the target end; and after the target screen projection code is determined from the candidate screen projection codes in the idle state, the state identifier of the target screen projection code is changed into a non-idle state.
According to one or more embodiments of the present disclosure, in a screen projection method provided by the present disclosure, optionally, the determining partition information based on the target screen projection code includes: converting the target screen projection code into binary digits; and determining partition information based on preset digits in the binary digits.
According to one or more embodiments of the present disclosure, in a screen code projecting method provided by the present disclosure, optionally, the method further includes: and responding to a release instruction of the target screen projection code, and changing the state identifier of the target screen projection code into an idle state.
According to one or more embodiments of the present disclosure, in a method for screen-shooting a code provided by the present disclosure, optionally, after changing the state identifier of the target screen-shooting code to an idle state, the method further includes: and setting the target screen projection code as a non-candidate screen projection code.
According to one or more embodiments of the present disclosure, in a screen-shooting code method provided by the present disclosure, optionally, the method further includes: and when the time length for setting the target screen projection code as the non-candidate screen projection code reaches a time length threshold value, setting the target screen projection code as the candidate screen projection code.
According to one or more embodiments of the present disclosure, in a screen-shooting code method provided by the present disclosure, optionally, determining a target screen-shooting code from candidate screen-shooting codes in an idle state includes: sequencing each candidate screen-casting code according to the latest used time of each candidate screen-casting code; and randomly determining the target screen projection codes from the sorted candidate screen projection codes.
According to one or more embodiments of the present disclosure, in a screen projection code method provided by the present disclosure, optionally, the candidate screen projection code is generated by a character with a preset number of bits; and the candidate screen projection codes in the idle state are stored in a database table, and the storage sequence of the candidate screen projection codes in the idle state in the database table is different from the initial generation sequence of each candidate screen projection code.
According to one or more embodiments of the present disclosure, a screen-shot code processing apparatus includes:
the target screen projection code determining module is used for responding to a screen projection code application instruction and determining a target screen projection code from candidate screen projection codes in an idle state;
the first changing module is used for changing the state identifier of the target screen projection code into a non-idle state;
wherein the target screen projection code is used for determining the video conference equipment to be projected.
According to one or more embodiments of the present disclosure, in the processing apparatus for screen-projecting codes provided by the present disclosure, the first changing module is further configured to change the state identifier of the target screen-projecting code to an idle state in response to a release instruction of the target screen-projecting code;
further comprising: and the setting module is used for setting the target screen projection code as a non-candidate screen projection code.
According to one or more embodiments of the present disclosure, in the processing apparatus of screen projection code provided by the present disclosure, the setting module is further configured to: and when the time length for setting the target screen projection code as the non-candidate screen projection code reaches a time length threshold value, setting the target screen projection code as the candidate screen projection code.
According to one or more embodiments of the present disclosure, in a screen-projection code processing apparatus provided by the present disclosure, the target screen-projection code determining module includes:
the sorting unit is used for sorting the candidate screen projection codes according to the latest used time of the candidate screen projection codes;
and the target screen projection code determining unit is used for randomly determining the target screen projection codes from the sorted candidate screen projection codes.
According to one or more embodiments of the present disclosure, in the processing apparatus for screen projection code provided by the present disclosure, the apparatus further includes:
a partition information target screen projection code determining module, configured to determine partition information based on a target screen projection code in response to a screen projection instruction, where the screen projection instruction includes the target screen projection code
And the routing module is used for routing the screen projection instruction to a target end according to the partition information.
According to one or more embodiments of the present disclosure, in a screen projection code processing apparatus provided by the present disclosure, the partition information target screen projection code determining module includes:
the conversion unit is used for converting the target screen projection code into binary digits;
a partition information determination unit for determining partition information based on a preset digit among the binary digits.
According to one or more embodiments of the present disclosure, in the processing apparatus of a screen projection code provided by the present disclosure, the candidate screen projection code is generated by a preset number of characters;
and the candidate screen projection codes in the idle state are stored in a database table, and the storage sequence of the candidate screen projection codes in the idle state in the database table is different from the initial generation sequence of each candidate screen projection code.
According to one or more embodiments of the present disclosure, there is provided a screen projection apparatus including: the system comprises a partition information determining module and a routing module; the system comprises a partition information determining module, a display module and a display module, wherein the partition information determining module is used for responding to a screen projection instruction and determining partition information based on a target screen projection code, and the screen projection instruction comprises the target screen projection code; the routing module is used for routing the screen projection instruction to a target end according to the partition information so as to project the current screen information to the target end; and after the target screen projection code is determined from the candidate screen projection codes in the idle state, the state identifier of the target screen projection code is changed into a non-idle state.
According to one or more embodiments of the present disclosure, in the screen projection apparatus provided by the present disclosure, optionally, the partition information determining module includes: the conversion unit is used for converting the target screen projection code into binary digits; a first determination unit for determining partition information based on a preset digit among the binary digits.
According to one or more embodiments of the present disclosure, in the projection device provided by the present disclosure, optionally, the projection device further includes: and the changing module is used for responding to a release instruction of the target screen projection code, changing the state identifier of the target screen projection code into an idle state, and setting the target screen projection code as a non-candidate screen projection code.
In accordance with one or more embodiments of the present disclosure, in the screen projection device provided by the present disclosure, optionally, the changing module is further configured to: and when the time length for setting the target screen projection code as the non-candidate screen projection code reaches a time length threshold value, setting the target screen projection code as the candidate screen projection code.
According to one or more embodiments of the present disclosure, in the projection device provided by the present disclosure, optionally, the projection device further includes: the sorting module is used for sorting the candidate screen projection codes according to the latest used time of the candidate screen projection codes; and the target screen projection code determining module is used for randomly determining the target screen projection codes from the sorted candidate screen projection codes.
According to one or more embodiments of the present disclosure, in the screen projection apparatus provided in the present disclosure, optionally, the candidate screen projection code is generated by a preset number of characters; and the candidate screen projection codes in the idle state are stored in a database table, and the storage sequence of the candidate screen projection codes in the idle state in the database table is different from the initial generation sequence of each candidate screen projection code.
In accordance with one or more embodiments of the present disclosure, there is provided an electronic device including:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement any of the screen projection code processing methods and screen projection methods provided by the present disclosure.
According to one or more embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a screen projecting code processing method and a screen projecting method as any one of those provided by the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other combinations of features described above or equivalents thereof without departing from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (17)

1. A screen-casting code processing method is characterized by comprising the following steps:
in response to a screen projection code application instruction, determining a target screen projection code from candidate screen projection codes in an idle state; the candidate screen projection codes in the idle state are stored in a database table, and the storage sequence of the candidate screen projection codes in the idle state in the database table is different from the initial generation sequence of each candidate screen projection code;
changing the state identifier of the target screen projection code into a non-idle state;
the target screen projection code is associated with the IP address of the video conference equipment to be projected, and is used for determining the video conference equipment to be projected and projecting the content displayed on the screen of the terminal to be input with the target screen projection code to the video conference equipment to be projected.
2. The method of claim 1, further comprising:
and responding to a release instruction of the target screen projection code, and changing the state identifier of the target screen projection code into an idle state.
3. The method of claim 2, further comprising, after changing the status identification of the target screen-cast code to an idle state: and setting the target screen projection code as a non-candidate screen projection code.
4. The method of claim 3, further comprising:
and when the time length for setting the target screen projection code as the non-candidate screen projection code reaches a time length threshold value, setting the target screen projection code as the candidate screen projection code.
5. The method of claim 1, wherein the determining a target screen casting code from the candidate screen casting codes in the idle state comprises:
sorting each candidate screen-casting code according to the time when each candidate screen-casting code is used for the last time;
and randomly determining the target screen projection codes from the sorted candidate screen projection codes.
6. The method of any one of claims 1-5, wherein the candidate screen-shot codes are generated from a predetermined number of digits of characters.
7. A screen projection method, comprising:
in response to a screen projection instruction, determining partition information based on a target screen projection code, wherein the screen projection instruction comprises the target screen projection code;
routing the screen projection instruction to a target end according to the partition information so as to project the current screen information to the target end;
the target screen projection code is determined from candidate screen projection codes in an idle state, and after the target screen projection code is determined from the candidate screen projection codes in the idle state, the state identifier of the target screen projection code is changed into a non-idle state;
the candidate screen projection codes in the idle state are stored in a database table, and the storage sequence of the candidate screen projection codes in the idle state in the database table is different from the initial generation sequence of each candidate screen projection code;
the target screen projection code is associated with the IP address of the video conference equipment to be projected, and is used for determining the video conference equipment to be projected and projecting the content displayed on the terminal screen input with the target screen projection code to the video conference equipment to be projected.
8. The method of claim 7, wherein determining partition information based on the target screen-cast code comprises:
converting the target screen projection code into binary digits;
and determining partition information based on preset digits in the binary digits.
9. The method of claim 7, further comprising:
and responding to a release instruction of the target screen projection code, and changing the state identifier of the target screen projection code into an idle state.
10. The method of claim 7, further comprising, after changing the status identification of the target screen-cast code to an idle state: and setting the target screen projection code as a non-candidate screen projection code.
11. The method of claim 10, further comprising:
and when the time length for setting the target screen projection code as the non-candidate screen projection code reaches a time length threshold value, setting the target screen projection code as the candidate screen projection code.
12. The method of claim 7, wherein determining the target screen casting code from the candidate screen casting codes in the idle state comprises:
sorting each candidate screen-casting code according to the time when each candidate screen-casting code is used for the last time;
and randomly determining the target screen projection codes from the sorted candidate screen projection codes.
13. The method of any one of claims 7-12, wherein the candidate screen-shot codes are generated from a predetermined number of digits of characters.
14. A processing apparatus of screen projection code, comprising:
the target screen projection code determining module is used for responding to a screen projection code application instruction and determining a target screen projection code from candidate screen projection codes in an idle state; the candidate screen projection codes in the idle state are stored in a database table, and the storage sequence of the candidate screen projection codes in the idle state in the database table is different from the initial generation sequence of each candidate screen projection code;
the first changing module is used for changing the state identifier of the target screen projection code into a non-idle state;
the target screen projection code is associated with the IP address of the video conference equipment to be projected, and is used for determining the video conference equipment to be projected and projecting the content displayed on the terminal screen input with the target screen projection code to the video conference equipment to be projected.
15. A screen projection apparatus, comprising:
the partition information determining module is used for responding to a screen projection instruction and determining partition information based on a target screen projection code, wherein the screen projection instruction comprises the target screen projection code;
the routing module is used for routing the screen projection instruction to a target end according to the partition information so as to project the current screen information to the target end;
the target screen projection code is determined from candidate screen projection codes in an idle state, and after the target screen projection code is determined from the candidate screen projection codes in the idle state, the state identifier of the target screen projection code is changed into a non-idle state; the candidate screen projection codes in the idle state are stored in a database table, and the storage sequence of the candidate screen projection codes in the idle state in the database table is different from the initial generation sequence of each candidate screen projection code;
the target screen projection code is associated with the IP address of the video conference equipment to be projected, and is used for determining the video conference equipment to be projected and projecting the content displayed on the terminal screen input with the target screen projection code to the video conference equipment to be projected.
16. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the screen projection code processing method of any of claims 1-6 and the screen projection method of any of claims 7-13.
17. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the screen projecting code processing method of any one of claims 1 to 6 and the screen projecting method of any one of claims 7 to 13.
CN202110652258.XA 2021-06-11 2021-06-11 Screen projection code processing method, screen projection device, electronic equipment and storage medium Active CN113382194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110652258.XA CN113382194B (en) 2021-06-11 2021-06-11 Screen projection code processing method, screen projection device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110652258.XA CN113382194B (en) 2021-06-11 2021-06-11 Screen projection code processing method, screen projection device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113382194A CN113382194A (en) 2021-09-10
CN113382194B true CN113382194B (en) 2023-03-24

Family

ID=77573916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110652258.XA Active CN113382194B (en) 2021-06-11 2021-06-11 Screen projection code processing method, screen projection device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113382194B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661994A (en) * 2018-06-28 2020-01-07 视联动力信息技术股份有限公司 Method and device for joining video networking conference
CN111836085A (en) * 2020-07-15 2020-10-27 北京奇艺世纪科技有限公司 Television screen projection method and device, cloud server and terminal equipment
CN112256225A (en) * 2020-10-21 2021-01-22 深圳前海茂佳软件科技有限公司 Screen projection method, server, terminal device and computer readable storage medium
CN112738011A (en) * 2019-10-28 2021-04-30 阿里巴巴集团控股有限公司 Screen projection implementation method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170171496A1 (en) * 2015-12-15 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and Electronic Device for Screen Projection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661994A (en) * 2018-06-28 2020-01-07 视联动力信息技术股份有限公司 Method and device for joining video networking conference
CN112738011A (en) * 2019-10-28 2021-04-30 阿里巴巴集团控股有限公司 Screen projection implementation method, device and system
CN111836085A (en) * 2020-07-15 2020-10-27 北京奇艺世纪科技有限公司 Television screen projection method and device, cloud server and terminal equipment
CN112256225A (en) * 2020-10-21 2021-01-22 深圳前海茂佳软件科技有限公司 Screen projection method, server, terminal device and computer readable storage medium

Also Published As

Publication number Publication date
CN113382194A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN110569470B (en) User matching method and device, readable medium and electronic equipment
CN112637287B (en) Load balancing method and equipment
CN110390493B (en) Task management method and device, storage medium and electronic equipment
CN111935111B (en) Interaction method and device and electronic equipment
CN110795446A (en) List updating method and device, readable medium and electronic equipment
CN110597602B (en) Transaction processing method and device, computer equipment and storage medium
CN110489474B (en) Data processing method, device, medium and electronic equipment
CN112486825B (en) Multi-lane environment architecture system, message consumption method, device, equipment and medium
CN111262907B (en) Service instance access method and device and electronic equipment
CN110717123B (en) Page response method and device, electronic equipment and storage medium
CN113382194B (en) Screen projection code processing method, screen projection device, electronic equipment and storage medium
CN112306685A (en) Task isolation method and device, electronic equipment and computer readable medium
CN113162836B (en) Virtual local area network communication method and device, cloud server, medium and electronic equipment
US10715591B2 (en) Method for peer-to-peer synchronization using vector clock and system using the same
CN114089891A (en) Display control method and device and electronic equipment
CN113890772A (en) Information processing method and device and electronic equipment
CN113240108A (en) Model training method and device and electronic equipment
CN113297277A (en) Test statistic determination method, device, readable medium and electronic equipment
CN112163237A (en) Data processing method and device and electronic equipment
CN111324387A (en) Application task control method, device, terminal and system
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111625707B (en) Recommendation response method, device, medium and equipment
CN115225586B (en) Data packet transmitting method, device, equipment and computer readable storage medium
CN111290693B (en) Virtual keyboard generation method and device, electronic equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant