Screen projection method, server, terminal device and computer-readable storage medium
By obtaining the permissions logo of the terminal equipment, the server determines the permissions of the screening of the screen, so that the terminal device can determine the corresponding content of the screen according to the permissions, solve the problem that the content of different terminal equipment is not matched, and realize the personalized investment of the content. screen.
Patent Information
- Application Number
- CN202011136897.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-21
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2040-10-21
AI Technical Summary
The prior art cannot project the corresponding screen projection content based on different terminal devices.
By obtaining the permissions sent by the terminal device, the server determines the screen permissions of the terminal device, and sends the permissions to the terminal device. The terminal device is determined and the screen vote according to the screen permissions.
The content of the screen casting screen according to different terminal devices is implemented to solve the problem of not matching the content of the terminal device.
Smart Images

Figure CN112256225B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular to a screen projection method, a server, a terminal device, and a computer-readable storage medium. Background Art
[0002] When users use display devices such as TVs in daily life, they often project the screens of terminal devices such as mobile phones onto the TVs so that the TVs can display the screens on the mobile phones. However, the inventors have found that when the prior art is performing screen projection, the projection content generated by different terminal devices is the same, and it is impossible to project the corresponding projection content according to different terminal devices. Summary of the invention
[0003] The main purpose of the present invention is to provide a screen projection method, a server, a terminal device and a computer-readable storage medium, aiming to solve the technical problem that the corresponding screen projection content cannot be projected according to different terminal devices.
[0004] To achieve the above object, the present invention provides a screen projection method, which is applied to a server and includes:
[0005] Acquire an authorization identifier sent by a terminal device, where the authorization identifier is used to identify the terminal device, and the authorization identifier is composed of at least one of a character, a numerical value, and a symbol;
[0006] Determining the screen projection permission of the terminal device according to the permission identifier;
[0007] The screen projection permission is sent to the terminal device, so that the terminal device determines the screen projection content according to the screen projection permission and projects the screen according to the screen projection content.
[0008] Preferably, the step of determining the screen projection permission of the terminal device according to the permission identifier includes:
[0009] Determine user attribute information corresponding to the authority identifier;
[0010] The screen projection permission is determined according to the user attribute information.
[0011] Preferably, before the step of sending the screen projection permission to the terminal device, it also includes:
[0012] When the user attribute information corresponding to the permission identifier does not exist, a default permission is used as the screen projection permission, the default permission is a parameter pre-set and stored in the server, and the default permission is used to indicate the default screen projection function authorized for use by the terminal device; or
[0013] When the user attribute information value corresponding to the authority identifier exists, a step of determining the user attribute information corresponding to the authority identifier is performed.
[0014] Preferably, before the step of sending the screen projection permission to the terminal device, it also includes:
[0015] Acquire a function type triggered by a terminal device corresponding to the permission identifier, where the function type is a parameter used to indicate a type of computer instruction executed by the terminal device;
[0016] When the function type is the first type, using the default permission as the screen projection permission; or
[0017] When the function type is the second type, a step of determining user attribute information corresponding to the authority identifier is performed.
[0018] Preferably, the user attribute information includes a score value and a user type, and the step of determining the user attribute information corresponding to the authority identifier includes:
[0019] Determine the user type corresponding to the authority identifier;
[0020] When the user type is a preset user type, obtaining the number of played advertisements sent by the terminal device;
[0021] Determining the integral value according to the quantity and a preset proportional relationship, wherein the preset proportional relationship indicates a ratio of the quantity to the integral value;
[0022] The step of determining the screen projection permission according to the user attribute information comprises:
[0023] The screen projection permission is determined according to the integral value, and each integral value corresponds to a screen projection permission.
[0024] Preferably, before the step of sending the screen projection permission to the terminal device, it also includes:
[0025] Obtaining a screen projection code to be displayed sent by a display device, wherein the screen projection code is used to establish a connection between the terminal device and the display device;
[0026] Compare the screen projection code with the screen projection codes in the preset screen projection code library to detect whether the screen projection code is unique;
[0027] When the screen projection code is unique, sending a confirmation message to the display device, so that the display device displays the screen projection code according to the confirmation message; or
[0028] When the projection code is not unique, a feedback message is sent to the display device, and the projection code returned by the display device according to the feedback message is received, and the step of comparing the projection code with the projection code in the preset projection code library is returned to detect whether the projection code is unique.
[0029] In addition, to achieve the above-mentioned purpose, the present invention further provides a screen projection method, which is applied to a terminal device and includes:
[0030] When detecting that a user triggers a screen projection operation, sending a permission identifier associated with the terminal device to a server;
[0031] Receiving the screen projection permission determined according to the permission identifier and returned by the server;
[0032] The projection content is determined according to the projection permission, and the projection content is sent to the display device so that the display device displays the projection content.
[0033] Preferably, before the step of sending the projection content to the display device, the method further includes:
[0034] Receive the screen casting code entered by the user;
[0035] Establish a connection with the display device according to the screen projection code.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a server, which includes a memory, a processor, and a screen projection program stored in the memory and executable on the processor, and when the screen projection program is executed by the processor, it implements any step of the screen projection method applied to the server.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes a memory, a processor, and a screen projection program stored in the memory and runnable on the processor, and when the screen projection program is executed by the processor, it implements any step of the screen projection method applied to the terminal device.
[0038] The embodiments of the present invention propose a screen projection method, a server, a terminal device and a computer-readable storage medium. The method obtains a permission identifier sent by the terminal device, determines the screen projection permission of the terminal device according to the permission identifier, sends the screen projection permission to the terminal device, and the terminal device determines the screen content to be projected according to the screen projection permission, and projects the screen according to the screen projection content. Since the screen projection permission of the terminal device can be determined according to the permission identifier, and the terminal device can determine the screen projection content according to the screen projection permission, the effect of projecting the corresponding screen content according to different terminal devices is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a schematic diagram of the server structure of the hardware operating environment involved in the embodiment of the present invention;
[0040] Figure 2 It is a schematic diagram of the structure of a terminal device in a hardware operating environment involved in an embodiment of the present invention;
[0041] Figure 3 This is a schematic diagram of the process of the first embodiment of the screen projection method of the present invention;
[0042] Figure 4 This is a flow chart of a second embodiment of the screen projection method of the present invention;
[0043] Figure 5 This is a flow chart of a third embodiment of the screen projection method of the present invention;
[0044] Figure 6 This is a flowchart of a fourth embodiment of the screen projection method of the present invention;
[0045] Figure 7 This is a flowchart of a fifth embodiment of the screen projection method of the present invention;
[0046] Figure 8 This is a flow chart of a sixth embodiment of the screen projection method of the present invention;
[0047] Fig. 9 This is a flow chart of a seventh embodiment of the screen projection method of the present invention;
[0048] Fig.10 This is an interaction sequence diagram of the terminal device, server and display device involved in the eighth embodiment of the screen projection method of the present invention.
[0049] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0050] The hardware operating environment of the present invention includes a server and terminal equipment.
[0051] like Figure 1 As shown, Figure 1 It is a schematic diagram of the server structure of the hardware operating environment involved in the embodiment of the present invention.
[0052] like Figure 1As shown, the server may include: a processor 1001, such as a CPU, a communication interface 1003, a memory 1004, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The communication interface 1003 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1004 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1004 may also be a storage device independent of the aforementioned processor 1001.
[0053] Those skilled in the art will understand that Figure 1 The server structure of the hardware operating environment shown in the figure does not constitute a limitation on the server, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0054] like Figure 1 As shown, the memory 1004 as a computer storage medium may include an operating system, a communication module, and a screen projection program.
[0055] exist Figure 1 In the server shown, the communication interface 1003 is used to connect the terminal device and the display device and perform data communication with the terminal device and the display device; and the processor 1001 can be used to call the screen projection program stored in the memory 1004 and perform the following operations:
[0056] Get the permission identifier sent by the terminal device;
[0057] Determining the screen projection permission of the terminal device according to the permission identifier;
[0058] The screen projection permission is sent to the terminal device, so that the terminal device determines the screen projection content according to the screen projection permission and projects the screen according to the screen projection content.
[0059] Further, the processor 1001 may call the screen projection program stored in the memory 1004, and also perform the following operations:
[0060] Determine user attribute information corresponding to the authority identifier;
[0061] The screen projection permission is determined according to the user attribute information.
[0062] Further, the processor 1001 may call the screen projection program stored in the memory 1004, and also perform the following operations:
[0063] When the user attribute information corresponding to the permission identifier does not exist, using a default permission as the screen projection permission; or
[0064] When the user attribute information value corresponding to the authority identifier exists, a step of determining the user attribute information corresponding to the authority identifier is performed.
[0065] Further, the processor 1001 may call the screen projection program stored in the memory 1004, and also perform the following operations:
[0066] Obtain the function type triggered by the terminal device corresponding to the permission identifier;
[0067] When the function type is the first type, using the default permission as the screen projection permission; or
[0068] When the function type is the second type, a step of determining user attribute information corresponding to the authority identifier is performed.
[0069] Further, the processor 1001 may call the screen projection program stored in the memory 1004, and also perform the following operations:
[0070] Determine the user type corresponding to the authority identifier;
[0071] When the user type is a preset user type, obtaining the number of played advertisements sent by the terminal device;
[0072] Determining the integral value according to the quantity and a preset proportional relationship;
[0073] The screen projection permission is determined according to the integral value.
[0074] Further, the processor 1001 may call the screen projection program stored in the memory 1004, and also perform the following operations:
[0075] Obtaining a screen projection code to be displayed sent by a display device, wherein the screen projection code is used to establish a connection between the terminal device and the display device;
[0076] Compare the screen projection code with the screen projection codes in the preset screen projection code library to detect whether the screen projection code is unique;
[0077] When the screen projection code is unique, sending a confirmation message to the display device, so that the display device displays the screen projection code according to the confirmation message; or
[0078] When the projection code is not unique, a feedback message is sent to the display device, and the projection code returned by the display device according to the feedback message is received, and the step of comparing the projection code with the projection code in the preset projection code library is returned to detect whether the projection code is unique.
[0079] like Figure 2 As shown, Figure 2 It is a schematic diagram of the terminal device structure of the hardware operating environment involved in the embodiment of the present invention.
[0080] like Figure 2 As shown, the terminal device may include: a processor 1005, such as a CPU, a communication interface 1006, a memory 1007, and a communication bus 1008. Among them, the communication bus 1008 is used to realize the connection and communication between these components. The communication interface 1006 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1007 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1007 may also be a storage device independent of the aforementioned processor 1005.
[0081] Those skilled in the art will understand that Figure 1 The terminal device structure of the hardware operating environment shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0082] exist Figure 2 In the terminal device shown, the communication interface 1006 is mainly used to connect to the server and the display device, and to communicate data with the server and the display device; the memory 1007 is mainly used to store the authority identifier, such as the physical address, and the processor 1005 can be used to call the screen projection program stored in the memory 1007 and perform the following operations:
[0083] When detecting that a user triggers a screen projection operation, sending a permission identifier associated with the terminal device to a server;
[0084] Receiving the screen projection permission determined according to the permission identifier and returned by the server;
[0085] The projection content is determined according to the projection permission, and the projection content is sent to the display device so that the display device displays the projection content.
[0086] Further, the processor 1005 may call the screen projection program stored in the memory 1007, and also perform the following operations:
[0087] Receive the screen casting code entered by the user;
[0088] Establish a connection with the display device according to the screen projection code.
[0089] Reference Figure 3 A first embodiment of the present invention provides a screen projection method, which is applied to a server and includes:
[0090] Step S10, obtaining an authorization identifier sent by a terminal device, wherein the authorization identifier is used to identify the terminal device, and the authorization identifier is composed of at least one of a character, a numerical value, and a symbol;
[0091] In this embodiment, the execution entity is a server. The type of server is not limited, for example, it can be a cloud server, a physical server, etc. The terminal device is a computer device, and the terminal device is used to generate screen projection content and perform screen projection. Common terminal devices include smart phones, tablets, laptops, etc. Each terminal device has its corresponding permission identifier, and the permission identifier is used to identify the terminal device. The permission identifier can be identification information composed of the hardware information of the terminal device itself, such as the physical address of the terminal device, or virtual identification information, such as identification information randomly generated by an algorithm, or information associated with a user, such as a mobile phone number, account number, etc. A terminal device can be identified through the permission identifier, so that the corresponding screen projection permission of the terminal device can be further obtained.
[0092] Before obtaining the permission identifier, the server can also detect whether the terminal device has sent an authentication instruction. The authentication instruction is an instruction generated by the terminal device to determine its corresponding screen projection permission. Upon receiving the authentication instruction sent by the terminal device, a request is sent to the terminal device to request the terminal device to send the permission identifier. In addition, the terminal device can also send the permission identifier while sending the authentication request. It can be understood that the terminal device can also only send the permission identifier when authentication is required. At this time, the permission identifier is equivalent to an authentication instruction. After receiving the permission identifier, the server determines the screen projection permission based on the permission identifier.
[0093] Step S20, determining the screen projection permission of the terminal device according to the permission identifier;
[0094] Screen projection permission is a kind of identification information used to indicate the screen projection function that can be used by the terminal device, and is also a kind of identification information used to determine the screen projection content. Each screen projection permission corresponds to a set of screen projection functions that can be used by the terminal device. The data form of the screen projection permission is not limited. For example, the screen projection permission can be a string, and the string can be composed of numbers, characters, letters and symbols. The screen projection permission is such as "advanced permission", "ordinary permission", or "membership permission", "non-membership permission", etc. The screen projection permission can be divided and set according to actual needs, and the screen projection function or screen projection content corresponding to the screen projection permission can also be set according to actual needs. For example, the functions that can be used by the terminal device corresponding to the "membership permission" include picture quality that can select high-definition picture quality, sound that can be selected, etc., then the generated screen projection content includes high-definition picture quality, sound, etc., and the functions that can be used by the terminal device corresponding to the "non-membership permission" include not allowing video clarity to be selected, no sound, etc., then the corresponding screen projection content includes video with default clarity, no sound, etc. It can be understood that the data format of the screen projection permission can be processed by the terminal device. On this basis, the data format of the screen projection permission is a data format that can be processed by a computer.
[0095] In addition, when determining the screen projection permission based on the permission identifier, the method adopted is to determine it through the correspondence between the preset permission identifier and the screen projection permission. If the screen projection permission corresponding to the permission identifier does not exist in the preset correspondence, the default permission can be set as the screen projection permission, or a message can be sent to the terminal device to cause the terminal device to output a prompt message. The user can confirm whether specific screen projection permissions are required through the prompt message, such as obtaining membership permissions by paying. If not, a message requesting non-member permissions is sent to the server, and the server corresponds the permission identifier of the terminal device to the non-member permissions.
[0096] Step S30, sending the screen projection permission to the terminal device, so that the terminal device determines the screen projection content according to the screen projection permission, and projects the screen according to the screen projection content.
[0097] After the screen projection permission is determined, the screen projection permission is sent to the terminal device. The terminal device searches for the corresponding screen projection function through the screen projection permission, outputs the corresponding screen projection function, and determines the projection content according to the screen projection function. For example, if the screen projection permission is "advanced permission", the terminal device determines the screen projection function to turn on all screen projection functions according to the preset correspondence between the "advanced permission" and the screen projection function. When the screen projection permission is "advanced permission", the terminal device can turn on all screen projection functions by default. At this time, the generated screen projection content also includes the screen projection content that can be used by all functions, and the user can also select the screen projection function to be used and generate the corresponding screen projection content; in addition, the server can also send the correspondence between the screen projection permission and the screen projection function to the terminal device, so that the terminal device can determine the screen projection function corresponding to any screen projection permission according to the correspondence; after determining the projection content, the terminal device sends the projection content to the display device. The projection content can be images, text, video or audio. The display device is such as a TV, a computer monitor, etc. After receiving the projection content, the display device displays it to complete the screen projection.
[0098] When the terminal device is projecting the screen, it can send the projected content to the server, and the server will forward it to the display device. In addition, the terminal device can also establish a separate connection with the display device through a computer network or other means, instead of forwarding the projected content through the server, which is not limited here.
[0099] In this embodiment, the screen projection permission of the terminal device is determined based on the permission identifier by obtaining the permission identifier, and the screen projection permission is sent to the terminal device. The terminal device determines the screen content to be projected based on the screen projection permission, and projects the screen according to the screen projection content. Among them, since the screen projection permission of the terminal device can be determined according to the permission identifier, and the terminal device can determine the screen projection content according to the screen projection permission, the effect of projecting the corresponding screen content according to different terminal devices is achieved.
[0100] Reference Figure 4 A second embodiment is proposed based on the first embodiment. In the second embodiment, step S20 of the first embodiment includes:
[0101] Step S21, determining the user attribute information corresponding to the authority identifier;
[0102] User attribute information is used to determine the identity of the user corresponding to the terminal device. The user attribute information can be determined based on the correspondence between the preset permission identifier and the user attribute information. When there is no corresponding user attribute information, the default user attribute information can be set. The user attribute information includes, for example, point value and user type. The point value is a digital data. The screen projection permission of the terminal device is indirectly determined by the point value. For example, 10 points correspond to the first screen projection permission, and 20 points correspond to the second screen projection permission. Multiple point values can be used to obtain corresponding multiple screen projection permissions, thereby enriching the number of types of screen projection permissions and achieving more refined division of screen projection permissions and corresponding screen projection functions. User type is an identification information used to identify the user's permission type. User types include, for example, "paid user" and "non-paid user". For "paid user", the corresponding screen projection permission can be set to advanced permission, and for "non-paid user", the corresponding screen projection permission can be determined according to the point value.
[0103] Step S22: determine the screen projection permission based on the user attribute information.
[0104] The method for determining the screen projection permission corresponding to the permission identifier based on user attribute information is to determine it through a preset corresponding relationship. In addition, the corresponding relationship can be updated, and the screen projection permission corresponding to the user attribute information can be changed according to actual needs.
[0105] In this embodiment, by determining the user attribute information corresponding to the permission identifier, the screen projection permission corresponding to the permission identifier is determined according to the user attribute information, thereby enriching the method of determining the screen projection permission and making the method of determining the screen projection permission more flexible.
[0106] Reference Figure 5 A third embodiment is proposed based on the second embodiment. In the third embodiment, before step S30 of the second embodiment, the following steps are further included:
[0107] Step S40, when there is no user attribute information corresponding to the permission identifier, using a default permission as the screen projection permission, the default permission being a parameter preset and stored in the server, and the default permission being used to indicate a default screen projection function authorized for use by the terminal device; or
[0108] Step S50: When the user attribute information value corresponding to the authority identifier exists, a step of determining the user attribute information corresponding to the authority identifier is performed.
[0109] The server determines whether there is user attribute information corresponding to the permission identifier through the correspondence between the preset permission identifier and the user attribute relationship. When there is no corresponding user attribute information, for example, when the user is using screen projection for the first time, in order to enable the user to use the corresponding screen projection function, the default permission is set to the screen projection permission. The default permission corresponds to the default function. The default function is a function that the terminal device can use when there is no screen projection permission or the screen projection permission is the default permission. The specific default function can be set according to actual needs. For example, the default function is set to remote screen projection under certain function restrictions. At this time, the terminal device can only use the remote screen projection function under certain function restrictions. This restriction is manifested in the inability to use functions such as playing sound and selecting picture quality. When there is corresponding user attribute information in the corresponding relationship, the user attribute information corresponding to the permission identifier is further determined, and the screen projection permission corresponding to the permission identifier is determined according to the user attribute information.
[0110] In an actual application scenario, after the user clicks the projection button on the terminal device through the projection application to cause the terminal device to issue a projection request, the server receives the permission identifier and searches for corresponding user attribute information (for example, whether there is a points value and user type). When there is no corresponding user attribute type, the projection permission is set to the default permission and the default permission is sent to the projection application of the terminal device. At this time, the projection application searches for the specific functions included in the default function corresponding to the default permission and generates corresponding projection content. When there is corresponding user attribute information, the projection permission is determined, the corresponding projection content is generated, and the projection content is sent to a display device such as a TV for display.
[0111] In this embodiment, by judging whether there is user attribute information corresponding to the permission identifier, when the user attribute information exists, the screen projection permission corresponding to the user attribute information is determined; when the user attribute information does not exist, the default permission is determined to be the screen projection permission. This allows users to use the corresponding screen projection function regardless of whether there is user attribute information, and can distinguish between the screen projection functions that can be used by different users. It also achieves the effect of projecting the corresponding screen projection content according to different terminal devices.
[0112] Reference Figure 6 A fourth embodiment is proposed based on the second embodiment. In the fourth embodiment, before step S30 in the second embodiment, the following steps are further included:
[0113] Step S60, obtaining a function type triggered by the terminal device corresponding to the permission identifier, wherein the function type is a parameter for indicating a type of computer instruction executed by the terminal device;
[0114] Step S70, when the function type is the first type, using the default permission as the screen projection permission; or
[0115] Step S80, when the function type is the second type, executing the step of determining the user attribute information corresponding to the authority identifier.
[0116] When a user is using a terminal device, the terminal device can determine the type of screen projection function used by the user based on the user's operation, and the function types include a first type and a second type, wherein the first type can be an ordinary function type or a default function type, and the screen projection permission corresponding to the first type is the default permission. When the user selects the first type, the server will not search for the screen projection permission corresponding to the terminal device in the correspondence between the preset permission identifier and the screen projection permission, nor will it determine the screen projection permission corresponding to the permission identifier, but directly uses the default permission as the screen projection permission. When the function type is the second type, the server determines the user attribute information, and further determines the screen projection permission based on the user attribute information.
[0117] In one application scenario, after the user selects the first type of function type, the function type triggered by the terminal device is the first type (for example, a normal function), and the server returns the default permission to the terminal device. The terminal device determines the normal function corresponding to the default permission and controls the generation of the projection content according to the normal function. For example, if the normal function is only to play videos, then when generating projection content, only the video to be played is allowed to be generated, and changes in image quality and sound output are not allowed. After the user selects the second type of function type, the function type triggered by the terminal device is the second type (for example, an advanced function), and the user attribute information is further determined, the projection permission is determined according to the user attribute information, and the corresponding projection content is generated according to the projection permission.
[0118] In this embodiment, the function type that the user needs to use is determined by obtaining the function type triggered by the terminal device corresponding to the permission identifier, and based on the function type, when the function type is of the first type, the default permission is used as the screen projection permission. When the function type is of the second type, the screen projection permission is determined according to the user attribute information. This allows the screen projection permission to be flexibly determined according to the functions actually required by the user, and screen projection can be performed.
[0119] Reference Figure 7 A fifth embodiment is proposed based on the second embodiment. In the fifth embodiment, step S21 of the second embodiment includes:
[0120] Step S211, determining the user type corresponding to the authority identifier;
[0121] Step S212, when the user type is a preset user type, obtaining the number of played advertisements sent by the terminal device;
[0122] Step S213, determining the integral value according to the quantity and a preset proportional relationship, wherein the preset proportional relationship indicates a ratio of the quantity to the integral value;
[0123] Step S22 includes:
[0124] Step S221, determining the screen projection permission according to the integral value, each of the integral values corresponding to one screen projection permission.
[0125] The server searches for the user type in the correspondence between the preset permission identifier and the user type according to the permission identifier. The user type includes a paid type and a non-paid type. When the user type is a paid type, the advanced permission can be set as the screen projection permission, and the terminal device can execute the advanced functions corresponding to the advanced permission. The advanced functions include high-definition images, file display and other functions. The specific content included in the advanced functions can be set according to actual needs. In order to allow users to experience advanced functions, this embodiment also sets a preset user type. The preset user type is a non-paid type. The server determines whether the user type is the preset user type. When the user type is a non-paid type, the user is allowed to watch advertisements to obtain the advanced permission. The implementation method is as follows: the server obtains the number of played advertisements sent by the terminal device, and determines the integral value according to the number. The method for determining the integral value is to calculate the integral value according to the number and a preset proportional relationship. The preset proportional relationship is the ratio of the number and the integral value. For example, the number of played advertisements is 2, and the preset ratio, that is, the number / integral value, is 1 / 10, then the determined integral value is 20. At this time, the screen projection permission is determined according to the correspondence between the integral value and the screen projection permission. In this correspondence, each integral value corresponds to a screen projection permission. For example, the screen projection permission corresponding to the integral value of 20 can be set as "screen projection permission A20", and the terminal device can determine the corresponding function according to the "screen projection permission A20". The usable screen projection function corresponding to the "screen projection permission A20" is the right to use the advanced function twice. When determining the screen projection permission according to the integral value, the integral value can also be directly determined as the screen projection permission. For example, if the integral value is 20, the screen projection permission is "20 integral value"; it can be understood that when determining the screen projection permission according to the integral value, no matter what specific method is adopted, the principle is to indicate the user's viewing of advertisements through identification information in the form of a string, and determine the screen projection permission based on this identification information, so that the user can obtain the permission that he does not have temporarily by watching advertisements, which enriches the management method of screen projection permissions; in addition, when the terminal device detects that the user plays the complete video, it can also return to the inquiry page of the advanced function, allowing the user to reselect whether to obtain the advanced function by watching advertisements.
[0126] In this embodiment, by determining the user type corresponding to the permission identifier, when the user type is a preset user type, the number of advertisements played by the terminal device is obtained, the point value is determined according to the number, and the screen projection permission is determined according to the point value, thereby enabling the user to obtain the screen projection permission corresponding to the number of advertisements by watching advertisements, enriching the management method of the screen projection permission.
[0127] Reference Figure 8 A sixth embodiment is proposed based on any of the above embodiments. In the sixth embodiment, before step S30 of any of the above embodiments, the following steps are further included:
[0128] Step S90, obtaining a screen projection code to be displayed sent by the display device, wherein the screen projection code is used to establish a connection between the terminal device and the display device;
[0129] Step S100, comparing the screen projection code with the screen projection codes in a preset screen projection code library to detect whether the screen projection code is unique;
[0130] Step S110, when the screen casting code is unique, sending a confirmation message to the display device, so that the display device displays the screen casting code according to the confirmation message; or
[0131] Step S120, when the projection code is not unique, sends a feedback message to the display device, receives the projection code returned by the display device according to the feedback message, and returns to execute the step of comparing the projection code with the projection code in the preset projection code library to detect whether the projection code is unique.
[0132] When performing screen projection, the terminal device needs to establish a connection with the display device. The method adopted is that the user inputs the projection code displayed on the display device, and the terminal device connects to the display device through the projection code. The projection code is a credential of a terminal device when performing screen projection, and a connection with the display device can be established through this credential. The data format of the projection code is a string, which is composed of at least one of numbers, letters, characters, and various symbols. The projection code is a credential randomly generated by the display device, and the projection code cannot be repeated. Therefore, it is necessary to detect whether the projection code is unique through the server. The detection method is to compare the projection code sent by the display device with the projection code in the preset projection code library. When the same projection code does not exist in the preset projection code library, it indicates that the projection code is unique. When the same projection code exists in the preset projection code library, it indicates that the projection code is not unique. When the projection code is unique, the display The device sends a confirmation message, which is a computer instruction. When the terminal device receives the confirmation message, it displays the non-repetitive screen projection code indicated by the confirmation message. When the screen projection code is not unique, it sends a feedback message of the regenerated screen projection code to the display device. The feedback message is also a computer instruction. The display device randomly generates a new screen projection code according to the algorithm, and returns the new screen projection code to the server. The server detects whether the new screen projection code is unique. If it is unique, the new screen projection code is sent to the display device for the display device to display it. If it still does not exist, the display device continues to generate a new screen projection code until the generated screen projection code is unique. It can be understood that a threshold for the number of times the feedback message is sent can also be set. When the number of times the server sends feedback messages reaches the threshold, it stops receiving the screen projection code sent by the display device for a period of time and outputs an error prompt message.
[0133] In this embodiment, the projection code to be displayed sent by the display device is obtained, and the projection code is compared with the projection code in the preset projection code library to detect whether the projection code is unique. When the projection code is unique, a confirmation message is sent to the display device to enable the display device to display the projection code. When the projection code is not unique, a feedback message is sent to the display device to enable the display device to generate a new projection code, so that the terminal device can establish a connection with the display device according to the projection code and perform screen projection.
[0134] Please refer to Fig. 9 A seventh embodiment of the present invention provides a screen projection method, which is applied to a terminal device and includes:
[0135] Step S130, when it is detected that the user triggers the screen projection operation, sending the permission identifier associated with the terminal device to the server;
[0136] In this embodiment, the execution subject is a terminal device, which is a computer device, such as a smart phone, tablet computer, laptop computer, etc. The user may trigger the screen projection operation by opening the screen projection application and selecting a button of the screen projection switch, or by selecting a specific screen projection function to trigger the screen projection operation when performing screen projection. For example, in the screen projection application of the terminal device, the button of the screen projection switch may be "Turn on screen projection". When the terminal device detects that the user clicks "Turn on screen projection", it confirms that the user has triggered the screen projection operation. Alternatively, in the screen projection application, if the terminal device detects that the user has selected an operation of a screen projection function, it can be confirmed that the screen projection operation has been triggered. For example, the user selects The terminal device can also detect the screen projection functions such as changing the image quality, projecting files, changing the sound options, etc.; when it is detected that the user has triggered the screen projection operation, the terminal device sends an permission identifier to the server, and the permission identifier is used to enable the server to identify the terminal device and determine the screen projection permission corresponding to the permission identifier. The permission identifier can be the hardware information of the terminal device, such as the physical address, or it can be the mobile phone number of the user of the terminal device or the account logged in to the screen projection application, or a randomly generated identifier corresponding to the terminal device; when detecting the triggering operation of screen projection, the terminal device can detect it through an independent application dedicated to screen projection, or it can detect it through a built-in program in an application that is not dedicated to screen projection and is integrated in a certain application.
[0137] Step S140, receiving the screen projection permission determined according to the permission identifier returned by the server;
[0138] Step S150, determine the projection content according to the projection permission, and send the projection content to the display device so that the display device displays the projection content.
[0139] After sending the permission identifier, the terminal device determines the corresponding screen projection function according to the received screen projection permission, or determines the screen projection content corresponding to the screen projection permission, wherein the data format of the screen projection permission is not limited, and it can be a string, and the string is composed of characters, numbers, letters, symbols, etc. For example, the screen projection permission may be the string "advanced permission" or "ordinary permission". After receiving the screen projection permission, the terminal device needs to determine the screen projection function corresponding to the screen projection permission. The determination method is to search for the corresponding screen projection function through the pre-stored correspondence between the screen projection permission and the screen projection function. If the terminal device does not have the pre-stored correspondence, it can send a request to the server to obtain the correspondence. In addition, if the server sends a new correspondence between the screen projection function and the screen projection permission while sending the screen projection permission, the terminal device can replace the pre-stored correspondence according to the new correspondence sent by the server. Update the correspondence between screen projection permissions and screen projection functions; in addition, in one scenario, the screen projection permission itself can be used to indicate whether the terminal device can use a certain screen projection function. Specifically, when the terminal device determines the screen projection function that the user needs to use, the permission identifier and the screen projection function are sent to the server. The server determines whether the terminal device can use the screen projection function based on the permission identifier, and returns the screen projection permission for whether the screen projection function can be used to the terminal device. For example, the terminal device sends a request for the function of using the projection file and a permission identifier to the server. The server determines whether the terminal device can use the function of the projection file based on the permission identifier and the request. When the function can be used, the screen projection permission is set to "screen projection permission allowing the use of projection files" or other forms. At this time, the terminal device can directly determine whether the function of the projection file can be used based on the screen projection permission, and further determine the projection content.
[0140] The process of determining the projection content according to the projection permission can be: determining the projection function available to the user according to the projection permission, and controlling the generation of the projection content according to the projection function; wherein, in the process of controlling the projection content according to the projection function, the terminal device can also interact with the user, for example, the terminal device sends a prompt box to the user whether to use advanced functions, and the user makes a selection according to the prompt box. When the user chooses to use the advanced functions, the projection function that the user needs to use is further obtained. When the user does not need to use the advanced functions, the corresponding projection content is generated according to the default projection function. In addition, in the process of determining the projection content according to the projection function, The user may not be asked whether he needs to use advanced functions. The terminal device automatically determines whether a certain screen projection function can be used based on the screen projection permission. If the screen projection function can be used, the screen projection function is automatically included in the projection content. For example, the terminal device determines that the screen projection permission is "advanced permission" and determines that the screen projection function includes the ability to include sound in the projection content and the picture quality is high-definition based on the "advanced permission". In the process of generating the projection content, the sound is automatically included and the picture quality is set to high-definition quality, without asking the user whether to turn on the sound or letting the user choose the picture quality by themselves, so as to improve the efficiency of screen projection and enhance the user experience.
[0141] The projected screen content includes the terminal device's screen data (video, image, text, etc.), audio, files to be projected, etc. The projected screen content changes accordingly depending on the projection permissions. Among them, when the projected screen content includes a projection file, the display device can automatically open and display the file after receiving the projection file, or it can open the file according to the user's needs.
[0142] After determining the projection content, the projection content needs to be sent to the display device. The display device is a device used to display the projection content. It can be understood that the display device can also integrate or externally connect audio devices and other devices. Display devices such as televisions and computer monitors, in order to establish a connection between the display device and the terminal device, the display device can display a projection code. The projection code is a credential used to establish a connection between the terminal device and the display device. The user can control the display device to display the projection code through a remote control or keyboard, and enter it in the terminal device. The terminal device receives the projection code entered by the user and establishes a connection with the display device according to the projection code. The method of establishing a connection between the terminal device and the display device through the projection code is that the terminal device sends the projection code and its own device identification to a server or other network device. The server or other network device searches for the display device corresponding to the projection code. After finding the display device, the terminal device establishes a connection with the display device for projection.
[0143] In this embodiment, when it is detected that the user triggers the screen projection operation, the permission identifier associated with the terminal device is sent to the server, the screen projection permission returned by the server based on the permission identifier is received, and the projection content is further determined based on the screen projection permission, and the projection content is sent to the display device, thereby achieving the effect of projecting the corresponding projection content according to different terminal devices.
[0144] Please refer to Fig.10 , Fig.10 This is an interaction sequence diagram of a terminal device, a server and a display device involved in the eighth embodiment of the present invention.
[0145] In the eighth embodiment, the terminal device sends an authorization identifier to the server. After receiving the authorization identifier, the server determines the screen projection permission according to the authorization identifier and sends the screen projection permission to the terminal device. After receiving the screen projection permission, the terminal device generates the projection content according to the projection permission. In addition, the server also receives the projection code sent by the display device and determines whether the projection code is unique. When the projection code is unique, it sends a confirmation message to the display device. After receiving the confirmation message, the display device displays the projection code. It can be understood that the steps from the server receiving the projection code sent by the display device to the display device displaying the projection code only need to be completed before the step of projecting the screen content, so that the user can input the projection code displayed by the display device to the display device. The terminal device sends the projection content to the display device corresponding to the projection code. At this time, the display device can display the projection content corresponding to the terminal device, thereby realizing the effect of projecting the corresponding projection content according to different terminal devices.
[0146] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0147] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, including a number of instructions for a hardware device (server or terminal device) to execute the method described in the embodiment of the present invention.
[0149] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A screen projection method, characterized in that: The screen projection method is applied to a server, and the screen projection method includes: Obtaining an authorization identifier sent by a terminal device, the authorization identifier being used to identify the terminal device, the authorization identifier being composed of at least one of a character, a numerical value, and a symbol, and the authorization identifier being identification information composed of hardware information of the terminal device itself, and the server being able to determine, based on the authorization identifier, that the terminal device can use the screen projection function; Obtaining the function type triggered by the terminal device corresponding to the permission identifier, wherein the function type is a parameter used to indicate the type of computer instructions executed by the terminal device, and the default permission is a parameter pre-set and stored in the server, and the default permission is used to indicate the default screen projection function authorized by the terminal device, and the default permission function includes using remote screen projection; When the function type is the first type, the default permission is used as the screen projection permission, and the screen projection permission is used to indicate the identification information of the screen projection function that can be used by the terminal device, and the screen projection permission corresponding to the first type is the default permission; When the function type is the second type, determining user attribute information corresponding to the authority identifier; Determining the screen projection permission according to the user attribute information; The screen projection permission is sent to the terminal device, so that the terminal device determines the screen projection content according to the screen projection permission and projects the screen according to the screen projection content.
2. The screen projection method according to claim 1, characterized in that: The user attribute information includes a score value and a user type, and the step of determining the user attribute information corresponding to the authority identifier includes: Determine the user type corresponding to the authority identifier; When the user type is a preset user type, obtaining the number of played advertisements sent by the terminal device; Determining the integral value according to the quantity and a preset proportional relationship, wherein the preset proportional relationship indicates a ratio of the quantity to the integral value; The step of determining the screen projection permission according to the user attribute information comprises: The screen projection permission is determined according to the integral value, and each integral value corresponds to a screen projection permission.
3. The screen projection method according to claim 1 or 2, characterized in that: Before the step of sending the screen projection permission to the terminal device, the step further includes: Obtaining a screen projection code to be displayed sent by a display device, wherein the screen projection code is used to establish a connection between the terminal device and the display device; Compare the screen projection code with the screen projection codes in a preset screen projection code library, and when the screen projection code is the only one that exists, send a confirmation message to the display device so that the display device displays the screen projection code according to the confirmation message; or When the projection code is not unique, a feedback message is sent to the display device, and the projection code returned by the display device according to the feedback message is received, and the step of comparing the projection code with the projection code in the preset projection code library is returned to detect whether the projection code is unique.
4. A screen projection method, characterized in that: The screen projection method is applied to a terminal device, and the screen projection method includes: When detecting that a user triggers a screen projection operation, sending a permission identifier associated with the terminal device to the server, wherein the permission identifier is identification information composed of the hardware information of the terminal device itself, and the server can determine that the terminal device can use the screen projection function according to the permission identifier; Receive the screen projection permission determined according to the permission identifier returned by the server, the screen projection permission is used to represent the identification information of the screen projection function that can be used by the terminal device, the screen projection permission is determined based on the function type triggered by the terminal device corresponding to the permission identifier, the function type includes a first type and a second type, when the function type is the first type, use the default permission as the screen projection permission, the screen projection permission is used to represent the identification information of the screen projection function that can be used by the terminal device, and the screen projection permission corresponding to the first type is the default permission; when the function type is the second type, determine the user attribute information corresponding to the permission identifier and determine the screen projection permission according to the user attribute information; The projection content is determined according to the projection permission, and the projection content is sent to the display device so that the display device displays the projection content.
5. The screen projection method according to claim 4, characterized in that: Before the step of sending the projection content to the display device, the method further includes: Receive the screen casting code entered by the user; Establish a connection with the display device according to the screen projection code.
6. A server, characterized in that: The server includes a memory, a processor, and a screen projection program stored in the memory and executable on the processor. When the screen projection program is executed by the processor, the steps of the screen projection method as described in any one of claims 1 to 3 are implemented.
7. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a screen projection program stored in the memory and executable on the processor. When the screen projection program is executed by the processor, the steps of the screen projection method as described in claim 4 or 5 are implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a screen projection program, and when the screen projection program is executed by the processor, the steps of the screen projection method as described in any one of claims 1 to 3 are implemented, or the steps of the screen projection method as described in claim 4 or 5 are implemented.
Citation Information
Patent Citations
Television screen projection authorization processing method and device and television screen projection system
CN110392287A
Management method and device for wireless screen projection equipment
CN110933484A
Multimedia content projection method and device and electronic equipment
CN111757152A