WO2013034031A1 - 一种实时共享方法、装置及系统 - Google Patents
一种实时共享方法、装置及系统 Download PDFInfo
- Publication number
- WO2013034031A1 WO2013034031A1 PCT/CN2012/078608 CN2012078608W WO2013034031A1 WO 2013034031 A1 WO2013034031 A1 WO 2013034031A1 CN 2012078608 W CN2012078608 W CN 2012078608W WO 2013034031 A1 WO2013034031 A1 WO 2013034031A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- virtual machine
- application
- control
- request message
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/78—Architectures of resource allocation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/468—Specific access rights for resources, e.g. using capability register
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4541—Directories for service discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/563—Data redirection of data network streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/04—Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/08—Protocols specially adapted for terminal emulation, e.g. Telnet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/59—Providing operational support to end devices by off-loading in the network or by emulation, e.g. when they are unavailable
Definitions
- the present invention relates to the field of online applications, and in particular, to a real-time sharing method, device and system
- the server can deploy a variety of third-party developed applications, and the terminal can experience these applications by connecting to the server's online application platform remotely.
- the general interaction process between the terminal and the server is as follows: The terminal submits a message for the application operation to the server, and the server performs calculation, processing, and returns a data running process and a result response message, so that the terminal outputs the received data locally.
- the application runs and processes are performed on the server, and the terminal is only responsible for uploading the user's operations to the server and receiving data sent by the server for decoding output, so the user can pass through the terminal (eg, personal computer, mobile phone, palm Computer, etc.) Browse audio and video resources provided by the server.
- the inventors found that the virtual machine can only provide services for terminals using applications on the virtual machine. This also leads to incomplete online application functionality, which reduces the quality of the user experience.
- Embodiments of the present invention provide a method, device, and system for real-time sharing in an online application, which further improves the function of the online application and improves the quality of the online application experience of the user.
- a real-time sharing method is provided, which is applied to an online application system, including:
- the method further includes: before the sending the resource information that is sent by the virtual machine corresponding to the virtual machine information to the second terminal to the first terminal, the method further includes:
- the virtual machine information of the virtual machine that provides the online application service for the second terminal is sent to the first terminal;
- the sending the resource information that is run on the virtual machine corresponding to the virtual machine information to the first terminal includes: sending, by using the established connection, resource information running on the virtual machine corresponding to the virtual machine information to the first a terminal.
- the first terminal does not have the right to browse the online application that the second terminal is using, it also includes:
- the verification authority request message includes an identifier of the first terminal and information for requesting the second terminal to grant the browsing permission of the first terminal, so that the second terminal determines, according to the first terminal identifier, whether Granting the first terminal browsing rights;
- the method further includes:
- the virtual machine is controlled according to a control command in the virtual machine control request message.
- the method further includes:
- a request message receiving unit configured to receive a browsing request message sent by the first terminal, where the browsing request message carries an identifier of the second terminal;
- a virtual machine acquiring unit configured to acquire, according to the identifier of the second terminal, virtual machine information of a virtual machine that is providing an online application service for the second terminal;
- the resource sending unit is configured to send the resource information that is sent by the virtual machine corresponding to the virtual machine information to the second terminal to the first terminal.
- the virtual machine acquiring unit further includes:
- a browsing permission detecting subunit configured to: when receiving the browsing request message sent by the first terminal, detecting whether the first terminal has the right to browse the online application being used by the second terminal;
- the information sending subunit is configured to: when the first terminal is configured to view the right of the online application that is being used by the second terminal, send the virtual machine information of the virtual machine that provides the online application service to the second terminal to the first Terminal
- a connection establishing subunit is configured to establish a connection between the first terminal and the virtual machine.
- the virtual machine acquiring unit further includes:
- a verification authority sending subunit configured to send a verification authority request message to the second terminal when the first terminal does not have the browsing permission, where the verification authority request message includes the first terminal identifier and requests the second terminal to grant the first terminal browsing permission And determining, by the second terminal, whether to grant the first terminal browsing permission according to the identifier of the first terminal; the verification authority receiving subunit, configured to receive the verification authority notification message returned by the second terminal; and according to the verification authority Determining, by the notification message, that the first terminal has the browsing right; the information sending subunit is further configured to: When the terminal browses the right, the virtual machine information of the virtual machine that provides the online application for the second terminal is sent to the first terminal.
- a virtual machine control authority detecting unit configured to detect whether the first terminal is a preset control terminal
- a virtual machine control unit configured to: when the first terminal is a preset control terminal, control the virtual machine according to a control command in the virtual machine control request message.
- the request message receiving unit is further configured to receive an application control request message sent by the first terminal, where the application control request message is used to apply for controlling the right of the application of the online application service provided by the second terminal; Includes:
- the application control authority application unit is configured to send an application control authority application message to the second terminal, where the application control authority application message includes an identifier of the first terminal and an application identifier, so that the second terminal is configured according to the identifier of the first terminal and The application identifier determines whether the first terminal is authorized to control the application, and returns an application control permission notification, and the application control authority notification unit is configured to send the application control permission notification message to the first terminal, so as to be in the application.
- the control authority notification message is sent to the first terminal to apply the control authority, the first terminal controls the application that provides the online application service for the second terminal.
- a first terminal including:
- a request message sending unit configured to send a browsing request message to the server, where the browsing request message carries the identifier of the second terminal, so that the service acquires the virtuality that provides the online application service for the second terminal according to the identifier of the second terminal.
- Machine virtual machine information
- a virtual machine information receiving unit configured to: when the first terminal has the right to browse the online application that the second terminal is using, receive the virtual machine information of the virtual machine that provides the online application service for the second terminal;
- the resource information receiving unit is configured to receive resource information sent by the virtual machine corresponding to the virtual machine information to the second terminal.
- the request message sending unit is further configured to send a virtual machine control request message to the server, where the virtual machine control request message includes a method for controlling to provide a resource message for the second terminal.
- the control command of the virtual machine so that the server detects that the first terminal is a preset control terminal, and controls the virtual machine according to a control command in the virtual machine control request message.
- the application control authority notification message receiving unit is configured to receive the application control authority notification message, so that when the application control authority notification message is sent to the first terminal to apply the control authority, the first terminal controls the providing the second terminal to provide online Application of the application service.
- a system for real-time sharing including:
- a server configured to receive a browsing request message sent by the first terminal, where the browsing request message carries an identifier of the second terminal, and is used to send resource information that is sent by the virtual machine corresponding to the virtual machine to the second terminal Give the first terminal.
- the first terminal is configured to send a browsing request message to the server.
- the server is further configured to: detect whether the first terminal has the right to browse the online application that the second terminal is using; and when the first terminal has the right to browse the online application that the second terminal is using, the second terminal is
- the virtual machine information of the virtual machine that provides the online application service is sent to the first terminal, and the connection between the first terminal and the virtual machine is established, and the virtual machine information is corresponding to the virtual machine information through the established connection.
- the resource information running on the virtual machine is sent to the first terminal.
- the server is further configured to: when the first terminal does not have the browsing permission, send a verification authority request message to the second terminal, where the verification authority request message includes the identifier of the first terminal and requests the second terminal to grant the first terminal Querying the information of the permission, so that the second terminal determines whether to grant the first terminal browsing permission according to the first terminal identifier; receiving the verification authority notification message returned by the second terminal, and determining, according to the verification authority notification message, that the first terminal is Browse permissions.
- the server is further configured to receive a virtual machine control request message sent by the first terminal, where the virtual machine control request message includes a control command for controlling a virtual machine that provides resource information for the second terminal; and detecting whether the first terminal is a pre-
- the control terminal is configured to: when the first terminal is a preset control terminal, control the virtual machine according to a control command in the virtual machine control request message.
- the first terminal is further configured to send an application control request message to the server, where the application control request message is used to apply for control of an application of the online application service provided by the second terminal for the second terminal;
- the server is further configured to: when receiving the application control message, send an application control authority application message to the second terminal, where the application control authority application message includes an identifier of the first terminal and an application identifier;
- the second terminal is configured to receive the application control authority application message, and after determining whether to grant the first terminal application control authority according to the identifier and the application identifier of the first terminal, return the application control authority notification message;
- the server is further configured to send the application control authority notification message to the first terminal, so that when the application control authority notification message is sent to the first terminal to apply the control authority, the first terminal controls the providing the second terminal to be online. Application of the application service.
- FIG. 1 is a flowchart of a method for real-time sharing according to an embodiment of the present invention
- FIG. 2 is a flowchart of another method for real-time sharing according to an embodiment of the present invention
- FIG. 3 is a real-time sharing method according to an embodiment of the present invention
- Flowchart of the virtual machine control method in the middle
- FIG. 4 is a flow of an application control method in real-time sharing according to an embodiment of the present invention.
- FIG. 5 is a structural block diagram of a server according to an embodiment of the present invention.
- FIG. 6 is a structural block diagram of a virtual machine acquiring unit according to an embodiment of the present invention
- FIG. 7 is a block diagram of another server structure according to an embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of a first terminal according to an embodiment of the present invention
- FIG. 9 is a schematic structural diagram of another first terminal according to an embodiment of the present invention
- FIG. 10 is a real-time sharing according to an embodiment of the present invention. Schematic diagram of the system.
- the following embodiments are applied to the online application scenario. Therefore, there is a virtual machine on the service that is providing an online application for the second terminal, that is, there is a second terminal that is being applied online.
- the method for real-time sharing provided by the embodiment of the present invention is applied to an online application, as shown in FIG. 1 , for the server side, and includes the following steps:
- the server receives the browsing request message sent by the first terminal, and the browsing request message is used to synchronously send the resource information sent to the second terminal to the first terminal, where the request message carries the identifier of the second terminal.
- the server After the user sends the browsing request message to the server through the first terminal, the server acquires the virtual machine information of the virtual machine that is providing the service for the second terminal according to the second terminal identifier carried in the browsing request message, for example, the virtual machine is The picture and audio of the running program are sent to the second terminal.
- the resource information includes audio and video information provided for the second terminal on the virtual machine.
- Embodiments of the present invention provide a method for real-time sharing in an online application, so that a user can actively browse a request to a server according to an individual demand to realize real-time browsing of resources of an online application that the second terminal is using, thereby further improving the function of the online application. , improve the quality of the user's online application experience.
- step S205 is performed; otherwise, step S203 is performed.
- the verification of the rights of the online application that is being used by the second terminal may be performed in the permission table stored in the server.
- the server may establish a permission table, and the table includes identifiers of the first group and the second terminal of the group. And the browsing permission corresponding to the identifier of each terminal, when it is required to detect whether the first terminal has the browsing permission, only need to compare with the identifier stored in the permission table.
- the server does not have the user browsing permission record of the first terminal in the permission table.
- the server sends a verification permission request message including the first terminal identifier and the information requesting the second terminal to grant the browsing permission of the first terminal to the second terminal.
- the user of the second terminal determines whether to grant the first terminal the right to browse the online application that the second terminal is using according to the first terminal identifier.
- S204 Receive a verification authority notification message, and determine, according to the verification authority notification message, that the first terminal has the browsing permission.
- step S205 is performed, otherwise the first terminal cannot browse the online application of the second terminal.
- the virtual machine information herein may be, but is not limited to, virtual machine address information, virtual machine port, and online application information including: application type, application running time, account running time, application evaluation content, application scoring, and application recommendation degree.
- the media capability negotiation is performed when the first terminal and the virtual machine establish a connection, including but not limited to the network environment, the coding mode, and the frame rate parameter.
- the resource information sent by the virtual machine corresponding to the virtual machine information to the second terminal is sent to the first terminal.
- the resource information here includes audio and video information provided for the second terminal on the virtual machine.
- the user can actively issue a browsing request according to an individual demand to realize real-time browsing of resources of the online application of the second terminal; at this time, the virtual machine control request message may be sent to suspend or disable the virtual machine that provides the online application for the second terminal, or The application control request message is sent to control the right of the online application performed by the second terminal on the virtual machine, and the specific process is:
- FIG. 3 is a flowchart of a method for sending a virtual machine control request message, including the following steps:
- the virtual machine control request message includes a control command for controlling a virtual machine that provides resource information for the second terminal, so that the first terminal controls the virtual machine.
- the control command includes, but is not limited to, a shutdown or suspend instruction to the virtual machine.
- the process may be performed by using a permission table stored in the server.
- the server may establish a permission table, where the table includes identifiers of the first terminal and the second terminal, and the first terminal pair exists in the permission table.
- the second terminal provides a control permission record of the virtual machine of the online application.
- the controlling, by the first terminal, the virtual machine includes: closing and suspending a virtual machine that is providing an online application service for the second terminal, where the control authority of the virtual machine is generally set to super power.
- the first terminal can monitor the online application of the second terminal, and if the currently running application is not suitable for the user of the second terminal, the virtual terminal can be sent to stop the operation of the corresponding virtual machine, and Sending a notification message to the second terminal, thereby achieving the purpose of controlling the second terminal to run the online application.
- FIG. 4 is a flow chart of sending an application control request message, which includes the following steps:
- the application control request message is used to apply for controlling the right of the application of the online application service provided by the second terminal.
- S402. Send an application control authority application message to the second terminal, where the application control authority application message includes an identifier of the first terminal and an application identifier, so that the second terminal determines whether to grant the first terminal according to the identifier and the application identifier of the first terminal.
- a terminal controls the permissions of the application and returns an application control permission notification message.
- S404 Send the application control authority notification message to the first terminal.
- the server sends an application control authority notification message to the first terminal, so that when the application control authority notification message is to grant the first terminal application control authority, the first terminal controls the application terminal that provides the online application service for the second terminal.
- the first terminal controls the online application on the virtual machine by uploading specific application control commands to the virtual machine through the connection relationship with the virtual machine. Since the virtual machine establishes a connection relationship with the first terminal and the second terminal, the control result of the online application on the virtual machine of the first terminal, that is, the resource information running on the virtual machine, is sent to the two terminals in real time.
- the method for real-time sharing in the online application may be applied to the following scenario:
- a plurality of second terminals are performing online application, the user needs to actively be interested in the first terminal according to individual needs.
- the online application of the second terminal is shared, that is, browsed or controlled, wherein the control includes control of the virtual machine and control of the application on the virtual machine.
- a service request parameter format table set on the server such as Table 1 is the format of the service request message, specifically the service type of the table indicates the type of the service request, such as: the first terminal sends to the server
- the message includes Service_Type (service type) is "0”
- Service_Parameter is the identifier of the application, that is, the name or code of the application, and the server is to provide the first terminal.
- the first terminal sends a browsing request message to the server, and the message includes Service_Type (service type) is " ⁇ , then Service_Parameter (service parameter) is the identifier of the second terminal, and the server is to
- the first terminal provides a browsing service; the first terminal sends a virtual machine control request message to the server, and the message includes Service_Type ("service type” is "2", then Service_Parameter is a specific control instruction. (including but not limited to suspending or shutting down virtual machines that provide online application services for second terminals)
- the first terminal sends a request message to the application control server, the message contains Service- Type (type of service) is "3", the Service- Parameter (service parameter) for the application control permission request message.
- Table 1 shows the format of the service request message, where Service_Type includes parameters 0, 1, 2, 3 to indicate which service the terminal requests, 0 means use online application, 1 means browsing service, 2 means virtual machine control service, 3 Indicates application control services.
- the first terminal sends to the server, including: a browse request message; a virtual machine control request message and an application control request message. It should be noted that the first terminal may also experience the online application by sending an application request message to the server, but this does not involve sharing the online application of other terminals.
- the second terminal is in the state of using the online application before the first terminal sends the browsing request message to the server, and the online application initiation process of the second terminal is: the second terminal sends a usage application request message to the server, the request includes The service application identifier is "0"; after receiving the message, the server allocates a virtual machine to the second terminal and starts the online application requested by the second terminal on the virtual machine; meanwhile, the server forwards the identifier of the second terminal to the virtual machine.
- the server returns the virtual machine information (including the running status, address information, port information and other basic information of the virtual machine) corresponding to the virtual machine to the second terminal, and the virtual machine of the server establishes a connection with the second terminal, the virtual machine Providing an online application service for the second terminal according to the online application permission of the user stored in the query server (herein, the account verification login), wherein the online application process is: the server processes the control command uploaded by the second terminal and sends the pronunciation video stream to the second terminal.
- the second terminal Referring to the present invention, first, the first terminal sends a browsing request message to the server, and after receiving the browsing request message sent by the first terminal, the server detects whether the first terminal has the browsing right.
- the specific implementation process is that the first terminal sends a browsing request to the server, where the browsing request includes: the request type "1" and the identifier of the second terminal; the server confirms the browsing right of the second terminal user by querying the permission table.
- the identifier of the second terminal may be: an account or a user name set by the user for the user in the application.
- the method relates to obtaining the identifier of the second terminal by the first terminal, and the process is not considered in the scope of the present invention.
- the specific method may be obtained through a buddy list or through a portal, for example: searching for a certain game. User account is obtained, etc.
- the server stores the identifier of the second terminal, the identifier of the first terminal, and the authority of the first terminal.
- Table 2 is a permission table, where player_id represents the second terminal user, and watcher_id indicates An end user, Watcher_privilege indicates the user rights of the first terminal, including view (view permission), View & Control (view plus virtual machine control).
- the player_id is UserA
- the watcher_id is UserB
- the Watcher_privilege is view. That is, the first terminal UserB has the right to browse the second terminal UserA.
- the server synchronously sends the resource information sent to the second terminal to the first terminal.
- the specific process here is as follows: If the first terminal has the browsing right, the server sends the virtual machine information of the virtual machine that is being used by the second terminal (including the address of the virtual machine, the port information, the duration of the online application, the application name, the application type, The information about the recommendation degree and the like is sent to the first terminal, and the first terminal identifier and the browsing permission information are simultaneously sent to the virtual machine, and the terminal is configured to establish a connection between the first terminal and the virtual machine.
- the server may further send a browsing notification message to the second terminal to notify the second terminal that His user is browsing his online application; the first terminal and the virtual machine establish a connection after media negotiation (including but not limited to network environment, encoding mode, frame rate parameter).
- media negotiation including but not limited to network environment, encoding mode, frame rate parameter.
- the server sends a verification authority request message to the second terminal, where the verification authority request message includes the identifier of the first terminal and the information requesting the second terminal to grant the browsing permission of the first terminal;
- the terminal determines, according to the verification permission request message, whether to grant the browsing permission of the first terminal, and returns a verification authority notification message; if the verification authority notification message is to grant the browsing permission of the first terminal, the resource information sent to the second terminal is synchronously sent to the first terminal.
- the specific process here is: if the first terminal does not have the browsing right, the first terminal sends the verification authority message (including the identifier of the first terminal and the information terminal requesting the second terminal to grant the browsing permission of the first terminal) to the server, the server Transmitting the verification authority message to the second terminal; the second terminal determines whether to grant the first terminal browsing right according to the verification permission message, and returns a verification authority message to the server; the server receives the verification authority notification message returned by the second terminal, if the verification authority If the notification message is that the first terminal is not granted the browsing right, the first terminal cannot browse the online application of the second terminal. If the verification authority notification message is the terminal terminal that grants the browsing authority to the first terminal, the server returns the virtual terminal corresponding to the second terminal.
- the machine information is sent to the first terminal and the first terminal identifier is forwarded and the first terminal browsing permission message is granted to the virtual machine;
- the virtual machine of the first terminal and the server is negotiated by the media capability (including but not limited to the network environment, the encoding mode, and the frame rate) Connection) after the connection; server
- the virtual machine synchronously transmits the resource information sent to the second terminal to the first terminal.
- the first terminal may also initiate real-time control including control of the virtual machine providing the application for the second terminal and control of the application on the virtual machine.
- the specific process is as follows:
- the first terminal sends a virtual machine control request message to the server.
- the server detects whether the first terminal is a preset control terminal.
- the specific implementation process is: the first terminal sends a virtual machine control request to the server, where the control request message includes: sending request type "2" (see Table 1) and specific virtual machine control instructions including closing or suspending instructions;
- the table confirms the control rights of the second terminal user.
- the player_id is UserE
- the watcher_id is UserC
- the Watcher_privilege is view&Control
- the first terminal UserE has the second terminal UserC. Have the right to browse plus virtual machine control.
- the server executes a control command in the virtual machine control request message to control the virtual machine of the online application for the second terminal, including shutting down or suspending the virtual machine.
- the first terminal sends an application control request message to the server, where the application control request message is used to apply for controlling the right of the application of the online application service provided by the second terminal; and the server receives the application control request message sent by the first terminal.
- the application control authority application message includes an identifier of the first terminal, and sends an application control authority application message to the second terminal; the user of the second terminal determines whether to grant the first terminal according to the identifier of the first terminal in the application control authority application message.
- a terminal application control authority and returns a control authority notification message to the server; if the application control authority notification message is not to grant the first terminal application control authority, the first terminal cannot control the online application of the second terminal, if the application control permission notification is applied
- the message is to grant the first terminal application control authority, and then the two terminals control the application on the virtual machine, and the first terminal controls the online application of the second terminal on the virtual machine, and the audio and video information on the virtual machine is controlled. Sent to the second terminal and send it to A shared terminal.
- the embodiment of the present invention provides a method for real-time sharing in an online application, so that the user can actively send requests to other terminals according to individual needs, and realize real-time browsing of resources of other terminals online applications with browsing rights; Implementing a shutdown or suspend operation on a virtual machine that provides online services for other terminals on the server.
- the user grants the permission, the user can obtain the control permission of the online application of the other user by issuing an instruction to the server, and the other user's
- the display information of the terminal is controlled to realize real-time sharing in the online application, thereby further improving the function of the online application and improving the quality of the online application experience of the user.
- a server 50 includes: a request message receiving unit 51, a virtual machine acquiring unit 52, and a resource sending unit 53.
- the request message receiving unit 51 is configured to receive a browsing request message sent by the first terminal, where the browsing request message carries the identifier of the second terminal.
- the virtual machine obtaining unit 52 is configured to acquire virtual machine information of the virtual machine that is providing the online application service for the second terminal according to the identifier of the second terminal.
- the resource sending unit 53 is configured to send the virtual machine corresponding to the virtual machine information to the second terminal.
- the resource information is sent to the first terminal.
- the user can actively browse the resources of the online application of the second terminal according to the individual needs, and further improve the function of the online application, thereby improving the quality of the online application experience of the user.
- the virtual machine obtaining unit 52 further includes: a browsing authority detecting subunit 521, a verifying authority transmitting subunit 522, a verifying authority receiving subunit 523, a connection establishing subunit 524, and an information transmitting subunit 525.
- the browsing permission detecting sub-unit 521 is configured to detect, when receiving the browsing request message sent by the first terminal, whether the first terminal has the right to browse the online application that the second terminal is using.
- the verification authority sending sub-unit 522 is configured to send a verification authority request message to the second terminal when the first terminal does not have the browsing right, and the verification authority request message includes the first terminal identifier and the information that the second terminal is requested to grant the browsing permission of the first terminal. And causing the second terminal to determine whether to grant the first terminal browsing authority terminal terminal terminal terminal according to the identifier of the first terminal.
- the verification authority receiving subunit 523 is configured to receive the verification authority notification message returned by the second terminal, and determine, according to the verification authority notification message, that the first terminal has the browsing permission;
- the information sending sub-unit 524 is configured to: when the first terminal has the right to browse the online application that the second terminal is using, send the virtual machine information of the virtual machine that provides the online application service to the second terminal to the first terminal; When the verification authority notification message is to grant the browsing permission of the first terminal, the virtual machine information of the virtual machine that provides the online application for the second terminal is sent to the first terminal.
- a server 50 according to an embodiment of the present invention further includes:
- the virtual machine control authority detecting unit 54 is configured to detect whether the first terminal is a preset control terminal when receiving the virtual machine control request message sent by the first terminal.
- the application control authority notification unit 57 is configured to send an application control authority notification message to the first terminal, so that when the application control authority notification message is used to grant the first terminal application control authority, the first terminal controls the providing the second terminal to provide an online application. Service application terminal terminal.
- the request message receiving unit 51 is further configured to receive a virtual machine control request message sent by the first terminal, where the virtual machine control request message includes a control command for controlling a virtual machine that provides resource information for the second terminal;
- the application control request message is used to apply for controlling the authority terminal of the application of the online application service provided for the second terminal.
- a first terminal 60 includes: a request message sending unit 61, a virtual machine information receiving unit 62, and a resource information receiving unit 63.
- the request message sending unit 61 is configured to send a browsing request message to the server, where the browsing request message carries the identifier of the second terminal, so that the service acquires the virtual machine that is providing the online application service for the second terminal according to the identifier of the second terminal.
- the virtual machine information receiving unit 62 is configured to: when the first terminal has the right to browse the online application being used by the second terminal, receive virtual machine information of the virtual machine that provides the online application service for the second terminal;
- the resource information receiving unit 63 is configured to receive resource information sent by the virtual machine corresponding to the virtual machine information to the second terminal.
- another first terminal 60 provided by the embodiment, as shown in FIG. 9, further includes: an application control authority notification message receiving unit 64.
- the application control authority notification message receiving unit 64 is configured to receive the application control authority notification message, so that when the application control authority notification message is used to grant the first terminal application control authority, the first terminal controls the application for providing the second terminal to the online application service. .
- the request message sending unit 61 is further configured to send a virtual machine control request message to the server, where the virtual machine control request message includes a control command for controlling a virtual machine that provides resource information for the second terminal, so that the server detects that When the first terminal is a preset control terminal, the virtual machine is controlled according to a control command in the virtual machine control request message; and is further configured to send an application control request message to the server, where the application control request message is used to apply for a control station. The permission of the application of the online application service provided by the second terminal.
- An embodiment of the present invention provides a device for real-time sharing in an online application, so that a user can actively send a request to a terminal of another user according to an individual demand, and realize real-time browsing of resources of an online application of another terminal with browsing permission; If it is in a state of control, the virtual machine on the server that provides the online service for other terminals may be suspended or closed. When the right is granted, the server may be instructed to obtain the control permission of the online application of other users. The display information of the terminals of other users is controlled, real-time sharing in the online application is realized, thereby further improving the function of the online application and improving the quality of the online application experience of the user.
- a system for real-time sharing in an online application includes: a server 1 and a first terminal 2.
- the server 1 is configured to receive a browsing request message sent by the first terminal, where the browsing request message carries the identifier of the second terminal, and obtain the virtual machine information of the virtual machine that is providing the online application service for the second terminal according to the identifier of the second terminal;
- the resource information sent by the virtual machine corresponding to the virtual machine information to the second terminal is sent to the first terminal terminal terminal.
- the first terminal 2 is configured to send a browsing request message to the server.
- the server 1 is further configured to: detect whether the first terminal has the right to browse the online application that the second terminal is using; and when the first terminal has the right to browse the online application that the second terminal is using, the online application is provided for the second terminal.
- the virtual machine information of the served virtual machine is sent to the first terminal, and the connection between the first terminal and the virtual machine is established, and the resource information running on the virtual machine corresponding to the virtual machine information is sent to the first through the established connection. a terminal.
- the server 1 is further configured to: when the first terminal does not have the browsing permission, send a verification authority request message to the second terminal, where the verification permission request message includes the identifier of the first terminal and the information that the second terminal is requested to grant the browsing permission of the first terminal,
- the second terminal determines whether to grant the first terminal browsing permission terminal terminal terminal according to the first terminal identifier; receives the verification authority notification message returned by the second terminal, and determines, according to the verification authority notification message, that the first terminal has the browsing right.
- the terminal terminal server 1 is further configured to receive a virtual machine control request message sent by the first terminal, where the virtual machine control request message includes a control command for controlling a virtual machine that provides resource information for the second terminal; and detecting whether the first terminal is a preset When the first terminal is a preset control terminal, the virtual machine is controlled according to a control command in the virtual machine control request message, where the application control authority application message includes an identifier of the first terminal and an application identifier.
- the first terminal 2 is further configured to send an application control request message to the server, and the application control request is cancelled.
- the information is used to apply for controlling the application of the online application service of the second terminal;
- the server 1 is further configured to: when receiving the application control message, send an application control authority application message to the second terminal, where the application control permission application message includes the identifier of the first terminal and the application identifier terminal;
- the second terminal is configured to receive an application control authority request message, and return an application control authority notification message after determining whether to grant the first terminal application control authority according to the identifier of the first terminal and the application identifier;
- the server 1 is further configured to send an application control authority notification message to the first terminal, so that when the application control authority notification message is used to grant the first terminal application control authority, the first terminal controls the application terminal that provides the online application service for the second terminal. .
- the embodiment of the present invention provides a real-time sharing system in an online application, so that the user can actively send requests to other terminals through the terminal according to individual needs to realize real-time sharing of resources of other terminal online applications, thereby further improving the function of the online application and improving the function.
- the quality of the user's online application experience is provided.
- the real-time sharing method, device and system provided by the embodiments of the present invention enable the user to actively send requests to other users' terminals according to individual needs in the online application scenario, and realize real-time browsing of other terminal online applications with browsing rights.
- the virtual machine on the server that provides the online service for other terminals can be suspended or closed.
- the permission is granted, the user can be commanded to obtain other users.
- the control permission of the online application controls the display information of the terminals of other users, realizing the real-time sharing in the online application, thereby further improving the function of the online application and improving the quality of the online application experience of the user.
- the server may be a hardware device such as a computer, and the method for performing the above functions may be a processor of the computer, and the above functional unit of the server may also be a unit in a processor running as a computer.
- the terminal can be any terminal device, such as a mobile phone, a PDA, a notebook computer, a computer, etc., and the present invention is not limited thereto.
- Each functional unit of the terminal can be the receiver of the terminal.
- the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
- the steps of the foregoing method embodiments are included; and the foregoing storage medium includes: ROM, RAM, disk or optical disk, etc.
- the media of the sequence code includes: ROM, RAM, disk or optical disk, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例提供了一种实时共享方法、装置及系统,涉及在线应用领域,以解决用户不能根据个人需求主动通过终端向其他终端发出请求进而实现实时共享其他终端在线应用的资源的问题。一种实时共享方法,用于在线应用的共享包括:接收第一终端发送的浏览请求消息,所述浏览请求消息中携带第二终端的标识;根据所述第二终端的标识获取正在为第二终端提供在线应用服务的虚拟机的虚拟机信息;将与所述虚拟机信息对应的虚拟机发送给第二终端的资源信息发送给第一终端。
Description
本申请要求于 2011年 09月 09 日提交中国专利局、 申请号为
201110268467. 0, 发明名称为 "一种实时共享方法、 装置及系统" 的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及在线应用领域, 尤其涉及一种实时共享方法、装置及 系统
背景技术
目前, 网络的在线应用领域,服务器可以部署各种各样的第三方 开发的应用,终端可以远程连接到服务器的在线应用平台上体验这些 应用。 终端与服务器的一般交互过程为: 终端将对应用操作的消息提 交到服务器, 服务器进行计算、 处理, 并返回数据运行过程及结果响 应消息, 以使终端将接收的数据在本地输出。 在此场景中, 应用的运 行和处理都在服务器进行,而终端只负责将用户的操作上传到服务器 和接收服务器发送的数据进行解码输出, 因此用户可以通过终端(比 如, 个人电脑、手机、 掌上电脑等)浏览由服务器提供的音视频资源。
在实现上述技术方案过程中,发明人发现,虚拟机只能为使用虚 拟机上的应用的终端提供服务。 这也导致在线应用功能不够完善, 降 低了用户体验的质量。
发明内容
本发明的实施例提供一种在线应用中的实时共享的方法、 装置 及系统, 进一步完善了在线应用的功能, 提高了用户在线应用体验 的质量
为达到上述目的, 本发明的实施例采用如下技术方案: 一方面, 提供了一种实时共享方法, 应用于在线应用系统, 包 括:
接收第一终端发送的浏览请求消息, 所述浏览请求消息中携带 第二终端的标识;
根据所述第二终端的标识获取正在为第二终端提供在线应用服 务的虚拟机的虚拟机信息;
将与所述虚拟机信息对应的虚拟机发送给第二终端的资源信 , ¾ 发送给第一终端。
所述将与所述虚拟机信息对应的虚拟机发送给第二终端的资源 信息发送给第一终端之前, 该方法还包括:
检测第一终端是否具备浏览第二终端正在使用的在线应用的权 限;
在第一终端具备所述浏览第二终端正在使用的在线应用的权限 时, 将为第二终端提供在线应用服务的虚拟机的虚拟机信息发送给 所述的第一终端;
建立所述第一终端和所述虚拟机的连接;
所述将与所述虚拟机信息对应的虚拟机上运行的资源信息发送 给第一终端包括: 通过所述建立的连接将与所述虚拟机信息对应的 虚拟机上运行的资源信息发送给第一终端。
当第一终端不具备浏览第二终端正在使用的在线应用的权限 时, 还包括:
向第二终端发出验证权限请求消息, 所述验证权限请求消息包 含第一终端的标识和请求第二终端授予第一终端浏览权限的信息; 以使得第二终端根据所述第一终端标识确定是否授予第一终端浏览 权限;
接收第二终端返回的验证权限通知消息; 并根据所述验证权限 通知消息确定第一终端具备浏览权限。
所述将与所述虚拟机信息对应的虚拟机发送给第二终端的资源 信息发送给第一终端之后, 该方法还包括:
接收第一终端发送的虚拟机控制请求消息, 所述虚拟机控制请 求消息包括用于控制为第二终端提供资源信息的虚拟机的控制命 令;
检测第一终端是否为预设的控制终端;
当所述第一终端为预设的控制终端时, 根据所述虚拟机控制请 求消息中的控制命令控制所述虚拟机。
所述将与所述虚拟机信息对应的虚拟机发送给第二终端的资源 信息发送给第一终端之后, 该方法还包括:
接收第一终端发送的应用控制请求消息, 所述应用控制请求消
息用于申请控制所述为第二终端提供的在线应用服务的应用的权 限;
向第二终端发出应用控制权限申请消息, 所述应用控制权限申 请消息包含第一终端的标识; 以便于第二终端根据所述第一终端的 标识确定是否授予第一终端控制应用的权限, 并返回应用控制权限 通知消息;
发送所述应用控制权限通知消息给第一终端, 以便于在所述应 用控制权限通知消息授予第一终端应用控制权限时, 第一终端控制 所述为第二终端提供在线应用服务的应用。
另一方面, 提供了一种服务器, 包括:
请求消息接收单元, 用于接收第一终端发送的浏览请求消息, 所述浏览请求消息中携带第二终端的标识;
虚拟机获取单元, 用于根据所述第二终端的标识获取正在为第 二终端提供在线应用服务的虚拟机的虚拟机信息;
资源发送单元, 用于将与所述虚拟机信息对应的虚拟机发送给 第二终端的资源信息发送给第一终端。
所述虚拟机获取单元还包括:
浏览权限检测子单元, 用于在接收到第一终端发送的浏览请求 消息时, 检测第一终端是否具备浏览第二终端正在使用的在线应用 的权限;
信息发送子单元, 用于在第一终端具备所述浏览第二终端正在 使用的在线应用的权限时, 将为第二终端提供在线应用服务的虚拟 机的虚拟机信息发送给所述的第一终端;
连接建立子单元, 用于建立所述第一终端和所述虚拟机的连接。 所述虚拟机获取单元还包括:
验证权限发送子单元, 用于当第一终端不具备浏览权限时, 向 第二终端发出验证权限请求消息, 所述验证权限请求消息包含第一 终端标识和请求第二终端授予第一终端浏览权限的信息; 以使得第 二终端根据所述第一终端的标识确定是否授予第一终端浏览权限; 验证权限接收子单元, 用于接收第二终端返回的验证权限通知 消息; 并根据所述验证权限通知消息确定第一终端具备浏览权限; 所述信息发送子单元还用于在所述验证权限通知消息为授予第
一终端浏览权限时, 将所述为第二终端提供在线应用的虚拟机的虚 拟机信息发送给所述的第一终端。
所述请求消息接收单元还用于接收第一终端发送的虚拟机控制 请求消息, 所述虚拟机控制请求消息包括用于控制为第二终端提供 资源信息的虚拟机的控制命令; 所述服务器还包括:
虚拟机控制权限检测单元, 用于检测第一终端是否为预设的控 制终端;
虚拟机控制单元, 用于当所述第一终端为预设的控制终端时, 根据所述虚拟机控制请求消息中的控制命令控制所述虚拟机。
所述请求消息接收单元还用于接收第一终端发送的应用控制请 求消息, 所述应用控制请求消息用于申请控制所述为第二终端提供 的在线应用服务的应用的权限; 所述服务器还包括:
应用控制权限申请单元, 用于向第二终端发出应用控制权限申 请消息, 所述应用控制权限申请消息包含第一终端的标识及应用标 识; 以便于第二终端根据所述第一终端的标识及应用标识确定是否 授予第一终端控制应用的权限, 并返回应用控制权限通知消 , ¾; 应用控制权限通知单元, 用于发送所述应用控制权限通知消息 给第一终端, 以便于在所述应用控制权限通知消息授予第一终端应 用控制权限时, 第一终端控制所述为第二终端提供在线应用服务的 应用。
提供了一种第一终端, 包括:
请求消息发送单元, 用于向服务器发送浏览请求消息, 所述浏 览请求消息中携带第二终端的标识, 以便于服务根据所述第二终端 的标识获取正在为第二终端提供在线应用服务的虚拟机的虚拟机信 息;
虚拟机信息接收单元, 用于在第一终端具备浏览第二终端正在 使用的在线应用的权限时, 接收为第二终端提供在线应用服务的虚 拟机的虚拟机信息;
资源信息接收单元, 用于接所述虚拟机信息对应的虚拟机发送 给第二终端的资源信息。
所述请求消息发送单元还用于向服务器发送虚拟机控制请求消 息, 所述虚拟机控制请求消息包括用于控制为第二终端提供资源信
息的虚拟机的控制命令, 以便于服务器检测到当所述第一终端为预 设的控制终端时, 根据所述虚拟机控制请求消息中的控制命令控制 所述虚拟机。
所述请求消息发送单元还用于向服务器发送应用控制请求消 息, 所述应用控制请求消息用于申请控制所述为第二终端提供的在 线应用服务的应用的权限; 所述第一终端还包括:
应用控制权限通知消息接收单元, 用于接收所述应用控制权限 通知消息, 以便于在所述应用控制权限通知消息授予第一终端应用 控制权限时, 第一终端控制所述为第二终端提供在线应用服务的应 用。
再一方面, 提供了一种实时共享的系统, 包括:
服务器, 用于接收第一终端发送的浏览请求消息, 所述浏览请 求消息中携带第二终端的标识; 用于将与所述虚拟机信, 对应的虚 拟机发送给第二终端的资源信息发送给第一终端。
第一终端, 用于向服务器发送浏览请求消息。
所述服务器还用于, 检测第一终端是否具备浏览第二终端正在 使用的在线应用的权限; 在第一终端具备所述浏览第二终端正在使 用的在线应用的权限时, 将为第二终端提供在线应用服务的虚拟机 的虚拟机信息发送给所述的第一终端, 并建立所述第一终端和所述 虚拟机的连接,并通过所述建立的连接将与所述虚拟机信息对应的虚 拟机上运行的资源信息发送给第一终端。
所述服务器还用于, 当所述第一终端不具备浏览权限时, 向第 二终端发出验证权限请求消息, 所述验证权限请求消息包含第一终 端的标识和请求第二终端授予第一终端浏览权限的信息, 以使得第 二终端根据所述第一终端标识确定是否授予第一终端浏览权限; 接收第二终端返回的验证权限通知消息, 并根据所述验证权限 通知消息确定第一终端具备浏览权限。
所述服务器还用于接收第一终端发送的虚拟机控制请求消息, 所述虚拟机控制请求消息包括用于控制为第二终端提供资源信息的 虚拟机的控制命令; 检测第一终端是否为预设的控制终端; 当所述 第一终端为预设的控制终端时, 根据所述虚拟机控制请求消息中的 控制命令控制所述虚拟机。
所述第一终端还用于向服务器发送应用控制请求消息, 所述应 用控制请求消息用于申请控制所述虚拟机上为第二终端提供的在线 应用服务的应用的权限;
所述服务器还用于, 接收到所述应用控制消息时, 向第二终端 发出应用控制权限申请消息, 所述应用控制权限申请消息包含第一 终端的标识及应用标识;
所述第二终端用于接收所述应用控制权限申请消息并在根据所 述第一终端的标识及应用标识确定是否授予第一终端应用控制权限 后, 返回应用控制权限通知消息;
所述服务器还用于发送所述应用控制权限通知消息给第一终 端, 以便于在所述应用控制权限通知消息授予第一终端应用控制权 限时, 第一终端控制所述为第二终端提供在线应用服务的应用。
本发明的实施例提供一种实时共享的方法、 装置及系统, 使得用 户在在线应用场景中能够根据个人需求主动向其他用户的终端发出请 求, 在具有浏览权限的情况下实现实时浏览其他终端在线应用的资源; 同 时,用户若为具有虚拟机控制权的状态时可以暂停或关闭为其他终端提供 在线服务的服务器上的虚拟机; 在被授予应用控制权的情况下, 可以通过 对服务器发出指令, 获取其他用户的在线应用的控制权限, 对虚拟机端应 用的运行进行控制, 实现了在线应用中的实时共享, 从而进一步完善了在 线应用的功能, 提高了用户在线应用体验的质量。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员 来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附 图。
图 1为本发明实施例提供的一种实时共享的方法流程图; 图 2为本发明实施例提供的另一种实时共享的方法流程图; 图 3 为本发明实施例提供的一种实时共享中的虚拟机控制方法 流程图;
图 4 为本发明实施例提供的一种实时共享中的应用控制方法流
程图;
图 5为本发明实施例提供的一种服务器结构框图;
图 6为本发明实施例提供的一种虚拟机获取单元结构框图; 图 7为本发明实施例提供的另一种服务器结构框图;
图 8为本发明实施例提供的一种第一终端的结构示意图; 图 9为本发明实施例提供的另一种第一终端的结构示意图; 图 10为本发明实施例提供的一种实时共享系统的示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进 行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其他实施例 ,都属于本发明保护的 范围。
以下各实施例均应用于在线应用场景,因此服务上存在正在为第二终 端提供在线应用的虚拟机, 即存在正在进行在线应用第二终端。
本发明实施例提供的一种实时共享的方法, 应用于在线应用, 如图 1 所示, 用于服务器侧, 包括以下步骤:
5101、接收第一终端发送的浏览请求消息,该浏览请求消息中携带第 二终端的标识。
具体的,服务器接收第一终端发送的浏览请求消息, 浏览请求消息用 于请求将发送给第二终端的资源信息同步发送至第一终端,该请求消息携 带第二终端的标识。
5102、根据第二终端的标识获取正在为第二终端提供在线应用服务的 虚拟机的虚拟机信息。
用户通过第一终端,发送浏览请求消息至服务器后,服务器根据浏览 请求消息携带的第二终端标识,获取正在为第二终端提供服务的虚拟机的 虚拟机信息, 如, 该虚拟机正在将其运行程序的画面和音频下发给第二终 端。
5103、将与虚拟机信息对应的虚拟机发送给第二终端的资源信息发送 给第一终端。
在获取对应的虚拟机后则由该为第二终端提供在线应用服务的虚拟 机将发送给第二终端的资源信息同步发送至第一终端; 以实现在线应用的 共享。 这里的资源信息包括虚拟机上为第二终端提供的音视频信息。
本发明的实施例提供在线应用中的实时共享的方法,使得用户能够根 据个人需求主动向服务器出浏览请求以实现实时浏览第二终端正在使用 的在线应用的资源, 从而进一步完善了在线应用的功能, 提高了用户在线 应用体验的质量。
本发明实施例提供的另一种实时共享的方法, 如图 2所示, 用于服务 器一侧, 包括以下步骤:
5201、接收第一终端发送的浏览请求消息,该浏览请求消息中携带第 二终端的标识。
5202、检测第一终端是否具备浏览第二终端正在使用的在线应用的权 限。
若第一终端具备浏览第二终端正在使用的在线应用的权限,执行步骤 S205;否则执行步骤 S203。 浏览第二终端正在使用的在线应用的权限的验 证可以是在服务器存储的权限表中进行查询,具体的可以是在服务器建立 权限表, 表中包括若干组第一终端和第二终端的标识, 以及与各个终端的 标识一一对应的浏览权限, 当需要检测第一终端是否具备浏览权限时只需 要和权限表中存储的标识进行比对即可。
S203、 向第二终端发出验证权限请求消息。
具体的, 由于权限表中没有第一终端的用户浏览权限记录, 此时服务 器将包含第一终端标识和请求第二终端授予第一终端浏览权限的信息的 验证权限请求消息发送至第二终端,以便于第二终端的用户根据所述第一 终端标识决定是否授予第一终端浏览第二终端正在使用的在线应用的权 限。
5204、接收验证权限通知消息, 并根据验证权限通知消息确定第一终 端具备浏览权限。
若验证权限通知消息为授予第一终端浏览第二终端正在使用的在线 应用的权限则执行步骤 S205 , 否则第一终端不能对第二终端的在线应用 进行浏览。
5205、将为第二终端提供在线应用服务的虚拟机的虚拟机信息发送给
所述的第一终端。
这里的虚拟机信息可以是但不限于: 虚拟机地址信息、虚拟机端口和 在线应用的信息包括: 应用种类、 应用运行时间、 账户运行时间、 应用评 价内容、 应用打分、 应用推荐度。
5206, 建立第一终端和虚拟机的连接。
这里要说明的是第一终端和虚拟机的建立连接时要进行媒体能力的 协商, 包括但不限于网络环境、 编码方式、 帧率参数。
5207、将与虚拟机信息对应的虚拟机发送给第二终端的资源信息发送 给第一终端。
这里的资源信息包括虚拟机上为第二终端提供的音视频信息。
这里用户能够根据个人需求主动发出浏览请求以实现实时浏览观看 第二终端的在线应用的资源;此时还可以通过发送虚拟机控制请求消息暂 停或关闭为第二终端提供在线应用的虚拟机,或通过发送应用控制请求消 息申请控制第二终端正在虚拟机上进行的在线应用的权限,具体方发流程 ^口下:
图 3为发送虚拟机控制请求消息方法流程图, 包括以下步骤:
S301、 接收第一终端发送的虚拟机控制请求消息。
需要说明的是虚拟机控制请求消息包括用于控制为第二终端提供资 源信息的虚拟机的控制命令, 以便于第一终端对虚拟机进行控制。 其中, 控制命令包含但不限于对虚拟机的关闭或暂停指令。
5302、 检测第一终端是否为预设的控制终端。
该过程可以是通过在服务器中存储的权限表中进行查询,具体的可以 是在服务器建立权限表, 表中包括若干组第一终端和第二终端的标识, 权 限表中存在第一终端对为第二终端提供在线应用的虚拟机的控制权限记 录, 当需要检测第一终端是否为预设的控制终端时只需要在权限表中存储 的标识进行比对即可。 若检测第一终端是预设定的控制终端, 则执行步骤 S303。
5303、 根据虚拟机控制请求消息中的控制命令控制虚拟机。
具体的,第一终端对虚拟机的控制包括关闭和暂停正在为第二终端提 供在线应用服务的虚拟机, 这里的虚拟机的控制权限一般设置为超级权
限, 这样第一终端可以在监控第二终端的在线应用的同时, 如发现当前运 行的应用不适合第二终端的用户,可以发送虚拟机关闭的操控指令用于停 止相应虚拟机的运行, 并发送告知消息给第二终端, 从而达到控制第二终 端运行在线应用的目的。
图 4为发送应用控制请求消息发发流程图, 包括以下步骤:
S401、 接收第一终端发送的应用控制请求消息。
需要说明的是,应用控制请求消息用于申请控制所述为第二终端提供 的在线应用服务的应用的权限。
S402、 向第二终端发出应用控制权限申请消息, 所述应用控制权限 申请消息包含第一终端的标识及应用标识; 以便于第二终端根据所述第一 终端的标识及应用标识确定是否授予第一终端控制应用的权限,并返回应 用控制权限通知消息
由于对在线应用的控制是实时发生的,所以第一终端要想对第二终端 的在线应用进行控制需要申请应用控制权限。第二终端根据应用控制权限 申请消息中的第一终端标识和应用标识确定是否授予第一终端应用控制 权限并返回应用控制权限通知消息给服务器。作为一个例子, 应用控制权 限申请消息中还可以不包含应用标识, 当应用控制权限申请消息中不包含 应用标识时,表明第一终端申请对第二终端正在使用的所有在线应用的控 制。
5403、 接收应用控制权限通知消息。
5404、 发送所述应用控制权限通知消息给第一终端。
这里服务器要发送应用控制权限通知消息给第一终端,以便于在应用 控制权限通知消息为授予第一终端应用控制权限时,第一终端控制所述为 第二终端提供在线应用服务的应用终端。此时第一终端通过与虚拟机的连 接关系向虚拟机上传具体的应用控制指令对虚拟机上的在线应用进行控 制。由于该虚拟机与第一终端和第二终端均建立了连接关系所以此时第一 终端的对虚拟机上的在线应用的控制结果即虚拟机上运行的资源信息会 实时发送至两个终端。
这样用户不仅通过第一终端实现了实时浏览第二终端在线应用的资 源; 同时, 用户可以通过第一终端实现对在服务器上为该第二终端提供在 线服务的虚拟机实施关闭或暂停操作,另外第一终端在被授予权限的情况
下,可以对第二终端的在线应用进行控制,实现了在线应用中的实时共享, 从而进一步完善了在线应用的功能, 提高了用户在线应用体验的质量。
下面通过举例, 对上述本发明实施例的实现进行描述。
具体的,本发明实施例提供的在线应用中的实时共享的方法可以应用 于如下场景: 当有若干个第二终端在进行在线应用时, 用户需要根据个人 需求主动通过第一终端对某感兴趣的第二终端的在线应用进行共享,即浏 览或控制, 其中控制包括虚拟机的控制和对虚拟机上应用的控制。
首先, 为了方便起见, 在服务器上设置的一个服务请求参数格式表, 如表 1为服务请求消息的格式,具体的以表中 Service— Type表示服务请求 的类型, 如: 第一终端向服务器发送使用应用请求消息, 则消息中包含 Service— Type (服务类型 )为 "0" , 则 Service— Parameter (服务参数)为应用 的标识即应用的名称或代号,这时服务器要向第一终端提供的是在线应用 服务; 第一终端向服务器发送浏览请求消息, 则消息中包含 Service— Type (服务类型)为 "Γ , 则 Service— Parameter (服务参数)为第二终端的标识, 此时服务器要向第一终端提供的是浏览服务;第一终端向服务器发送虚拟 机控制请求消息, 则消息中包含 Service— Type (服务类型) 为 "2" , 则 Service— Parameter (服务参数)为具体的控制指令(包括但不限于暂停或关 闭为第二终端提供在线应用服务的虚拟机); 第一终端向服务器发送应用 控制请求消息, 则消息中包含 Service— Type (服务类型) 为 "3 " , 则 Service— Parameter (服务参数)为应用控制权限申请消息。
表 1为服务请求消息的格式, 其中 Service— Type包括参数 0、 1、 2、 3用于指示终端请求何种服务, 0表示使用在线应用、 1表示浏览服务、 2表示虚拟机控制服务、 3表示应用控制服务。 Service— Parameter包括: Service— Parameter=0时为应用的标"只 , Service— Parameter=l时为第二终端 标识, Service— Parameter=2为具体的虚拟机控制指令, Service— Parameter=3 时为应用控制权限申请消息,需要说明的是当 Service— Parameter=3时即第 一终端向服务器请求应用控制服务时需要先向第二终端申请应用控制权 限, 待第二终端授予第一终端应用控制权限时再发送具体的应用控制指 令。服务器通过对比表 1和终端发来的请求来确定当前需要提供的服务状
当前 、端请求的为何种服务类型
0 在线应用服务
Service— Ty unsigned
1 浏览服务
pe char
2 虚拟机控制服务
3 应用控制服务 当 Service— Type=0 时为应用标 识: app_id
当 Service— Type=l时为第二终端
Service— Pa unsigned 标识: player— id
rameter long 当 Service— Type=2时为具体的虚 拟机控制指令
当 Service— Type=3时为应用控制 申请消息 表 1
对于第一终端侧, 第一终端向服务器发送包括: 浏览请求消息; 虚拟 机控制请求消息和应用控制请求消息。 需要说明的是, 第一终端也可以通 过向服务器发送使用应用请求消息来体验在线应用,只是这样的话就不涉 及对其他终端在线应用的共享了。
为了便于说明,假设第一终端向服务器发送浏览请求消息之前存在第 二终端处于使用在线应用的状态, 第二终端的在线应用发起过程为: 第二 终端向服务器发送使用应用请求消息, 该请求包含服务应用标识 "0" ; 服 务器收到该消息后为第二终端分配一台虚拟机并在该虚拟机上启动第二 终端请求的在线应用; 同时, 服务器转发第二终端的标识给该虚拟机; 然 后, 服务器返回对应该虚拟机的虚拟机信息(包括虚拟机的运行状态、 地 址信息、 端口信息等基本信息)给第二终端, 这时服务器的虚拟机与第二 终端建立连接, 虚拟机根据查询服务器上存储的用户在线应用权限(这里 可以理解为账号验证登陆)为第二终端提供在线应用服务, 其中, 在线应 用过程即:服务器处理第二终端上传的控制指令并下发音视频流给第二终 端。
涉及到本发明, 首先, 第一终端向服务器发送浏览请求消息, 服务器 在接收第一终端发送的浏览请求消息后, 检测第一终端是否具备浏览权 限。 具体实施过程为第一终端向服务器发送浏览请求, 该浏览请求包含: 请求类型 " 1" 和第二终端的标识; 服务器通过查询权限表确认第二终端 用户的浏览权限。 第二终端的标识可以是: 用户在应用中为自己设置的账 号或用户名称。 此外这里涉及到第一终端对第二终端的标识的获取, 该过 程不属于本发明的考虑范围,具体方法可以是通过好友列表获得或是通过 门户网站进行搜索获得, 例如: 搜索某种游戏的用户账号获得等。
这里在服务器存储有第二终端的标识、第一终端的标识和第一终端的 权限, 如图 5 所示, 表 2为权限表, 其中 player— id表示第二终端用户, watcher— id表示第一终端用户, Watcher_privilege表示第一终端的用户权 限, 具体包括 view (浏览权限)、 View & Control (浏览加虚拟机控制权)。 其中 player— id为 UserA、 watcher— id为 UserB、 Watcher_privilege为 view 即表示第一终端 UserB对第二终端 UserA具有浏览权。
表 2
若第一终端具备浏览权限,则服务器将发送给第二终端的资源信息同 步发送至第一终端。 这里的具体流程为: 若第一终端具备浏览权限, 则服 务器发送第二终端正在使用的虚拟机的虚拟机信息 (包括虚拟机的地址、 端口信息, 在线应用的时长、 应用名称、 应用种类、 应用推荐度等信息) 给第一终端, 同时发送第一终端标识和浏览权限信息给该虚拟机, 终端以 便于建立第一终端和该虚拟机的连接,此时对于只是具备浏览权限的第一 终端, 服务器还可以发送浏览告知消息给第二终端, 以告知第二终端有其
他用户在浏览其在线应用; 第一终端和该虚拟机经过媒体能力的协商(包 括但不限于网络环境、 编码方式、 帧率参数)后建立连接。 此时服务器的 虚拟机将发送给第二终端的资源信息同步发送至第一终端。
若第一终端不具备浏览权限,则服务器向第二终端发出验证权限请求 消息,其中验证权限请求消息包含第一终端的标识和请求第二终端授予第 一终端浏览权限的信息;以使得第二终端根据验证权限请求消息确定是否 授予第一终端浏览权限, 并返回验证权限通知消息; 若验证权限通知消息 为授予第一终端浏览权限,则将发送给第二终端的资源信息同步发送至第 一终端。 这里的具体流程为: 若第一终端不具备浏览权限, 则第一终端发 送验证权限消息 (包括第一终端的标识和请求第二终端授予第一终端浏览 权限的信息终端)给服务器后, 服务器将该验证权限消息转发第二终端; 第二终端根据验证权限消息决定是否授予第一终端浏览权,并返回验证权 限消息给服务器; 服务器接收到第二终端返回的验证权限通知消息, 如果 验证权限通知消息为不授予第一终端浏览权限,则第一终端不能对第二终 端的在线应用进行浏览,如果验证权限通知消息为授予第一终端浏览权限 终端终端,则服务器返回第二终端对应的虚拟机信息给第一终端并转发第 一终端标识和授予第一终端浏览权限消息给虚拟机;第一终端和服务器的 虚拟机经过媒体能力的协商(包括但不限于网络环境、 编码方式、 帧率参 数 )后建立连接; 服务器的虚拟机将发送给第二终端的资源信息同步发送 至第一终端。
第一终端在对第二终端的在线应用实施实时浏览的过程中,第一终端 可以也发起实时控制包括对为第二终端提供应用的虚拟机的控制和对该 虚拟机上的应用的控制。 具体过程如下:
当第一终端发送的消息为虚拟机控制请求消息时:
首先, 第一终端发送虚拟机控制请求消息给服务器,服务器接收到第 一终端发送的控制请求消息时, 检测第一终端是否为预设的控制终端。 具 体实施流程为: 第一终端向服务器发送虚拟机控制请求, 该控制请求消息 包含: 发送请求类型 "2" (参见表 1 )和具体的虚拟机控制指令包含关闭 或暂停指令; 服务器通过查询权限表确认第二终端用户的控制权限。 这里 如表 2 所示的权限表中 player— id 为 UserE、 watcher— id 为 UserC、 Watcher_privilege为 view&Control则第一终端 UserE对第二终端 UserC具
有浏览权加虚拟机控制权。
若第一终端是预设定的控制终端,则服务器执行虚拟机控制请求消息 中的控制命令控制为第二终端提供在线应用的虚拟机,这里包括关闭或暂 停该虚拟机。
终端当第一终端发送应用控制请求消息时:
首先, 第一终端发送应用控制请求消息给服务器, 其中应用控制请求 消息用于申请控制所述为第二终端提供的在线应用服务的应用的权限;服 务器接收到第一终端发送的应用控制请求消息时,所述应用控制权限申请 消息包含第一终端的标识, 并向第二终端发出应用控制权限申请消息; 第 二终端的用户据应用控制权限申请消息中的第一终端的标识决定是否授 予第一终端应用控制权限, 并返回控制权限通知消息给服务器; 若应用控 制权限通知消息为不授予第一终端应用控制权限则第一终端不能对第二 终端的在线应用进行控制,若应用控制权限通知消息为授予第一终端应用 控制权限, 则交换两终端对虚拟机上应用的控制权, 由第一终端对虚拟机 上的第二终端的在线应用进行控制,并将虚拟机上的音视频信息发送给第 二终端的同时一并发送至第一终端实现共享。
本发明的实施例提供在线应用中的实时共享的方法,使得用户能够根 据个人需求主动向其他终端发出请求,并在具有浏览权限的情况下实现实 时浏览其他终端在线应用的资源; 同时, 用户可以实现对在服务器上为其 他终端提供在线服务的虚拟机实施关闭或暂停操作,另外用户在授予权限 的情况下, 可以通过对服务器发出指令, 获取其他用户的在线应用的控制 权限, 对其他用户的终端的显示信息进行控制, 实现了在线应用中的实时 共享, 从而进一步完善了在线应用的功能, 提高了用户在线应用体验的质 量。
本发明实施例提供的一种服务器 50 , 如图 5所示, 包括: 请求消息 接收单元 51 , 虚拟机获取单元 52和资源发送单元 53。
请求消息接收单元 51用于接收第一终端发送的浏览请求消息, 该浏 览请求消息中携带第二终端的标识。
虚拟机获取单元 52用于根据第二终端的标识获取正在为第二终端提 供在线应用服务的虚拟机的虚拟机信息。
资源发送单元 53用于将与虚拟机信息对应的虚拟机发送给第二终端
的资源信息发送给第一终端。
这样使得用户能够根据个人需求主动向其他终端发出浏览请求以实 现实时浏览第二终端在线应用的资源, 从而进一步完善了在线应用的功 能, 提高了用户在线应用体验的质量。
进一步的, 如图 6所示, 虚拟机获取单元 52还包括: 浏览权限检测 子单元 521 , 验证权限发送子单元 522, 验证权限接收子单元 523 , 连接 建立子单元 524和信息发送子单元 525。
浏览权限检测子单元 521 用于在接收到第一终端发送的浏览请求消 息时, 检测第一终端是否具备浏览第二终端正在使用的在线应用的权限。
验证权限发送子单元 522用于当第一终端不具备浏览权限时,向第二 终端发出验证权限请求消息,验证权限请求消息包含第一终端标识和请求 第二终端授予第一终端浏览权限的信息;以使得第二终端根据第一终端的 标识确定是否授予第一终端浏览权限终端终端终端终端终端。
验证权限接收子单元 523 用于接收第二终端返回的验证权限通知消 息; 并根据验证权限通知消息确定第一终端具备浏览权限;
信息发送子单元 524 用于在在第一终端具备浏览第二终端正在使用 的在线应用的权限时,将为第二终端提供在线应用服务的虚拟机的虚拟机 信息发送给第一终端;还用于在验证权限通知消息为授予第一终端浏览权 限时, 将为第二终端提供在线应用的虚拟机的虚拟机信息发送给第一终 端。
连接建立子单元 525用于用于建立第一终端和虚拟机的连接。
再进一步, 如图 7所示, 本发明实施例提供的一种服务器 50, 还包 括:
虚拟机控制权限检测单元 54用于在接收到第一终端发送的虚拟机控 制请求消息时, 检测第一终端是否为预设的控制终端。
虚拟机控制单元 55用于当所述第一终端为预设的控制终端时, 根据 虚拟机控制请求消息中的控制命令控制虚拟机。
应用控制权限申请单元 56用于向第二终端发出应用控制权限申请消 息, 该应用控制权限申请消息包含第一终端的标识及应用标识; 以便于第 二终端根据第一终端的标识及应用标识确定是否授予第一终端控制应用
的权限, 并返回应用控制权限通知消息终端终端终端。
应用控制权限通知单元 57, 用于发送应用控制权限通知消息给第一 终端, 以便于在应用控制权限通知消息授予第一终端应用控制权限时, 第 一终端控制所述为第二终端提供在线应用服务的应用终端终端。
其中, 请求消息接收单元 51还用于接收第一终端发送的虚拟机控制 请求消息,虚拟机控制请求消息包括用于控制为第二终端提供资源信息的 虚拟机的控制命令; 接收第一终端发送的应用控制请求消息, 应用控制请 求消息用于申请控制所述为第二终端提供的在线应用服务的应用的权限 终端。
本发明实施例提供的一种第一终端 60, 如图 8所示, 包括: 请求消 息发送单元 61、 虚拟机信息接收单元 62和资源信息接收单元 63。
请求消息发送单元 61用于向服务器发送浏览请求消息 ,该浏览请 求消息中携带第二终端的标识, 以便于服务根据所述第二终端的标 识获取正在为第二终端提供在线应用服务的虚拟机的虚拟机信息; 虚拟机信息接收单元 62 , 用于在第一终端具备浏览第二终端正 在使用的在线应用的权限时, 接收为第二终端提供在线应用服务的 虚拟机的虚拟机信息;
资源信息接收单元 63 , 用于接所述虚拟机信息对应的虚拟机发 送给第二终端的资源信息。
进一步的, 实施例提供的另一种第一终端 60, 如图 9所示, 还包 括: 应用控制权限通知消息接收单元 64。
应用控制权限通知消息接收单元 64用于接收应用控制权限通知 消息, 以便于在应用控制权限通知消息授予第一终端应用控制权限 时, 第一终端控制所述为第二终端提供在线应用服务的应用。
其中,请求消息发送单元 61还用于向服务器发送虚拟机控制请求 消息, 虚拟机控制请求消息包括用于控制为第二终端提供资源信息 的虚拟机的控制命令, 以便于服务器检测到当所述第一终端为预设 的控制终端时, 根据所述虚拟机控制请求消息中的控制命令控制所 述虚拟机; 还用于向服务器发送应用控制请求消息, 该应用控制请 求消息用于申请控制所述为第二终端提供的在线应用服务的应用的 权限。
本发明的实施例提供在线应用中的实时共享的装置,使得用户能够根 据个人需求主动向其他用户的终端发出请求,在具有浏览权限的情况下实 现实时浏览其他终端在线应用的资源; 同时, 用户若为具有控制权的状态 时可以暂停或关闭为其他终端提供在线服务的服务器上的虚拟机,在被授 予权限的情况下, 可以通过对服务器发出指令, 获取其他用户的在线应用 的控制权限, 对其他用户的终端的显示信息进行控制, 实现了在线应用中 的实时共享, 从而进一步完善了在线应用的功能, 提高了用户在线应用体 验的质量。
本发明实施例提供的一种在线应用中的实时共享的系统, 如图 10所 示, 包括: 服务器 1和第一终端 2。
服务器 1 , 用于接收第一终端发送的浏览请求消息, 浏览请求消息中 携带第二终端的标识;根据第二终端的标识获取正在为第二终端提供在线 应用服务的虚拟机的虚拟机信息;将与虚拟机信息对应的虚拟机发送给第 二终端的资源信息发送给第一终端终端终端。
第一终端 2, 用于向服务器发送浏览请求消息。
服务器 1还用于,检测第一终端是否具备浏览第二终端正在使用的在 线应用的权限;在第一终端具备浏览第二终端正在使用的在线应用的权限 时,将为第二终端提供在线应用服务的虚拟机的虚拟机信息发送给所述的 第一终端, 并建立第一终端和虚拟机的连接, 并通过建立的连接将与虚拟 机信息对应的虚拟机上运行的资源信息发送给第一终端。
服务器 1还用于, 当第一终端不具备浏览权限时, 向第二终端发出验 证权限请求消息,验证权限请求消息包含第一终端的标识和请求第二终端 授予第一终端浏览权限的信息,以使得第二终端根据第一终端标识确定是 否授予第一终端浏览权限终端终端终端;接收第二终端返回的验证权限通 知消息, 并根据验证权限通知消息确定第一终端具备浏览权限。
终端终端服务器 1还用于接收第一终端发送的虚拟机控制请求消息, 虚拟机控制请求消息包括用于控制为第二终端提供资源信息的虚拟机的 控制命令; 检测第一终端是否为预设的控制终端; 当第一终端为预设的控 制终端时, 根据虚拟机控制请求消息中的控制命令控制该虚拟机, 该应用 控制权限申请消息包含第一终端的标识及应用标识。
第一终端 2还用于向服务器发送应用控制请求消息,应用控制请求消
息用于申请控制第二终端的在线应用服务的应用的权限;
服务器 1还用于,接收到应用控制消息时, 向第二终端发出应用控制 权限申请消息,该应用控制权限申请消息包含第一终端的标识及应用标识 终端;
第二终端用于接收应用控制权限申请消息 ,并在根据所述第一终端的 标识及应用标识确定是否授予第一终端应用控制权限后,返回应用控制权 限通知消息;
服务器 1还用于发送应用控制权限通知消息给第一终端,以便于在应 用控制权限通知消息授予第一终端应用控制权限时,第一终端控制所述为 第二终端提供在线应用服务的应用终端。
本发明的实施例提供在线应用中的实时共享的系统,使得用户能够根 据个人需求主动通过终端向其他终端发出请求以实现实时共享其他终端 在线应用的资源, 进一步完善了在线应用的功能, 提高了用户在线应用体 验的质量。
本发明的实施例提供的实时共享方法, 装置及的系统,使得用户能够 在在线应用场景中根据个人需求主动向其他用户的终端发出请求,在具有 浏览权限的情况下实现实时浏览其他终端在线应用的资源; 同时, 用户若 为具有控制权的状态时可以暂停或关闭为其他终端提供在线服务的服务 器上的虚拟机, 在被授予权限的情况下, 可以通过对服务器发出指令, 获 取其他用户的在线应用的控制权限,对其他用户的终端的显示信息进行控 制, 实现了在线应用中的实时共享, 从而进一步完善了在线应用的功能, 提高了用户在线应用体验的质量。
本发明以上实施例中服务器可以为计算机等硬件设备, 而执行上述功 能的方法可以为计算机的处理器, 服务器上述的功能单元也可以为运行为 计算机的处理器中的单元。 终端可以为任何终端设备, 如手机, PDA, 笔 记本电脑, 计算机等, 本发明在此不做限限。 终端的各功能单元都可以为 终端的接收器。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机 可读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程
序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并 不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范 围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应以所述权利要求的保护范围为准。
Claims
1、 一种实时共享方法, 其特征在于, 应用于在线应用系统, 包 括:
接收第一终端发送的浏览请求消息, 所述浏览请求消息中携带 第二终端的标识;
根据所述第二终端的标识获取正在为第二终端提供在线应用服 务的虚拟机的虚拟机信息;
将与所述虚拟机信息对应的虚拟机发送给第二终端的资源信息发 送给第一终端。
2、 根据权利要求 1所述的方法, 其特征在于, 所述将与所述虚 拟机信息对应的虚拟机发送给第二终端的资源信息发送给第一终端之 前, 该方法还包括:
检测第一终端是否具备浏览第二终端正在使用的在线应用的权 限;
在第一终端具备所述浏览第二终端正在使用的在线应用的权限 时, 将为第二终端提供在线应用服务的虚拟机的虚拟机信息发送给 所述的第一终端;
建立所述第一终端和所述虚拟机的连接;
所述将与所述虚拟机信息对应的虚拟机上运行的资源信息发送 给第一终端包括: 通过所述建立的连接将与所述虚拟机信息对应的 虚拟机上运行的资源信息发送给第一终端。
3、 根据权利要求 2所述的方法, 其特征在于, 当第一终端不具 备浏览第二终端正在使用的在线应用的权限时, 还包括:
向第二终端发出验证权限请求消息, 所述验证权限请求消息包 含第一终端的标识和请求第二终端授予第一终端浏览权限的信息; 以使得第二终端根据所述第一终端标识确定是否授予第一终端浏览 权限;
接收第二终端返回的验证权限通知消息; 并根据所述验证权限 通知消息确定第一终端具备浏览权限。
4、 根据权利要求 1-3 任一所述的方法, 其特征在于, 所述将与 所述虚拟机信息对应的虚拟机发送给第二终端的资源信息发送给第一 终端之后, 该方法还包括: 接收第一终端发送的虚拟机控制请求消息,所述虚拟机控制请 求消息包括用于控制为第二终端提供资源信息的虚拟机的控制命 令;
检测第一终端是否为预设的控制终端;
当所述第一终端为预设的控制终端时, 根据所述虚拟机控制请 求消息中的控制命令控制所述虚拟机。
5、 根据权利要求 1 -3 任一所述的方法, 其特征在于, 所述将与 所述虚拟机信息对应的虚拟机发送给第二终端的资源信息发送给第一 终端之后, 该方法还包括:
接收第一终端发送的应用控制请求消息, 所述应用控制请求消 息用于申请控制所述为第二终端提供的在线应用服务的应用的权限; 向第二终端发出应用控制权限申请消息, 所述应用控制权限申 请消息包含第一终端的标识; 以便于第二终端根据所述第一终端的标 识确定是否授予第一终端控制应用的权限, 并返回应用控制权限通知 消息;
发送所述应用控制权限通知消息给第一终端, 以便于在所述应 用控制权限通知消息授予第一终端应用控制权限时, 第一终端控制所 述为第二终端提供在线应用服务的应用。
6、 一种服务器, 其特征在于, 包括:
请求消息接收单元, 用于接收第一终端发送的浏览请求消息, 所述浏览请求消息中携带第二终端的标识;
虚拟机获取单元, 用于根据所述第二终端的标识获取正在为第 二终端提供在线应用服务的虚拟机的虚拟机信息;
资源发送单元,用于将与所述虚拟机信息对应的虚拟机发送给第 二终端的资源信息发送给第一终端。
7、 根据权利要求 6所述的服务器, 其特征在于, 所述虚拟机获 取单元还包括:
浏览权限检测子单元, 用于在接收到第一终端发送的浏览请求 消息时, 检测第一终端是否具备浏览第二终端正在使用的在线应用 的权限;
信息发送子单元, 用于在第一终端具备所述浏览第二终端正在 使用的在线应用的权限时, 将为第二终端提供在线应用服务的虚拟 机的虚拟机信息发送给所述的第一终端;
连接建立子单元, 用于建立所述第一终端和所述虚拟机的连接。
8、 根据权利要求 7所述的服务器, 其特征在于, 所述虚拟机获 取单元还包括:
验证权限发送子单元, 用于当第一终端不具备浏览权限时, 向 第二终端发出验证权限请求消息, 所述验证权限请求消息包含第一 终端标识和请求第二终端授予第一终端浏览权限的信息; 以使得第 二终端根据所述第一终端的标识确定是否授予第一终端浏览权限; 验证权限接收子单元, 用于接收第二终端返回的验证权限通知 消息; 并根据所述验证权限通知消息确定第一终端具备浏览权限; 所述信息发送子单元还用于在所述验证权限通知消息为授予第 一终端浏览权限时, 将所述为第二终端提供在线应用的虚拟机的虚 拟机信息发送给所述的第一终端。
9、 根据权利要求 6-8任一所述的服务器, 其特征在于, 所述请求消息接收单元还用于接收第一终端发送的虚拟机控制 请求消息, 所述虚拟机控制请求消息包括用于控制为第二终端提供 资源信息的虚拟机的控制命令; 所述服务器还包括:
虚拟机控制权限检测单元, 用于检测第一终端是否为预设的控 制终端;
虚拟机控制单元, 用于当所述第一终端为预设的控制终端时, 根据所述虚拟机控制请求消息中的控制命令控制所述虚拟机。
10、 根据权利要求 6-8任一所述的服务器, 其特征在于, 所述请求消息接收单元还用于接收第一终端发送的应用控制请 求消息, 所述应用控制请求消息用于申请控制所述为第二终端提供 的在线应用服务的应用的权限; 所述服务器还包括:
应用控制权限申请单元, 用于向第二终端发出应用控制权限申 请消息, 所述应用控制权限申请消息包含第一终端的标识及应用标 识; 以便于第二终端根据所述第一终端的标识及应用标识确定是否 授予第一终端控制应用的权限, 并返回应用控制权限通知消 , ¾; 应用控制权限通知单元, 用于发送所述应用控制权限通知消息 给第一终端, 以便于在所述应用控制权限通知消息授予第一终端应 用控制权限时, 第一终端控制所述为第二终端提供在线应用服务的 应用。
1 1、 一种终端, 其特征在于, 包括:
请求消息发送单元, 用于向服务器发送浏览请求消息, 所述浏 览请求消息中携带第二终端的标识, 以便于服务根据所述第二终端 的标识获取正在为第二终端提供在线应用服务的虚拟机的虚拟机信 息;
虚拟机信息接收单元, 用于在第一终端具备浏览第二终端正在 使用的在线应用的权限时, 接收为第二终端提供在线应用服务的虚 拟机的虚拟机信息;
资源信息接收单元, 用于接所述虚拟机信息对应的虚拟机发送 给第二终端的资源信息。
12、 根据权利要求 1 1所述的第一终端, 其特征在于, 所述请求 消息发送单元还用于向服务器发送虚拟机控制请求消息, 所述虚拟 机控制请求消息包括用于控制为第二终端提供资源信息的虚拟机的 控制命令,以便于服务器检测到当所述第一终端为预设的控制终端 时, 根据所述虚拟机控制请求消息中的控制命令控制所述虚拟机。
13、 根据权利要求 1 1所述的第一终端, 其特征在于, 所述请求 消息发送单元还用于向服务器发送应用控制请求消息, 所述应用控 制请求消息用于申请控制所述为第二终端提供的在线应用服务的应 用的权限; 所述第一终端还包括:
应用控制权限通知消息接收单元, 用于接收所述应用控制权限 通知消息, 以便于在所述应用控制权限通知消息授予第一终端应用 控制权限时, 第一终端控制所述为第二终端提供在线应用服务的应 用。
14、 一种实时共享的系统, 其特征在于, 包括:
服务器, 用于接收第一终端发送的浏览请求消息, 所述浏览请 求消息中携带第二终端的标识; 根据所述第二终端的标识获取正在 为第二终端提供在线应用服务的虚拟机的虚拟机信息; 将与所述虚 拟机信息对应的虚拟机发送给第二终端的资源信息发送给第一终端; 第一终端, 用于向服务器发送所述浏览请求消息。
15、 根据权利要求 14所述的系统, 其特征在于, 所述服务器还 用于, 检测第一终端是否具备浏览第二终端正在使用的在线应用的 权限; 在第一终端具备所述浏览第二终端正在使用的在线应用的权 限时, 将为第二终端提供在线应用服务的虚拟机的虚拟机信息发送 给所述的第一终端, 并建立所述第一终端和所述虚拟机的连接,并通 过所述建立的连接将与所述虚拟机信息对应的虚拟机上运行的资源 信息发送给第一终端。
16、 根据权利要求 15所述的系统, 其特征在于, 所述服务器还 用于, 当所述第一终端不具备浏览权限时, 向第二终端发出验证权 限请求消息, 所述验证权限请求消息包含第一终端的标识和请求第 二终端授予第一终端浏览权限的信息, 以使得第二终端根据所述第 一终端标识确定是否授予第一终端浏览权限;
接收第二终端返回的验证权限通知消息, 并根据所述验证权限 通知消息确定第一终端具备浏览权限。
17、 根据权利要求 14-16所述的系统, 其特征在于,
所述服务器还用于接收第一终端发送的虚拟机控制请求消息, 所述虚拟机控制请求消息包括用于控制为第二终端提供资源信息的 虚拟机的控制命令; 检测第一终端是否为预设的控制终端; 当所述 第一终端为预设的控制终端时, 根据所述虚拟机控制请求消息中的 控制命令控制所述虚拟机。
18、 根据权利要求 14-16所述的系统, 其特征在于, 包括: 所述第一终端还用于向服务器发送应用控制请求消息, 所述应 用控制请求消息用于申请控制所述虚拟机上为第二终端提供的在线 应用服务的应用的权限;
所述服务器还用于, 接收到所述应用控制消息时, 向第二终端 发出应用控制权限申请消息, 所述应用控制权限申请消息包含第一 终端的标识及应用标识;
所述第二终端用于接收所述应用控制权限申请消息并在根据所 述第一终端的标识及应用标识确定是否授予第一终端应用控制权限 后, 返回应用控制权限通知消息;
所述服务器还用于发送所述应用控制权限通知消息给第一终端, 以便于在所述应用控制权限通知消息授予第一终端应用控制权限时, 第一终端控制所述为第二终端提供在线应用服务的应用。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
ES12830613.1T ES2606827T3 (es) | 2011-09-09 | 2012-07-13 | Método, dispositivo y sistema de utilización compartida en tiempo real |
EP12830613.1A EP2738998B1 (en) | 2011-09-09 | 2012-07-13 | Real-time sharing method, device and system |
US14/197,415 US9553826B2 (en) | 2011-09-09 | 2014-03-05 | Real-time sharing method, apparatus and system |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110268467.0A CN103001982B (zh) | 2011-09-09 | 2011-09-09 | 一种实时共享方法、装置及系统 |
CN201110268467.0 | 2011-09-09 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/197,415 Continuation US9553826B2 (en) | 2011-09-09 | 2014-03-05 | Real-time sharing method, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013034031A1 true WO2013034031A1 (zh) | 2013-03-14 |
Family
ID=47831509
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/078608 WO2013034031A1 (zh) | 2011-09-09 | 2012-07-13 | 一种实时共享方法、装置及系统 |
Country Status (5)
Country | Link |
---|---|
US (1) | US9553826B2 (zh) |
EP (1) | EP2738998B1 (zh) |
CN (1) | CN103001982B (zh) |
ES (1) | ES2606827T3 (zh) |
WO (1) | WO2013034031A1 (zh) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104320431A (zh) * | 2014-09-24 | 2015-01-28 | 北京云巢动脉科技有限公司 | 一种移动终端与虚拟机数据共享的方法 |
CN105530280A (zh) * | 2014-10-23 | 2016-04-27 | 中兴通讯股份有限公司 | 内容分享的方法及装置 |
US10176008B2 (en) * | 2016-05-19 | 2019-01-08 | Airwatch, Llc | Loading and running virtual working environments in a mobile device management system |
CN108156128A (zh) * | 2017-01-03 | 2018-06-12 | 中兴通讯股份有限公司 | 一种共享方法、装置及系统 |
CN107276888A (zh) * | 2017-07-06 | 2017-10-20 | 广东欧珀移动通信有限公司 | 数据共享方法和装置、服务器、移动终端以及存储介质 |
US20190019128A1 (en) * | 2017-07-13 | 2019-01-17 | USAOversized.com, LLC | Computer-implemented system and method for managing pilot car escorts for oversized cargo ground shipping |
CN110427749B (zh) * | 2019-08-07 | 2022-03-01 | 连尚(新昌)网络科技有限公司 | 一种服务的实现方法、设备和计算机存储介质 |
CN113326498B (zh) * | 2020-02-28 | 2023-11-17 | 华为技术有限公司 | 权限复用方法、基于权限复用的资源访问方法及相关设备 |
CN112347439B (zh) * | 2020-11-11 | 2023-04-11 | 西安万像电子科技有限公司 | 访客登录访问的方法和访客登录访问的系统 |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1774707A (zh) * | 2003-05-22 | 2006-05-17 | 思科技术公司 | 对等动态网页共享 |
CN102165723A (zh) * | 2008-09-26 | 2011-08-24 | 皇家飞利浦电子股份有限公司 | 用于在两个设备之间进行通信的方法和设备 |
Family Cites Families (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6594688B2 (en) * | 1993-10-01 | 2003-07-15 | Collaboration Properties, Inc. | Dedicated echo canceler for a workstation |
US6911987B1 (en) | 1995-07-05 | 2005-06-28 | Microsoft Corporation | Method and system for transmitting data for a shared application |
EP1018689A3 (en) * | 1999-01-08 | 2001-01-24 | Lucent Technologies Inc. | Methods and apparatus for enabling shared web-based interaction in stateful servers |
GB2350973A (en) * | 1999-06-11 | 2000-12-13 | Nokia Mobile Phones Ltd | Simultaneously fetching page content and link content in a mobile web browser |
JP4282207B2 (ja) * | 2000-05-31 | 2009-06-17 | 日本電気株式会社 | サーバ装置、クライアント装置、クライアントサーバ通信システム及びそれらに用いるサーバ特定方式 |
US20040225716A1 (en) * | 2000-05-31 | 2004-11-11 | Ilan Shamir | Methods and systems for allowing a group of users to interactively tour a computer network |
US20030145062A1 (en) * | 2002-01-14 | 2003-07-31 | Dipanshu Sharma | Data conversion server for voice browsing system |
JP2005070974A (ja) * | 2003-08-21 | 2005-03-17 | Seiko Epson Corp | 印刷管理装置および印刷管理方法並びにプログラム |
US7656880B1 (en) * | 2004-06-09 | 2010-02-02 | Verizon Laboratories Inc. | Prioritized segmentation and reassembly methods and systems |
EP2323457B1 (en) * | 2004-12-03 | 2014-11-05 | Telecom Italia S.p.A. | Enabling combinational services in a communications network |
US7836192B2 (en) * | 2005-07-15 | 2010-11-16 | Microsoft Corporation | Parental controls for a media console |
US20070260702A1 (en) * | 2006-05-03 | 2007-11-08 | University Of Washington | Web browser architecture for virtual machine access |
JP4176122B2 (ja) | 2006-10-24 | 2008-11-05 | 株式会社東芝 | サーバ端末、画面共有方法およびプログラム |
US20100162129A1 (en) * | 2008-12-19 | 2010-06-24 | Morris Robert P | Methods, Systems, And Computer Program Products For Synchronizing Second Level Resources With First Level Resources Of A Multi-Level Navigation History |
US20130060679A1 (en) * | 2011-09-06 | 2013-03-07 | Rawllin International Inc. | Third-party payments for electronic commerce |
-
2011
- 2011-09-09 CN CN201110268467.0A patent/CN103001982B/zh active Active
-
2012
- 2012-07-13 WO PCT/CN2012/078608 patent/WO2013034031A1/zh active Application Filing
- 2012-07-13 EP EP12830613.1A patent/EP2738998B1/en active Active
- 2012-07-13 ES ES12830613.1T patent/ES2606827T3/es active Active
-
2014
- 2014-03-05 US US14/197,415 patent/US9553826B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1774707A (zh) * | 2003-05-22 | 2006-05-17 | 思科技术公司 | 对等动态网页共享 |
CN102165723A (zh) * | 2008-09-26 | 2011-08-24 | 皇家飞利浦电子股份有限公司 | 用于在两个设备之间进行通信的方法和设备 |
Non-Patent Citations (1)
Title |
---|
See also references of EP2738998A4 * |
Also Published As
Publication number | Publication date |
---|---|
ES2606827T3 (es) | 2017-03-28 |
CN103001982A (zh) | 2013-03-27 |
US9553826B2 (en) | 2017-01-24 |
EP2738998A4 (en) | 2014-12-03 |
EP2738998A1 (en) | 2014-06-04 |
US20140189133A1 (en) | 2014-07-03 |
EP2738998B1 (en) | 2016-09-14 |
CN103001982B (zh) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2013034031A1 (zh) | 一种实时共享方法、装置及系统 | |
WO2016184267A1 (zh) | 提供指定通信服务的方法、装置、终端和系统 | |
WO2020020068A1 (zh) | 授权登录的实现方法、装置、设备、系统、平台和存储介质 | |
EP3005650B1 (en) | Maintaining video conference session continuity during transfer of session to alternative device | |
TWI622926B (zh) | 行動運算裝置技術及使用該技術的系統 | |
KR101657914B1 (ko) | 미디어 스트림 공유 방법 및 단말기 | |
US11457057B2 (en) | Systems and methods for establishing highly secure and resilient persistent communication connections | |
KR20160063343A (ko) | 디바이스 페어링 | |
JP2014514624A5 (zh) | ||
WO2015180192A1 (zh) | 一种网络连接方法、热点终端和管理终端 | |
WO2014075250A1 (zh) | 网页实时通信通话转移方法及装置 | |
AU2013205066A1 (en) | Access controls for comunication sessions | |
CN107077436A (zh) | 向主机设备计算环境借出目标设备资源 | |
EP2945337A2 (en) | Method, system and server for service switching | |
JP2007310512A (ja) | 通信システム、サービス提供サーバおよびユーザ認証サーバ | |
JP2014534515A (ja) | ユーザーのアクセス許可の方法、システム、クライアントおよびサーバ | |
CN106105158B (zh) | 用于在搜索者装置与目标装置之间建立连接的方法和系统 | |
WO2017092311A1 (zh) | 视频数据的获取方法、装置及系统 | |
JP2014534515A5 (zh) | ||
CN106559787B (zh) | 网络接入方法、装置及系统 | |
WO2015143803A1 (zh) | 访问控制方法和装置 | |
TW201730739A (zh) | 資訊交互方法和裝置 | |
WO2023246927A1 (zh) | 云桌面系统、网络重定向方法、设备及存储介质 | |
CN114760346A (zh) | 一种设备切换方法、装置、系统及电子设备 | |
WO2018179880A1 (ja) | 動画コンテンツ制御システム、方法およびプログラム |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12830613 Country of ref document: EP Kind code of ref document: A1 |
|
REEP | Request for entry into the european phase |
Ref document number: 2012830613 Country of ref document: EP |
|
NENP | Non-entry into the national phase |
Ref country code: DE |