Same-screen collaboration method, terminal equipment and storage medium
By unifying the page container parameter values of the unified device in online video conference and switching the hosting status, the problem of low efficiency in operation rights switching in the same-screen assistance is solved, and meeting efficiency is improved without interrupting the page content.
Patent Information
- Application Number
- CN202111007143.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-30
- Publication Date
- 2025-07-29
AI Technical Summary
In online video conferences, only the initiator of the conference can operate the display page when assisting on the same screen, but other device terminals cannot operate, resulting in low meeting efficiency and need to re-initiate the meeting to switch operation rights.
The target parameter value is obtained through the first device, and a modification instruction and permission switching instruction are sent to the second device, so that the page container parameter values of all devices are unified, allowing the third device to switch to the hosting state, while the first device exits the hosting state, ensuring that the page content is not interrupted.
It realizes switching to the hosting side without exiting the page to display content, saving meeting time and improving meeting efficiency.
Smart Images

Figure CN120386502A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of computer technology, and particularly relates to a screen sharing collaboration method, a terminal device, and a storage medium. Background Art
[0002] With the progress of technology, people can hold meetings even when they are not in the same space. For example, people in different geographical locations can complete meeting communication by using online video conferencing.
[0003] When conducting an online video meeting, in order to achieve a better meeting effect, the screen sharing assistance method is often used to make the multi-terminal devices participating in the meeting display the same content. Currently, during screen sharing assistance, usually only the meeting initiator can operate on the displayed page, and other device terminals cannot operate on it. If other device terminals want to operate on the displayed page, the personnel at that end need to initiate a new meeting, which wastes meeting time and has low meeting efficiency. Summary of the Invention
[0004] The embodiments of this application provide a screen sharing collaboration method, a terminal device, and a storage medium, which can solve the problem of low efficiency in screen sharing assistance meetings.
[0005] In a first aspect, the embodiments of this application provide a screen sharing assistance method, including:
[0006] When a first device is in the host state, the first device obtains a target parameter value, where the first device is any one of the devices that need to perform screen sharing assistance, and the device in the host state has the operation right to the page displayed by the devices that need to perform screen sharing assistance;
[0007] If a first parameter Value of the page container in the first device is different from the target parameter value, the first device updates the first parameter value to the target parameter value;
[0008] The first device sends a modification instruction including the target parameter value to a second device, where the second device is a device other than the first device among the devices that need to perform screen sharing assistance, and the modification instruction is used to instruct the second device to update the second parameter value to the target parameter value when the second parameter value of the page container in the second device is different from the target parameter value, and the device state of the second device is the non-host state;
[0009] If it is determined that there is a third device in the second device, the first device sends a permission switching instruction to the second device, where the third device is the second device that needs to switch the device state, the permission switching instruction includes information of the third device, and the permission switching instruction is used to instruct the third device to switch the device state to the host state. The page displayed when the third device switches from the non-host state to the host state is the same as the page displayed when the first device switches from the host state to the non-host state;
[0010] The first device switches the device state to the non-host state.
[0011] In a second aspect, an embodiment of the present application provides an electronic device, including:
[0012] A target value obtaining module, configured to obtain a target parameter value after the electronic device enters the host state;
[0013] A data updating module, configured to update the first parameter value to the target parameter value if the first parameter Value of the page container is different from the target parameter value;
[0014] A modification instruction sending module, configured to send a modification instruction including the target parameter value to a second device, where the second device is a device other than the electronic device among the devices that need to perform screen sharing assistance. The modification instruction is used to instruct the second device to update the second parameter value to the target parameter value when the second parameter value of the page container in the second device is different from the target parameter value, and the device state of the second device is the non-host state;
[0015] A switching instruction sending module, configured to send a permission switching instruction to the second device if it is determined that there is a third device in the second device, where the third device is the second device that needs to switch the device state, the permission switching instruction includes information of the third device, and the permission switching instruction is used to instruct the third device to switch the device state to the host state. The page displayed when the third device switches from the non-host state to the host state is the same as the page displayed when the first device switches from the host state to the non-host state;
[0016] A state switching module, configured to switch the device state to the non-host state.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the screen sharing assistance method according to any one of the first aspects when executing the computer program.
[0018] Fourthly, an embodiment of the present application provides a computer-readable storage medium storing a computer program, characterized in that when the computer program is executed by a processor, it implements the screen sharing assistance method according to any one of the above first aspects.
[0019] Fifthly, an embodiment of the present application provides a computer program product, which when running on a terminal device, causes the terminal device to execute the screen sharing assistance method according to any one of the above first aspects.
[0020] The beneficial effects of the embodiment of the first aspect of the present application compared with the prior art are as follows: The first device of the present application first obtains a target parameter value. If the parameter value of the page container in the first device is different from the target parameter value, the parameter value of the page container in the first device is updated to the target parameter value. The first device also needs to send a modification instruction to the second device so that the second device can update the parameter value of its own page container to the target parameter value. By setting the page containers of all devices that need to perform screen sharing assistance to the same size, the content displayed on the pages of all devices during screen sharing assistance can be the same, meeting the requirements of screen sharing assistance. In addition, the first device of the present application can also send a permission switching instruction to the second device so that the second device can switch to the host state and the first device exits the host state. The page displayed when the second device switches from the non-host state to the host state is the same as the page displayed when the first device switches from the host state to the non-host state. Therefore, the present application can switch the host end without exiting the content displayed on the page. Compared with the prior art, if other device ends want to operate on the displayed page, the personnel at that end need to initiate a meeting again. The present application saves meeting time and improves meeting efficiency.
[0021] It can be understood that the beneficial effects of the above second to fifth aspects can refer to the relevant descriptions in the above first aspect and will not be elaborated here. Description of the Drawings
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0023] Figure 1 It is a schematic diagram of an application scenario of the screen sharing assistance method provided by an embodiment of the present application;
[0024] Figure 2 It is a schematic diagram of an application scenario of the screen sharing assistance method provided by another embodiment of the present application;
[0025] Figure 3 It is a schematic flowchart of the same-screen assistance method provided by an embodiment of the present application;
[0026] Figure 4 It is a schematic flowchart of the method for determining the target parameter value provided by an embodiment of the present application;
[0027] Figure 5 It is a schematic flowchart of the process for determining whether there is a device that needs to change its device state provided by an embodiment of the present application;
[0028] Figure 6 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
[0029] Figure 7 It is a schematic structural diagram of an electronic device provided by another embodiment of the present application. Detailed implementation manners
[0030] In the following description, specific details such as specific system architectures and technologies are proposed for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.
[0031] It should be understood that when used in the specification and appended claims of the present application, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.
[0032] It should also be understood that the term " / and" as used in the specification and appended claims of the present application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0033] In addition, in the description of the specification and appended claims of the present application, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.
[0034] Screen sharing is a form of collaborative screen sharing. Currently, when users in different locations hold a phone conference, they often use screen sharing to make the pages displayed on the terminals used by the participants the same. In the screen sharing method, one terminal initiates screen sharing, and the terminal that initiates screen sharing has the operation right for the displayed page. Correspondingly, the terminal that does not initiate screen sharing cannot operate on the displayed page. During the meeting, if you want to change the terminal with the operation right for the displayed page, the current terminal that initiates screen sharing needs to exit the screen sharing state. After exiting the screen sharing state, the shared content will no longer be displayed on all participant terminals. Only after another terminal initiates screen sharing again will the shared content be displayed on the participant terminals again.
[0035] When changing the control terminal in screen sharing, the current shared content needs to be exited or stopped by the current shared person before another person can initiate sharing. During this period, the shared content will be interrupted, and the meeting will also be interrupted until another person initiates sharing before the meeting can continue.
[0036] In summary, the current screen sharing method cannot achieve the effect of changing the operation right for the displayed page without exiting the shared content, that is, without exiting or interrupting the content displayed on the screen. Based on the above disadvantages, this application provides a screen sharing assistance method that can achieve the process of changing the operation right for the displayed page without exiting or interrupting the content of the pages displayed on each terminal.
[0037] As an example, if the current operation right for the displayed page is on terminal A, and the content displayed on the displayed page is B. If a user of terminal C wants to operate on the displayed page, the operation right can be transferred to terminal C while the content B is still displayed on the displayed page to enable the user of terminal C to operate on the displayed page.
[0038] The application scenario of the screen sharing assistance method provided by the embodiments of this application includes N terminal devices. The N terminals are interconnected. The N terminals are the 1st terminal, the 2nd terminal, the 3rd terminal... the Nth terminal respectively.
[0039] As Figure 1 shown, when N is 3, if the 1st terminal is in the host state at the current time, that is, the terminal that can operate on the displayed page. The 1st terminal needs to first determine a target parameter value of a page container applicable to all terminals and set the parameter value of its own page container to the target parameter value. The 1st terminal also needs to send the target parameter value to other terminals. After receiving the target parameter value sent by the 1st terminal, other terminals update the parameter value of their own page containers to the target parameter value.
[0040] After the first terminal receives the first operation instruction, it operates on the display page according to the first operation instruction to obtain the display page Y. The first terminal generates a second operation instruction based on the operation on the page and sends the second operation instruction to other terminals. After obtaining the second operation instruction, other terminals operate on the page according to the second operation instruction, so that both the second terminal and the third terminal display the page Y.
[0041] As Figure 2 shown, when the display page is Y, if the first terminal determines that the third terminal wants to become the host terminal. The first terminal continues to keep the display page Y, the first terminal exits the host, and the first terminal switches to the non-host state. The first terminal generates a permission switching instruction based on the information of the third terminal and sends the permission switching instruction to other terminals. After receiving the permission switching instruction, other terminals can judge whether they need to switch to the host state according to the permission switching instruction. If they need to switch to the host state by themselves, they switch, otherwise they do not switch. The terminal that switches to the host state becomes the host terminal.
[0042] Specifically, after receiving the permission switching instruction, the third terminal determines that it needs to switch to the host state. When the display page of the third terminal is Y, it switches its own state to the host state and becomes the host terminal.
[0043] After receiving the permission switching instruction, the second terminal determines that it does not need to switch its state, so it only needs to keep the non-host state, and the display page remains on the Y page.
[0044] The following combines Figure 1 and 2 to describe the screen sharing assistance method of the embodiment of the present application in detail.
[0045] Figure 3 shows a schematic flowchart of the screen sharing assistance method provided by the present application. Referring to Figure 3 , the details of this method are as follows:
[0046] S101, when the first device is in the host state, the first device obtains the target parameter value.
[0047] In this embodiment, the screen sharing assistance is based on the audio and video conference, and all participating terminals need to be interconnected to achieve the purpose of mutual communication. The method of establishing a connection between the participating terminal devices can be to create a meeting room, and the participating terminal devices enter the meeting room, and communication is established between the participating terminal devices that enter the meeting room. The first device can be the device used by the user who creates the meeting room. After each device enters the meeting room, the device used by the user who creates the room automatically becomes the host terminal, and correspondingly, the device state of the device used by the user who creates the meeting is the host state.
[0048] In this embodiment, after connections are established among all participating terminals, any one of the devices can be selected as the host terminal, and the device state of the device that becomes the host terminal is the host state, which is denoted as the first device in this application. The device in the host state has the operation right to the page displayed by the device that needs screen sharing assistance.
[0049] Specifically, if the first device receives a first instruction, it determines that the first device is the device in the host state. Among them, the first instruction can be an instruction generated after a user operates on the device state selection control on the first device, and the first instruction is an instruction for selecting the first device to become the host state. In this embodiment, the target parameter value is a standard value of the page container. The target parameter value can be a parameter value input by the user, or can be obtained by the first device after processing data. For the specific method of obtaining the target parameter value after processing data, please refer to the following, and details will not be elaborated here. The page container refers to a container object to which pages can be added, and can achieve page turning or slide effects in a small area.
[0050] The purpose of obtaining the target parameter value is to unify the sizes of the page containers of the devices for screen sharing assistance. Setting the page containers of all devices for screen sharing assistance to the same size can ensure that all the content displayed on all devices during screen sharing assistance is the same.
[0051] S102, if the first parameter value of the page container in the first device is different from the target parameter value, the first device updates the first parameter value to the target parameter value.
[0052] In this embodiment, after the first device obtains the target parameter value, it needs to first determine whether the first parameter value of the page container of the first device is the same as the target parameter value. If the first parameter value is the same as the target parameter value, the first parameter value does not need to be modified. If the first parameter value is different from the target parameter value, the first device needs to update the first parameter value to the target parameter value so that the content displayed during subsequent page display is the same as that of other devices.
[0053] S103, the first device sends a modification instruction including the target parameter value to the second device.
[0054] In this embodiment, the second device is a device other than the first device among the devices that need screen sharing assistance, and the device state of the second device is the non-host state. A device in the non-host state cannot operate on the displayed page. The second device can be one or more.
[0055] In this embodiment, in order to achieve the purpose of unifying the sizes of the page containers of all devices for screen sharing assistance, the first device also needs to send a modification instruction to the second device. The modification instruction is used to instruct the second device to update the second parameter value to the target parameter value when the second parameter value of the page container in the second device is different from the target parameter value.
[0056] In this embodiment, after the second device receives the modification instruction sent by the first device, it determines whether its second parameter value is the target parameter value. If the second parameter value is the target parameter value, the second parameter value does not need to be modified. If the second parameter value is not the target parameter value, the second parameter value is updated to the target parameter value.
[0057] S104. If it is determined that there is a third device in the second device, the first device sends a permission switching instruction to the second device.
[0058] In this embodiment, the third device is the second device in the second device that needs to switch the device state, that is, the second device that needs to become the host side.
[0059] In this embodiment, if there is a second device that wants to become the host side, that is, the device state needs to be switched from the non-host state to the host state, after the first device determines that the third device can become the host side, the first device does not need to exit the displayed page. While keeping the displayed page unchanged, the first device sends a permission switching instruction to each second device. The permission switching instruction includes the information of the third device. The information of the third device may include the identification information of the third device, and the identification information may be the device number or the identification code, etc.
[0060] In this embodiment, the permission switching instruction is used to instruct the third device to switch the device state to the host state.
[0061] In this embodiment, after the second device receives the permission switching instruction sent by the first device, it can obtain the information of the third device by analyzing the permission switching instruction.
[0062] The second device needs to determine whether the information of the third device is its own information. If the information of the third device is the same as its own information, it is determined that it needs to become the host side and needs to change its own device state. The second device switches its own device state to the non-host state. If the information of the third device is different from its own information, it is determined that it does not need to become the host side and does not need to change its own device state. The second device continues to maintain the non-host state.
[0063] In this embodiment, the page displayed when the third device switches from the non-host state to the host state is the same as the page displayed when the first device switches from the host state to the non-host state. That is, when the second device switches the device state, it switches without exiting the page displayed by the first device. After the second device switches to the host state, it can continue to operate on the basis of the page displayed after the last operation of the first device.
[0064] As an example, if after the first device finishes the first operation, the page displayed by all devices is D, and if it is determined that the second device G needs to be switched to the host state, the second device switches its device state while continuing to display the page D. After the second device switches its device state to the host state, the second device can continue to operate on the displayed page D based on the displayed page D.
[0065] S105, the first device switches its device state to the non-host state.
[0066] In this embodiment, if it is determined that the third device needs to become the host, the first device needs to exit the host, and the first device switches its device state from the host state to the non-host state. When the first device switches the state, it does not need to exit the current displayed page, and the first device can switch the state while the current displayed page is being normally displayed.
[0067] As an example, if the current displayed page is B, when the displayed page remains B, the first device can directly switch to the non-host state.
[0068] In this embodiment, if it is determined that the third device does not exist in the second device, the first device maintains the host state.
[0069] In the embodiment of the present application, the first device first obtains a target parameter value. If the parameter value of the page container in the first device is different from the target parameter value, the parameter value of the page container in the first device is updated to the target parameter value; the first device also needs to send a modification instruction to the second device so that the second device can update the parameter value of its own page container to the target parameter value. Setting the page containers of all devices that need to perform screen sharing assistance to the same size can make the content displayed on the pages of all devices the same during screen sharing assistance, meeting the requirements of screen sharing assistance. In addition, the first device of the present application can also send a permission switching instruction to the second device so that the second device switches to the host state and the first device exits the host state. When the second device of the present application switches from the non-host state to the host state, the displayed page is the same as the page when the first device switches from the host state to the non-host state. Therefore, the present application can switch the host without exiting the content of the page display. Compared with the prior art, if other device ends want to operate on the displayed page, the personnel of that end need to re-initiate the meeting operation. The present application saves meeting time and improves meeting efficiency.
[0070] As Figure 4 shown, in a possible implementation manner, the implementation process of step S101 may include:
[0071] S1011, the first device obtains the second parameter value of the page container in the second device.
[0072] In this embodiment, the first device can obtain the parameter values of the page containers of each second device, which are denoted as second parameter values in this application. Obtaining the second parameter values of each second device is to determine the sizes of the page containers of each second device, and further determine the target parameter values suitable for each device.
[0073] S1012. The first device obtains the target parameter values based on the second parameter values and the first parameter values.
[0074] In this embodiment, the size of the page container includes the width value and the height value of the page container. In this application, the first parameter values include the first width value and the first height value, the second parameter values include the second width value and the second height value, and the target parameter values include the target width value and the target height value. If the units of the first parameter values and the second parameter values are different, it is necessary to convert both the first parameter values and the second parameter values into values in pixels for subsequent comparison.
[0075] Specifically, take the minimum value of the first width value and the second width value as the target width value in the target parameter values. Take the minimum value of the first height value and the second height value as the target height value in the target parameter values.
[0076] As an example, if the first parameter value is 1920*1080, one second parameter value is 1200*900, and another second parameter value is 1300*800, then the determined target parameter value is 1200*800.
[0077] In the embodiments of this application, taking the minimum value among all width values as the width value in the target parameter values and taking the minimum value among all height values as the height value in the target parameter values can ensure that the smallest page container among the first device and the second devices can also be used without exceeding the range that each page container can bear.
[0078] In a possible implementation manner, before replacing the host end, it is also necessary to determine whether there is a second device in the second devices that needs to switch the device state. Specifically, the method for determining whether there is a second device in the second devices that needs to switch the device state may include:
[0079] If the first device receives a first switching instruction, it is determined that there is the third device in the second devices, where the first switching instruction is an instruction acting on the switching control on the first device.
[0080] In this embodiment, switching controls can be provided on the display pages of each device. Different switching controls can correspond to different second devices, or different numbers of clicks on the switching control correspond to different second devices. After the user of the first device clicks the switching control, a first switching instruction is generated.
[0081] Correspondingly, step S104 can be specifically used for:
[0082] S1041. Based on the first switching instruction, determine the information of the third device.
[0083] In this embodiment, the first switching instruction includes the information of the third device, and the first device can obtain the information of the third device by analyzing the first switching instruction.
[0084] As an example, if the display page of the first device includes a switching control for the second device A, a switching control for the second device B, and a switching control for the second device C. If the first switching instruction acts on the switching control of the second device B. After receiving the first switching instruction, the first device can obtain that the second device whose device state needs to be switched is the second device B.
[0085] S1042. Based on the information of the third device, generate a permission switching instruction.
[0086] In this embodiment, since the permission switching instruction is obtained based on the information of the third device, the permission switching instruction includes the information of the third device. The second device can determine whether to switch its own device state according to the permission switching instruction only after receiving the permission switching instruction.
[0087] S1043. The first device sends the permission switching instruction to the second device.
[0088] As Figure 5 shown, in a possible implementation manner, the method for specifically determining whether the third device exists in the second device may further include:
[0089] S201. The first device obtains the voice information sent by the second device.
[0090] In this embodiment, since the screen sharing is based on audio and video, the first device can receive the voice information of the user of the first device, and then the first device sends the received voice information to each second device so that the users of the second devices can obtain the voice of the user of the first device. The second device can receive the voice information of the user of the second device, and similarly, the second device sends the received voice information to the first device and other second devices.
[0091] In this embodiment, since the voice information can intuitively reflect what the user of the second device wants to express, if the user of the second device wants to operate the display page, it can be reflected in the voice information received by the second device. Therefore, the first device can determine whether the user of the second device wants to operate the display page by analyzing the voice information sent by the second device, that is, determine whether the second device needs to be switched to the host state.
[0092] S202, the first device determines whether there is target information in the voice information.
[0093] In this embodiment, the target information is used to represent that the second device needs to switch the device state. For example, the target information can be "I want to control the page" or "I want to operate on the page", etc. The target information can be set in advance according to needs.
[0094] In this embodiment, the voice information can be input into a discrimination model, and it is determined whether there is target information according to the output structure of the discrimination model.
[0095] Before using the discrimination model, it can be trained. Specifically, the process of training the discrimination model can include: inputting the collected sample voice information into the discrimination model, and the discrimination model outputs a prediction result. Compare whether the prediction result is the same as the true result, and update the parameters in the discrimination model according to the difference between the prediction result and the true result. Use the sample voice information to train the discrimination model with updated parameters until the difference between the prediction result and the true result meets the preset requirements, then it is determined that the discrimination model training is completed.
[0096] In this embodiment, the semantic information of the voice information can be extracted to determine whether there is target information in the semantic information.
[0097] S203, if there is the target information in the voice information, it is determined that there is the third device in the second device.
[0098] In this embodiment, the third device is the second device corresponding to the voice information with target information.
[0099] In this embodiment, if there is no such target information in the voice information, it is determined that there is no third device in the second device.
[0100] Correspondingly, step S104 can be specifically used for:
[0101] S1044, generating the permission switching instruction based on the information of the third device;
[0102] S1045, the first device sends the permission switching instruction to the second device.
[0103] In a possible implementation manner, after step S201, it may further include:
[0104] The first device obtains the volume of the voice information. Determine whether the volume of the voice information is greater than a preset threshold.
[0105] If there is target information in the voice message and the volume is greater than a preset threshold, it is determined that there is a third device in the second device. If there is no target information in the voice message and / or the volume is less than or equal to the preset threshold, it is determined that the third device does not exist in the second device.
[0106] In this embodiment, the volume of the voice message can also be used as one of the indicators for determining whether the second device needs to become the host end. If the volume of the voice message is less than the preset threshold, it is possible that the user of the second device is discussing with others and does not really want to become the host end. Only when the volume of the voice message is greater than the preset threshold can the voice message be regarded as the opinion that the user wants to convey to all participants. Therefore, only when the volume of the voice message is greater than the preset threshold can it be further determined whether the second device needs to become the host end based on the voice message.
[0107] In the embodiment of the present application, the voice message and the volume of the voice message are jointly used to determine whether there is a third device in the second device. The present application uses two elements as the judgment criteria, which can improve the accuracy of the judgment result.
[0108] In a possible implementation manner, before step S105, it may further include:
[0109] S301. In response to the first operation instruction, the first device performs a first page operation based on the first operation instruction.
[0110] In this embodiment, the first operation instruction may be an instruction applied by the user on the display page. The first operation instruction may include opening an online address, opening a file, closing a web page, etc.
[0111] S302. The first device generates a second operation instruction based on the first page operation and sends the second operation instruction to the second device.
[0112] In this embodiment, the second operation is used to instruct the second device to perform a second page operation, and the second page operation is the same as the first page operation.
[0113] In this embodiment, when the first device performs the first page operation, it may record the information of the first page operation and generate a second operation instruction according to the first page operation. The second operation instruction further includes the first page operation. The first page operation may include the mouse position, click information, etc.
[0114] In this embodiment, in order to achieve the effect that the page content displayed by all devices in the same-screen collaboration is the same, the first device needs to send a second operation instruction to the second device. After receiving the second operation instruction, the second device analyzes the second operation instruction to obtain the first page operation in the second operation instruction. The second device operates on the page displayed by the second device based on the first page operation to achieve the same effect as the page displayed by the first device.
[0115] Corresponding to the same-screen assistance method described in the above embodiment, Figure 6 The block diagram of the electronic device provided by the embodiment of the present application is shown. For the convenience of description, only the part related to the embodiment of the present application is shown, and the electronic device can be denoted as the first device.
[0116] Refer to Figure 6 , the electronic device 400 may include: a target value acquisition module 410, a data update module 420, a modification instruction sending module 430, a switching instruction sending module 440, and a state switching module 450.
[0117] Among them, the target value acquisition module 410 is used to obtain the target parameter value after the electronic device enters the host state;
[0118] The data update module 420 is used to update the first parameter value to the target parameter value if the first parameter Value of the page container is different from the target parameter value;
[0119] The modification instruction sending module 430 is used to send a modification instruction including the target parameter value to the second device, where the second device is a device other than the electronic device among the devices that need to perform the same-screen assistance, and the modification instruction is used to instruct the second device to update the second parameter value to the target parameter value when the second parameter value of the page container in the second device is different from the target parameter value, and the device state of the second device is the non-host state;
[0120] The switching instruction sending module 440 is used to send a permission switching instruction to the second device if it is determined that there is a third device in the second device, where the third device is the second device that needs to switch the device state, the permission switching instruction includes the information of the third device, and the permission switching instruction is used to instruct the third device to switch the device state to the host state, and the page displayed when the third device switches from the non-host state to the host state is the same as the page displayed when the first device switches from the host state to the non-host state;
[0121] The state switching module 450 is used to switch the device state to the non-host state.
[0122] In a possible implementation, the target value obtaining module 410 may specifically be used for:
[0123] Obtain the second parameter value of the page container in the second device;
[0124] Based on the second parameter value and the first parameter value, obtain the target parameter value.
[0125] In a possible implementation, the first parameter value includes a first width value and a first height value, the second parameter value includes a second width value and a second height value, and the target parameter value includes a target width value and a target height value;
[0126] The target value obtaining module 410 may also specifically be used for:
[0127] Use the minimum value between the first width value and the second width value as the target width value in the target parameter value;
[0128] Use the minimum value between the first height value and the second height value as the target height value in the target parameter value.
[0129] In a possible implementation, what is further connected to the modification instruction sending module 430 includes:
[0130] An instruction receiving module, configured to determine that the third device exists in the second device if a first switching instruction is received, where the first switching instruction is an instruction acting on a switching control;
[0131] Correspondingly, the switching instruction sending module 440 may specifically be used for:
[0132] Based on the first switching instruction, determine the information of the third device;
[0133] Based on the information of the third device, generate the permission switching instruction; [[ID=ID=34]]
[0134] Send the permission switching instruction to the second device.
[0135] In a possible implementation, what is further connected to the modification instruction sending module 430 includes:
[0136] A voice obtaining module, configured to obtain the voice information sent by the second device;
[0137] An information determining module, configured to determine whether target information exists in the voice information, where the target information is used to represent that the second device needs to switch the device state;
[0138] A first judgment module, configured to determine that the third device exists in the second device if the target information exists in the voice information;
[0139] Correspondingly, the switching instruction sending module 440 may specifically be configured to:
[0140] Generate the permission switching instruction based on the information of the third device;
[0141] Send the permission switching instruction to the second device.
[0142] In a possible implementation manner, further included is connected to the voice acquisition module:
[0143] A volume acquisition module, configured to acquire the volume of the voice information;
[0144] A second determination module, configured to determine whether the volume of the voice information is greater than a preset threshold;
[0145] Correspondingly, the first determination module may specifically be configured to:
[0146] If the target information exists in the voice information and the volume is greater than the preset threshold, determine that the third device exists in the second device;
[0147] If the target information does not exist in the voice information and / or the volume is less than or equal to the preset threshold, determine that the third device does not exist in the second device.
[0148] In a possible implementation manner, further included is connected to the modification instruction sending module 430:
[0149] A result discrimination module, configured to maintain the hosting state if it is determined that the third device does not exist in the second device.
[0150] In a possible implementation manner, further included is connected to the state switching module 450:
[0151] An operation acquisition module, configured to, in response to a first operation instruction, perform a first page operation based on the first operation instruction;
[0152] An operation instruction sending module, configured to generate a second operation instruction based on the first page operation and send the second operation instruction to the second device, where the second operation is used to instruct the second device to perform a second page operation, and the second page operation is the same as the first page operation.
[0153] It should be noted that for the information interaction, execution process, etc. between the above-mentioned devices / units, since they are based on the same concept as the method embodiment of the present application, for their specific functions and the technical effects brought, reference may specifically be made to the method embodiment part, and details are not described herein again.
[0154] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of each functional unit and module is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiments can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of this application. The specific working processes of the units and modules in the above system can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated here.
[0155] The embodiments of this application also provide an electronic device. Refer to Figure 7 , the electronic device 500 may include: at least one processor 510, a memory 520, and a computer program stored in the memory 520 and executable on the at least one processor 510. When the processor 510 executes the computer program, it implements the steps in any of the foregoing method embodiments, such as Figure 3 the steps S101 to S105 in the illustrated embodiment. Alternatively, when the processor 510 executes the computer program, it implements the functions of each module / unit in the foregoing device embodiments, such as Figure 6 the functions of the illustrated modules 410 to 450.
[0156] Exemplarily, the computer program can be divided into one or more modules / units. One or more modules / units are stored in the memory 520 and executed by the processor 510 to complete this application. The one or more modules / units can be a series of computer program segments capable of completing specific functions, and these program segments are used to describe the execution process of the computer program in the electronic device 500.
[0157] Those skilled in the art can understand that Figure 7 this is only an example of a terminal device and does not constitute a limitation on the terminal device. It may include more or fewer components than shown in the figure, or combine some components, or different components, such as input / output devices, network access devices, buses, etc.
[0158] The processor 510 may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0159] The memory 520 may be an internal storage unit of the electronic device or an external storage device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. The memory 520 is used to store the computer program and other programs and data required by the electronic device. The memory 520 may also be used to temporarily store data that has been output or is to be output.
[0160] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the buses in the drawings of this application do not limit there being only one bus or one type of bus.
[0161] The screen sharing assistance method provided by the embodiments of this application can be applied to terminal devices such as computers, tablet computers, laptop computers, netbooks, personal digital assistants (PDAs), etc. The embodiments of this application do not impose any restrictions on the specific types of terminal devices.
[0162] The embodiments of this application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the above-mentioned screen sharing assistance method embodiments can be implemented.
[0163] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can execute steps in various embodiments of the above-mentioned screen sharing assistance method when implemented.
[0164] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above-mentioned embodiment methods of the present application can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the photographing device / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a portable hard drive, a magnetic disk, or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium cannot be an electrical carrier signal and a telecommunication signal.
[0165] In the above embodiments, the descriptions of the various embodiments have their own focuses. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0166] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. A professional technician can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0167] In the embodiments provided in the present application, it should be understood that the disclosed device / network device and method can be implemented in other ways. For example, the device / network device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical or other forms.
[0168] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0169] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for screen sharing assistance, characterized in that, Including: When the first device is in the host state, the first device obtains a target parameter value, where the first device is any one of the devices that need to perform screen sharing assistance, and the device in the host state has the operation right to the page displayed by the devices that need to perform screen sharing assistance; If the first parameter value of the page container in the first device is different from the target parameter value, the first device updates the first parameter value to the target parameter value; The first device sends a modification instruction including the target parameter value to the second device, where the second device is a device other than the first device among the devices that need to perform screen sharing assistance, and the modification instruction is used to instruct the second device to update the second parameter value to the target parameter value when the second parameter value of the page container in the second device is different from the target parameter value, and the device state of the second device is the non-host state; If it is determined that there is a third device in the second device, the first device sends a permission switching instruction to the second device, where the third device is the second device whose device state needs to be switched, the permission switching instruction includes information of the third device, and the permission switching instruction is used to instruct the third device to switch the device state to the host state, and the page displayed when the third device switches from the non-host state to the host state is the same as the page displayed when the first device switches from the host state to the non-host state; The first device switches the device state to the non-host state.
2. The screen sharing assistance method according to claim 1, wherein The first device obtaining the target parameter value includes: The first device obtains the second parameter value of the page container in the second device; The first device obtains the target parameter value based on the second parameter value and the first parameter value.
3. The same-screen assistance method according to claim 2, wherein, The first parameter value includes a first width value and a first height value, the second parameter value includes a second width value and a second height value, and the target parameter value includes a target width value and a target height value; The first device obtaining the target parameter value based on the second parameter value and the first parameter value includes: Taking the minimum value between the first width value and the second width value as the target width value in the target parameter value; Taking the minimum value between the first height value and the second height value as the target height value in the target parameter value.
4. The same-screen assistance method according to claim 1, wherein After the first device sends a modification instruction including the target parameter value to the second device, it further includes: If the first device receives a first switching instruction, it is determined that there is a third device in the second device, where the first switching instruction is an instruction acting on a switching control on the first device; Correspondingly, the if it is determined that there is a third device in the second device, the first device sending a permission switching instruction to the second device includes: Determining the information of the third device based on the first switching instruction; Generating the permission switching instruction based on the information of the third device; The first device sends the permission switching instruction to the second device.
5. The same-screen assistance method according to claim 1, wherein, After the first device sends a modification instruction including the target parameter value to the second device, it further includes: The first device obtains the voice information sent by the second device; The first device determines whether there is target information in the voice information, where the target information is used to indicate that the second device needs to switch the device state; If the target information exists in the voice information, it is determined that the third device exists in the second device; Correspondingly, if it is determined that the third device exists in the second device, the first device sends a permission switching instruction to the second device, including: Generating the permission switching instruction based on the information of the third device; The first device sends the permission switching instruction to the second device.
6. The same-screen assistance method according to claim 5, characterized in that, After the first device obtains the voice information sent by the second device, it further includes: The first device obtains the volume of the voice information; Determines whether the volume of the voice information is greater than a preset threshold; Correspondingly, if the target information exists in the voice information, determining that the third device exists in the second device includes: If the target information exists in the voice information and the volume is greater than the preset threshold, it is determined that the third device exists in the second device; If the target information does not exist in the voice information and / or the volume is less than or equal to the preset threshold, it is determined that the third device does not exist in the second device.
7. The same-screen assistance method according to claim 1, wherein After the first device sends a modification instruction including the target parameter value to the second device, it further includes: If it is determined that the third device does not exist in the second device, the first device maintains the hosting state.
8. The same-screen assistance method according to any one of claims 1 to 7, characterized in that Before the first device switches the device state to the non-hosting state, it further includes: In response to a first operation instruction, the first device performs a first page operation based on the first operation instruction; The first device generates a second operation instruction based on the first page operation and sends the second operation instruction to the second device, where the second operation is used to instruct the second device to perform a second page operation, and the second page operation is the same as the first page operation.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the screen sharing assistance method according to any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the screen sharing assistance method according to any one of claims 1 to 8.