WO2023093452A1 - Resource interaction method and apparatus, and terminal and storage medium - Google Patents

Resource interaction method and apparatus, and terminal and storage medium Download PDF

Info

Publication number
WO2023093452A1
WO2023093452A1 PCT/CN2022/128064 CN2022128064W WO2023093452A1 WO 2023093452 A1 WO2023093452 A1 WO 2023093452A1 CN 2022128064 W CN2022128064 W CN 2022128064W WO 2023093452 A1 WO2023093452 A1 WO 2023093452A1
Authority
WO
WIPO (PCT)
Prior art keywords
interaction
resource
target
application
sharing
Prior art date
Application number
PCT/CN2022/128064
Other languages
French (fr)
Chinese (zh)
Inventor
杨俊拯
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023093452A1 publication Critical patent/WO2023093452A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular to a resource interaction method, device, terminal, and storage medium.
  • the user before using the application, the user first needs to download the application installation package from the application store, and install the application in the terminal by parsing the application installation package, and then click the application icon to start the application.
  • the user shares the application with other devices it means sharing the download path of the application installation package with other devices, or sending the data of the application installation package to other devices.
  • the shared device needs to download and install the application according to the download path of the application installation package or the data of the application installation package before using it.
  • Embodiments of the present application provide a resource interaction method, device, terminal, and storage medium. Described technical scheme is as follows:
  • the embodiment of the present application provides a resource interaction method, the method includes:
  • the resource interaction data is generated by the resource interaction initiating device when receiving a resource interaction trigger operation for the target application, the resource interaction trigger operation includes at least one of a sharing operation and a sharing operation;
  • the target application is an application for resource interaction
  • the target interaction device is at least one device for resource interaction
  • a target interaction resource at the target interaction device is invoked by the target application.
  • an embodiment of the present application provides a resource interaction method, the method including:
  • the interaction participating device In response to the resource invocation request of the interaction participating device, provide the target interaction resource to the interaction participating device. After the resource invoking request is determined by the interaction participating device based on the resource interaction data to determine the target application and the target interaction device, through the sent by the target application.
  • an embodiment of the present application provides a resource interaction device, the device includes:
  • An acquisition module configured to acquire resource interaction data, which is generated by the resource interaction initiating device when receiving a resource interaction trigger operation on the target application;
  • a determining module configured to determine the target application and the target interaction device based on the resource interaction data, the target application is an application for resource interaction, and the target interaction device is at least one device for resource interaction;
  • a calling module configured to use the target application to call the target interaction resource on the target interaction device.
  • an embodiment of the present application provides a resource interaction device, the device includes:
  • a first generation module configured to generate resource interaction data in response to a resource interaction trigger operation on the target application
  • a providing module configured to provide a target interaction resource to the interaction participation device in response to a resource invocation request of the interaction participation device, and the resource invocation request is determined by the interaction participation device based on the resource interaction data to determine a target application and a target interaction device, sent through the target application.
  • an embodiment of the present application provides a terminal, the terminal includes a processor and a memory, at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to implement the above-mentioned The resource interaction method described in the aspect.
  • an embodiment of the present application provides a computer-readable storage medium, at least one program is stored in the readable storage medium, and the at least one program is loaded and executed by a processor to implement the above-mentioned Resource interaction methods.
  • an embodiment of the present application provides a computer program product, the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; the processor of the terminal reads the computer program from the computer-readable storage medium. Instructions, the processor executes the computer instructions, so that the terminal executes the resource interaction method provided in the above aspects.
  • FIG. 1 shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application
  • FIG. 2 shows a flowchart of a resource interaction method provided by an exemplary embodiment of the present application
  • FIG. 3 shows a flowchart of a resource interaction method provided by another exemplary embodiment of the present application
  • FIG. 4 shows a schematic diagram of an application manager interface provided by an exemplary embodiment of the present application
  • Fig. 5 shows a schematic diagram of an application manager interface provided by another exemplary embodiment of the present application
  • Fig. 6 shows a schematic diagram of an application manager interface provided by another exemplary embodiment of the present application.
  • Fig. 7 shows a schematic diagram of an interface for sharing resources through graphic codes provided by an exemplary embodiment of the present application
  • Fig. 8 shows a schematic diagram of an interface for sharing resources through interactive links provided by an exemplary embodiment of the present application
  • Fig. 9 shows a schematic diagram of an interface for sharing resources through near-field communication provided by an exemplary embodiment of the present application.
  • Fig. 10 shows a schematic structural diagram of a device selector provided by an exemplary embodiment of the present application
  • Fig. 11 shows a flowchart of a resource interaction method provided by another exemplary embodiment of the present application.
  • Fig. 12 shows a schematic diagram of an interface for canceling resource sharing provided by an exemplary embodiment of the present application
  • Fig. 13 shows a flowchart of a resource interaction method provided by another exemplary embodiment of the present application.
  • Fig. 14 shows a schematic diagram of the principle of device-level resource sharing provided by an exemplary embodiment of the present application
  • Fig. 15 shows a schematic diagram of the principle of user-level resource sharing provided by an exemplary embodiment of the present application
  • Fig. 16 shows a flowchart of a resource interaction method provided by another exemplary embodiment of the present application.
  • Fig. 17 shows a schematic diagram of an interface for creating a sharing group provided by an exemplary embodiment of the present application
  • Fig. 18 shows a flowchart of a resource interaction method provided by another exemplary embodiment of the present application.
  • Fig. 19 shows a schematic diagram of an interface for joining a sharing group provided by an exemplary embodiment of the present application
  • Fig. 20 shows a schematic diagram of an interface of collaborative drawing board application resource sharing provided by an exemplary embodiment of the present application
  • Fig. 21 shows a schematic diagram of the principle of device-level resource sharing provided by an exemplary embodiment of the present application
  • Fig. 22 shows a schematic diagram of the principle of user-level resource sharing provided by an exemplary embodiment of the present application
  • Fig. 23 shows a schematic diagram of an interface for disbanding a sharing group provided by an exemplary embodiment of the present application
  • Fig. 24 shows a schematic diagram of an interface for removing shared members provided by an exemplary embodiment of the present application
  • Fig. 25 shows a schematic diagram of an interface for exiting a sharing group provided by an exemplary embodiment of the present application
  • Fig. 26 shows a structural block diagram of a resource interaction device provided by an exemplary embodiment of the present application
  • Fig. 27 shows a structural block diagram of a resource interaction device provided by another exemplary embodiment of the present application.
  • Fig. 28 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
  • the "plurality” mentioned herein means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
  • the character “/” generally indicates that the contextual objects are an "or” relationship.
  • Micro-application that is, the target application in the embodiment of this application.
  • Micro-application can be regarded as a collection composed of services, and is used to implement specific business logic through calls between services.
  • the services of micro-apps can be services on different operating systems, that is, micro-apps support heterogeneous operating systems and can run across platforms.
  • micro-apps adopt a subscription mechanism and are bound to users. This microapp can be used. Different from traditional applications that need to download and install the application installation package before running, for example, before running an Android application, you need to download the apk package. Before running a micro application, you only need to download the corresponding application script. The engine executes the application script to realize application functions. Compared with traditional applications, application scripts have a lower code volume, so they occupy less storage space and are conducive to dynamic deployment and updates.
  • the screen capture service is used to realize the screen capture function of the device
  • the screen projection service is used to realize the screen projection of the display screen between devices, and so on.
  • the service invoked during the running of the micro-application may be a service on the current device or a service on other devices.
  • all the services used in the running process need to be pre-installed locally.
  • the services in the micro-application support dynamic deployment, that is, during the running process Based on the business logic executed by the current device, the service corresponding to the business logic is dynamically deployed to the current device.
  • the application function of the same micro-application is implemented by multiple devices, since the business logic of different devices may be different, the services deployed on different devices may also be different, that is, the services in the micro-application have the characteristics of differential deployment.
  • the services constituting the micro-application may include static services and dynamic services, where static services refer to services provided by the host application and need to be pre-installed in the device, while dynamic services refer to services that support dynamic deployment
  • static services refer to services provided by the host application and need to be pre-installed in the device
  • dynamic services refer to services that support dynamic deployment
  • the service can be dynamically deployed in the device during the running of the micro application.
  • resources in this application include file resources, hardware resources and service resources.
  • File resources are resources that exist in the form of files, such as pictures, videos, audios, word documents, and table files.
  • Hardware resources refer to the hardware capabilities of the device, such as the camera's ability to take pictures and record images, and the computing power of the CPU (Central Processing Unit, central processing unit).
  • CPU Central Processing Unit, central processing unit
  • Service resources are the screen capture service, screen projection service, local search service, navigation service, etc. mentioned above.
  • FIG. 1 shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application.
  • the implementation environment includes a first terminal 111, a second terminal 112, a third terminal 121, and a fourth terminal 122, the first terminal 111 and the second terminal 112 are logged in with the first user account 110, the third terminal 121, and the fourth terminal 122
  • a second user account 120 is logged in, and the implementation environment further includes a server 130 .
  • the target application 140 is bound to the first user account 110 and the second user account 120 respectively, that is, any terminal under the first user account 110 or the second user account 120 subscribes to the target application 140 , then other terminals under the first user account 110 or the second user account 120 also subscribe to the target application 140 , so the first terminal 111 , the second terminal 112 , the third terminal 121 and the fourth terminal 122 all subscribe to the target application 140 .
  • the target application 140 can be regarded as a collection of various resources.
  • the resources can be file resources such as pictures, files, and videos, or service resources such as screenshot services and screen projection services, or can be the camera's ability to take pictures and the computing power of the CPU. Capabilities and other hardware resources are not limited in this embodiment of the present application.
  • the target application 140 may be a photo album application, a multi-device screenshot application, a game screen projection application, a collaborative drawing board application, etc., which is not limited in this embodiment of the present application.
  • different applications correspond to different resource types.
  • the photo album application corresponds to file resources such as pictures and videos
  • the multi-device screenshot application and game screen projection application correspond to service resources such as screenshot service and screen projection service.
  • the first user account 110 also includes other terminals.
  • the embodiment of the present application only uses the first terminal 111 and the second terminal 112 as examples.
  • the second user account 120 also includes other terminals.
  • the embodiment of the present application only The third terminal 121 and the fourth terminal 122 are used as examples for illustration.
  • the device types of the first terminal 111, the second terminal 112, the third terminal 121 and the fourth terminal 122 are the same or different. (Moving Picture Experts Group Audio Layer III, MP3) player, Moving Picture Experts Group Audio Layer IV (MP4) player, laptop computer, desktop computer, smart home, smart wearable Equipment and so on at least one.
  • MP3 Moving Picture Experts Group Audio Layer III
  • MP4 Moving Picture Experts Group Audio Layer IV
  • the first terminal 111 , the second terminal 112 , the third terminal 121 , the fourth terminal 122 and other terminals are connected to the server 130 through a wireless network or a wired network.
  • the server 130 may be at least one of a server, a server cluster composed of multiple servers, a cloud computing platform, and a virtualization center.
  • the server 130 is deployed with the following modules: user management 131 , device group management 132 , sharing group management 133 and resource gateway management 134 .
  • the user management 131 is used to manage user account information
  • the device group management 132 is used to manage all device information corresponding to the user account.
  • the sharing group management 133 is used to manage devices or user accounts in the sharing group when sharing resources.
  • the resource gateway management 134 is used to manage the mapping relationship between the device and the resource gateway, and is used to realize the resource calling of the application.
  • sharing or sharing of resources can be realized between different terminals and different users.
  • sharing means that the sharing party shares resources with the shared party, and the shared party can call the resources of the sharing party.
  • the sharing party and the shared party may be terminals, and the terminals may be different terminals under the same user account, or different terminals under different user accounts, for example, the sharing party and the shared party It may be any two terminals among the first terminal 111 , the second terminal 112 , the third terminal 121 and the fourth terminal 122 .
  • description is made by taking the first terminal 111 as the sharing party and the third terminal 121 as the shared party as an example.
  • the third terminal 121 can call the resource corresponding to the target application 140 in the sharing party's first terminal 111 .
  • the sharing party and the shared party may be different users.
  • the first user account 110 is used as the sharer
  • the second user account 120 is used as the shared party for illustration. Any terminal under the second user account 120 can call resources corresponding to the target application 140 in all terminals under the first user account 110, for example, a third terminal 121 under the second user account 120 can call resources under the first user account 110. Resources corresponding to the target application 140 in the first terminal 111 and the second terminal 112 .
  • sharing means that multiple sharing members are associated together to form a sharing group, and all sharing members in the same group can call resources of other members mutually.
  • the sharing group members may be terminals, for example, the sharing members may be at least two terminals among the first terminal 111 , the second terminal 112 , the third terminal 121 and the fourth terminal 122 .
  • the first terminal 111 , the second terminal 112 and the third terminal 121 form a sharing group, and all terminals can mutually invoke resources corresponding to the target application 140 in other terminals.
  • the first terminal 111 may call the second terminal 112 and the third terminal 121 and include its own resources corresponding to the target application 140 , and the same is true for the second terminal 112 and the third terminal 121 .
  • the members of the sharing group may also be different users.
  • the first user account 110 and the second user account 120 form a sharing group
  • the members in the sharing group include all terminals under the first user account 110 and the second user account 120, that is to say, all terminals in the sharing group
  • the members are the first terminal 111 , the second terminal 112 , the third terminal 121 and the fourth terminal 122 , and all terminals can call resources corresponding to the target application 140 in other terminals.
  • the first terminal 111 can call the second terminal 112, the third terminal 121, the fourth terminal 122 and resources corresponding to the target application 140 in itself; the second terminal 112 can call the first terminal 111, the third terminal 121, The fourth terminal 122 also includes its own resources corresponding to the target application 140 . Similarly, the same is true for the third terminal 121 and the fourth terminal 122 .
  • a resource interaction method is described by taking a resource interaction initiating device and an interaction participating device as examples.
  • the resource interaction initiating device and the interaction participating device may be a smart phone, a TV, a personal computer (Personal Computer, PC), a smart wearable device, a smart home, etc., which are not limited in this embodiment of the present application.
  • the resource interaction initiating device and the interaction participating device may be different devices of the same user, or may be different devices of different users, which is not limited in this embodiment of the present application.
  • FIG. 2 shows a flowchart of a resource interaction method provided by an exemplary embodiment of the present application, the method including:
  • Step 210 in response to a resource interaction trigger operation on the target application, the resource interaction initiating device generates resource interaction data.
  • the resource interaction initiating device subscribes to a target application, and the resource interaction initiating device generates resource interaction data when receiving a user's resource interaction trigger operation on the target application.
  • the target application may be a micro application.
  • the target application may be a photo album application, a multi-device screenshot application, a game viewing application, a collaborative drawing board application, etc., which is not limited in this embodiment of the present application.
  • the resource interaction trigger operation may be a sharing operation.
  • the sharing operation may be a click operation, a long press operation, etc. of a share button on the target application interface, which is not limited in this embodiment of the present application.
  • sharing means that the way of resource interaction is one-way.
  • the device was unable to invoke the resource of an interactive participating device.
  • the resource interaction trigger operation may be a sharing operation.
  • the sharing operation may be a click operation, a long press operation, etc. on the share button of the target application interface, which is not limited in this embodiment of the present application.
  • sharing means that resource interaction is bidirectional, that is, the resource interaction initiating device shares the interaction resources with the interaction participating devices, and the interaction participating device and the resource interaction initiating device can call each other's resources.
  • the resource interaction data carries identification information, which at least includes a target application identification, so that the resource interaction initiating device and the interaction participating device can perform resource interaction.
  • the resource interaction data generated under different resource interaction trigger operations are different, that is to say, the resource interaction initiating device generates different resource interaction data when the target application is respectively subjected to a sharing operation and a sharing operation.
  • step 220 the interaction participating device acquires resource interaction data.
  • the resource interaction initiating device may send the resource interaction data, and the interaction participating device may obtain the resource interaction data.
  • the interaction participating device obtains it from the resource interaction initiating device.
  • Step 230 the interaction participating device determines a target application and a target interaction device based on the resource interaction data, the target application is an application for resource interaction, and the target interaction device is at least one device for resource interaction.
  • the resource interaction data includes identification information for determining the target application and the target interaction device, and the interaction participating device determines the target application and the target interaction device based on the identification information.
  • the number of target interaction devices may be one or more, which is not limited in this embodiment of the present application.
  • the target interaction devices may be different devices under the same user, or different devices under different users, which is not limited in this embodiment of the present application.
  • the resource interaction initiating device is one of the target interaction devices.
  • the target interaction device is used as an example for illustration.
  • Step 240 after the interaction participating device determines the target application and the target interaction device based on the resource interaction data, it sends a resource call request through the target application.
  • the interaction participating device After the interaction participating device determines the target application and the target interaction device, it sends a resource invocation request to the resource interaction initiating device.
  • the resource invocation request is used to invoke the target interaction resource on the target interaction device.
  • the target interaction resource is determined according to the business logic of the target application, that is, the resources needed to realize the application function of the target application.
  • Step 250 in response to the resource invocation request of the interaction participating device, the resource interaction initiating device provides the target interaction resource to the interaction participating device.
  • the resource interaction initiating device After receiving the resource invocation request of the interaction participant device, the resource interaction initiating device provides the target interaction resource to the interaction participant device.
  • the target interaction resource may be a file resource, a hardware resource, a service resource, etc., which is not limited in this embodiment of the present application.
  • the file resource may be a picture, video, audio, word document, form file, etc., which is not limited in this embodiment of the present application.
  • the hardware resource may be a camera's photographing capability, imaging capabilities, various sensor capabilities, hardware computing capabilities, etc., which are not limited in this embodiment of the present application.
  • the service resource may be a screenshot service, a local search service, a video playback service, a navigation service, a screen projection service, etc., which are not limited in this embodiment of the present application.
  • target applications correspond to different target interaction resources.
  • the target application is a photo album application
  • its corresponding target interactive resources are pictures and videos, which are one type of file resources; , which is a type of hardware resource
  • the target application is a screen capture service application
  • its corresponding target interaction resource is a screen capture service, which is a type of service resource.
  • Step 260 the interaction participating device invokes the target interaction resource on the target interaction device through the target application.
  • the interaction participating device invokes the target interaction resource at the target interaction device through its target application.
  • the interactive participating device sends a call request to the target interactive device through the target application, requesting to call the target interactive resource, and the target interactive device locally calls the target interactive resource, and feeds back the calling result to the interactive participating device.
  • the interactive participating device sends a call request to the target interactive device through the photo album application, requesting to call the photo resource of the photo album application, and the target interactive device calls its local photo resource, and feeds back the photo resource to the interactive participating device.
  • the resource interaction initiating device based on the sharing or sharing operation of the target application, the resource interaction initiating device generates resource interaction data, and the interaction participating device determines the target application and the target interaction device based on the obtained resource interaction data, and then from A target interaction resource at the target interaction device is invoked by the target application.
  • the object to be shared and shared is not the target application itself, but the resource corresponding to the target application.
  • other devices can call the corresponding resources through the target application, thereby realizing the target application function.
  • the target application can not only use the resources of the current device, but also call the resources of other devices, realize the distributed call of resources, and then realize more types of application functions.
  • determining the target application and the target interaction device based on the resource interaction data includes:
  • the target interaction device is determined through the application manager and the device selector.
  • the resource interaction data includes the target application identifier and the sharing party identifier
  • determine the target interaction device through the application manager and device selector, including:
  • the target interactive device is determined through the application manager and the device selector.
  • the target interactive device is determined through the application manager and the device selector, including:
  • the application manager determines the device represented by the device ID as a candidate interactive device; or,
  • the sharing party ID is the user ID
  • at least one device ID corresponding to the user ID is acquired through the application manager, and the device represented by the device ID is determined as a candidate interactive device
  • the target interaction device is determined from candidate interaction devices through a device selector, including:
  • a device selection list is displayed based on the candidate interaction devices; and a candidate interaction device selected in the device selection list is determined as a target interaction device through a device selector.
  • the resource interaction data also includes a sharing instance identifier
  • the target application invokes the target interactive resource at the target interactive device, and the target interactive device is used to verify the authority of the shared instance identifier and provide the target interactive resource when the shared instance identifier passes the authority verification.
  • the resource interaction data includes a target application identifier and a sharing group identifier
  • determine the target interaction device through the application manager and device selector, including:
  • Methods also include:
  • the target interaction resource is provided to the target interaction device.
  • the target interaction device is determined through the application manager and the device selector, including:
  • the application manager determines the candidate interactive devices in the sharing group, including:
  • the device characterized by the device identification as a candidate interactive device, where the device identification is included in the sharing group; or,
  • the sharing group contains the user identifier
  • at least one device identifier corresponding to the user identifier is acquired through the application manager, and the device represented by the device identifier is determined as a candidate interactive device.
  • the target interaction device is determined from candidate interaction devices through a device selector, including:
  • a device selection list is displayed based on the candidate interaction devices; and a candidate interaction device selected in the device selection list is determined as a target interaction device through a device selector.
  • the method also includes:
  • the application manager In the case of receiving the removal message, the application manager exits the sharing group, and the removal message is used to indicate that the sharing group is removed.
  • calling the target interaction resource at the target interaction device through the target application includes:
  • the target application accesses the target resource gateway to obtain the target interaction resource.
  • obtain resource interaction data including:
  • the target interaction resources include at least one of file resources, hardware resources and service resources.
  • generating resource interaction data in response to resource interaction trigger operations on the target application including:
  • resource interaction data is generated through an application manager, and the application manager is used to manage resource interaction of different applications;
  • the target interaction resource is provided to the interactive participating device through the resource gateway, and the resource gateway is used to manage resource invocation in the device.
  • the resource interaction data is generated by the application manager, including:
  • resource interaction data including the target application identifier and the sharing party identifier are generated through the application manager.
  • the resource interaction data including the target application identifier and the sharing party identifier is generated through the application manager, including:
  • the resource interaction data including the target application ID and the user ID are generated through the application manager, and the user ID is used to represent the user corresponding to the sharing party.
  • the resource interaction data also includes a sharing instance identifier
  • the target interaction resource is provided to the interaction participating device.
  • the method also includes:
  • the sharing instance identifier is deleted.
  • the resource interaction data is generated by the application manager, including:
  • Methods also include:
  • the target interaction resource at the interaction participating device is invoked by the target application.
  • the method also includes:
  • the server In response to the device-level sharing operation on the target application, sending a first sharing group creation request to the server, the first sharing group creation request includes a device identifier, and the server is used to create a sharing group composed of devices based on the first sharing group creation request;
  • a second sharing group creation request is sent to the server, the second sharing group creation request includes a user identifier, and the server is used to create a sharing group composed of users based on the second sharing group creation request.
  • the method also includes:
  • a sharing group disbanding instruction is sent to the server, so that the server disbands the sharing group based on the sharing group disbanding instruction, and deletes the sharing group identifier.
  • the method also includes:
  • a removal instruction is sent to the server, so that the server updates the sharing group based on the removal instruction, and synchronizes the update result to the sharing parties in the sharing group, and the removal instruction includes the interactive participation device to be removed.
  • the method also includes:
  • the exit message sent by the server is received, and the exit message is triggered by an interactive participating device that actively exits the sharing group.
  • the method also includes:
  • a gateway address update message is sent to the server, so that the server can synchronize the updated gateway address to the device selector of other devices, and the device selector stores the information between the device identifier and the gateway address. Mapping relations.
  • the method includes:
  • the target interaction resources include at least one of file resources, hardware resources and service resources.
  • the target application is determined by the application manager
  • the target interaction device is determined by the application manager and the device selector
  • the target interaction resource on the target interaction device is invoked by the resource gateway.
  • the resource interaction method is introduced below by taking the resource interaction initiating device and the interaction participating device as examples. Please refer to FIG. 3 , which shows a flow chart of a resource interaction method provided by another exemplary embodiment of the present application, and the method includes:
  • Step 310 in response to a resource interaction trigger operation on the target application, the resource interaction initiating device generates resource interaction data through an application manager, and the application manager is used to manage resource interaction of different applications.
  • the resource interaction initiating device is deployed with an application manager, and the application manager is used to manage applications and implement resource interaction between the resource interaction initiating device and the interaction participating devices.
  • the application manager may be an application with a UI (User Interface, user interface).
  • UI User Interface, user interface
  • the application manager may be a super application
  • the super application may be a client software that manages various applications. Users can subscribe or unsubscribe applications in the super application. The user may also select a target application in the super application, and perform a sharing operation or sharing operation on the target application.
  • the super application includes an application list interface 41 and an application details interface 42 .
  • the application list interface 41 displays the different applications that the user has subscribed to.
  • the user clicks on application A43, and the resource interaction initiating device receives the user's trigger operation on application A43 and enters the application details interface 42.
  • the application details interface 42 includes a share button 421 and a share button 422. Or by clicking the sharing button 422, the super application generates resource interaction data.
  • the application manager can be implemented in the application icon option.
  • the application icon option Exemplarily, as shown in FIG. 5 , with application A as the target application, the user presses and holds the icon of application A52, and the resource interaction initiating device receives the user's trigger operation on application A52, and an operation option interface 51 pops up, and the operation option interface 51 includes The sharing button 511 and the sharing button 512 , through the click operation of the sharing button 511 and the sharing button 512 , the super application generates resource interaction data.
  • the resource interaction initiating device receives the user's trigger operation on application A62, and the interface of application A62 pops up a sharing and sharing operation interface 61, sharing and sharing
  • the operation interface 61 includes a sharing button 611 and a sharing button 612 , and by clicking on the sharing button 611 or the sharing button 612 , the super application generates resource interaction data.
  • step 311 the resource interaction initiating device generates a graphic code based on the resource interaction data; or, generates an interaction link based on the resource interaction data; or, sends the resource interaction data through near field communication.
  • the resource interaction initiating device After the user performs a resource interaction trigger operation on the target application, the resource interaction initiating device generates a graphic code, and the graphic code includes resource interaction data.
  • the graphic code may be a two-dimensional code, a barcode, etc., which is not limited in this embodiment of the present application.
  • FIG. 7 Take the photo album application as the target application and the application manager as the super application as an example.
  • the user 76 clicks the photo album application 711 on the application list interface 71 of the super application, and the resource interaction initiating device receives the trigger operation of the user 76 on the photo album application 711, and enters the application details interface 72, which includes the sharing button 721 and the sharing button 722 .
  • the user 76 clicks the sharing button 721 , and the resource interaction initiating device receives the trigger operation of the sharing button 721 by the user 76 , generates resource interaction data through the super application, and displays the sharing mode interface 73 .
  • the user clicks the two-dimensional code sharing button 731, and the resource interaction initiating device receives the user's trigger operation on the two-dimensional code sharing button 731, and generates a two-dimensional code 74, which contains resource interaction data.
  • the resource interaction initiating device after the user performs a resource interaction trigger operation on the target application, the resource interaction initiating device generates an interaction link, and the interaction link includes resource interaction data.
  • the interactive link may be a text message link, a WeChat link, etc., which is not limited in this embodiment of the present application.
  • FIG. 8 take the game spectator application as the target application and the application manager as the super application as an example.
  • the user 86 clicks the game spectator application 811 on the application list interface 81 of the super application, and the resource interaction initiating device receives the trigger operation of the user 86 on the game spectator application 811, and enters the application details interface 82, which includes a share button 821 and a share button 821. Key 823.
  • the user 86 clicks the sharing button 821 , and the resource interaction initiating device receives the trigger operation of the user 86 on the sharing button 821 , generates resource interaction data through the super application, and displays the sharing mode interface 83 .
  • the user 86 clicks the SMS sharing button 831, and the resource interaction initiating device receives the trigger operation of the user 86 on the SMS sharing button 831, and generates a SMS link 84, which contains resource interaction data.
  • the resource interaction initiating device sends an NFC (Near Field Communication, near field communication) signal, and the NFC signal carries resource interaction data.
  • NFC Near Field Communication, near field communication
  • FIG. 9 Take a multi-device screen capture application as a target application, and an application manager as a super application as an example.
  • the user 94 clicks the multi-device screenshot application 911 on the application list interface 91 of the super application, and the resource interaction initiating device receives the trigger operation of the user 94 on the multi-device screenshot application, and enters the application details interface 92, which includes a share button 921 and Share button 922 .
  • the user 94 clicks the sharing button 921 , and the resource interaction initiating device receives the trigger operation of the user 94 on the sharing button 921 , generates resource interaction data through the super application, and displays the sharing mode interface 93 .
  • the user 94 clicks the touch share button 931 , and the resource interaction initiating device receives the trigger operation of the user 94 on the touch share button 931 , and at the same time sends out an NFC signal, which contains resource interaction data.
  • step 312 the interaction participating device parses the graphic code to obtain the resource interaction data; or, parses the interaction link to obtain the resource interaction data; or, receives the resource interaction data through near-field communication.
  • the interaction participating device obtains the resource interaction data by analyzing the graphic code generated by the resource interaction initiating device.
  • the resource interaction initiating device generates a two-dimensional code 74, which contains resource interaction data
  • the user 77 interacts with the scan control in the application list interface 75 of the super application in the device.
  • 751 scans the two-dimensional code 74
  • the interactive participation device parses the two-dimensional code 74 to obtain resource interaction data.
  • the interaction participating device obtains the resource interaction data by analyzing the interaction link sent by the resource interaction initiating device.
  • the resource interaction initiating device generates a short message link 84 and sends the short message link 84 to the interaction participating device, and the short message link 84 contains resource interaction data.
  • the interaction participation device receives the SMS link 84 , and when the user 87 clicks the SMS link 84 , the interaction participation device parses the SMS link 84 to obtain resource interaction data.
  • the interaction participating device receives the NFC signal sent by the resource interaction initiating device to obtain the resource interaction data.
  • the resource interaction initiating device generates resource interaction data through the super application, and sends out an NFC signal, which contains the resource interaction data, and the interaction participating device receives the NFC signal sent by the resource interaction initiating device.
  • the resource interaction data To resource interaction data.
  • Step 313 based on the resource interaction data, the interaction participating device determines the target application through the application manager, and starts the target application.
  • the application manager is used to manage resource interaction of different applications.
  • the interaction participating device is deployed with an application manager, and the application manager is used to manage subscribed applications in the interactive participating device. Since the resource interaction data carries identification information, wherein the identification information includes at least the target application identification, the interaction participation device determines the target application through the application manager based on the target application identification in the resource interaction data, and starts the target application in the interaction participation device. application.
  • the interaction participating device parses the resource interaction data from the two-dimensional code 74, and based on the target application identifier in the resource interaction data, determines that the target application is the photo album application 78 through the super application of the interaction participating device. And launch photo album application 78.
  • the interaction participating device parses the resource interaction data from the SMS link 84, and based on the target application identifier in the resource interaction data, determines that the target application is the game viewing application 85 through the super application of the interaction participating device, and The game viewing application 85 is started.
  • the interaction participating device receives the NFC signal sent by the resource interaction initiating device, obtains resource interaction data from the NFC signal, and determines the resource interaction data based on the target application identifier in the resource interaction data through the super application of the interaction participating device.
  • the target application is the multi-device screenshot application 95, and the multi-device screenshot application 95 is started.
  • Step 314 based on the resource interaction data, the interaction participant device determines the target interaction device through the application manager and the device selector.
  • the device selector determines a target interaction device and generates a target resource gateway address of the target interaction device.
  • the device selector includes three sub-modules, which are the application device group management sub-module, the device selection policy sub-module and the gateway conversion sub-module.
  • the application device group management sub-module is used to manage the device group range where the target application is currently running, that is to say, the device range where the target application can call resources.
  • the device group scope of the application device group management submodule is not fixed.
  • the device group scope of the application device group management submodule in a default state, is the current device or the devices under the current user account.
  • the default state indicates that the current device or the device under the current user account does not interact with other devices.
  • the interaction participant device when the interaction participant device does not perform resource interaction with the resource interaction initiator device, the device group scope of the application device group management submodule of the interaction participant device is the interaction participant device.
  • the device group range of the application device group management submodule will change, and the device group range is set through the application manager.
  • the target application’s running device includes not only the current device or the device under the current user account, but also the device that interacts with it or the device under the user account, so the device group of the application device group management submodule Ranges are subject to change. Since the application manager is used to manage the resource interaction of the application, the range of the device can be determined through the application manager, so the range of the device group of the application device group management submodule can be determined through the application manager. Exemplarily, when the interaction participating device and the resource interaction initiating device perform resource interaction, the device group scope of the application device group management submodule is set as the interaction participating device and the resource interaction initiating device through the application manager.
  • the device selection strategy sub-module is used to provide multiple device selection strategies, that is, to determine the target interactive devices from the range of device groups managed by the application device group management sub-module and form a list of target interactive devices.
  • the device selection policy may be selecting all devices, selecting the current device, selecting other devices, etc., which is not limited in this embodiment of the present application.
  • selecting other devices refers to selecting all devices other than the current device.
  • the device selection strategy may be to select a specific device, for example, select a mobile phone device, select a television device, etc., which is not limited in this embodiment of the present application.
  • the target application interface has a device selection interface
  • the device selection interface has buttons for different device selection strategies, such as selecting all device buttons, selecting the current device button, selecting other device buttons, or selecting a specific device button, etc. , the user clicks different device selection strategy buttons according to their own needs.
  • the device selection strategy sub-module manages from the application device group management sub-module according to the user's device selection strategy.
  • Target interactive devices are determined in the range of the device group and a list of target interactive devices is formed.
  • the application developers do not need to perceive the equipment and do not need to modify the application. Under such circumstances, the direct sharing of resources between different devices and different users is realized.
  • the gateway converting submodule converts the target interactive device list obtained from the device selection policy submodule into a corresponding target gateway address list.
  • the device selector 1003 includes three submodules, which are respectively a device selection policy submodule 1004 , a gateway conversion submodule 1005 , and an application device group management submodule 1006 .
  • the interaction participating device obtains the resource interaction data, based on the target application identifier of the resource interaction data, the target application 1002 is determined through the application manager 1001, and at the same time, the range of device groups managed by the application device group management submodule 1006 is set through the application manager 1001.
  • the scope of the device group is all the devices currently running on the target application, including not only resource interaction initiating devices and interaction participating devices, but also other devices. These devices can belong to the same user or to different users.
  • the target application 1002 transmits its own device selection policy to the device selection policy submodule 1004, such as selecting all devices. Select the target interactive device in , and generate a list of target interactive devices.
  • Step 315 After the interaction participating device determines the target application and the target interaction device based on the resource interaction data, it sends a resource call request through the target application.
  • Step 315 is the same as step 240, which will not be repeated in this embodiment of the present application.
  • Step 316 In response to the resource invocation request of the interaction participating device, the resource interaction initiating device provides the target interaction resource to the interaction participating device through the resource gateway, and the resource gateway is used to manage resource invocation in the device.
  • a resource gateway is deployed in the resource interaction initiating device.
  • the resource interaction initiating device receives a resource invocation request from the resource interaction initiating device, it invokes the target interaction resource of the local target application through the resource gateway and provides it to the interaction participating device through the resource gateway.
  • the resource gateway is a unified entry gateway for invoking resources on the target interactive device, which supports access to different types of resources.
  • the resource gateway provides a file server to support access to file type resources, such as accessing pictures, videos, word documents and other resources.
  • the resource gateway provides an HTTP (Hyper Text Transfer Protocol, hypertext transfer protocol) server to support calling services on the device through the Restful API.
  • HTTP Hyper Text Transfer Protocol
  • the service may be a screenshot service, a screen projection service, and the like.
  • Step 317 when the gateway address of the resource gateway is updated, the resource interaction initiating device sends a gateway address update message to the server, so that the server can synchronize the updated gateway address to the device selector of other devices, and the device selector stores the device The mapping relationship between the identifier and the gateway address.
  • the resource interaction initiating device when subscribing to a new application or unsubscribing an application on the resource interaction initiating device, the resource interaction initiating device automatically updates the gateway address of the resource gateway, and sends The resource gateway management on the side synchronizes its updated gateway address. In order to ensure the consistency of resource sharing and resource sharing, the resource gateway management will synchronize the updated gateway address to the device selector of other devices. The mapping relationship between the device and the gateway address is stored in the device selector.
  • Step 318 based on the device identifier of the target interaction device, the interaction participant device obtains the address of the target resource gateway of the target interaction device.
  • the target resource gateway address is the gateway address of the resource gateway in the target interaction device, and the resource gateway is used to manage resource calls in the device.
  • resource gateway management is deployed on the server side, which is used to manage the mapping relationship between target interactive devices and resource gateways. That is to say, when we need to call the resources on the target interactive device, we need to query the access address of the resource gateway at the target interactive device through the resource gateway management first, and then we can call the resources at the target interactive device. Since the device selector stores the mapping relationship between the device identifier and the gateway address, the gateway conversion submodule in the device selector of the interactive participating device obtains the target interactive device and gateway address from the resource gateway management based on the device identifier of the target interactive device. The corresponding relationship of resource gateways is converted one by one to generate the target resource gateway address, and the target resource gateway address is fed back to the target application.
  • the resource gateway of the target interaction device may be discovered through an active registration mechanism.
  • the resource gateway of the target interaction device may be discovered through an automatic discovery mechanism.
  • the device selection policy submodule 1004 transfers the target interaction device list to the gateway conversion submodule 1005, and the gateway conversion submodule 1005 obtains the correspondence between the target interaction device and the resource gateway from the resource gateway management 1007 on the server side. Relationships are converted one by one to generate the target resource gateway address, and the gateway conversion submodule 1005 feeds back the generated target resource gateway address to the target application 1002 .
  • Step 319 based on the address of the target resource gateway, the interaction participant device accesses the target resource gateway through the target application to obtain the target interaction resource.
  • the interaction participating device accesses the resource gateway in the target interaction device through the target application to obtain the target interaction resource.
  • the target application is determined by the application manager
  • the target interaction device is determined by the application manager and the device selector
  • the target interaction resource at the target interaction device is invoked by the resource gateway, thereby realizing the distributed invocation of resources, and further enabling Realize more types of application functions.
  • the resource interaction data includes the target application ID, the sharing party ID, and the sharing instance ID
  • the target application ID is used to determine the target application
  • the sharing party ID is used to determine
  • the target interaction device the shared instance ID is used to obtain the target interaction resource.
  • the resource sharing method is introduced below, as shown in FIG. 11 , which shows a resource interaction method provided by another exemplary embodiment of the present application, and the method is applied to a device that initiates resource interaction, that is, a sharing party.
  • the resource interaction initiating device is one of the sharing parties, and for the convenience of description, the sharing party is taken as an example of the resource interaction initiating device for illustration.
  • Step 1101 in response to the device-level sharing operation on the target application, the resource interaction initiating device generates resource interaction data including the target application identifier and the device identifier through the application manager.
  • the device-level sharing operation means that both the sharing party and the shared party are devices, and the devices may be different devices of the same user, or different devices of different users.
  • the resource interaction data generated by the resource interaction initiating device through the application manager includes a target application identifier and a device identifier, wherein the device identifier is used to represent the device corresponding to the sharing party.
  • the target application identifier and the device application identifier are unique, so different target applications correspond to different target application identifiers, and different devices correspond to different target interaction device identifiers.
  • Step 1102 in response to the user-level sharing operation on the target application, the resource interaction initiating device generates resource interaction data including the target application ID and the user ID through the application manager, and the user ID is used to represent the user corresponding to the sharing party.
  • the user-level sharing operation means that both the sharing party and the shared party are users, and there may be one device or multiple devices under the user account.
  • the resource interaction data generated by the resource interaction initiating device through the application manager includes a target application identifier and a user identifier, where the user identifier is used to represent user account information.
  • the target application identifier and the user identifier are unique, so different target applications correspond to different target application identifiers, and different user accounts correspond to different user identifiers.
  • the user identifier is used to represent the user account information corresponding to the sharing party, not the user account information corresponding to the shared party.
  • Step 1103 in response to the resource invocation request of the interaction participating device, the resource interaction initiating device performs permission verification on the sharing instance identifier included in the resource invocation request.
  • the resource interaction data further includes a sharing instance identifier, which is used to represent an event that the shared party invokes the sharing party's resources.
  • the sharing instance ID is unique, so the event that the shared party invokes the resource of the sharing party corresponds to a different sharing instance ID.
  • the interaction participant device After the interaction participant device determines the target application and the target interaction device based on the target application identifier and device identifier or user identifier in the resource interaction data, it sends a call request to the resource interaction initiating device, and the call request is used to call the target interaction device.
  • Target interaction resource Since the calling request includes the sharing instance identifier, before the interaction participant device calls the target interaction resource at the target interaction device, the resource interaction initiating device needs to verify the authority of the sharing instance identifier. The authority check is used to verify whether the target interaction resource provided by the resource interaction initiating device is consistent with the target interaction resource required by the interaction participating device.
  • Step 1104 in the case that the shared instance ID passes the authority verification, the resource interaction initiating device provides the target interaction resource to the interaction participating device.
  • the resource interaction initiating device provides the target interaction resource to the interaction participating device after passing the permission verification of the sharing instance identifier.
  • the resource interaction initiating device fails to pass the authority check on the sharing instance ID, it cannot provide the target interaction resource to the interaction participating device.
  • Step 1105 in response to the sharing cancellation operation on the target application, the resource interaction initiating device deletes the sharing instance identifier.
  • the sharing party has finished sharing resources with the shared party, and based on the user canceling the sharing, the sharing party deletes the sharing instance identifier. For example, the user cancels the sharing operation of the target application, the resource interaction initiating device receives the user's sharing cancellation operation of the target application, the resource interaction initiating device deletes the sharing instance identifier, and the interaction participating device cannot call the resources of the resource interaction initiating device.
  • the sharing party shares resources with the shared party
  • the user cancels the sharing
  • the sharing party deletes the sharing instance identifier.
  • the sharing party deletes the sharing instance identifier.
  • the target application is the game viewing application
  • the application manager is a super application
  • the device-level sharing operation of the game viewing is taken as an example.
  • the sharing party is the device that initiates resource interaction
  • the shared party is an interactive participating device.
  • the user 86 clicks the game spectator application 811 on the application list interface 81 of the super application, and the resource interaction initiating device receives the trigger operation of the user 86 on the game spectator application 811, and enters the application details interface 82, which includes a share button 821 and a share button 821. Key 823.
  • the user 86 clicks the share button 823 , and the resource interaction initiating device receives the trigger operation of the user 86 on the share button 823 , generates resource interaction data through the super application, and displays the sharing mode interface 83 .
  • the ID refers to the ID of the device that initiated the resource interaction and the ID of the sharing instance.
  • the resource interaction initiating device sends the text message link 84 to the interactive participating device, the user 87 clicks on the text message link 84, and the interactive participating device obtains the resource interaction data by analyzing the text message link 84, and determines that the game spectator application is the target application through the application identification, resource interaction
  • the initiating device is the target interactive device, and then sends a resource call request to the resource interaction initiating device.
  • the resource invoking request includes the sharing instance identifier, that is, the interactive participating device needs to call the resource of the resource interaction initiating device, that is, the projection service.
  • the resource interaction initiating device receives the resource invocation request of the interactive participating device, and performs permission verification on the sharing instance identifier contained in the resource invoking request, that is, the resources provided by the resource interaction initiating device for the interactive participating devices are screencasting services, and the resources provided by the interactive participating devices The required resources are also for screencasting services. The two are the same.
  • the resource interaction initiator device passes the permission verification on the sharing instance ID, and the interactive participant device calls the resources of the interactive participant device. party game.
  • the user 86 clicks the game viewing application 811 on the application list interface 81 of the super application again, and the resource interaction initiation device receives the user 86's response to the game.
  • the trigger operation of the game viewing application 811 enters the cancel interface 1201, which includes the cancel sharing button 1202, the user clicks the cancel sharing button 1202, the resource interaction initiating device receives the trigger operation of the user 86 on the cancel sharing button 1202, and enters the application details Interface 82, delete the shared instance identifier at the same time.
  • the user 87 clicks on the SMS link 84 received before because the resource interaction initiating device deletes the sharing instance identifier, the interactive participating device cannot call the resource interaction initiating device's screencasting service, and its game viewing application 85 displays a black screen.
  • the resource sharing method is introduced below, as shown in FIG. 13 , which shows a resource interaction method provided by another exemplary embodiment of the present application, and the method is applied to an interaction participating device, that is, a shared party.
  • the interactive participating device is one of the shared parties.
  • the shared party is an interactive participating device as an example for illustration.
  • Step 1301 the interaction participating device acquires resource interaction data, which is generated by the resource interaction initiating device when receiving a sharing operation on a target application, and the resource interaction data includes a target application ID and a sharing party ID.
  • the interaction participating device acquires resource interaction data from the resource interaction initiating device.
  • the resource interaction data includes a target application identifier and a sharer identifier.
  • the target application identifier is used to determine the target application
  • the sharing party identifier is used to determine the target interactive device.
  • the target interaction device is the resource interaction initiating device, but it should be noted that the target interaction device is not limited to the resource interaction initiating device.
  • the sharing party identifier is a device identifier.
  • the sharing party ID is a user ID.
  • Step 1302 based on the resource interaction data, the interaction participating device determines the target application through the application manager, and starts the target application.
  • the application manager is used to manage resource interaction of different applications.
  • the interaction participating device determines the target application through the application manager, and the application is the same as the application of the resource interaction initiating device, and runs the target application.
  • the sharing party ID may be a device ID or a user ID.
  • the methods for determining the target interaction device are different, which will be introduced below.
  • Step 1303 when the sharing party ID is the device ID, the interaction participating device determines the device represented by the device ID as a candidate interaction device through the application manager.
  • the application manager in the interaction participating device configures the range of device groups managed by the application device group management submodule in the device selector through the device identifier.
  • the range of the device group includes all devices of the sharing party, and the devices within the range of the device group are determined as candidate interactive devices.
  • the sharing party is only the resource interaction initiating device, so the device scope is the resource interaction initiating device, and the resource interaction initiating device is the candidate interaction device.
  • the number of candidate interactive devices may be one or multiple, which is not limited in this embodiment of the present application.
  • Step 1304 when the sharing party ID is the user ID, the interaction participating device acquires at least one device ID corresponding to the user ID through the application manager, and determines the device represented by the device ID as a candidate interaction device.
  • a user management module and a device management module are deployed on the server side.
  • the user management module is used to manage all user account information
  • the device management module is used to manage device information under each user account.
  • the user ID is used to represent the user account information
  • the device ID is used to represent the corresponding device information under the user account.
  • the number of devices under the user account can be one or more, and different devices correspond to different device IDs.
  • the application manager of the interaction participating device queries the user management module and the device management module for the device list under the user account corresponding to the user identifier through the user identifier . Further, the application manager configures the device group range managed by the application device group management submodule in the device selector through the user identification, the device group range is the device list queried by the application manager, and determines all devices in the device list as Candidate interactive devices.
  • step 1303 and step 1304 can be selected to be executed, which is not limited in this embodiment of the present application.
  • step 1305 the interaction participating device acquires the device selection policy of the target application; through the device selector, the selected interactive device conforming to the device selection policy is determined as the target interaction device.
  • the interactive participating devices obtain the device selection policy of the target application, and transfer the device selection policy to the device selection policy of the device selector
  • the sub-module, the device selection policy sub-module selects target interactive devices from the range of device groups managed by the application device group management sub-module, that is, candidate interactive devices, based on the device selection policy.
  • step 1306 the interaction participating device displays a device selection list based on the candidate interaction devices; through the device selector, the candidate interaction device selected in the device selection list is determined as the target interaction device.
  • the interactive participating device obtains the device selection policy of the target application, and transfers the device selection policy to the device selection policy of the device selector
  • the sub-module, the device selection policy sub-module selects target interactive devices from the range of device groups managed by the application device group management sub-module, that is, the device selection list (that is, candidate interactive devices) based on the device selection policy. It should be noted that, at this time, the interactive participating device is any device under the user account of the shared party.
  • step 1305 and step 1306 can be selected to be executed, which is not limited in this embodiment of the present application.
  • Step 1307 based on the shared instance ID, the interactive participating device invokes the target interactive resource at the target interactive device through the target application, and the target interactive device is used to verify the authorization of the shared instance ID, and provide the target interactive resource when the shared instance ID passes the authorization verification .
  • the interaction participating device determines the target application and the target interactive device based on the target application ID and the sharing party ID in the resource interaction data, and sends a resource call request to the target interactive device, that is, the resource interaction initiating device.
  • the resource call request includes the sharing instance ID, the resource
  • the interaction initiating device performs authorization verification on the sharing instance ID. After the sharing instance ID passes the authorization verification of the resource interaction initiating device, it provides the target interaction resource to the interaction participating device. That is to say, the interaction participating device can call the resources of the interaction initiating device through the target application. resource.
  • FIG 14 it shows a schematic diagram of the principle of resource sharing at the device level.
  • the target application is the photo album application
  • the sharing party is the resource interaction initiation device mobile phone A
  • the shared party is the interaction participating device mobile phone B as an example. .
  • the mobile phone A generates resource interaction data through the first application manager 1401, and the resource interaction data includes target application identifiers, device identifiers and sharing instance identifiers.
  • Mobile phone B acquires the resource interaction data, determines the target application as the photo album application 1404 through the second application manager 1402 based on the target application identifier, and starts the photo album application 1404 .
  • the second application manager 1402 sets the device group range of the application device group management submodule in the device selector 1405 to mobile phone A, and determines it as a candidate device. Based on the device selection policy selected by the user on the device selection interface of the photo album application 1404 to select all devices, it is determined that the candidate device mobile phone A is the target interaction device.
  • the target resource gateway address of the target interactive device mobile phone A is obtained from the resource gateway management 1406 through the device selector 1405 , and the target resource gateway address is fed back to the album application 1404 .
  • a resource call request is sent to the target interactive device mobile phone A, the resource interaction request includes the sharing instance identifier, and the target interactive device mobile phone A provides the photo resource corresponding to the photo album application to mobile phone B after passing the permission verification of the sharing instance identifier.
  • Mobile phone B traverses the resource gateway 1403 in the target resource gateway address through the album application 1404, and calls the photo resource corresponding to the album application 1404.
  • FIG. 15 it shows a schematic diagram of user-level shared resource interaction.
  • the sharing party is user A
  • the shared party is user B as an example.
  • the account of user A includes mobile phone A and mobile phone B
  • the account of user B includes mobile phone C.
  • Any device under the account of user A generates resource interaction data through its application manager.
  • mobile phone A under the account of user A generates resource interaction data through the first application manager 1501.
  • the resource interaction data includes target application identification, user identification and Share instance ID.
  • Any device under the account of user B obtains the resource interaction identifier.
  • mobile phone C under the account of user B obtains the resource interaction data, and based on the target application identifier, the second application manager 1502 determines that the target application is the photo album application 1505, and starts The photo album application 1505 simultaneously queries the user management module 1507 and the device management module 1508 of the server through the second application manager 1502 for a device list under the account of user A based on the user ID, and the device list includes mobile phone A and mobile phone B.
  • the mobile phone C sets the device group range of the application device group management submodule in the device selector 1506 as the device list through the second application manager 1502, and determines the devices in the device list, that is, mobile phone A and mobile phone B as candidates equipment. Based on the device selection strategy of the user in the device selection interface of the photo album application 1505 is to select all devices, the candidate devices mobile phone A and mobile phone B are determined as target interaction devices. Further, the target resource gateway addresses of the target interaction devices mobile phone A and mobile phone B are obtained from the resource gateway management 1509 through the device selector 1506 , and the target resource gateway addresses are fed back to the album application 1505 .
  • the mobile phone C sends a resource call request to the target interactive device mobile phone A and mobile phone B, and the resource interaction request includes the sharing instance identifier, and the target interactive device mobile phone A and mobile phone B provide the mobile phone C with The photo resource corresponding to the photo album application.
  • Mobile phone C traverses the resource gateways 1503 and 1504 in the target resource gateway address through the album application 1505, and calls the photo resource corresponding to the album application 1505.
  • the interaction participating device can call the resource corresponding to the target application at the resource interaction initiating device to realize resource sharing between the resource interaction initiating device and the interaction participating device. Enriched resource sharing methods.
  • the resource interaction trigger operation is a sharing operation
  • the resource interaction data includes a target application identifier and a sharing group identifier
  • the target application identifier is used to determine the target application
  • the sharing group identifier is used to determine the sharing group.
  • the resource sharing method is introduced below, as shown in FIG. 16 , which shows a resource interaction method provided by another exemplary embodiment of the present application, and the method is applied to a device that initiates resource interaction, that is, a sharing group owner.
  • the resource interaction initiating device is one of the sharing group owners.
  • the sharing group owner is taken as the resource interaction initiating device as an example for illustration.
  • Step 1601 in response to the sharing operation on the target application, the resource interaction initiating device generates resource interaction data including the target application identifier and the sharing group identifier through the application manager.
  • the resource interaction initiating device based on the user's sharing operation on the target application, the resource interaction initiating device generates resource interaction data through the application manager, and the resource interaction data includes the target application identifier and the sharing group identifier.
  • sharing means that multiple devices or users are associated together to form a sharing group, and devices or users in the same sharing group can call resources of other devices or users each other.
  • the device or user who creates the sharing group is called the sharing group owner. Only after the sharing group owner creates the sharing group, other devices or users can join the sharing group.
  • the sharing operation refers to the operation of creating a sharing group, and the sharing group identifier is used to represent the created sharing group, and other devices or users can join the sharing group through the sharing group identifier.
  • the sharing group ID is unique, and different sharing groups have different sharing group IDs.
  • the resource interaction initiating device is a sharing group owner.
  • the collaborative drawing board application is taken as the target application
  • the application manager is the super application
  • the resource interaction initiating device is the shared group owner as an example for illustration.
  • the user 1708 clicks the collaborative drawing board application 1704 on the application list interface 1701 of the super application, and the resource interaction initiating device receives the user's trigger operation on the collaborative drawing board application 1704, and enters the application details interface 1702, which includes the sharing button 1705 and the sharing button 1706 , the user 1708 clicks the sharing button 1706, the resource interaction initiating device receives the user 1708's trigger operation on the sharing button 1706, generates resource interaction data through the super application, the resource interaction data includes the target application ID and the sharing group ID, and displays the sharing group Create an interface 1703 , and at this time, the resource interaction initiating device is the sharing group owner 1707 .
  • Step 1602 In response to the device-level sharing operation on the target application, the resource interaction initiating device sends a first sharing group creation request to the server, the first sharing group creation request includes the device identifier, and the server is used to create a resource based on the first sharing group creation request.
  • a sharing group consisting of devices.
  • the sharing group management is deployed on the server side, and the sharing group management is used to manage the creation of the sharing group and the joining and exiting of the sharing group members. Therefore, when the resource interaction initiating device receives the user's device-level sharing operation on the target application, it sends a sharing group creation request to the sharing group management.
  • the sharing group creation request includes the device identifier of the resource interaction initiating device, and the sharing group management is based on the creation request. Create a sharing group, and the device that initiates the resource interaction is the sharing group owner.
  • device-level sharing means that all members of the sharing group are devices.
  • the device may belong to the same user account, or may belong to different user accounts, which is not limited in this embodiment of the present application.
  • Step 1603 in response to the user-level sharing operation on the target application, the resource interaction initiating device sends a second sharing group creation request to the server, the second sharing group creation request includes a user identifier, and the server is used to create a second sharing group creation request based on the second sharing group creation request A sharing group made up of users.
  • the resource interaction initiating device when it receives the user's user-level sharing operation on the target application, it sends a sharing group creation request to the sharing group management, and the sharing group creation request includes the user account corresponding to the resource interaction initiating device
  • the user ID of the sharing group management creates a sharing group based on the creation request, and the user who belongs to the resource interaction initiating device is the sharing group owner.
  • the sharing group includes all devices under the user account.
  • user-level sharing means that members of the sharing group include all devices under different user accounts.
  • Step 1604 in response to the resource invocation request of the interaction participant device, the resource interaction initiating device provides the interaction participant device with the target interaction resource through the resource gateway, and the resource gateway is used to manage resource invocation in the device.
  • the interaction participating device After the interaction participating device determines the target application based on the target application identifier and the sharing group identifier in the resource interaction data and joins the sharing group, it sends a resource call request to the target interactive device in the sharing group, and the resource call request is used to call the target interactive device.
  • the target interaction resource of the target interaction device in the shared group that is, the resource interaction initiation device provides the target interaction resource to the interaction participant device through the resource gateway after receiving the resource invocation request.
  • Step 1605 the resource interaction initiating device invokes the target interaction resource on the interaction participating device through the target application.
  • the resource interaction initiating device can also call the target interaction resource on the interaction participating device through the target application.
  • the resource sharing method is introduced below, as shown in FIG. 18 , which shows a resource interaction method provided by another exemplary embodiment of the present application, which is applied to an interactive participating device.
  • the interactive participating device is One of the sharing members, for the convenience of expression, the sharing member is an interactive participating device as an example for illustration.
  • Step 1801 the interaction participating device acquires resource interaction data, which is generated by the resource interaction initiating device upon receiving a sharing operation on a target application, and the resource interaction data includes a target application ID and a sharing group ID.
  • the interaction participating device acquires resource interaction data from the resource interaction initiating device, and the resource interaction data includes a target application identifier and a sharing group identifier.
  • the sharing group identifier is used to represent the sharing group to be joined by the interactive participating device.
  • Step 1802 based on the resource interaction data, the interaction participating device determines the target application through the application manager, and starts the target application.
  • the application manager is used to manage resource interaction of different applications.
  • the interaction participating device determines the target application through the application manager, and the application is the same as the application of the resource interaction initiating device, and runs the target application.
  • Step 1803 the interactive participating device joins the sharing group represented by the sharing group identifier through the application manager.
  • the interaction participating device joins the sharing group corresponding to the sharing group identifier through the application manager.
  • the interactive participating device joins the sharing group as a sharing member, which is functionally different from the sharing group owner role.
  • sharing members need to get the consent of the sharing group owner to join the sharing group.
  • the sharing group owner has the right to remove the sharing members from the sharing group, while the sharing members only have the right to actively withdraw from the sharing group.
  • the sharing group owner has Dismiss the permission of the sharing group, but the sharing members do not have the permission.
  • the interactive participating device can only join one sharing group as a sharing member. For example, after the interactive participating device joins the first sharing group represented by the first sharing group identifier through the application manager, when it passes through the When the application manager joins the second sharing group represented by the second sharing group identifier, it needs to exit the first sharing group, otherwise it cannot join the second sharing group.
  • the cooperative drawing board application is taken as the target application, and the super application is the application manager for illustration.
  • the resource interaction initiation device 1901 creates a sharing group 1902 as a sharing group owner, generates resource interaction data, and sends the resource interaction data to the interaction participating device 1903 through an NFC signal.
  • the interaction participation device 1903 obtains the resource interaction data through the NFC signal, and joins the sharing group 1902 as a sharing member through the sharing group identifier in the resource interaction data, but the interaction participation device 1903 has already joined a sharing group before, because the collaborative sketchpad application interface will
  • the sharing group selection interface 1904 pops up, the sharing group selection interface 1904 includes a join sharing group button 1905 and a quit joining sharing group button 1906, the user clicks the join sharing group button 1905, and the interactive participating device 1903 receives the user's trigger on the join sharing group button 1905 operation, it will automatically exit the shared group it has joined, and join the shared group 1902 as a shared member 1903 at the same time.
  • an interaction participating device may join multiple sharing groups at the same time, and resource interaction between sharing groups does not interfere with each other. For example, after the interactive participating device joins the first sharing group represented by the first sharing group through the application manager, it may also join the second sharing group represented by the second sharing group identifier through the application manager. The first sharing group Resource interaction with the second sharing group does not interfere with each other.
  • the members in the sharing group may be devices or users.
  • the methods for determining the target interaction device are different, which will be introduced below.
  • Step 1804 in the case that the sharing group contains the device identifier, the interaction participant device determines, through the application manager, the device represented by the device identifier as a candidate interaction device.
  • the members of the sharing group are devices, and different devices correspond to different device identifiers, and the application manager in the interactive participating device configures the application device group manager in the device selector according to the device identifiers in the sharing group.
  • the scope of the device group managed by the module, the scope of the equipment group includes all the equipment in the sharing group, and the equipment within the scope of the equipment group is determined as the candidate equipment.
  • Step 1805 if the sharing group contains the user ID, the interaction participating device acquires at least one device ID corresponding to the user ID through the application manager, and determines the device represented by the device ID as a candidate interaction device.
  • the members of the sharing group are users
  • the user ID is used to represent the user account information
  • the device ID is used to represent the corresponding device information under the user account
  • the number of devices under the user account can be one or more , different devices correspond to different device IDs.
  • the application manager in the interactive participating device queries the user management and device management on the server side for the list of devices under the user account corresponding to the user ID through the user ID. Further, the application manager configures the device group range managed by the application device group management submodule in the device selector.
  • the device group range is a list of devices under all user accounts in the sharing group, and the device list includes devices under all user accounts in the sharing group. All devices, and determine all devices in the device list as candidate interaction devices.
  • step 1806 the interaction participating device acquires the device selection policy of the target application; through the device selector, a candidate interaction device conforming to the device selection policy is determined as the target interaction device.
  • step 1806 refer to step 1305, which will not be repeated in this embodiment of the present application.
  • Step 1807 the interaction participating device displays a device selection list based on the candidate interaction devices; and determines the candidate interaction device selected in the device selection list as the target interaction device through the device selector.
  • step 1807 refer to step 1306, which will not be repeated in this embodiment of the present application.
  • Step 1808 the interaction participant device provides the target interaction resource to the target interaction device.
  • Step 1809 the interaction participating device invokes the target interaction resource on the target interaction device through the target application.
  • step 1808 since the devices in the shared group can call the resources of all devices, the interaction participating device can provide the target interaction resource to the target interaction device, and at the same time, the interaction participating device can also call the target interaction resource at the target interaction device through the target application. resource.
  • the user 2007 clicks the start button 2009 on the application details page 2003 of the collaborative drawing board application of the resource interaction initiating device 2001, and the resource interaction initiating device 2001 receives the user 2007's trigger operation on the starting button 2009, and displays the operation interface 2004 of the collaborative drawing board application.
  • the user 2008 clicks the start button 2010 on the application details page 2005 of the collaborative drawing board application of the interactive participating device 2002, and the interactive participating device 2002 receives the trigger operation of the starting button 2010 by the user 2008, and displays the operation interface 2006 of the collaborative drawing board application.
  • the resource interaction initiating device 2001 and the interaction participating device 2002 can call each other's drawing data synchronization service, that is, the resource interaction initiating device 2001 and the interactive participating device
  • the content of the collaborative sketchpad application on the device 2002 can be synchronized with each other in real time.
  • the operation interface 2004 of the collaborative sketchpad application of the resource interaction initiating device 2001 can display the content of the collaborative sketchpad application of the interactive participating device 2002, and at the same time, the content of the collaborative sketchpad application of the interactive participating device 2002
  • the operation interface 2006 can also display the content of the resource interaction initiating device 2001 in collaboration with the sketchpad application.
  • the target application is the photo album application
  • mobile phone A is the sharing group owner
  • mobile phone B and mobile phone C are sharing members. group as an example. Since mobile phone A, mobile phone B, and mobile phone C are all in a shared group, mobile phone A, mobile phone B, and mobile phone C can call each other's resources. The following only uses mobile phone B to call the resources of mobile phone A and mobile phone C as an example. .
  • Mobile phone A sends a sharing group creation request to the sharing group management 2108 on the server side through the first application manager 2101 and creates a sharing group.
  • the sharing group owner of the sharing group is mobile phone A.
  • Mobile phone B and mobile phone C obtain resource interaction data, and determine the target application as the photo album application based on the target application identification 2106, join the sharing group based on the sharing group identification, mobile phone B and mobile phone C, and obtain the device list under the sharing group from the sharing group management 2108, At this time, the device list in the sharing group management 2108 includes mobile phone A, mobile phone B and mobile phone C.
  • mobile phone B obtains the device list of the current sharing group from the sharing group management 2108 through the second application manager 2102, and uses the device group management submodule in the device selector 2103
  • the scope of the device group is set to the device list of the sharing group, and at this time, all the devices on the device list of the sharing group, that is, mobile phone A, mobile phone B, and mobile phone C are candidate devices.
  • the candidate devices mobile phone A, mobile phone B, and mobile phone C are determined as target interactive devices.
  • the target resource gateway addresses of the target interactive devices mobile phone A, mobile phone B, and mobile phone C are obtained from the resource gateway management 2109 through the device selector 2103 , and the target resource gateway addresses are fed back to the album application 2106 .
  • Mobile phone B traverses the resource gateways 2105, 2107, and 2104 in the target resource gateway address through the photo album application 2106, and calls the photo resources in mobile phone A, mobile phone B, and mobile phone C.
  • mobile phone B also provides mobile phone A and mobile phone C with photo resources corresponding to the photo album application.
  • any mobile phone in the sharing group can view the photos in all mobile phones, namely mobile phone A, mobile phone B, and mobile phone C, by opening the photo album application.
  • the target application is an album application
  • user A is the sharing group owner
  • user B and user C are sharing members as an example.
  • the devices under the account of user A are mobile phone A and mobile phone B
  • the devices under the account of user B are mobile phone C
  • the devices under the account of user D are mobile phone D and mobile phone E.
  • Each mobile phone corresponds to a different device ID.
  • any mobile phone under the account of user A, user B, and user C in the sharing group can call the resources of mobile phones under other user accounts.
  • the following uses the mobile phone C under the account of user B to call the resources of mobile phones under other user accounts as an example. Be explained.
  • the mobile phone A under the account of user A sends a sharing group creation request to the sharing group management 2210 on the server side through the first application manager 2201 and creates a sharing group.
  • Resource interaction data including target application ID and sharing group ID.
  • User B and user C obtain resource interaction data, and determine the target application as the photo album application based on the target application identification 2114, identify user B and user C based on the sharing group to join the sharing group, and obtain the user list under the sharing group from the sharing group management 2210,
  • the user list in the sharing group management 2210 includes user A, user B, and user C, which respectively correspond to different user identifiers.
  • members of the sharing group that is, user A, user B, and user C traverse the user IDs in the user list through their respective application managers, query all devices through the user management 2211 and device management 2212 on the server side, and generate a complete device list.
  • the list includes mobile phone A, mobile phone B, mobile phone C, mobile phone D, and mobile phone E.
  • the mobile phone C under the user B's account obtains the aforementioned device list through the second application manager 2202, and sets the device group scope device of the application device group management submodule in the device selector 2203 as the aforementioned device list, and at the same time, the device list on the device list All devices mobile phone A, mobile phone B, mobile phone C, mobile phone D and mobile phone E are determined as candidate devices.
  • the candidate devices mobile phone A, mobile phone B, mobile phone C, mobile phone D and mobile phone E are determined as target interactive devices. Further, obtain target resource gateway addresses of target interactive devices mobile phone A, mobile phone B, mobile phone C, mobile phone D, and mobile phone E from resource gateway management 2213 through device selector 2203 , and feed back the target resource gateway addresses to album application 2206 .
  • Mobile phone C traverses the resource gateways 2204, 2205, 2209, 2207, and 2208 in the target resource gateway address through the album application 2206, and calls photo resources in mobile phones A, mobile phone B, mobile phone C, mobile phone D and mobile phone E.
  • mobile phone C also provides photo resources corresponding to its own album application to mobile phone A, mobile phone B, mobile phone D and mobile phone E. It should be noted that any mobile phone under the accounts of user A, user B, and user C who are members of the sharing group can open the photo album application to view photos of all mobile phones, namely mobile phone A, mobile phone B, mobile phone C, mobile phone D, and mobile phone E.
  • the resource interaction initiating device creates a sharing group, and based on the sharing group identifier, the interaction participating device joins the sharing group. Since the resource interaction initiating device and the interaction participating device belong to the same sharing group, they can call each other's target application corresponding resources, realize resource sharing, and enrich the way of resource interaction.
  • the sharing group owner can dissolve the sharing group.
  • the resource interaction initiating device sends a sharing group disbanding instruction to the server, so that the server disbands the sharing group and deletes the sharing group identifier based on the sharing disbanding instruction.
  • the interactive participating device exits the sharing group through the application manager when receiving the sharing group disbanding message.
  • the resource interaction initiating device based on the user's sharing group disbanding operation, sends a sharing group disbanding instruction to the sharing group manager on the server side, and the sharing group manager disbands the sharing group after receiving the sharing disbanding instruction, and deletes the sharing group ID.
  • the interactive participating device obtains the sharing group dissolution message through the sharing group management, and exits the sharing group through the application manager.
  • the disbanding of the sharing group by the sharing group owner is explained, wherein the resource interaction initiating device is the sharing group owner, and the interaction participating devices are sharing members.
  • the user 2310 clicks the disband sharing group button 2305 on the collaborative drawing board application sharing group interface 2301, and the resource interaction initiating device 2303 receives the user 2310's trigger operation on the disbanding sharing group button 2305, and a dialog box 2306 pops up on the collaborative drawing board application sharing group interface 2301, and the user 2310 Click the OK button 2307, the resource interaction initiating device 2303 sends a sharing group disbanding instruction to the sharing group management, the sharing group management disbands the sharing group after receiving the disbanding instruction, and deletes the sharing group logo, and the collaborative drawing board application returns to the application details interface 2302.
  • the interaction participating device 2304 receives the disbanding instruction, and exits the sharing group through the application manager.
  • the resource interaction initiating device 2303 and the interaction participating device 2304 are not in the same sharing group, and they cannot call each other's drawing data synchronization service.
  • they start the collaborative drawing board application they can only view to the content of your collaborative sketchpad application.
  • the sharing group owner can also remove the sharing group members.
  • the resource interaction initiating device sends a removal instruction to the server, so that the server updates the sharing group based on the removal instruction, and synchronizes the update result to the sharing parties in the sharing group.
  • the removal instruction includes the interactive participation to be removed equipment.
  • the interactive participating device exits the sharing group through the application manager when receiving the removal message, where the removal message is used to indicate that the sharing group is removed.
  • the resource interaction initiating device sends a removal instruction to the sharing group management on the server side.
  • the removal instruction includes the device or user to be removed.
  • the device to be removed is The interactive participating device, that is, the removal instruction includes the interactive participating device to be removed.
  • the sharing group management receives the removal instruction, remove the device to be removed from the device or user list of the sharing management group, update the device list or user list at the same time, and synchronize the updated results to all members of the sharing group .
  • the interactive participating device obtains the removal message through the sharing group management, and exits the sharing group through the application processor.
  • the user 2409 clicks the user kick button 2408 on the collaborative drawing board application sharing group interface 2403, and the resource interaction initiating device 2401 receives the trigger operation of the user 2409 on the user kicking button 2408, and a dialog box 2404 pops up on the collaborative drawing board application sharing group interface 2403, and the user 2409 Click the OK button 2405, the resource interaction initiating device 2401 sends a removal instruction to the sharing group management, the removal instruction includes the device to be removed, that is, the interactive participating device, and the sharing group management will add it to the device list after receiving the removal instruction Remove the participating devices and synchronize the updated device list to other members of the sharing group.
  • the sharing group interface 2403 is used to update the members of the sharing group in collaboration with the drawing board.
  • the interaction participating device 2402 receives the removal message, and exits the sharing group through the application manager. At this time, the resource interaction initiating device 2401 and the interaction participating device 2402 are not in the same sharing group, and they cannot call each other's drawing data synchronization service. When they start the collaborative drawing board application, they can only view Apply the content to your own collaborative sketchpad.
  • sharing members may also voluntarily withdraw from the sharing group.
  • the interactive participating device exits the sharing group through the application manager, and sends an exit message to the server, and the server is used to update the sharing group based on the exit message, and synchronize the update result to the target interactive device.
  • the resource interaction initiating device receives an exit message sent by the server, and the exit message is triggered by an interaction participating device that actively exits the sharing group.
  • the interactive participating device exits the sharing group through the application manager, and sends an exit message to the sharing group management on the server side.
  • the sharing group management removes the interactive participating device from the sharing group Delete from the device list managed by the group, update the device list at the same time, and synchronize the updated results to all members of the sharing group.
  • the resource interaction initiating device receives the exit message sent by the interaction participating device through the sharing group management.
  • the sharing member withdraws from the sharing group is described, wherein the resource interaction initiating device is the sharing group owner, and the interaction participating device is the sharing member quitting the sharing group.
  • the user 2510 clicks the exit sharing group button 2509 on the collaborative drawing board application sharing group interface 2503, and the interactive participating device 2502 receives the user 2510's trigger operation on the exit sharing group button 2509, and a dialog box 2504 pops up on the collaborative drawing board application sharing group interface 2503, and the user 2510 Click the OK button 2505, and the interactive participating device 2502 exits the sharing group through the application manager, and sends an exit message to the sharing group management.
  • the list is synchronized to other members of the sharing group.
  • the collaborative drawing board application of the interactive participation device 2502 returns to the application details interface 2506 .
  • the resource interaction initiating device 2501 receives the exit message sent by the interaction participating device 2502 through sharing group management.
  • the interaction participating device 2502 and the resource interaction initiating device 2501 are not in the same sharing group, and they cannot call each other's drawing data synchronization service.
  • they start the collaborative drawing board application they can only view Apply the content to your own collaborative sketchpad.
  • FIG. 26 shows a structural block diagram of a resource interaction device provided by an exemplary embodiment of the present application, and the device includes:
  • the acquisition module 2601 is configured to acquire resource interaction data, the resource interaction data is generated by the resource interaction initiating device when receiving a resource interaction trigger operation for the target application, and the resource interaction trigger operation includes at least a sharing operation and a sharing operation A sort of;
  • a determining module 2602 configured to determine the target application and the target interaction device based on the resource interaction data, the target application is an application for resource interaction, and the target interaction device is at least one device for resource interaction;
  • the invoking module 2603 is used for invoking the target interaction resources on the target interaction device through the target application.
  • the determining module 2602 includes:
  • the first determining unit is configured to determine the target application through an application manager based on the resource interaction data, and start the target application, and the application manager is used to manage resource interaction of different applications;
  • the second determining unit is configured to determine the target interaction device through the application manager and the device selector based on the resource interaction data.
  • the second determining unit is configured to:
  • the target interaction device is determined by the application manager and the device selector.
  • the second determining unit is further configured to:
  • the application manager determines the device represented by the device ID as a candidate interactive device; or,
  • the sharing party ID is a user ID
  • at least one device ID corresponding to the user ID is acquired through the application manager, and the device represented by the device ID is determined as a candidate interactive device;
  • the target interaction device is determined from the candidate interaction devices by the device selector.
  • the second determining unit is further configured to:
  • the calling module 2603 is configured to:
  • the target interaction resource is obtained from the target interaction device through the target application, and the target interaction device is used to verify the authority of the sharing instance identifier, and The target interaction resource is provided when authorization verification is passed.
  • the second determining unit is further configured to:
  • the device also includes:
  • a providing module configured to provide the target interaction resource to the target interaction device.
  • the second determining unit is further configured to:
  • the target interaction device is determined from the candidate interaction devices by the device selector.
  • the second determining unit is further configured to:
  • the application manager determines the device represented by the device identifier as the candidate interaction device
  • the sharing group includes the user identifier
  • at least one device identifier corresponding to the user identifier is acquired through the application manager, and the device represented by the device identifier is determined as the candidate interaction device.
  • the second determining unit is further configured to:
  • the device also includes:
  • a first exit module configured to, in response to an exit operation, exit the sharing group through the application manager, and send an exit message to a server, and the server is used to update the sharing group based on the exit message, and update The result is synchronized to the target interaction device;
  • a second exit module configured to exit the sharing group through the application manager when a sharing group disbandment message is received
  • a third exit module configured to exit the sharing group through the application manager when a removal message is received, where the removal message is used to indicate that the sharing group is removed.
  • call module 2603 for:
  • target resource gateway address of the target interactive device based on the device identifier of the target interactive device, where the target resource gateway address is a gateway address of a resource gateway in the target interactive device, and the resource gateway is used in a management device resource call;
  • the target application accesses the target resource gateway to obtain the target interaction resource.
  • the obtaining module 2601 is configured to:
  • the resource interaction data is received through near field communication.
  • the target interaction resources include at least one of file resources, hardware resources and service resources.
  • the resource interaction initiating device based on the sharing or sharing operation of the target application, the resource interaction initiating device generates resource interaction data, and the interaction participating device determines the target application and the target interaction device based on the obtained resource interaction data, and then from A target interaction resource at the target interaction device is invoked by the target application.
  • the object to be shared and shared is not the target application itself, but the resource corresponding to the target application.
  • other devices can call the corresponding resources through the target application, thereby realizing the target application function.
  • the target application can not only use the resources of the current device, but also call the resources of other devices, realize the distributed call of resources, and then realize more types of application functions.
  • FIG. 27 shows a structural block diagram of a resource interaction device provided by an exemplary embodiment of the present application, and the device includes:
  • the first generation module 2701 is configured to generate resource interaction data in response to a resource interaction trigger operation on the target application;
  • the providing module 2702 is configured to provide a target interaction resource to the interaction participation device in response to a resource invocation request of the interaction participation device, and the resource invocation request is determined by the interaction participation device based on the resource interaction data to determine a target application and a target After interacting with the device, it is sent through the target application.
  • the generating module 2701 includes:
  • a generating unit configured to generate the resource interaction data through an application manager in response to a resource interaction trigger operation on the target application, and the application manager is used to manage resource interaction of different applications;
  • the providing module 2702 includes:
  • the providing unit is configured to, in response to the resource invocation request of the interaction device, provide the target interaction resource to the interaction device through a resource gateway, where the resource gateway is used to manage resource invocation in the device.
  • the generating unit is configured to:
  • the application manager In response to the sharing operation on the target application, the application manager generates the resource interaction data including the target application identifier and the sharing party identifier.
  • the generating unit is also used for:
  • the resource interaction data including the target application identifier and a user identifier is generated by the application manager, and the user identifier is used to represent a user corresponding to the sharing party.
  • the providing unit is used for:
  • the target interaction resource is provided to the interaction participating device.
  • the device also includes:
  • the sharing instance identifier is deleted.
  • the generating unit is also used for:
  • the device also includes:
  • a calling module configured to call the target interaction resource at the interaction participating device through the target application.
  • the device also includes:
  • the first sending module is used for:
  • the second sending module is used for:
  • the device also includes:
  • the third sending module is used for:
  • the device also includes:
  • the fourth sending module is used for:
  • the device also includes:
  • Receiver module for:
  • An exit message sent by the server is received, and the exit message is triggered by an interactive participating device that actively exits the sharing group.
  • the device also includes:
  • gateway address of the resource gateway When the gateway address of the resource gateway is updated, send a gateway address update message to the server, so that the server will synchronize the updated gateway address to the device selector of other devices, and the device selector stores the device identifier The mapping relationship with the gateway address.
  • the device also includes:
  • Second build module for:
  • the resource interaction data is sent by means of near field communication.
  • the target interaction resources include at least one of file resources, hardware resources and service resources.
  • the resource interaction initiating device based on the sharing or sharing operation of the target application, the resource interaction initiating device generates resource interaction data, and the interaction participating device determines the target application and the target interaction device based on the obtained resource interaction data, and then from A target interaction resource at the target interaction device is invoked by the target application.
  • the object to be shared and shared is not the target application itself, but the resource corresponding to the target application.
  • other devices can call the corresponding resources through the target application, thereby realizing the target application function.
  • the target application can not only use the resources of the current device, but also call the resources of other devices, realize the distributed call of resources, and then realize more types of application functions.
  • the device provided by the above-mentioned embodiment is only illustrated by the division of the above-mentioned functional modules.
  • the above-mentioned function distribution can be completed by different functional modules according to the needs, that is, the internal structure of the device is divided into Different functional modules to complete all or part of the functions described above.
  • the device provided by the above embodiment and the method embodiment belong to the same idea, and its specific implementation process is detailed in the method embodiment, and will not be repeated here.
  • FIG. 28 shows a structural block diagram of a terminal 2800 provided by an exemplary embodiment of the present application.
  • the terminal 2800 in this application may include one or more of the following components: a processor 2810 and a memory 2820 , where the processor 2810 is electrically connected to the memory 2820 .
  • Processor 2810 may include one or more processing cores.
  • the processor 2810 uses various interfaces and lines to connect various parts of the entire terminal 2800, and executes the terminal by running or executing instructions, programs, code sets or instruction sets stored in the memory 2820, and calling data stored in the memory 2820. 2800's various functions and processing data.
  • the processor 2810 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • the processor 2810 may integrate one or a combination of a CPU, a Graphics Processing Unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing the content that needs to be displayed on the touch screen; the modem is used for processing wireless communication. It can be understood that, the above modem may not be integrated into the processor 2810, but implemented by a communication chip alone.
  • the memory 2820 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory, ROM).
  • the memory 2820 includes a non-transitory computer-readable storage medium.
  • the memory 2820 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 2820 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , the instruction etc.
  • this operating system can be Andrews (Android) system (comprising the system based on the depth development of Android system), the IOS system developed by Apple Inc. (comprising the system based on the depth development of IOS system) or other systems.
  • the data storage area can also store data created by the terminal 2800 during use (such as phonebook, audio and video data, chat record data) and the like.
  • At least one instruction is stored in the memory 2820, and the at least one instruction is used by the processor 2810 to execute the resource interaction method shown in the above-mentioned embodiments.
  • the terminal 2800 may further include an NFC component, and the NFC component is configured to receive and send an NFC signal, so that the terminal 2800 can process the NFC signal through the processor 2810 .
  • the terminal 2800 further includes a camera for scanning the graphic code, so that the processor can parse the graphic code to obtain resource interaction data.
  • the terminal 2800 may further include a touch display screen, which may be a capacitive touch display screen, and the capacitive touch screen screen is used to receive a user's touch operation on or near it using any suitable object such as a finger or a touch pen. , and display the user interface of each application.
  • the touch screen is usually set on the front panel of the terminal 2800.
  • Touch screens can be designed as full screens, curved screens or special-shaped screens.
  • the touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in this embodiment of the present application.
  • the structure of the terminal 2800 shown in the above drawings does not constitute a limitation on the terminal 2800, and the terminal may include more or less components than those shown in the figure, or combine some components, or different component arrangements.
  • the terminal 2800 also includes components such as a radio frequency circuit, a photographing component, a sensor (not including a temperature sensor), an audio circuit, a wireless fidelity (Wireless Fidelity, WiFi) component, a power supply, and a Bluetooth component, which will not be repeated here.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores at least one program, and the at least one program is loaded and executed by a processor to implement the resource interaction method described in each of the above embodiments .
  • a computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium The processor executes the computer instruction, so that the terminal executes the resource interaction method provided in various optional implementation manners of the foregoing aspect.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

A resource interaction method and apparatus, and a terminal and a storage medium, which belong to the technical field of communications. The method comprises: acquiring resource interaction data, wherein the resource interaction data is generated by a resource interaction initiating device when having received a resource interaction trigger operation for a target application (220); determining the target application and a target interaction device on the basis of the resource interaction data, wherein the target application is an application for performing resource interaction, and the target interaction device is at least one device for performing resource interaction (230); and calling, by means of the target application, a target interaction resource at the target interaction device (260). By means of the solution of the embodiments of the present application, distributed calling of resources can be realized, such that application functions of more types can be realized.

Description

资源交互方法、装置、终端及存储介质Resource interaction method, device, terminal and storage medium
本申请要求于2021年11月29日提交的申请号为202111436006.X、发明名称为“资源交互方法、装置、终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111436006.X and the title of the invention "resource interaction method, device, terminal and storage medium" filed on November 29, 2021, the entire contents of which are incorporated herein by reference Applying.
技术领域technical field
本申请实施例涉及通信技术领域,特别涉及一种资源交互方法、装置、终端及存储介质。The embodiments of the present application relate to the field of communication technologies, and in particular to a resource interaction method, device, terminal, and storage medium.
背景技术Background technique
随着应用(Application,App)技术的不断发展,越来越多功能丰富的应用应运而生,为人们的日常生活带来便利。With the continuous development of application (Application, App) technology, more and more multi-functional applications emerge as the times require, bringing convenience to people's daily life.
相关技术中,用户在使用应用之前,首先需要从应用商店下载应用安装包,并通过解析应用安装包将应用安装在终端中,然后点击应用图标以启动应用。另外,用户将应用分享给其他设备,就是将应用安装包的下载路径分享给其他设备,或者将应用安装包数据发送给其他设备。此种情况下被分享方设备需要根据应用安装包的下载路径或者应用安装包数据下载安装应用才能使用。In related technologies, before using the application, the user first needs to download the application installation package from the application store, and install the application in the terminal by parsing the application installation package, and then click the application icon to start the application. In addition, when the user shares the application with other devices, it means sharing the download path of the application installation package with other devices, or sending the data of the application installation package to other devices. In this case, the shared device needs to download and install the application according to the download path of the application installation package or the data of the application installation package before using it.
发明内容Contents of the invention
本申请实施例提供了一种资源交互方法、装置、终端及存储介质。所述技术方案如下:Embodiments of the present application provide a resource interaction method, device, terminal, and storage medium. Described technical scheme is as follows:
一方面,本申请实施例提供了一种资源交互方法,所述方法包括:On the one hand, the embodiment of the present application provides a resource interaction method, the method includes:
获取资源交互数据,所述资源交互数据由资源交互发起设备在接收到对目标应用的资源交互触发操作时生成,所述资源交互触发操作包括分享操作和共享操作中的至少一种;Acquiring resource interaction data, the resource interaction data is generated by the resource interaction initiating device when receiving a resource interaction trigger operation for the target application, the resource interaction trigger operation includes at least one of a sharing operation and a sharing operation;
基于所述资源交互数据确定所述目标应用以及目标交互设备,所述目标应用为进行资源交互的应用,所述目标交互设备为至少一个进行资源交互的设备;determining the target application and the target interaction device based on the resource interaction data, the target application is an application for resource interaction, and the target interaction device is at least one device for resource interaction;
通过所述目标应用调用所述目标交互设备处的目标交互资源。A target interaction resource at the target interaction device is invoked by the target application.
另一方面,本申请实施例提供了一种资源交互方法,所述方法包括:On the other hand, an embodiment of the present application provides a resource interaction method, the method including:
响应于对目标应用的资源交互触发操作,生成资源交互数据;generating resource interaction data in response to a resource interaction trigger operation on the target application;
响应于交互参与设备的资源调用请求,向所述交互参与设备提供目标交互资源,所述资源调用请求由所述交互参与设备基于所述资源交互数据确定出目标应用以及目标交互设备后,通过所述目标应用发送。In response to the resource invocation request of the interaction participating device, provide the target interaction resource to the interaction participating device. After the resource invoking request is determined by the interaction participating device based on the resource interaction data to determine the target application and the target interaction device, through the sent by the target application.
另一方面,本申请实施例提供了一种资源交互装置,所述装置包括:On the other hand, an embodiment of the present application provides a resource interaction device, the device includes:
获取模块,用于获取资源交互数据,所述资源交互数据由资源交互发起设备在接收到对目标应用的资源交互触发操作时生成;An acquisition module, configured to acquire resource interaction data, which is generated by the resource interaction initiating device when receiving a resource interaction trigger operation on the target application;
确定模块,用于基于所述资源交互数据确定所述目标应用以及目标交互设备,所述目标应用为进行资源交互的应用,所述目标交互设备为至少一个进行资源交互的设备;A determining module, configured to determine the target application and the target interaction device based on the resource interaction data, the target application is an application for resource interaction, and the target interaction device is at least one device for resource interaction;
调用模块,用于通过所述目标应用调用所述目标交互设备处的目标交互资源。A calling module, configured to use the target application to call the target interaction resource on the target interaction device.
另一方面,本申请实施例提供了一种资源交互装置,所述装置包括:On the other hand, an embodiment of the present application provides a resource interaction device, the device includes:
第一生成模块,用于响应于对目标应用的资源交互触发操作,生成资源交互数据;A first generation module, configured to generate resource interaction data in response to a resource interaction trigger operation on the target application;
提供模块,用于响应于交互参与设备的资源调用请求,向所述交互参与设备提供目标交互资源,所述资源调用请求由所述交互参与设备基于所述资源交互数据确定出目标应用以及目标交互设备后,通过所述目标应用发送。A providing module, configured to provide a target interaction resource to the interaction participation device in response to a resource invocation request of the interaction participation device, and the resource invocation request is determined by the interaction participation device based on the resource interaction data to determine a target application and a target interaction device, sent through the target application.
另一方面,本申请实施例提供了一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一段程序,所述至少一段程序由所述处理器加载并执行以实现如上述方面所述的资源交互方法。On the other hand, an embodiment of the present application provides a terminal, the terminal includes a processor and a memory, at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to implement the above-mentioned The resource interaction method described in the aspect.
另一方面,本申请实施例提供了一种计算机可读存储介质,所述可读存储介质中存储有至少一段程序,所述至少一段程序由处理器加载并执行以实现如上述方面所述的资源交互方法。On the other hand, an embodiment of the present application provides a computer-readable storage medium, at least one program is stored in the readable storage medium, and the at least one program is loaded and executed by a processor to implement the above-mentioned Resource interaction methods.
另一方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中;终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该终端执行上述方面提供的资源交互方法。On the other hand, an embodiment of the present application provides a computer program product, the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; the processor of the terminal reads the computer program from the computer-readable storage medium. Instructions, the processor executes the computer instructions, so that the terminal executes the resource interaction method provided in the above aspects.
附图说明Description of drawings
图1示出了本申请一个示例性实施例提供的实施环境的示意图;FIG. 1 shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
图2示出了本申请一个示例性实施例提供的资源交互方法的流程图;FIG. 2 shows a flowchart of a resource interaction method provided by an exemplary embodiment of the present application;
图3示出了本申请另一个示例性实施例提供的资源交互方法的流程图;FIG. 3 shows a flowchart of a resource interaction method provided by another exemplary embodiment of the present application;
图4示出了本申请一个示例性实施例提供的应用管理器界面示意图;FIG. 4 shows a schematic diagram of an application manager interface provided by an exemplary embodiment of the present application;
图5示出了本申请另一个示例性实施例提供的应用管理器界面示意图;Fig. 5 shows a schematic diagram of an application manager interface provided by another exemplary embodiment of the present application;
图6示出了本申请另一个示例性实施例提供的应用管理器界面示意图;Fig. 6 shows a schematic diagram of an application manager interface provided by another exemplary embodiment of the present application;
图7示出了本申请一个示例性实施例提供的通过图形码分享资源的界面示意图;Fig. 7 shows a schematic diagram of an interface for sharing resources through graphic codes provided by an exemplary embodiment of the present application;
图8示出了本申请一个示例性实施例提供的通过交互链接分享资源的界面示意图;Fig. 8 shows a schematic diagram of an interface for sharing resources through interactive links provided by an exemplary embodiment of the present application;
图9示出了本申请一个示例性实施例提供的通过近场通信方式分享资源的界面示意图;Fig. 9 shows a schematic diagram of an interface for sharing resources through near-field communication provided by an exemplary embodiment of the present application;
图10示出了本申请一个示例性实施例提供的设备选择器结构示意图;Fig. 10 shows a schematic structural diagram of a device selector provided by an exemplary embodiment of the present application;
图11示出了本申请另一个示例性实施例提供的资源交互方法的流程图;Fig. 11 shows a flowchart of a resource interaction method provided by another exemplary embodiment of the present application;
图12示出了本申请一个示例性实施例提供的取消资源分享的界面示意图;Fig. 12 shows a schematic diagram of an interface for canceling resource sharing provided by an exemplary embodiment of the present application;
图13示出了本申请另一个示例性实施例提供的资源交互方法的流程图;Fig. 13 shows a flowchart of a resource interaction method provided by another exemplary embodiment of the present application;
图14示出了本申请一个示例性实施例提供的设备级资源分享的原理示意图;Fig. 14 shows a schematic diagram of the principle of device-level resource sharing provided by an exemplary embodiment of the present application;
图15示出了本申请一个示例性实施例提供的用户级资源分享的原理示意图;Fig. 15 shows a schematic diagram of the principle of user-level resource sharing provided by an exemplary embodiment of the present application;
图16示出了本申请另一个示例性实施例提供的资源交互方法的流程图;Fig. 16 shows a flowchart of a resource interaction method provided by another exemplary embodiment of the present application;
图17示出了本申请一个示例性实施例提供的创建共享组的界面示意图;Fig. 17 shows a schematic diagram of an interface for creating a sharing group provided by an exemplary embodiment of the present application;
图18示出了本申请另一个示例性实施例提供的资源交互方法的流程图;Fig. 18 shows a flowchart of a resource interaction method provided by another exemplary embodiment of the present application;
图19示出了本申请一个示例性实施例提供的加入共享组的界面示意图;Fig. 19 shows a schematic diagram of an interface for joining a sharing group provided by an exemplary embodiment of the present application;
图20示出了本申请一个示例性实施例提供的协同画板应用资源共享的界面示意图;Fig. 20 shows a schematic diagram of an interface of collaborative drawing board application resource sharing provided by an exemplary embodiment of the present application;
图21示出了本申请一个示例性实施例提供的设备级资源共享的原理示意图;Fig. 21 shows a schematic diagram of the principle of device-level resource sharing provided by an exemplary embodiment of the present application;
图22示出了本申请一个示例性实施例提供的用户级资源共享的原理示意图;Fig. 22 shows a schematic diagram of the principle of user-level resource sharing provided by an exemplary embodiment of the present application;
图23示出了本申请一个示例性实施例提供的解散共享组的界面示意图;Fig. 23 shows a schematic diagram of an interface for disbanding a sharing group provided by an exemplary embodiment of the present application;
图24示出了本申请一个示例性实施例提供的移除共享成员的界面示意图;Fig. 24 shows a schematic diagram of an interface for removing shared members provided by an exemplary embodiment of the present application;
图25示出了本申请一个示例性实施例提供的退出共享组的界面示意图;Fig. 25 shows a schematic diagram of an interface for exiting a sharing group provided by an exemplary embodiment of the present application;
图26示出了本申请一示例性实施例提供的资源交互装置的结构方框图;Fig. 26 shows a structural block diagram of a resource interaction device provided by an exemplary embodiment of the present application;
图27示出了本申请另一示例性实施例提供的资源交互装置的结构方框图;Fig. 27 shows a structural block diagram of a resource interaction device provided by another exemplary embodiment of the present application;
图28示出了本申请一示例性实施例提供的终端的结构框图。Fig. 28 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。The "plurality" mentioned herein means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship.
下面对本文出现的名词进行解释。The nouns appearing in this article are explained below.
微应用:即本申请实施例中的目标应用,微应用可以看做是由服务构成的集合,用于通过服务之间的调用实现特定的业务逻辑。不同于传统应用只能运行在特定操作系统上,微应用的服务可以是不同操作系统上的服务,即微应用支持异构操作系统,可以实现跨平台运行。不同于传统应用在使用前需要下载,并与设备绑定,微应用采用订阅机制,并与用户绑定,即通过用户帐号下的某一设备订阅微应用后,该用户帐号下的各个设备均可以使用该微应用。不同于传统应用在运行前需要下载并安装应用安装包,比如,在运行安卓应用前,需要下载apk包,微应用在运行前只需要下载对应的应用脚本,微应用过程中,即通过微应用引擎执行该应用脚本,实现应用功能。相较于传统应用,应用脚本的代码量更低,因此占用的存储空间较小,且有利于动态部署和更新。Micro-application: that is, the target application in the embodiment of this application. Micro-application can be regarded as a collection composed of services, and is used to implement specific business logic through calls between services. Unlike traditional applications that can only run on a specific operating system, the services of micro-apps can be services on different operating systems, that is, micro-apps support heterogeneous operating systems and can run across platforms. Unlike traditional applications that need to be downloaded before use and bound to devices, micro-apps adopt a subscription mechanism and are bound to users. This microapp can be used. Different from traditional applications that need to download and install the application installation package before running, for example, before running an Android application, you need to download the apk package. Before running a micro application, you only need to download the corresponding application script. The engine executes the application script to realize application functions. Compared with traditional applications, application scripts have a lower code volume, so they occupy less storage space and are conducive to dynamic deployment and updates.
服务:作为微应用运行过程中的最小单元,用于实现特定任务。比如,截屏服务用于实现设备截屏功能、投屏服务用于实现设备间的显示画面投屏等等。并且,微应用运行过程中调用的服务可以为当前设备上的服务,也可以是其他设备上的服务。比如,微应用运行过程中,可以通过调用其他设备上的截屏服务,获取其他设备的设备截屏,并通过调用图片显示服务,对其他设备的设备截屏进行显示。不同于传统应用安装过程中,需要将运行过程中使用到的所有服务预先安装在本地,由于微应用的业务逻辑在运行过程中动态组装,因此微应用中的服务支持动态部署,即在运行过程基于当前设备所执行的业务逻辑,将业务逻辑对应的服务动态部署至当前设备。相应的,当通过多个设备实现同一微应用的应用功能时,由于不同设备的业务逻辑可能不同,因此不同设备处部署的服务也可能存在差异,即微应用中的服务具有差分部署的特性。在一种可能的实施方式中,构成微应用的服务可以包括静态服务和动态服务,其中,静态服务指由宿主应用提供的服务,需要预安装在设备中,而动态服务则是指支持动态部署的服务,可以在微应用运行过程中动态部署在设备中。Service: As the smallest unit in the running process of micro-applications, it is used to achieve specific tasks. For example, the screen capture service is used to realize the screen capture function of the device, and the screen projection service is used to realize the screen projection of the display screen between devices, and so on. Moreover, the service invoked during the running of the micro-application may be a service on the current device or a service on other devices. For example, during the running of the micro-app, you can obtain the device screenshots of other devices by calling the screenshot service on other devices, and display the device screenshots of other devices by calling the image display service. Different from the traditional application installation process, all the services used in the running process need to be pre-installed locally. Since the business logic of the micro-application is dynamically assembled during the running process, the services in the micro-application support dynamic deployment, that is, during the running process Based on the business logic executed by the current device, the service corresponding to the business logic is dynamically deployed to the current device. Correspondingly, when the application function of the same micro-application is implemented by multiple devices, since the business logic of different devices may be different, the services deployed on different devices may also be different, that is, the services in the micro-application have the characteristics of differential deployment. In a possible implementation, the services constituting the micro-application may include static services and dynamic services, where static services refer to services provided by the host application and need to be pre-installed in the device, while dynamic services refer to services that support dynamic deployment The service can be dynamically deployed in the device during the running of the micro application.
另外需要说明的是,在本申请实施例中分享和共享的对象是资源,前述的服务仅仅是资源的一种类型。因此在本申请中资源包括文件资源、硬件资源以及服务资源。文件资源是以文件形式存在的资源,例如图片、视频、音频、word文档、表格文件等。硬件资源是指设备的硬件能力,例如摄像头的拍照、摄像能力,CPU(Central Processing Unit,中央处理器)的计算能力等。通常这类资源通常需要封装一层软件接口才能 进行使用。服务资源即上文中提出的截屏服务、投屏服务、本地搜索服务、导航服务等。In addition, it should be noted that in the embodiment of the present application, the shared and shared objects are resources, and the aforementioned services are only one type of resources. Therefore, resources in this application include file resources, hardware resources and service resources. File resources are resources that exist in the form of files, such as pictures, videos, audios, word documents, and table files. Hardware resources refer to the hardware capabilities of the device, such as the camera's ability to take pictures and record images, and the computing power of the CPU (Central Processing Unit, central processing unit). Usually, such resources usually need to be encapsulated with a layer of software interface before they can be used. Service resources are the screen capture service, screen projection service, local search service, navigation service, etc. mentioned above.
下面对本申请实施例的实施环境进行介绍。The implementation environment of the embodiment of the present application is introduced below.
请参考图1,其中示出了本申请一示例性实施例提供的实施环境的示意图。该实施环境包括第一终端111、第二终端112、第三终端121以及第四终端122,第一终端111以及第二终端112登录有第一用户账号110,第三终端121以及第四终端122登录有第二用户账号120,此外该实施环境还包括服务器130。Please refer to FIG. 1 , which shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application. The implementation environment includes a first terminal 111, a second terminal 112, a third terminal 121, and a fourth terminal 122, the first terminal 111 and the second terminal 112 are logged in with the first user account 110, the third terminal 121, and the fourth terminal 122 A second user account 120 is logged in, and the implementation environment further includes a server 130 .
在本申请实施例中,目标应用140分别与第一用户账号110以及第二用户账号120进行绑定,也就是说,第一用户账号110或者第二用户账号120下任一终端订阅目标应用140,则第一用户账号110或者第二用户账号120下的其他终端也订阅目标应用140,因此第一终端111、第二终端112、第三终端121以及第四终端122均订阅有目标应用140。In this embodiment of the application, the target application 140 is bound to the first user account 110 and the second user account 120 respectively, that is, any terminal under the first user account 110 or the second user account 120 subscribes to the target application 140 , then other terminals under the first user account 110 or the second user account 120 also subscribe to the target application 140 , so the first terminal 111 , the second terminal 112 , the third terminal 121 and the fourth terminal 122 all subscribe to the target application 140 .
目标应用140可以看做是多种资源的集合,该资源可以是图片、文件、视频等文件资源,也可以是截屏服务、投屏服务等服务资源,也可以是摄像头的拍照能力、CPU的计算能力等硬件资源,本申请实施例对此不作限定。The target application 140 can be regarded as a collection of various resources. The resources can be file resources such as pictures, files, and videos, or service resources such as screenshot services and screen projection services, or can be the camera's ability to take pictures and the computing power of the CPU. Capabilities and other hardware resources are not limited in this embodiment of the present application.
可选地,该目标应用140可以是相册应用、多设备截屏应用、游戏投屏应用、协同画板应用等,本申请实施例对此不作限定。另外不同的应用所对应的资源类型不同,例如相册应用对应图片、视频等文件资源,多设备截屏应用、游戏投屏应用等对应的是截屏服务、投屏服务等服务资源。Optionally, the target application 140 may be a photo album application, a multi-device screenshot application, a game screen projection application, a collaborative drawing board application, etc., which is not limited in this embodiment of the present application. In addition, different applications correspond to different resource types. For example, the photo album application corresponds to file resources such as pictures and videos, and the multi-device screenshot application and game screen projection application correspond to service resources such as screenshot service and screen projection service.
第一用户账号110下还包括其他终端,本申请实施例仅以第一终端111以及第二终端112来举例说明,同理,第二用户账号120下也还包括其他终端,本申请实施例仅以第三终端121和第四终端122来举例说明。第一终端111、第二终端112、第三终端121以及第四终端122的设备类型相同或不同,该设备类型包括:智能手机、平板电脑、电子书阅读器、动态影像专家压缩标准音频层面3(Moving Picture Experts Group Audio Layer III,MP3)播放器、动态影像专家压缩标准音频层面4(Moving Picture Experts Group Audio Layer IV,MP4)播放器、膝上型便携计算机、台式计算机、智能家居、智能穿戴设备等至少一种。The first user account 110 also includes other terminals. The embodiment of the present application only uses the first terminal 111 and the second terminal 112 as examples. Similarly, the second user account 120 also includes other terminals. The embodiment of the present application only The third terminal 121 and the fourth terminal 122 are used as examples for illustration. The device types of the first terminal 111, the second terminal 112, the third terminal 121 and the fourth terminal 122 are the same or different. (Moving Picture Experts Group Audio Layer III, MP3) player, Moving Picture Experts Group Audio Layer IV (MP4) player, laptop computer, desktop computer, smart home, smart wearable Equipment and so on at least one.
第一终端111、第二终端112、第三终端121以及第四终端122以及其他终端通过无线网络或者有线网络与服务器130相连。The first terminal 111 , the second terminal 112 , the third terminal 121 , the fourth terminal 122 and other terminals are connected to the server 130 through a wireless network or a wired network.
服务器130可以是一台服务器、多台服务器组成的服务器集群、云计算平台和虚拟化中心中的至少一种。服务器130部署有以下模块:用户管理131、设备组管理132、共享组管理133以及资源网关管理134。用户管理131用于管理用户账号信息,设备组管理132用于管理用户账号下对应的所有设备信息。共享组管理133用于共享资源时对共享组内的设备或者用户账号进行管理。资源网关管理134用于管理设备和资源网关的映射关系,用于实现应用的资源调用。The server 130 may be at least one of a server, a server cluster composed of multiple servers, a cloud computing platform, and a virtualization center. The server 130 is deployed with the following modules: user management 131 , device group management 132 , sharing group management 133 and resource gateway management 134 . The user management 131 is used to manage user account information, and the device group management 132 is used to manage all device information corresponding to the user account. The sharing group management 133 is used to manage devices or user accounts in the sharing group when sharing resources. The resource gateway management 134 is used to manage the mapping relationship between the device and the resource gateway, and is used to realize the resource calling of the application.
在本申请实施例中,可以在不同终端以及不同用户之间实现资源的分享或者共享。其中分享是指分享方将资源分享给被分享方,被分享方可以调用分享方的资源。在一种可能的实施方式中,分享方和被分享方可以是终端,该终端可以是同一用户账号下的不同终端,也可以是不同用户账号下的不同终端,例如,分享方和被分享方可以是第一终端111、第二终端112、第三终端121以及第四终端122中的任意两个终端。示例性的,以第一终端111为分享方,第三终端121为被分享方为例进行说明。第三终端121作为被分享方可以调用分享方第一终端111中与目标应用140对应的资源。In the embodiment of the present application, sharing or sharing of resources can be realized between different terminals and different users. Among them, sharing means that the sharing party shares resources with the shared party, and the shared party can call the resources of the sharing party. In a possible implementation manner, the sharing party and the shared party may be terminals, and the terminals may be different terminals under the same user account, or different terminals under different user accounts, for example, the sharing party and the shared party It may be any two terminals among the first terminal 111 , the second terminal 112 , the third terminal 121 and the fourth terminal 122 . Exemplarily, description is made by taking the first terminal 111 as the sharing party and the third terminal 121 as the shared party as an example. As the shared party, the third terminal 121 can call the resource corresponding to the target application 140 in the sharing party's first terminal 111 .
在另一种可能的实施方式中,分享方和被分享方可以是不同的用户。示例的,以第一用户账号110为分享方、第二用户账号120为被分享方进行说明。第二用户账号120下的任一终端可以调用第一用户账号110下所有终端中与目标应用140对应的资源,例如第二用户账号120下的第三终端121可以调用第一用户账号110下的第一终端111以及第二终端112中与目标应用140对应的资源。In another possible implementation manner, the sharing party and the shared party may be different users. As an example, the first user account 110 is used as the sharer, and the second user account 120 is used as the shared party for illustration. Any terminal under the second user account 120 can call resources corresponding to the target application 140 in all terminals under the first user account 110, for example, a third terminal 121 under the second user account 120 can call resources under the first user account 110. Resources corresponding to the target application 140 in the first terminal 111 and the second terminal 112 .
其中,共享是指多个共享成员关联在一起形成共享组,在同一个组内的所有共享成员可以相互调用其他成员的资源。在一种可能的实施方式中,共享组成员可以是终端,例如共享成员可以第一终端111、第二终端112、第三终端121以及第四终端122中的至少两个终端。示例性的,第一终端111、第二终端112以及第三终端121组成共享组,所有终端都可以相互调用其他终端中与目标应用140对应的资源。例如,第一终端111可以调用第二终端112、第三终端121以及包括自己中与目标应用140对应的资源,同理,第二终端112、第三终端121也如此。Among them, sharing means that multiple sharing members are associated together to form a sharing group, and all sharing members in the same group can call resources of other members mutually. In a possible implementation manner, the sharing group members may be terminals, for example, the sharing members may be at least two terminals among the first terminal 111 , the second terminal 112 , the third terminal 121 and the fourth terminal 122 . Exemplarily, the first terminal 111 , the second terminal 112 and the third terminal 121 form a sharing group, and all terminals can mutually invoke resources corresponding to the target application 140 in other terminals. For example, the first terminal 111 may call the second terminal 112 and the third terminal 121 and include its own resources corresponding to the target application 140 , and the same is true for the second terminal 112 and the third terminal 121 .
在另一种可能的实施方式中,共享组成员也可以是不同用户。示例性的,第一用户账号110和第二用户账号120组成共享组,则共享组内的成员即包括第一用户账号110和第二用户账号120下所有的终端,也就是说共享组内的成员为第一终端111、第二终端112、第三终端121以及第四终端122,所有终端都可以相互调用其他终端中与目标应用140对应的资源。例如,第一终端111可以调用第二终端112、第三终端121、第四终端122以及包括自己中与目标应用140对应的资源;第二终端112可以调用第一终端111、第三终端121、第四终端122以及包括自己中与目标应用140对应的资源。同理,第三终端121以及第四终端122也是如此。In another possible implementation manner, the members of the sharing group may also be different users. Exemplarily, the first user account 110 and the second user account 120 form a sharing group, and the members in the sharing group include all terminals under the first user account 110 and the second user account 120, that is to say, all terminals in the sharing group The members are the first terminal 111 , the second terminal 112 , the third terminal 121 and the fourth terminal 122 , and all terminals can call resources corresponding to the target application 140 in other terminals. For example, the first terminal 111 can call the second terminal 112, the third terminal 121, the fourth terminal 122 and resources corresponding to the target application 140 in itself; the second terminal 112 can call the first terminal 111, the third terminal 121, The fourth terminal 122 also includes its own resources corresponding to the target application 140 . Similarly, the same is true for the third terminal 121 and the fourth terminal 122 .
在本申请实施例中,以资源交互发起设备与交互参与设备为例对资源交互方法进行说明说明。资源交 互发起设备和交互参与设备可以是智能手机、电视、个人计算机(Personal Computer,PC)、智能穿戴设备、智能家居等,本申请实施例对此不作限定。可选地,资源交互发起设备和交互参与设备可以是同一用户的不同设备,也可以是不同用户的不同设备,本申请实施例对此不作限定。请参考图2,其示出了本申请一示例性实施例提供的资源交互方法的流程图,该方法包括:In the embodiment of the present application, a resource interaction method is described by taking a resource interaction initiating device and an interaction participating device as examples. The resource interaction initiating device and the interaction participating device may be a smart phone, a TV, a personal computer (Personal Computer, PC), a smart wearable device, a smart home, etc., which are not limited in this embodiment of the present application. Optionally, the resource interaction initiating device and the interaction participating device may be different devices of the same user, or may be different devices of different users, which is not limited in this embodiment of the present application. Please refer to FIG. 2, which shows a flowchart of a resource interaction method provided by an exemplary embodiment of the present application, the method including:
步骤210,响应于对目标应用的资源交互触发操作,资源交互发起设备生成资源交互数据。Step 210, in response to a resource interaction trigger operation on the target application, the resource interaction initiating device generates resource interaction data.
在本申请实施例中,资源交互发起设备订阅有目标应用,资源交互发起设备在接收到用户对目标应用的资源交互触发操作时,生成资源交互数据。In this embodiment of the present application, the resource interaction initiating device subscribes to a target application, and the resource interaction initiating device generates resource interaction data when receiving a user's resource interaction trigger operation on the target application.
在一种可能的实施方式中,目标应用可以是微应用。In a possible implementation manner, the target application may be a micro application.
可选地,目标应用可以是相册应用、多设备截屏应用、游戏观战应用、协同画板应用等,本申请实施例对此不作限定。Optionally, the target application may be a photo album application, a multi-device screenshot application, a game viewing application, a collaborative drawing board application, etc., which is not limited in this embodiment of the present application.
在一种可能的实施方式中,资源交互触发操作可以是分享操作。In a possible implementation manner, the resource interaction trigger operation may be a sharing operation.
可选地,分享操作可以对目标应用界面分享按键的点击操作、长按操作等,本申请实施例对此不作限定。Optionally, the sharing operation may be a click operation, a long press operation, etc. of a share button on the target application interface, which is not limited in this embodiment of the present application.
需要说明的是,分享是指资源交互的方式是单向的,也就是说,资源交互发起设备将交互资源分享给交互参与设备,交互参与设备可以调用资源交互发起设备的资源,但资源交互发起设备无法调用交互参与设备的资源。It should be noted that sharing means that the way of resource interaction is one-way. The device was unable to invoke the resource of an interactive participating device.
在另一种可能的实施方式中,资源交互触发操作可以是共享操作。In another possible implementation manner, the resource interaction trigger operation may be a sharing operation.
可选地,共享操作可以是对目标应用界面共享按键的点击操作、长按操作等,本申请实施例对此不作限定。Optionally, the sharing operation may be a click operation, a long press operation, etc. on the share button of the target application interface, which is not limited in this embodiment of the present application.
需要说明的是,共享是指资源交互的方式是双向的,也就是说,资源交互发起设备将交互资源分享给交互参与设备,交互参与设备和资源交互发起设备可以相互调用对方的资源。It should be noted that sharing means that resource interaction is bidirectional, that is, the resource interaction initiating device shares the interaction resources with the interaction participating devices, and the interaction participating device and the resource interaction initiating device can call each other's resources.
关于资源交互数据,资源交互数据中携带有标识信息,其中,至少包括目标应用标识,以便资源交互发起设备和交互参与设备进行资源交互。不同的资源交互触发操作下生成的资源交互数据不同,也就是说对目标应用分别进行分享操作以及共享操作时,资源交互发起设备生成的资源交互数据不同。Regarding the resource interaction data, the resource interaction data carries identification information, which at least includes a target application identification, so that the resource interaction initiating device and the interaction participating device can perform resource interaction. The resource interaction data generated under different resource interaction trigger operations are different, that is to say, the resource interaction initiating device generates different resource interaction data when the target application is respectively subjected to a sharing operation and a sharing operation.
步骤220,交互参与设备获取资源交互数据。In step 220, the interaction participating device acquires resource interaction data.
关于资源交互数据的获取方式,在一种可能的实施例方式中,可以是资源交互发起设备发送资源交互数据,交互参与设备获取该资源交互数据。在另一种可能的实施方式中,也可以是资源交互发起设备对资源交互数据进行封装后,交互参与设备从资源交互发起设备处获取。Regarding the manner of obtaining resource interaction data, in a possible embodiment manner, the resource interaction initiating device may send the resource interaction data, and the interaction participating device may obtain the resource interaction data. In another possible implementation manner, after the resource interaction initiating device encapsulates the resource interaction data, the interaction participating device obtains it from the resource interaction initiating device.
步骤230,交互参与设备基于资源交互数据确定目标应用以及目标交互设备,目标应用为进行资源交互的应用,目标交互设备为至少一个进行资源交互的设备。Step 230, the interaction participating device determines a target application and a target interaction device based on the resource interaction data, the target application is an application for resource interaction, and the target interaction device is at least one device for resource interaction.
在本申请实施例中,资源交互数据包含确定目标应用以及目标交互设备的标识信息,交互参与设备基于该标识信息确定目标应用以及目标交互设备。In this embodiment of the present application, the resource interaction data includes identification information for determining the target application and the target interaction device, and the interaction participating device determines the target application and the target interaction device based on the identification information.
可选地,目标交互设备的数量可以是一个也可以是多个,本申请实施例对此不作限定。Optionally, the number of target interaction devices may be one or more, which is not limited in this embodiment of the present application.
可选地,目标交互设备可以是同一用户下的不同设备,也可以是不同用户下的不同设备,本申请实施例对此不作限定。Optionally, the target interaction devices may be different devices under the same user, or different devices under different users, which is not limited in this embodiment of the present application.
另外,需要说明的是,资源交互发起设备为目标交互设备中的一个,在全文申请实施例中,为了方便表述,以目标交互设备为资源交互发起设备为例进行说明。In addition, it should be noted that the resource interaction initiating device is one of the target interaction devices. In the embodiments of the full application, for the convenience of expression, the target interaction device is used as an example for illustration.
步骤240,交互参与设备基于资源交互数据确定出目标应用以及目标交互设备后,通过目标应用发送资源调用请求。Step 240, after the interaction participating device determines the target application and the target interaction device based on the resource interaction data, it sends a resource call request through the target application.
交互参与设备确定目标应用以及目标交互设备后,向资源交互发起设备发送资源调用请求。资源调用请求用于调用目标交互设备处的目标交互资源,该目标交互资源是根据目标应用的业务逻辑确定得到的,即实现目标应用的应用功能所需要使用到的资源。After the interaction participating device determines the target application and the target interaction device, it sends a resource invocation request to the resource interaction initiating device. The resource invocation request is used to invoke the target interaction resource on the target interaction device. The target interaction resource is determined according to the business logic of the target application, that is, the resources needed to realize the application function of the target application.
步骤250,响应于交互参与设备的资源调用请求,资源交互发起设备向交互参与设备提供目标交互资源。Step 250, in response to the resource invocation request of the interaction participating device, the resource interaction initiating device provides the target interaction resource to the interaction participating device.
资源交互发起设备接收到交互参与设备的资源调用请求后,向交互参与设备提供目标交互资源。目标交互资源可以是文件资源、硬件资源、服务资源等,本申请实施例对此不作限定。After receiving the resource invocation request of the interaction participant device, the resource interaction initiating device provides the target interaction resource to the interaction participant device. The target interaction resource may be a file resource, a hardware resource, a service resource, etc., which is not limited in this embodiment of the present application.
可选地,文件资源可以是图片、视频、音频、word文档、表格文件等,本申请实施例对此不作限定。Optionally, the file resource may be a picture, video, audio, word document, form file, etc., which is not limited in this embodiment of the present application.
可选地,硬件资源可以是摄像头的拍照、摄像能力、各种传感器能力、硬件计算能力等,本申请实施例对此不作限定。Optionally, the hardware resource may be a camera's photographing capability, imaging capabilities, various sensor capabilities, hardware computing capabilities, etc., which are not limited in this embodiment of the present application.
可选地,服务资源可以是截屏服务、本地搜索服务、视频播放服务、导航服务、投屏服务等,本申请实施例对此不作限定。Optionally, the service resource may be a screenshot service, a local search service, a video playback service, a navigation service, a screen projection service, etc., which are not limited in this embodiment of the present application.
另外,需要说明的是,不同的目标应用对应不同的目标交互资源。例如,如果目标应用为相册应用时, 其对应的目标交互资源为图片、视频,属于文件资源的一种;如果目标应用为多机位相机应用,其对应的目标交互资源为摄像头拍照、摄像能力,属于硬件资源的一种;如果目标应用为截屏服务应用,其对应的目标交互资源为截屏服务,属于服务资源的一种。In addition, it should be noted that different target applications correspond to different target interaction resources. For example, if the target application is a photo album application, its corresponding target interactive resources are pictures and videos, which are one type of file resources; , which is a type of hardware resource; if the target application is a screen capture service application, its corresponding target interaction resource is a screen capture service, which is a type of service resource.
步骤260,交互参与设备通过目标应用调用目标交互设备处的目标交互资源。Step 260, the interaction participating device invokes the target interaction resource on the target interaction device through the target application.
交互参与设备通过其目标应用调用目标交互设备处的目标交互资源。The interaction participating device invokes the target interaction resource at the target interaction device through its target application.
交互参与设备通过目标应用向目标交互设备发送调用请求,请求调用目标交互资源,目标交互设备本地调用目标交互资源,并将调用结果反馈给交互参与设备。以目标应用为相册应用为例,交互参与设备通过相册应用向目标交互设备发送调用请求,请求调用相册应用的照片资源,目标交互设备调用其本地的照片资源,将照片资源反馈给交互参与设备。The interactive participating device sends a call request to the target interactive device through the target application, requesting to call the target interactive resource, and the target interactive device locally calls the target interactive resource, and feeds back the calling result to the interactive participating device. Taking the photo album application as an example for the target application, the interactive participating device sends a call request to the target interactive device through the photo album application, requesting to call the photo resource of the photo album application, and the target interactive device calls its local photo resource, and feeds back the photo resource to the interactive participating device.
综上所述,在本申请实施例中,基于对目标应用的分享或者共享操作,资源交互发起设备生成资源交互数据,交互参与设备基于获取的资源交互数据确定目标应用以及目标交互设备,进而从通过目标应用调用目标交互设备处的目标交互资源。和相关技术相比,在本申请实施例中分享和共享的对象不是目标应用本身,而是目标应用对应的资源。通过将目标应用对应的资源分享给其他设备,使得其他设备可以通过该目标应用调用对应的资源,从而实现目标应用功能。通过该机制,目标应用不仅能够使用当前设备的资源,还能够调用其他设备的资源,实现了资源的分布式调用,进而能够实现更多类型的应用功能。To sum up, in the embodiment of this application, based on the sharing or sharing operation of the target application, the resource interaction initiating device generates resource interaction data, and the interaction participating device determines the target application and the target interaction device based on the obtained resource interaction data, and then from A target interaction resource at the target interaction device is invoked by the target application. Compared with related technologies, in the embodiment of the present application, the object to be shared and shared is not the target application itself, but the resource corresponding to the target application. By sharing the resources corresponding to the target application with other devices, other devices can call the corresponding resources through the target application, thereby realizing the target application function. Through this mechanism, the target application can not only use the resources of the current device, but also call the resources of other devices, realize the distributed call of resources, and then realize more types of application functions.
可选地,基于资源交互数据确定目标应用以及目标交互设备,包括:Optionally, determining the target application and the target interaction device based on the resource interaction data includes:
基于资源交互数据,通过应用管理器确定目标应用,并启动目标应用,应用管理器用于管理不同应用的资源交互;Based on the resource interaction data, determine the target application through the application manager, and start the target application, and the application manager is used to manage the resource interaction of different applications;
基于资源交互数据,通过应用管理器以及设备选择器确定目标交互设备。Based on the resource interaction data, the target interaction device is determined through the application manager and the device selector.
可选地,当资源交互触发操作为分享操作时,资源交互数据中包含目标应用标识以及分享方标识;Optionally, when the resource interaction trigger operation is a sharing operation, the resource interaction data includes the target application identifier and the sharing party identifier;
基于资源交互数据,通过应用管理器以及设备选择器确定目标交互设备,包括:Based on the resource interaction data, determine the target interaction device through the application manager and device selector, including:
基于分享方标识,通过应用管理器以及设备选择器确定目标交互设备。Based on the sharing party identifier, the target interactive device is determined through the application manager and the device selector.
可选地,基于分享方标识,通过应用管理器以及设备选择器确定目标交互设备,包括:Optionally, based on the sharing party identifier, the target interactive device is determined through the application manager and the device selector, including:
在分享方标识为设备标识的情况下,通过应用管理器将设备标识所表征的设备确定为候选交互设备;或,In the case that the sharing party ID is a device ID, the application manager determines the device represented by the device ID as a candidate interactive device; or,
在分享方标识为用户标识的情况下,通过应用管理器获取用户标识对应的至少一个设备标识,并将设备标识所表征的设备确定为候选交互设备;In the case that the sharing party ID is the user ID, at least one device ID corresponding to the user ID is acquired through the application manager, and the device represented by the device ID is determined as a candidate interactive device;
通过设备选择器从候选交互设备中确定目标交互设备。Determine the target interactive device from the candidate interactive devices through the device selector.
可选地,通过设备选择器从候选交互设备中确定目标交互设备,包括:Optionally, the target interaction device is determined from candidate interaction devices through a device selector, including:
获取目标应用的设备选择策略;通过设备选择器,将符合设备选择策略的候选交互设备确定为目标交互设备;或,Acquiring the device selection policy of the target application; using a device selector, determining a candidate interactive device conforming to the device selection policy as a target interactive device; or,
基于候选交互设备显示设备选择列表;通过设备选择器,将设备选择列表中选中的候选交互设备确定为目标交互设备。A device selection list is displayed based on the candidate interaction devices; and a candidate interaction device selected in the device selection list is determined as a target interaction device through a device selector.
可选地,资源交互数据中还包含分享实例标识;Optionally, the resource interaction data also includes a sharing instance identifier;
通过目标应用调用目标交互设备处的目标交互资源,包括:Invoking the target interaction resource at the target interaction device through the target application, including:
基于分享实例标识,通过目标应用调用目标交互设备处的目标交互资源,目标交互设备用于对分享实例标识进行权限验证,并在分享实例标识通过权限验证时提供目标交互资源。Based on the shared instance identifier, the target application invokes the target interactive resource at the target interactive device, and the target interactive device is used to verify the authority of the shared instance identifier and provide the target interactive resource when the shared instance identifier passes the authority verification.
可选地,当资源交互触发操作为共享操作时,资源交互数据中包含目标应用标识以及共享组标识;Optionally, when the resource interaction trigger operation is a sharing operation, the resource interaction data includes a target application identifier and a sharing group identifier;
基于资源交互数据,通过应用管理器以及设备选择器确定目标交互设备,包括:Based on the resource interaction data, determine the target interaction device through the application manager and device selector, including:
基于共享组标识,通过应用管理器以及设备选择器通过确定目标交互设备;Based on the shared group identifier, determine the target interaction device through the application manager and the device selector;
方法还包括:Methods also include:
向目标交互设备提供目标交互资源。The target interaction resource is provided to the target interaction device.
可选地,基于共享组标识,通过应用管理器以及设备选择器通过确定目标交互设备,包括:Optionally, based on the shared group identifier, the target interaction device is determined through the application manager and the device selector, including:
通过应用管理器加入共享组标识所表征的共享组;Join the sharing group represented by the sharing group identifier through the application manager;
通过应用管理器确定共享组中的候选交互设备;determining, by the application manager, candidate interactive devices in the sharing group;
通过设备选择器从候选交互设备中确定目标交互设备。Determine the target interactive device from the candidate interactive devices through the device selector.
可选地,通过应用管理器确定共享组中的候选交互设备,包括:Optionally, the application manager determines the candidate interactive devices in the sharing group, including:
在共享组中包含设备标识的情况下,通过应用管理器将设备标识所表征的设备确定为候选交互设备;或,determining, by the application manager, the device characterized by the device identification as a candidate interactive device, where the device identification is included in the sharing group; or,
在共享组中包含用户标识的情况下,通过应用管理器获取用户标识对应的至少一个设备标识,并将设备标识所表征的设备确定为候选交互设备。In the case that the sharing group contains the user identifier, at least one device identifier corresponding to the user identifier is acquired through the application manager, and the device represented by the device identifier is determined as a candidate interactive device.
可选地,通过设备选择器从候选交互设备中确定目标交互设备,包括:Optionally, the target interaction device is determined from candidate interaction devices through a device selector, including:
获取目标应用的设备选择策略;通过设备选择器,将符合设备选择策略的候选交互设备确定为目标交互设备;或,Acquiring the device selection policy of the target application; using a device selector, determining a candidate interactive device conforming to the device selection policy as a target interactive device; or,
基于候选交互设备显示设备选择列表;通过设备选择器,将设备选择列表中选中的候选交互设备确定为目标交互设备。A device selection list is displayed based on the candidate interaction devices; and a candidate interaction device selected in the device selection list is determined as a target interaction device through a device selector.
可选地,方法还包括:Optionally, the method also includes:
响应于退出操作,通过应用管理器退出共享组,以及向服务器发送退出消息,服务器用于基于退出消息更新共享组,并将更新结果同步至目标交互设备;In response to the exit operation, exit the sharing group through the application manager, and send an exit message to the server, and the server is used to update the sharing group based on the exit message, and synchronize the update result to the target interactive device;
在接收到共享组解散消息的情况下,通过应用管理器退出共享组;In the case of receiving the disbandment message of the sharing group, exit the sharing group through the application manager;
在接收到移除消息的情况下,通过应用管理器退出共享组,移除消息用于指示被移除共享组。In the case of receiving the removal message, the application manager exits the sharing group, and the removal message is used to indicate that the sharing group is removed.
可选地,通过目标应用调用目标交互设备处的目标交互资源,包括:Optionally, calling the target interaction resource at the target interaction device through the target application includes:
基于目标交互设备的设备标识,获取目标交互设备的目标资源网关地址,目标资源网关地址为目标交互设备中资源网关的网关地址,资源网关用于管理设备中资源的调用;Obtaining a target resource gateway address of the target interactive device based on the device identifier of the target interactive device, where the target resource gateway address is the gateway address of the resource gateway in the target interactive device, and the resource gateway is used to manage resource calls in the device;
基于目标资源网关地址,通过目标应用访问目标资源网关以获取目标交互资源。Based on the address of the target resource gateway, the target application accesses the target resource gateway to obtain the target interaction resource.
可选地,获取资源交互数据,包括:Optionally, obtain resource interaction data, including:
从图形码中解析得到资源交互数据;或,Parse the resource interaction data from the graphics code; or,
从交互链接中解析得到资源交互数据;或,Resource interaction data parsed from interaction links; or,
通过近场通信方式接收资源交互数据。Receive resource interaction data through near field communication.
可选地,目标交互资源包括文件资源、硬件资源以及服务资源中的至少一种。Optionally, the target interaction resources include at least one of file resources, hardware resources and service resources.
可选地,响应于对目标应用的资源交互触发操作,生成资源交互数据,包括:Optionally, generating resource interaction data in response to resource interaction trigger operations on the target application, including:
响应于对目标应用的资源交互触发操作,通过应用管理器生成资源交互数据,应用管理器用于管理不同应用的资源交互;In response to a resource interaction trigger operation on the target application, resource interaction data is generated through an application manager, and the application manager is used to manage resource interaction of different applications;
响应于交互参与设备的资源调用请求,向交互参与设备提供目标交互资源,包括:In response to the resource invocation request of the interactive participating device, provide the interactive participating device with the target interactive resource, including:
响应于交互参与设备的资源调用请求,通过资源网关向交互参与设备提供目标交互资源,资源网关用于管理设备中资源的调用。In response to the resource invocation request of the interactive participating device, the target interaction resource is provided to the interactive participating device through the resource gateway, and the resource gateway is used to manage resource invocation in the device.
可选地,响应于对目标应用的资源交互触发操作,通过应用管理器生成资源交互数据,包括:Optionally, in response to a resource interaction trigger operation on the target application, the resource interaction data is generated by the application manager, including:
响应于对目标应用的分享操作,通过应用管理器生成包含目标应用标识以及分享方标识的资源交互数据。In response to the sharing operation on the target application, resource interaction data including the target application identifier and the sharing party identifier are generated through the application manager.
可选地,响应于对目标应用的分享操作,通过应用管理器生成包含目标应用标识以及分享方标识的资源交互数据,包括:Optionally, in response to the sharing operation on the target application, the resource interaction data including the target application identifier and the sharing party identifier is generated through the application manager, including:
响应于对目标应用的设备级分享操作,通过应用管理器生成包含目标应用标识以及设备标识的资源交互数据;In response to the device-level sharing operation on the target application, generate resource interaction data including the target application identifier and the device identifier through the application manager;
响应于对目标应用的用户级分享操作,通过应用管理器生成包含目标应用标识以及用户标识的资源交互数据,用户标识用于表征分享方对应的用户。In response to the user-level sharing operation on the target application, the resource interaction data including the target application ID and the user ID are generated through the application manager, and the user ID is used to represent the user corresponding to the sharing party.
可选地,资源交互数据中还包括分享实例标识;Optionally, the resource interaction data also includes a sharing instance identifier;
响应于交互参与设备的资源调用请求,向交互参与设备提供目标交互资源,包括:In response to the resource invocation request of the interactive participating device, provide the interactive participating device with the target interactive resource, including:
响应于交互参与设备的资源调用请求,对资源调用请求中包含的分享实例标识进行权限校验;In response to the resource invocation request of the interactive participating device, perform permission verification on the sharing instance identifier contained in the resource invocation request;
在分享实例标识通过权限校验的情况下,向交互参与设备提供目标交互资源。In the case that the sharing instance identifier passes the authority verification, the target interaction resource is provided to the interaction participating device.
可选地,方法还包括:Optionally, the method also includes:
响应于对目标应用的分享取消操作,删除分享实例标识。In response to a sharing cancellation operation on the target application, the sharing instance identifier is deleted.
可选地,响应于对目标应用的资源交互触发操作,通过应用管理器生成资源交互数据,包括:Optionally, in response to a resource interaction trigger operation on the target application, the resource interaction data is generated by the application manager, including:
响应于对目标应用的共享操作,通过应用管理器生成包含目标应用标识以及共享组标识的资源交互数据;In response to the sharing operation on the target application, generate resource interaction data including the target application identifier and the sharing group identifier through the application manager;
方法还包括:Methods also include:
通过目标应用调用交互参与设备处的目标交互资源。The target interaction resource at the interaction participating device is invoked by the target application.
可选地,方法还包括:Optionally, the method also includes:
响应于对目标应用的设备级共享操作,向服务器发送第一共享组创建请求,第一共享组创建请求中包含设备标识,服务器用于基于第一共享组创建请求创建由设备构成的共享组;In response to the device-level sharing operation on the target application, sending a first sharing group creation request to the server, the first sharing group creation request includes a device identifier, and the server is used to create a sharing group composed of devices based on the first sharing group creation request;
响应于对目标应用的用户级共享操作,向服务器发送第二共享组创建请求,第二共享组创建请求中包含用户标识,服务器用于基于第二共享组创建请求创建由用户构成的共享组。In response to the user-level sharing operation on the target application, a second sharing group creation request is sent to the server, the second sharing group creation request includes a user identifier, and the server is used to create a sharing group composed of users based on the second sharing group creation request.
可选地,方法还包括:Optionally, the method also includes:
响应于共享组解散操作,向服务器发送共享组解散指令,以便服务器基于共享组解散指令解散共享组,以及删除共享组标识。In response to the sharing group disbanding operation, a sharing group disbanding instruction is sent to the server, so that the server disbands the sharing group based on the sharing group disbanding instruction, and deletes the sharing group identifier.
可选地,方法还包括:Optionally, the method also includes:
响应于移除操作,向服务器发送移除指令,以便服务器基于移除指令更新共享组,将更新结果同步至共享组中的共享方,移除指令中包含待移除的交互参与设备。In response to the removal operation, a removal instruction is sent to the server, so that the server updates the sharing group based on the removal instruction, and synchronizes the update result to the sharing parties in the sharing group, and the removal instruction includes the interactive participation device to be removed.
可选地,方法还包括:Optionally, the method also includes:
接收服务器发送的退出消息,退出消息由主动退出共享组的交互参与设备触发。The exit message sent by the server is received, and the exit message is triggered by an interactive participating device that actively exits the sharing group.
可选地,方法还包括:Optionally, the method also includes:
在资源网关的网关地址更新的情况下,向服务器发送网关地址更新消息,以便服务器将更新后的网关地址同步至其它设备的设备选择器,设备选择器中存储有设备标识与网关地址之间的映射关系。When the gateway address of the resource gateway is updated, a gateway address update message is sent to the server, so that the server can synchronize the updated gateway address to the device selector of other devices, and the device selector stores the information between the device identifier and the gateway address. Mapping relations.
可选地,生成资源交互数据之后,方法包括:Optionally, after the resource interaction data is generated, the method includes:
基于资源交互数据生成图形码;或,generating graphical code based on resource interaction data; or,
基于资源交互数据生成交互链接;或,generating interaction links based on resource interaction data; or,
通过近场通信方式发送资源交互数据。Send resource interaction data through near field communication.
可选地,目标交互资源包括文件资源、硬件资源以及服务资源中的至少一种。Optionally, the target interaction resources include at least one of file resources, hardware resources and service resources.
在本申请实施例中,通过应用管理器确定目标应用,通过应用管理器和设备选择器确定目标交互设备,通过资源网关调用目标交互设备处的目标交互资源。下面以资源交互发起设备以及交互参与设备为例对资源交互方法进行介绍。请参考图3,其中示出了本申请另一个示例性实施例提供的资源交互方法的流程图,该方法包括:In the embodiment of the present application, the target application is determined by the application manager, the target interaction device is determined by the application manager and the device selector, and the target interaction resource on the target interaction device is invoked by the resource gateway. The resource interaction method is introduced below by taking the resource interaction initiating device and the interaction participating device as examples. Please refer to FIG. 3 , which shows a flow chart of a resource interaction method provided by another exemplary embodiment of the present application, and the method includes:
步骤310,响应于对目标应用的资源交互触发操作,资源交互发起设备通过应用管理器生成资源交互数据,应用管理器用于管理不同应用的资源交互。Step 310, in response to a resource interaction trigger operation on the target application, the resource interaction initiating device generates resource interaction data through an application manager, and the application manager is used to manage resource interaction of different applications.
资源交互发起设备部署有应用管理器,应用管理器用于管理应用,并实现资源交互发起设备与交互参与设备之间的资源交互。The resource interaction initiating device is deployed with an application manager, and the application manager is used to manage applications and implement resource interaction between the resource interaction initiating device and the interaction participating devices.
在一种可能的实施方式中,应用管理器可以是带有UI(User Interface,用户界面)的应用。In a possible implementation manner, the application manager may be an application with a UI (User Interface, user interface).
关于应用管理器的形态,在一种可能的实施方式中,应用管理器可以是超级应用,超级应用可以是一个客户端软件,其管理多种不同的应用。用户可以在超级应用中订阅或者取消订阅应用。用户也可以在超级应用中选择目标应用,并对目标应用进行分享操作或者共享操作。示例性的,如图4所示,超级应用包括应用列表界面41和应用详情界面42。应用列表界面41显示了用户已经订阅的不同的应用。以应用A为目标应用,用户点击应用A43,资源交互发起设备接收到用户对应用A43的触发操作,进入应用详情界面42,应用详情界面42包括分享按键421和共享按键422,通过对分享按键421或者共享按键422的点击操作,超级应用生成资源交互数据。Regarding the form of the application manager, in a possible implementation manner, the application manager may be a super application, and the super application may be a client software that manages various applications. Users can subscribe or unsubscribe applications in the super application. The user may also select a target application in the super application, and perform a sharing operation or sharing operation on the target application. Exemplarily, as shown in FIG. 4 , the super application includes an application list interface 41 and an application details interface 42 . The application list interface 41 displays the different applications that the user has subscribed to. With application A as the target application, the user clicks on application A43, and the resource interaction initiating device receives the user's trigger operation on application A43 and enters the application details interface 42. The application details interface 42 includes a share button 421 and a share button 422. Or by clicking the sharing button 422, the super application generates resource interaction data.
在另一种可能的实施方式中,应用管理器可以在应用图标选项中实现。示例性的,如图5所示,以应用A为目标应用,用户长按应用A52的图标,资源交互发起设备接收到用户对应用A52的触发操作,弹出操作选项界面51,操作选项界面51包含分享按键511和共享按键512,通过对分享按键511和共享按键512的点击操作,超级应用生成资源交互数据。In another possible implementation manner, the application manager can be implemented in the application icon option. Exemplarily, as shown in FIG. 5 , with application A as the target application, the user presses and holds the icon of application A52, and the resource interaction initiating device receives the user's trigger operation on application A52, and an operation option interface 51 pops up, and the operation option interface 51 includes The sharing button 511 and the sharing button 512 , through the click operation of the sharing button 511 and the sharing button 512 , the super application generates resource interaction data.
在另一种可能的实施方式中,以插件的形式嵌入应用内部。示例性的,如图6所示,以应用A为目标应用,用户打开应用A62时,资源交互发起设备接收到用户对应用A62的触发操作,应用A62的界面弹出分享共享操作界面61,分享共享操作界面61包括分享按键611和共享按键612,通过对分享按键611或者共享按键612的点击操作,超级应用生成资源交互数据。In another possible implementation manner, it is embedded in the application in the form of a plug-in. Exemplarily, as shown in FIG. 6 , with application A as the target application, when the user opens application A62, the resource interaction initiating device receives the user's trigger operation on application A62, and the interface of application A62 pops up a sharing and sharing operation interface 61, sharing and sharing The operation interface 61 includes a sharing button 611 and a sharing button 612 , and by clicking on the sharing button 611 or the sharing button 612 , the super application generates resource interaction data.
步骤311,资源交互发起设备基于资源交互数据生成图形码;或,基于资源交互数据生成交互链接;或,通过近场通信方式发送资源交互数据。In step 311, the resource interaction initiating device generates a graphic code based on the resource interaction data; or, generates an interaction link based on the resource interaction data; or, sends the resource interaction data through near field communication.
在一种可能的实施方式中,用户对目标应用进行资源交互触发操作后,资源交互发起设备生成图形码,图形码中包含资源交互数据。In a possible implementation manner, after the user performs a resource interaction trigger operation on the target application, the resource interaction initiating device generates a graphic code, and the graphic code includes resource interaction data.
可选地,图形码可以是二维码、条形码等,本申请实施例对此不作限定。Optionally, the graphic code may be a two-dimensional code, a barcode, etc., which is not limited in this embodiment of the present application.
示例性的,如图7所示,以相册应用为目标应用,应用管理器为超级应用为例。用户76在超级应用的应用列表界面71点击相册应用711,资源交互发起设备接收到用户76对相册应用711的触发操作,进入应用详情界面72,应用详情界面72中包含分享按键721以及共享按键722。用户76点击分享按键721,资源交互发起设备接收到用户76对分享按键721的触发操作,通过超级应用生成资源交互数据,并显示分享方式界面73。用户点击二维码分享按键731,资源交互发起设备接收到用户对二维码分享按键731的触发操作,生成二维码74,二维码74中包含资源交互数据。Exemplarily, as shown in FIG. 7 , take the photo album application as the target application and the application manager as the super application as an example. The user 76 clicks the photo album application 711 on the application list interface 71 of the super application, and the resource interaction initiating device receives the trigger operation of the user 76 on the photo album application 711, and enters the application details interface 72, which includes the sharing button 721 and the sharing button 722 . The user 76 clicks the sharing button 721 , and the resource interaction initiating device receives the trigger operation of the sharing button 721 by the user 76 , generates resource interaction data through the super application, and displays the sharing mode interface 73 . The user clicks the two-dimensional code sharing button 731, and the resource interaction initiating device receives the user's trigger operation on the two-dimensional code sharing button 731, and generates a two-dimensional code 74, which contains resource interaction data.
在另一种可能的实施方式中,用户对目标应用进行资源交互触发操作后,资源交互发起设备生成交互链接,交互链接中包含资源交互数据。In another possible implementation manner, after the user performs a resource interaction trigger operation on the target application, the resource interaction initiating device generates an interaction link, and the interaction link includes resource interaction data.
可选地,交互链接可以是短信链接、微信链接等,本申请实施例对此不作限定。Optionally, the interactive link may be a text message link, a WeChat link, etc., which is not limited in this embodiment of the present application.
示例性的,如图8所示,以游戏观战应用为目标应用,应用管理器为超级应用为例。用户86在超级应 用的应用列表界面81点击游戏观战应用811,资源交互发起设备接收到用户86对游戏观战应用811的触发操作,进入应用详情界面82,应用详情界面82中包含分享按键821以及共享按键823。用户86点击分享按键821,资源交互发起设备接收到用户86对分享按键821的触发操作,通过超级应用生成资源交互数据,并显示分享方式界面83。用户86点击短信分享按键831,资源交互发起设备接收到用户86对短信分享按键831的触发操作,生成短信链接84,短信链接84中包含资源交互数据。Exemplarily, as shown in FIG. 8 , take the game spectator application as the target application and the application manager as the super application as an example. The user 86 clicks the game spectator application 811 on the application list interface 81 of the super application, and the resource interaction initiating device receives the trigger operation of the user 86 on the game spectator application 811, and enters the application details interface 82, which includes a share button 821 and a share button 821. Key 823. The user 86 clicks the sharing button 821 , and the resource interaction initiating device receives the trigger operation of the user 86 on the sharing button 821 , generates resource interaction data through the super application, and displays the sharing mode interface 83 . The user 86 clicks the SMS sharing button 831, and the resource interaction initiating device receives the trigger operation of the user 86 on the SMS sharing button 831, and generates a SMS link 84, which contains resource interaction data.
在另一种可能的实施方式中,用户对目标应用进行资源交互触发操作后,资源交互发起设备发送NFC(Near Field Communication,近场通信)信号,该NFC信号中携带有资源交互数据。In another possible implementation manner, after the user performs a resource interaction trigger operation on the target application, the resource interaction initiating device sends an NFC (Near Field Communication, near field communication) signal, and the NFC signal carries resource interaction data.
示例性的,如图9所示,以多设备截屏应用为目标应用,应用管理器为超级应用为例。用户94在超级应用的应用列表界面91点击多设备截屏应用911,资源交互发起设备接收到用户94对多设备截屏应用的触发操作,进入应用详情界面92,应用详情界面92中包含分享按键921以及共享按键922。用户94点击分享按键921,资源交互发起设备接收到用户94对分享按键921的触发操作,通过超级应用生成资源交互数据,并显示分享方式界面93。用户94点击碰一碰分享按键931,资源交互发起设备接收到用户94对碰一碰分享按键931的触发操作,同时发出NFC信号,NFC信号中包含资源交互数据。Exemplarily, as shown in FIG. 9 , take a multi-device screen capture application as a target application, and an application manager as a super application as an example. The user 94 clicks the multi-device screenshot application 911 on the application list interface 91 of the super application, and the resource interaction initiating device receives the trigger operation of the user 94 on the multi-device screenshot application, and enters the application details interface 92, which includes a share button 921 and Share button 922 . The user 94 clicks the sharing button 921 , and the resource interaction initiating device receives the trigger operation of the user 94 on the sharing button 921 , generates resource interaction data through the super application, and displays the sharing mode interface 93 . The user 94 clicks the touch share button 931 , and the resource interaction initiating device receives the trigger operation of the user 94 on the touch share button 931 , and at the same time sends out an NFC signal, which contains resource interaction data.
步骤312,交互参与设备从图形码中解析得到资源交互数据;或,从交互链接中解析得到资源交互数据;或,通过近场通信方式接收资源交互数据。In step 312, the interaction participating device parses the graphic code to obtain the resource interaction data; or, parses the interaction link to obtain the resource interaction data; or, receives the resource interaction data through near-field communication.
在一种可能的实施方式中,交互参与设备通过解析资源交互发起设备生成的图形码得到资源交互数据。In a possible implementation manner, the interaction participating device obtains the resource interaction data by analyzing the graphic code generated by the resource interaction initiating device.
示例性的,如图7所示,资源交互发起设备生成二维码74,二维码74中包含资源交互数据,用户77通过交互参与设备中超级应用的应用列表界面75中的扫一扫控件751扫描二维码74,交互参与设备从二维码74中解析得到资源交互数据。Exemplarily, as shown in FIG. 7, the resource interaction initiating device generates a two-dimensional code 74, which contains resource interaction data, and the user 77 interacts with the scan control in the application list interface 75 of the super application in the device. 751 scans the two-dimensional code 74, and the interactive participation device parses the two-dimensional code 74 to obtain resource interaction data.
在另一种可能的实施方式中,交互参与设备通过解析资源交互发起设备发送的交互链接得到资源交互数据。In another possible implementation manner, the interaction participating device obtains the resource interaction data by analyzing the interaction link sent by the resource interaction initiating device.
示例性的,如图8所示,资源交互发起设备生成短信链接84,并将短信链接84发送给交互参与设备,短信链接84中包含资源交互数据。交互参与设备接收到短信链接84,用户87点击短信链接84的同时,交互参与设备从短信链接84中解析得到资源交互数据。Exemplarily, as shown in FIG. 8 , the resource interaction initiating device generates a short message link 84 and sends the short message link 84 to the interaction participating device, and the short message link 84 contains resource interaction data. The interaction participation device receives the SMS link 84 , and when the user 87 clicks the SMS link 84 , the interaction participation device parses the SMS link 84 to obtain resource interaction data.
在另一种可能的实施方式中,交互参与设备接收到资源交互发起设备发送的NFC信号得到资源交互数据。In another possible implementation manner, the interaction participating device receives the NFC signal sent by the resource interaction initiating device to obtain the resource interaction data.
示例性的,如图9所示,资源交互发起设备通过超级应用生成资源交互数据,并发出NFC信号,NFC信号中包含资源交互数据,交互参与设备接收到资源交互发起设备发出的NFC信号即接收到资源交互数据。Exemplarily, as shown in Figure 9, the resource interaction initiating device generates resource interaction data through the super application, and sends out an NFC signal, which contains the resource interaction data, and the interaction participating device receives the NFC signal sent by the resource interaction initiating device. To resource interaction data.
步骤313,基于资源交互数据,交互参与设备通过应用管理器确定目标应用,并启动目标应用,应用管理器用于管理不同应用的资源交互。Step 313 , based on the resource interaction data, the interaction participating device determines the target application through the application manager, and starts the target application. The application manager is used to manage resource interaction of different applications.
在本申请实施例中,交互参与设备部署有应用管理器,应用管理器用于管理交互参与设备中订阅的应用。由于资源交互数据中携带有标识信息,其中,该标识信息至少包括目标应用标识,因此交互参与设备基于资源交互数据中的目标应用标识通过应用管理器确定目标应用,并启动交互参与设备中的目标应用。In this embodiment of the present application, the interaction participating device is deployed with an application manager, and the application manager is used to manage subscribed applications in the interactive participating device. Since the resource interaction data carries identification information, wherein the identification information includes at least the target application identification, the interaction participation device determines the target application through the application manager based on the target application identification in the resource interaction data, and starts the target application in the interaction participation device. application.
示例性的,如图7所示,交互参与设备从二维码74中解析得到资源交互数据,基于资源交互数据中的目标应用标识,通过交互参与设备的超级应用确定目标应用为相册应用78,并启动相册应用78。Exemplarily, as shown in FIG. 7, the interaction participating device parses the resource interaction data from the two-dimensional code 74, and based on the target application identifier in the resource interaction data, determines that the target application is the photo album application 78 through the super application of the interaction participating device. And launch photo album application 78.
示例性的,如图8所示,交互参与设备从短信链接84中解析得到资源交互数据,基于资源交互数据中目标应用标识,通过交互参与设备的超级应用确定目标应用为游戏观战应用85,并启动游戏观战应用85。Exemplarily, as shown in FIG. 8, the interaction participating device parses the resource interaction data from the SMS link 84, and based on the target application identifier in the resource interaction data, determines that the target application is the game viewing application 85 through the super application of the interaction participating device, and The game viewing application 85 is started.
示例性的,如图9所示,交互参与设备接收资源交互发起设备发出的NFC信号,从NFC信号中得到资源交互数据,基于资源交互数据中的目标应用标识,通过交互参与设备的超级应用确定目标应用为多设备截屏应用95,并启动多设备截屏应用95。Exemplarily, as shown in FIG. 9, the interaction participating device receives the NFC signal sent by the resource interaction initiating device, obtains resource interaction data from the NFC signal, and determines the resource interaction data based on the target application identifier in the resource interaction data through the super application of the interaction participating device. The target application is the multi-device screenshot application 95, and the multi-device screenshot application 95 is started.
步骤314,基于资源交互数据,交互参与设备通过应用管理器以及设备选择器确定目标交互设备。Step 314, based on the resource interaction data, the interaction participant device determines the target interaction device through the application manager and the device selector.
在本申请实施例中,设备选择器确定目标交互设备以及生成目标交互设备的目标资源网关地址。In this embodiment of the present application, the device selector determines a target interaction device and generates a target resource gateway address of the target interaction device.
在本申请实施例中,设备选择器包括三个子模块,分别为应用设备组管理子模块,设备选择策略子模块以及网关转换子模块。应用设备组管理子模块用于管理目标应用当前运行的设备组范围,也就是说目标应用可以调用资源的设备范围。In the embodiment of the present application, the device selector includes three sub-modules, which are the application device group management sub-module, the device selection policy sub-module and the gateway conversion sub-module. The application device group management sub-module is used to manage the device group range where the target application is currently running, that is to say, the device range where the target application can call resources.
另外,需要说明的是,应用设备组管理子模块的设备组范围并不固定。在一种可能的实施方式中,在默认状态下,应用设备组管理子模块的设备组范围为当前设备或者当前用户账号下的设备。默认状态表明当前设备或者当前用户账号下的设备与其他设备并没有进行资源交互。示例性的,交互参与设备没有与资源交互发起设备进行资源交互时,交互参与设备的应用设备组管理子模块的设备组范围为交互参与设备。In addition, it should be noted that the device group scope of the application device group management submodule is not fixed. In a possible implementation manner, in a default state, the device group scope of the application device group management submodule is the current device or the devices under the current user account. The default state indicates that the current device or the device under the current user account does not interact with other devices. Exemplarily, when the interaction participant device does not perform resource interaction with the resource interaction initiator device, the device group scope of the application device group management submodule of the interaction participant device is the interaction participant device.
在另一种可能的实施方式中,在进行资源交互的情况下,应用设备组管理子模块的设备组范围将发生 变化,设备组范围通过应用管理器进行设置。由于在资源交互的情况下,目标应用运行的设备不仅包括当前设备或者当前用户账号下的设备,还包括与其进行资源交互的设备或者用户账号下的设备,因此应用设备组管理子模块的设备组范围会发生变化。由于应用管理器用于管理应用的资源交互,因此可以通过应用管理器确定设备的范围,因而通过应用管理器确定应用设备组管理子模块的设备组范围。示例性的,当交互参与设备与资源交互发起设备进行资源交互时,应用设备组管理子模块的设备组范围通过应用管理器设置为交互参与设备以及资源交互发起设备。In another possible implementation, in the case of resource interaction, the device group range of the application device group management submodule will change, and the device group range is set through the application manager. In the case of resource interaction, the target application’s running device includes not only the current device or the device under the current user account, but also the device that interacts with it or the device under the user account, so the device group of the application device group management submodule Ranges are subject to change. Since the application manager is used to manage the resource interaction of the application, the range of the device can be determined through the application manager, so the range of the device group of the application device group management submodule can be determined through the application manager. Exemplarily, when the interaction participating device and the resource interaction initiating device perform resource interaction, the device group scope of the application device group management submodule is set as the interaction participating device and the resource interaction initiating device through the application manager.
设备选择策略子模块用于提供多种设备选择策略,即从应用设备组管理子模块管理的设备组范围中确定出目标交互设备并形成目标交互设备列表。The device selection strategy sub-module is used to provide multiple device selection strategies, that is, to determine the target interactive devices from the range of device groups managed by the application device group management sub-module and form a list of target interactive devices.
可选地,设备选择策略可以是选择所有设备、选择当前设备、选择其他设备等,本申请实施例对此不作限定。其中,选择其他设备是指选择当前设备以外的所有设备。Optionally, the device selection policy may be selecting all devices, selecting the current device, selecting other devices, etc., which is not limited in this embodiment of the present application. Wherein, selecting other devices refers to selecting all devices other than the current device.
可选地,设备选择策略可以是选择特定的设备,例如选择手机设备、选择电视机设备等,本申请实施例对此不作限定。Optionally, the device selection strategy may be to select a specific device, for example, select a mobile phone device, select a television device, etc., which is not limited in this embodiment of the present application.
在一种可能的实施方式中,目标应用界面存在设备选择界面,该设备选择界面中存在不同设备选择策略按键,例如选择所有设备按键、选择当前设备按键、选择其他设备按键或者选择特定设备按键等,用户根据自己的需求点击不同的设备选择策略按键,当交互参与设备接收到用户对设备选择策略按键的触发操作,设备选择策略子模块根据用户的设备选择策略从应用设备组管理子模块管理的设备组范围中确定出目标交互设备并形成目标交互设备列表。In a possible implementation, the target application interface has a device selection interface, and the device selection interface has buttons for different device selection strategies, such as selecting all device buttons, selecting the current device button, selecting other device buttons, or selecting a specific device button, etc. , the user clicks different device selection strategy buttons according to their own needs. When the interactive participating device receives the user's trigger operation on the device selection strategy button, the device selection strategy sub-module manages from the application device group management sub-module according to the user's device selection strategy. Target interactive devices are determined in the range of the device group and a list of target interactive devices is formed.
在本申请实施例中,通过调整应用设备组管理子模块管理的设备组范围以及设备选择策略子模块提供的设备选择策略,使得应用开发者在不需要感知具备设备以及不需要对应用进行改动的情况下,实现不同设备以及不同用户之间资源的直接分享。In this embodiment of the application, by adjusting the range of device groups managed by the application device group management sub-module and the device selection policy provided by the device selection policy sub-module, the application developers do not need to perceive the equipment and do not need to modify the application. Under such circumstances, the direct sharing of resources between different devices and different users is realized.
网关转化子模块将从设备选择策略子模块中获取的目标交互设备列表转换为对应的目标网关地址列表。The gateway converting submodule converts the target interactive device list obtained from the device selection policy submodule into a corresponding target gateway address list.
示例性,如图10所示,设备选择器1003包括三个子模块,分别为设备选择策略子模块1004、网关转换子模块1005、以及应用设备组管理子模块1006。当交互参与设备获取到资源交互数据,基于资源交互数据的目标应用标识,通过应用管理器1001确定目标应用1002,同时通过应用管理器1001设置应用设备组管理子模块1006管理的设备组范围,该设备组范围为目标应用当前运行的所有设备,不仅包括资源交互发起设备以及交互参与设备,还可能包括其他设备。这些设备可以属于同一用户,也可以属于不同的用户。进一步,目标应用1002向设备选择策略子模块1004传入自己的设备选择策略,例如选择所有设备,基于该设备选择策略,设备选择策略子模块1004从应用设备组管理子模块1006管理的设备组范围中选择目标交互设备,并生成目标交互设备列表。Exemplarily, as shown in FIG. 10 , the device selector 1003 includes three submodules, which are respectively a device selection policy submodule 1004 , a gateway conversion submodule 1005 , and an application device group management submodule 1006 . When the interaction participating device obtains the resource interaction data, based on the target application identifier of the resource interaction data, the target application 1002 is determined through the application manager 1001, and at the same time, the range of device groups managed by the application device group management submodule 1006 is set through the application manager 1001. The scope of the device group is all the devices currently running on the target application, including not only resource interaction initiating devices and interaction participating devices, but also other devices. These devices can belong to the same user or to different users. Further, the target application 1002 transmits its own device selection policy to the device selection policy submodule 1004, such as selecting all devices. Select the target interactive device in , and generate a list of target interactive devices.
步骤315,交互参与设备基于资源交互数据确定出目标应用以及目标交互设备后,通过目标应用发送资源调用请求。Step 315: After the interaction participating device determines the target application and the target interaction device based on the resource interaction data, it sends a resource call request through the target application.
步骤315同步骤240,本申请实施例对此不再赘述。Step 315 is the same as step 240, which will not be repeated in this embodiment of the present application.
步骤316,响应于交互参与设备的资源调用请求,资源交互发起设备通过资源网关向交互参与设备提供目标交互资源,资源网关用于管理设备中资源的调用。Step 316: In response to the resource invocation request of the interaction participating device, the resource interaction initiating device provides the target interaction resource to the interaction participating device through the resource gateway, and the resource gateway is used to manage resource invocation in the device.
资源交互发起设备中部署有资源网关,当资源交互发起设备接收到资源交互发起设备的资源调用请求,通过资源网关调用本地目标应用的目标交互资源,并通过资源网关提供给交互参与设备。A resource gateway is deployed in the resource interaction initiating device. When the resource interaction initiating device receives a resource invocation request from the resource interaction initiating device, it invokes the target interaction resource of the local target application through the resource gateway and provides it to the interaction participating device through the resource gateway.
资源网关为调用目标交互设备上资源的统一入口网关,其支持对不同类型的资源的访问。The resource gateway is a unified entry gateway for invoking resources on the target interactive device, which supports access to different types of resources.
可选地,资源网关提供了一个文件服务器,以支持对文件类型资源的访问,例如访问图片、视频、word文档等资源。Optionally, the resource gateway provides a file server to support access to file type resources, such as accessing pictures, videos, word documents and other resources.
可选地,资源网关提供了一个HTTP(Hyper Text Transfer Protocol,超文本传输协议)服务器,以支持通过Restful API调用设备上的服务。该服务可以是截屏服务、投屏服务等。Optionally, the resource gateway provides an HTTP (Hyper Text Transfer Protocol, hypertext transfer protocol) server to support calling services on the device through the Restful API. The service may be a screenshot service, a screen projection service, and the like.
步骤317,在资源网关的网关地址更新的情况下,资源交互发起设备向服务器发送网关地址更新消息,以便服务器将更新后的网关地址同步至其他设备的设备选择器,设备选择器中存储有设备标识与网关地址之间的映射关系。Step 317, when the gateway address of the resource gateway is updated, the resource interaction initiating device sends a gateway address update message to the server, so that the server can synchronize the updated gateway address to the device selector of other devices, and the device selector stores the device The mapping relationship between the identifier and the gateway address.
在一种可能的实施方式中,由于不用的应用对应不同的资源,因此在资源交互发起设备上订阅新的应用或者取消订阅应用时,资源交互发起设备自动更新资源网关的网关地址,并向服务器端的资源网关管理同步其更新的网关地址。为了保证资源共享和分享时资源的一致性,资源网关管理将更新后的网关地址同步给其他设备的设备选择器。设备选择器中存储有该设备与网关地址之间的映射关系。In a possible implementation, since unused applications correspond to different resources, when subscribing to a new application or unsubscribing an application on the resource interaction initiating device, the resource interaction initiating device automatically updates the gateway address of the resource gateway, and sends The resource gateway management on the side synchronizes its updated gateway address. In order to ensure the consistency of resource sharing and resource sharing, the resource gateway management will synchronize the updated gateway address to the device selector of other devices. The mapping relationship between the device and the gateway address is stored in the device selector.
步骤318,基于目标交互设备的设备标识,交互参与设备获取目标交互设备的目标资源网关地址,目标资源网关地址为目标交互设备中资源网关的网关地址,资源网关用于管理设备中资源的调用。Step 318, based on the device identifier of the target interaction device, the interaction participant device obtains the address of the target resource gateway of the target interaction device. The target resource gateway address is the gateway address of the resource gateway in the target interaction device, and the resource gateway is used to manage resource calls in the device.
在本申请实施例中,在服务器端部署有资源网关管理,其用于管理目标交互设备与和资源网关的映射 关系。也就是说,当我们需要调用目标交互设备上的资源的时候,需要先通过资源网关管理查询到目标交互设备处的资源网关的访问地址,然后才能调用目标交互设备处的资源。由于设备选择器中存储有设备标识与网关地址之间的映射关系,因此交互参与设备中的设备选择器中的网关转换子模块基于目标交互设备的设备标识,从资源网关管理获取目标交互设备与资源网关的对应关系,并逐一转换,进而生成目标资源网关地址,并将目标资源网关地址反馈给目标应用。In the embodiment of this application, resource gateway management is deployed on the server side, which is used to manage the mapping relationship between target interactive devices and resource gateways. That is to say, when we need to call the resources on the target interactive device, we need to query the access address of the resource gateway at the target interactive device through the resource gateway management first, and then we can call the resources at the target interactive device. Since the device selector stores the mapping relationship between the device identifier and the gateway address, the gateway conversion submodule in the device selector of the interactive participating device obtains the target interactive device and gateway address from the resource gateway management based on the device identifier of the target interactive device. The corresponding relationship of resource gateways is converted one by one to generate the target resource gateway address, and the target resource gateway address is fed back to the target application.
在一种可能的实施方式中,可以通过主动注册机制发现目标交互设备的资源网关。In a possible implementation manner, the resource gateway of the target interaction device may be discovered through an active registration mechanism.
在另一种可能的实施方式中,可以通过自动发现机制发现目标交互设备的资源网关。In another possible implementation manner, the resource gateway of the target interaction device may be discovered through an automatic discovery mechanism.
示例性的,如图10所示,设备选择策略子模块1004将目标交互设备列表传入网关转换子模块1005,网关转换子模块1005从服务器端的资源网关管理1007获取目标交互设备与资源网关的对应关系,逐一转换,生成目标资源网关地址,网关转换子模块1005将生成的目标资源网关地址反馈给目标应用1002。Exemplarily, as shown in FIG. 10 , the device selection policy submodule 1004 transfers the target interaction device list to the gateway conversion submodule 1005, and the gateway conversion submodule 1005 obtains the correspondence between the target interaction device and the resource gateway from the resource gateway management 1007 on the server side. Relationships are converted one by one to generate the target resource gateway address, and the gateway conversion submodule 1005 feeds back the generated target resource gateway address to the target application 1002 .
步骤319,基于目标资源网关地址,交互参与设备通过目标应用访问目标资源网关以获取目标交互资源。Step 319, based on the address of the target resource gateway, the interaction participant device accesses the target resource gateway through the target application to obtain the target interaction resource.
交互参与设备基于目标资源网关地址,通过目标应用访问目标交互设备中的资源网关以获取目标交互资源。Based on the address of the target resource gateway, the interaction participating device accesses the resource gateway in the target interaction device through the target application to obtain the target interaction resource.
本申请实施例中通过应用管理器确定目标应用,通过应用管理器和设备选择器确定目标交互设备,通过资源网关调用目标交互设备处的目标交互资源,从而实现了资源的分布式调用,进而能够实现更多类型的应用功能。In the embodiment of the present application, the target application is determined by the application manager, the target interaction device is determined by the application manager and the device selector, and the target interaction resource at the target interaction device is invoked by the resource gateway, thereby realizing the distributed invocation of resources, and further enabling Realize more types of application functions.
在一种可能的实施方式中,资源交互触发操作为分享操作时,资源交互数据中包含目标应用标识、分享方标识以及分享实例标识,目标应用标识用于确定目标应用,分享方标识用于确定目标交互设备,分享实例标识用于获取目标交互资源。下面对资源分享方法进行介绍,如图11所示,其中示出了本申请另一个示例性实施例提供的资源交互方法,该方法应用于资源交互发起设备,即分享方。需要说明的是,资源交互发起设备为分享方中的一个,为了方便表述,以分享方为资源交互发起设备为例进行说明。In a possible implementation manner, when the resource interaction trigger operation is a sharing operation, the resource interaction data includes the target application ID, the sharing party ID, and the sharing instance ID, the target application ID is used to determine the target application, and the sharing party ID is used to determine The target interaction device, the shared instance ID is used to obtain the target interaction resource. The resource sharing method is introduced below, as shown in FIG. 11 , which shows a resource interaction method provided by another exemplary embodiment of the present application, and the method is applied to a device that initiates resource interaction, that is, a sharing party. It should be noted that the resource interaction initiating device is one of the sharing parties, and for the convenience of description, the sharing party is taken as an example of the resource interaction initiating device for illustration.
步骤1101,响应于对目标应用的设备级分享操作,资源交互发起设备通过应用管理器生成包含目标应用标识以及设备标识的资源交互数据。 Step 1101, in response to the device-level sharing operation on the target application, the resource interaction initiating device generates resource interaction data including the target application identifier and the device identifier through the application manager.
在本申请实施例中,设备级分享操作是指分享方和被分享方均为设备,该设备可以是同一用户的不同设备,也可以是不同用户的不同设备。在此情况下,资源交互发起设备通过应用管理器生成的资源交互数据包括目标应用标识以及设备标识,其中设备标识用于表征分享方对应的设备。目标应用标识以及设备应用标识具有唯一性,因此不同的目标应用对应不同的目标应用标识,不同的设备对应不同的目标交互设备标识。In this embodiment of the present application, the device-level sharing operation means that both the sharing party and the shared party are devices, and the devices may be different devices of the same user, or different devices of different users. In this case, the resource interaction data generated by the resource interaction initiating device through the application manager includes a target application identifier and a device identifier, wherein the device identifier is used to represent the device corresponding to the sharing party. The target application identifier and the device application identifier are unique, so different target applications correspond to different target application identifiers, and different devices correspond to different target interaction device identifiers.
步骤1102,响应于对目标应用的用户级分享操作,资源交互发起设备通过应用管理器生成包含目标应用标识以及用户标识的资源交互数据,用户标识用于表征分享方对应的用户。 Step 1102, in response to the user-level sharing operation on the target application, the resource interaction initiating device generates resource interaction data including the target application ID and the user ID through the application manager, and the user ID is used to represent the user corresponding to the sharing party.
在本申请实施例中,用户级分享操作是指分享方和被分享方均为用户,该用户账号下可以有一个设备或者多个设备。在此情况下,资源交互发起设备通过应用管理器生成的资源交互数据包括目标应用标识以及用户标识,其中,用户标识用于表征用户账号信息。目标应用标识以及用户标识具有唯一性,因此不同的目标应用对应不同的目标应用标识,不同的用户账号对应不同的用户标识。另外,需要说明的是,用户标识用于表征分享方对应的用户账号信息,而非被分享方对应的用户账号信息。In this embodiment of the application, the user-level sharing operation means that both the sharing party and the shared party are users, and there may be one device or multiple devices under the user account. In this case, the resource interaction data generated by the resource interaction initiating device through the application manager includes a target application identifier and a user identifier, where the user identifier is used to represent user account information. The target application identifier and the user identifier are unique, so different target applications correspond to different target application identifiers, and different user accounts correspond to different user identifiers. In addition, it should be noted that the user identifier is used to represent the user account information corresponding to the sharing party, not the user account information corresponding to the shared party.
步骤1103,响应于交互参与设备的资源调用请求,资源交互发起设备对资源调用请求中包含的分享实例标识进行权限校验。 Step 1103, in response to the resource invocation request of the interaction participating device, the resource interaction initiating device performs permission verification on the sharing instance identifier included in the resource invocation request.
在本申请实施例中,资源交互数据还包括分享实例标识,分享实例标识用于表示被分享方调用分享方资源的一次事件。分享实例标识具有唯一性,因此不同的被分享方调用分享方资源的事件对应不同的分享实例标识。In the embodiment of the present application, the resource interaction data further includes a sharing instance identifier, which is used to represent an event that the shared party invokes the sharing party's resources. The sharing instance ID is unique, so the event that the shared party invokes the resource of the sharing party corresponds to a different sharing instance ID.
当交互参与设备基于资源交互数据中的目标应用标识以及设备标识或者用户标识,确定出目标应用以及目标交互设备后,向资源交互发起设备发送调用请求,该调用请求用于调用目标交互设备处的目标交互资源。由于调用请求中包含分享实例标识,因此交互参与设备在调用目标交互设备处的目标交互资源之前,资源交互发起设备需对分享实例标识进行权限校验。权限校验用于验证资源交互发起设备提供的目标交互资源和交互参与设备所需求的目标交互资源是否一致。After the interaction participant device determines the target application and the target interaction device based on the target application identifier and device identifier or user identifier in the resource interaction data, it sends a call request to the resource interaction initiating device, and the call request is used to call the target interaction device. Target interaction resource. Since the calling request includes the sharing instance identifier, before the interaction participant device calls the target interaction resource at the target interaction device, the resource interaction initiating device needs to verify the authority of the sharing instance identifier. The authority check is used to verify whether the target interaction resource provided by the resource interaction initiating device is consistent with the target interaction resource required by the interaction participating device.
步骤1104,在分享实例标识通过权限校验的情况下,资源交互发起设备向交互参与设备提供目标交互资源。 Step 1104, in the case that the shared instance ID passes the authority verification, the resource interaction initiating device provides the target interaction resource to the interaction participating device.
在一种可能的实施方式中,资源交互发起设备对分享实例标识通过权限校验,则向交互参与设备提供目标交互资源。In a possible implementation manner, the resource interaction initiating device provides the target interaction resource to the interaction participating device after passing the permission verification of the sharing instance identifier.
在另一种可能的实施方式中,资源交互发起设备对分享实例标识未通过权限校验,则无法向交互参与 设备提供目标交互资源。In another possible implementation manner, if the resource interaction initiating device fails to pass the authority check on the sharing instance ID, it cannot provide the target interaction resource to the interaction participating device.
步骤1105,响应于对目标应用的分享取消操作,资源交互发起设备删除分享实例标识。 Step 1105, in response to the sharing cancellation operation on the target application, the resource interaction initiating device deletes the sharing instance identifier.
在一种可能的实施方式中,分享方已经向被分享方完成资源的分享,基于用户取消分享,分享方删除分享实例标识。例如,用户对目标应用进行分享取消操作,资源交互发起设备接收到用户对目标应用的分享取消操作,资源交互发起设备删除分享实例标识,交互参与设备无法调用资源交互发起设备的资源。In a possible implementation manner, the sharing party has finished sharing resources with the shared party, and based on the user canceling the sharing, the sharing party deletes the sharing instance identifier. For example, the user cancels the sharing operation of the target application, the resource interaction initiating device receives the user's sharing cancellation operation of the target application, the resource interaction initiating device deletes the sharing instance identifier, and the interaction participating device cannot call the resources of the resource interaction initiating device.
在另一种可能的实施方式中,分享方在向被分享方分享资源的过程中,用户取消分享,分享方删除分享实例标识。例如,资源交互设备在向交互参与设备分享资源的过程中,用户对目标应用进行分享取消操作,资源交互发起设备接收到用户对目标应用的分享取消操作,资源交互发起设备删除分享实例标识,交互参与设备无法调用资源交互发起设备的资源。In another possible implementation manner, when the sharing party shares resources with the shared party, the user cancels the sharing, and the sharing party deletes the sharing instance identifier. For example, when a resource interaction device shares resources with an interaction participating device, the user cancels the sharing operation of the target application, and the resource interaction initiating device receives the user's share cancellation operation on the target application, the resource interaction initiating device deletes the sharing instance identifier, and the interaction Participating devices cannot invoke the resources of the resource interaction initiating device.
示例性的,如图8所示,以目标应用为游戏观战应用,应用管理器为超级应用,对游戏观战进行设备级分享操作为例进行说明,在此情况下,分享方为资源交互发起设备,被分享方为交互参与设备。用户86在超级应用的应用列表界面81点击游戏观战应用811,资源交互发起设备接收到用户86对游戏观战应用811的触发操作,进入应用详情界面82,应用详情界面82中包含分享按键821以及共享按键823。用户86点击分享按键823,资源交互发起设备接收到用户86对分享按键823的触发操作,通过超级应用生成资源交互数据,并显示分享方式界面83。用户86点击短信分享按键831,资源交互发起设备接收到用户对短信分享按键831的触发操作,生成短信链接84,短信链接84中包含资源交互数据,该资源交互数据中包括游戏观战应用标识,设备标识即资源交互发起设备标识以及分享实例标识。资源交互发起设备将短信链接84发送给交互参与设备,用户87点击该短信链接84,交互参与设备通过解析短信链接84,获取资源交互数据,并通过应用标识确定游戏观战应用为目标应用,资源交互发起设备为目标交互设备,之后向资源交互发起设备发送资源调用请求,该资源调用请求中包含分享实例标识,即交互参与设备需调用资源交互发起设备的资源即投屏服务。资源交互发起设备接收到交互参与设备的资源调用请求,对资源调用请求中包含的分享实例标识进行权限校验,即资源交互发起设备为交互参与设备提供的资源为投屏服务,交互参与设备所需要的资源也为投屏服务,二者一致,资源交互发起设备对分享实例标识通过权限校验,交互参与设备调用资源交互发起设备的投屏资源,通过交互参与设备的游戏观战应用85观看分享方的游戏。Exemplarily, as shown in Figure 8, the target application is the game viewing application, the application manager is a super application, and the device-level sharing operation of the game viewing is taken as an example. In this case, the sharing party is the device that initiates resource interaction , the shared party is an interactive participating device. The user 86 clicks the game spectator application 811 on the application list interface 81 of the super application, and the resource interaction initiating device receives the trigger operation of the user 86 on the game spectator application 811, and enters the application details interface 82, which includes a share button 821 and a share button 821. Key 823. The user 86 clicks the share button 823 , and the resource interaction initiating device receives the trigger operation of the user 86 on the share button 823 , generates resource interaction data through the super application, and displays the sharing mode interface 83 . The user 86 clicks the SMS sharing button 831, and the resource interaction initiating device receives the user's trigger operation on the SMS sharing button 831, and generates a SMS link 84, which contains resource interaction data, and the resource interaction data includes game spectator application identification, device The ID refers to the ID of the device that initiated the resource interaction and the ID of the sharing instance. The resource interaction initiating device sends the text message link 84 to the interactive participating device, the user 87 clicks on the text message link 84, and the interactive participating device obtains the resource interaction data by analyzing the text message link 84, and determines that the game spectator application is the target application through the application identification, resource interaction The initiating device is the target interactive device, and then sends a resource call request to the resource interaction initiating device. The resource invoking request includes the sharing instance identifier, that is, the interactive participating device needs to call the resource of the resource interaction initiating device, that is, the projection service. The resource interaction initiating device receives the resource invocation request of the interactive participating device, and performs permission verification on the sharing instance identifier contained in the resource invoking request, that is, the resources provided by the resource interaction initiating device for the interactive participating devices are screencasting services, and the resources provided by the interactive participating devices The required resources are also for screencasting services. The two are the same. The resource interaction initiator device passes the permission verification on the sharing instance ID, and the interactive participant device calls the resources of the interactive participant device. party game.
示例性的,如图12,在交互参与设备投屏资源交互发起设备中的游戏过程中,用户86再次在超级应用的应用列表界面81点击游戏观战应用811,资源交互发起设备接收到用户86对游戏观战应用811的触发操作,进入取消界面1201,取消界面1201中包含取消分享按键1202,用户点击取消分享按键1202,资源交互发起设备接收到用户86对取消分享按键1202的触发操作,进入应用详情界面82,同时删除分享实例标识。用户87再次点击其之前接收到短信链接84时,由于资源交互发起设备删除了分享实例标识,交互参与设备无法调用资源交互发起设备的投屏服务,其游戏观战应用85显示黑屏。Exemplarily, as shown in FIG. 12 , during the game process in the resource interaction initiation device of the interactive participation device, the user 86 clicks the game viewing application 811 on the application list interface 81 of the super application again, and the resource interaction initiation device receives the user 86's response to the game. The trigger operation of the game viewing application 811 enters the cancel interface 1201, which includes the cancel sharing button 1202, the user clicks the cancel sharing button 1202, the resource interaction initiating device receives the trigger operation of the user 86 on the cancel sharing button 1202, and enters the application details Interface 82, delete the shared instance identifier at the same time. When the user 87 clicks on the SMS link 84 received before, because the resource interaction initiating device deletes the sharing instance identifier, the interactive participating device cannot call the resource interaction initiating device's screencasting service, and its game viewing application 85 displays a black screen.
下面对资源分享方法进行介绍,如图13所示,其中示出了本申请另一个示例性实施例提供的资源交互方法,该方法应用于交互参与设备,即被分享方。需要说明的是,交互参与设备为被分享方中的一个,为了方便标识,以被分享方为交互参与设备为例进行说明。The resource sharing method is introduced below, as shown in FIG. 13 , which shows a resource interaction method provided by another exemplary embodiment of the present application, and the method is applied to an interaction participating device, that is, a shared party. It should be noted that the interactive participating device is one of the shared parties. For the convenience of identification, the shared party is an interactive participating device as an example for illustration.
步骤1301,交互参与设备获取资源交互数据,资源交互数据由资源交互发起设备在接收到对目标应用的分享操作时生成,资源交互数据中包含目标应用标识以及分享方标识。 Step 1301, the interaction participating device acquires resource interaction data, which is generated by the resource interaction initiating device when receiving a sharing operation on a target application, and the resource interaction data includes a target application ID and a sharing party ID.
交互参与设备从资源交互发起设备处获取资源交互数据。该资源交互数据中包含目标应用标识以及分享方标识。目标应用标识用于确定目标应用,分享方标识用于确定目标交互设备。在本申请实施例中,目标交互设备为资源交互发起设备,但需要注意的是,目标交互设备不仅限于资源交互发起设备。The interaction participating device acquires resource interaction data from the resource interaction initiating device. The resource interaction data includes a target application identifier and a sharer identifier. The target application identifier is used to determine the target application, and the sharing party identifier is used to determine the target interactive device. In this embodiment of the present application, the target interaction device is the resource interaction initiating device, but it should be noted that the target interaction device is not limited to the resource interaction initiating device.
在一种可能的实施方式中,资源交互发起设备与交互参与设备的分享方式为设备级分享时,该分享方标识为设备标识。In a possible implementation manner, when the resource interaction initiating device and the interaction participating device share in a device-level sharing manner, the sharing party identifier is a device identifier.
在另一种可能的实施方式中,资源交互发起设备与交互参与设备的分享方式为用户级分享时,该分享方标识为用户标识。In another possible implementation manner, when the resource interaction initiating device and the interaction participating device share in a user-level sharing manner, the sharing party ID is a user ID.
步骤1302,基于资源交互数据,交互参与设备通过应用管理器确定目标应用,并启动目标应用,应用管理器用于管理不同应用的资源交互。 Step 1302, based on the resource interaction data, the interaction participating device determines the target application through the application manager, and starts the target application. The application manager is used to manage resource interaction of different applications.
在本申请实施例中,基于资源交互数据中的目标应用标识,交互参与设备通过应用管理器确定目标应用,该应用与资源交互发起设备的应用为同一应用,并运行该目标应用。In this embodiment of the present application, based on the target application identifier in the resource interaction data, the interaction participating device determines the target application through the application manager, and the application is the same as the application of the resource interaction initiating device, and runs the target application.
在本申请实施例中,分享方标识可能是设备标识,也可能是用户标识,在这两种情况下确定目标交互设备的方法不同,下面对其进行介绍。In the embodiment of the present application, the sharing party ID may be a device ID or a user ID. In these two cases, the methods for determining the target interaction device are different, which will be introduced below.
步骤1303,在分享方标识为设备标识的情况下,交互参与设备通过应用管理器将设备标识所表征的设备确定为候选交互设备。 Step 1303, when the sharing party ID is the device ID, the interaction participating device determines the device represented by the device ID as a candidate interaction device through the application manager.
在一种可能的实施方式中,基于资源交互数据中分享方标识为设备标识,交互参与设备中的应用管理器通过设备标识配置设备选择器中应用设备组管理子模块管理的设备组范围,该设备组范围包括分享方的 所有设备,并将该设备组范围内的设备确定为候选交互设备。例如,在本申请实施例中,分享方仅为资源交互发起设备,因此设备范围为资源交互发起设备,该资源交互发起设备即为候选交互设备。In a possible implementation manner, based on the sharing party identifier in the resource interaction data being a device identifier, the application manager in the interaction participating device configures the range of device groups managed by the application device group management submodule in the device selector through the device identifier. The range of the device group includes all devices of the sharing party, and the devices within the range of the device group are determined as candidate interactive devices. For example, in the embodiment of the present application, the sharing party is only the resource interaction initiating device, so the device scope is the resource interaction initiating device, and the resource interaction initiating device is the candidate interaction device.
可选地,候选交互设备的数量可以是一个,也可以是多个,本申请实施例对此不作限定。Optionally, the number of candidate interactive devices may be one or multiple, which is not limited in this embodiment of the present application.
步骤1304,在分享方标识为用户标识的情况下,交互参与设备通过应用管理器获取用户标识对应的至少一个设备标识,并将设备标识所表征的设备确定为候选交互设备。 Step 1304, when the sharing party ID is the user ID, the interaction participating device acquires at least one device ID corresponding to the user ID through the application manager, and determines the device represented by the device ID as a candidate interaction device.
在本申请实施例中,服务器端部署有用户管理模块以及设备管理模块。用户管理模块用于管理所有用户账号信息,设备管理模块用于管理每个用户账号下的设备信息。用户标识用来表征用户账号信息,设备标识用来表征用户账号下对应的设备信息,用户账号下的设备数量可以是一个或者多个,不同的设备对应不同的设备标识。In the embodiment of the present application, a user management module and a device management module are deployed on the server side. The user management module is used to manage all user account information, and the device management module is used to manage device information under each user account. The user ID is used to represent the user account information, and the device ID is used to represent the corresponding device information under the user account. The number of devices under the user account can be one or more, and different devices correspond to different device IDs.
在一种可能的实施方式中,基于资源交互数据中分享方标识为用户标识,交互参与设备的应用管理器通过用户标识向用户管理模块以及设备管理模块查询用户标识对应的用户账号下的设备列表。进一步地,应用管理器通过用户标识配置设备选择器中应用设备组管理子模块管理的设备组范围,该设备组范围为应用管理器查询到的设备列表,并将设备列表中的所有设备确定为候选交互设备。In a possible implementation manner, based on the sharing party identifier in the resource interaction data being a user identifier, the application manager of the interaction participating device queries the user management module and the device management module for the device list under the user account corresponding to the user identifier through the user identifier . Further, the application manager configures the device group range managed by the application device group management submodule in the device selector through the user identification, the device group range is the device list queried by the application manager, and determines all devices in the device list as Candidate interactive devices.
另外,需要说明的是,步骤1303和步骤1304可以选择择一执行,本申请实施例对此不进行限定。In addition, it should be noted that, step 1303 and step 1304 can be selected to be executed, which is not limited in this embodiment of the present application.
步骤1305,交互参与设备获取目标应用的设备选择策略;通过设备选择器,将符合设备选择策略的获选交互设备确定为目标交互设备。In step 1305, the interaction participating device acquires the device selection policy of the target application; through the device selector, the selected interactive device conforming to the device selection policy is determined as the target interaction device.
当分享方和被分享方为设备级分享时,基于用户对目标应用设备选择界面的触发操作,交互参与设备获取目标应用的设备选择策略,并将设备选择策略传入设备选择器的设备选择策略子模块,设备选择策略子模块基于该设备选择策略从应用设备组管理子模块管理的设备组范围即候选交互设备中筛选出目标交互设备。When the sharing party and the shared party are device-level sharing, based on the user's trigger operation on the target application device selection interface, the interactive participating devices obtain the device selection policy of the target application, and transfer the device selection policy to the device selection policy of the device selector The sub-module, the device selection policy sub-module selects target interactive devices from the range of device groups managed by the application device group management sub-module, that is, candidate interactive devices, based on the device selection policy.
步骤1306,交互参与设备基于候选交互设备显示设备选择列表;通过设备选择器,将设备选择列表中选中的候选交互设备确定为目标交互设备。In step 1306, the interaction participating device displays a device selection list based on the candidate interaction devices; through the device selector, the candidate interaction device selected in the device selection list is determined as the target interaction device.
当分享方和被分享方为用户级分享时,基于用户对目标应用设备选择界面的触发操作,交互参与设备获取目标应用的设备选择策略,并将设备选择策略传入设备选择器的设备选择策略子模块,设备选择策略子模块基于该设备选择策略从应用设备组管理子模块管理的设备组范围即设备选择列表(也就是候选交互设备)中筛选出目标交互设备。需要说明的是,此时交互参与设备为被分享方用户账号下的任一设备。When the sharing party and the shared party are user-level sharing, based on the user's trigger operation on the target application device selection interface, the interactive participating device obtains the device selection policy of the target application, and transfers the device selection policy to the device selection policy of the device selector The sub-module, the device selection policy sub-module selects target interactive devices from the range of device groups managed by the application device group management sub-module, that is, the device selection list (that is, candidate interactive devices) based on the device selection policy. It should be noted that, at this time, the interactive participating device is any device under the user account of the shared party.
另外,需要说明的是,步骤1305和步骤1306可以选择择一执行,本申请实施例对此不进行限定。In addition, it should be noted that, step 1305 and step 1306 can be selected to be executed, which is not limited in this embodiment of the present application.
步骤1307,基于分享实例标识,交互参与设备通过目标应用调用目标交互设备处的目标交互资源,目标交互设备用于对分享实例标识进行权限验证,并在分享实例标识通过权限验证时提供目标交互资源。 Step 1307, based on the shared instance ID, the interactive participating device invokes the target interactive resource at the target interactive device through the target application, and the target interactive device is used to verify the authorization of the shared instance ID, and provide the target interactive resource when the shared instance ID passes the authorization verification .
交互参与设备基于资源交互数据中的目标应用标识以及分享方标识确定目标应用以及目标交互设备,向目标交互设备也就是资源交互发起设备发送资源调用请求,该资源调用请求中包含分享实例标识,资源交互发起设备对该分享实例标识进行权限验证,分享实例标识通过资源交互发起设备的权限验证之后,向交互参与设备提供目标交互资源,也就是说交互参与设备可以通过目标应用调用资源交互发起设备的资源。The interaction participating device determines the target application and the target interactive device based on the target application ID and the sharing party ID in the resource interaction data, and sends a resource call request to the target interactive device, that is, the resource interaction initiating device. The resource call request includes the sharing instance ID, the resource The interaction initiating device performs authorization verification on the sharing instance ID. After the sharing instance ID passes the authorization verification of the resource interaction initiating device, it provides the target interaction resource to the interaction participating device. That is to say, the interaction participating device can call the resources of the interaction initiating device through the target application. resource.
示例性的,如图14,其中示出了设备级分享资源的原理示意图,以目标应用为相册应用,分享方为资源交互发起设备手机A,被分享方为交互参与设备手机B为例进行说明。Exemplarily, as shown in Figure 14, it shows a schematic diagram of the principle of resource sharing at the device level. The target application is the photo album application, the sharing party is the resource interaction initiation device mobile phone A, and the shared party is the interaction participating device mobile phone B as an example. .
手机A通过第一应用管理器1401生成资源交互数据,资源交互数据中包含目标应用标识,设备标识以及分享实例标识。手机B获取该资源交互数据,并基于目标应用标识通过第二应用管理器1402确定目标应用为相册应用1404,并启动相册应用1404。同时基于设备标识,通过第二应用管理器1402设置设备选择器1405中应用设备组管理子模块的设备组范围为手机A,并将其确定为候选设备。基于用户在相册应用1404的设备选择界面选择的设备选择策略为选择所有设备,因此确定候选设备手机A为目标交互设备。进一步,通过设备选择器1405从资源网关管理1406中获取目标交互设备手机A的目标资源网关地址,并将该目标资源网关地址反馈给相册应用1404。进一步,向目标交互设备手机A发送资源调用请求,该资源交互请求中包含分享实例标识,目标交互设备手机A通过对分享实例标识的权限验证之后,向手机B提供相册应用对应的照片资源。手机B通过相册应用1404遍历目标资源网关地址中的资源网关1403,调用相册应用1404对应的照片资源。The mobile phone A generates resource interaction data through the first application manager 1401, and the resource interaction data includes target application identifiers, device identifiers and sharing instance identifiers. Mobile phone B acquires the resource interaction data, determines the target application as the photo album application 1404 through the second application manager 1402 based on the target application identifier, and starts the photo album application 1404 . At the same time, based on the device identifier, the second application manager 1402 sets the device group range of the application device group management submodule in the device selector 1405 to mobile phone A, and determines it as a candidate device. Based on the device selection policy selected by the user on the device selection interface of the photo album application 1404 to select all devices, it is determined that the candidate device mobile phone A is the target interaction device. Further, the target resource gateway address of the target interactive device mobile phone A is obtained from the resource gateway management 1406 through the device selector 1405 , and the target resource gateway address is fed back to the album application 1404 . Further, a resource call request is sent to the target interactive device mobile phone A, the resource interaction request includes the sharing instance identifier, and the target interactive device mobile phone A provides the photo resource corresponding to the photo album application to mobile phone B after passing the permission verification of the sharing instance identifier. Mobile phone B traverses the resource gateway 1403 in the target resource gateway address through the album application 1404, and calls the photo resource corresponding to the album application 1404.
示例性的,如图15所示,其中示出了用户级分享的资源交互的示意图。以目标应用为相册应用,分享方为用户A,被分享方为用户B为例进行说明,其中用户A账号下包括手机A和手机B,用户B账号下包括手机C。Exemplarily, as shown in FIG. 15 , it shows a schematic diagram of user-level shared resource interaction. Take the photo album application as the target application, the sharing party is user A, and the shared party is user B as an example. The account of user A includes mobile phone A and mobile phone B, and the account of user B includes mobile phone C.
用户A账号下的任一设备通过其应用管理器生成资源交互数据,例如用户A账号下的手机A通过第一应用管理器1501生成资源交互数据,资源交互数据中包含目标应用标识,用户标识以及分享实例标识。用户B账号下的任一设备获取该资源交互标识,例如用户B账号下的手机C获取该资源交互数据,并基于目标应用标识通过第二应用管理器1502确定目标应用为相册应用1505,并启动相册应用1505,同时基 于用户标识通过第二应用管理器1502向服务器端的用户管理模块1507以及设备管理模块1508查询用户A账号下设备列表,该设备列表中包括手机A和手机B。进一步,手机C通过第二应用管理器1502将设备选择器1506中应用设备组管理子模块的设备组范围设置为该设备列表,并将设备列表中的设备,即手机A和手机B确定为候选设备。基于用户在相册应用1505的设备选择界面的设备选择策略为选择所有设备,因此确定候选设备手机A和手机B为目标交互设备。进一步,通过设备选择器1506从资源网关管理1509中获取目标交互设备手机A和手机B的目标资源网关地址,并将该目标资源网关地址反馈给相册应用1505。进一步,手机C向目标交互设备手机A和手机B发送资源调用请求,该资源交互请求中包含分享实例标识,目标交互设备手机A和手机B通过对分享实例标识的权限验证之后,向手机C提供相册应用对应的照片资源。手机C通过相册应用1505遍历目标资源网关地址中的资源网关1503和1504,调用相册应用1505对应的照片资源。Any device under the account of user A generates resource interaction data through its application manager. For example, mobile phone A under the account of user A generates resource interaction data through the first application manager 1501. The resource interaction data includes target application identification, user identification and Share instance ID. Any device under the account of user B obtains the resource interaction identifier. For example, mobile phone C under the account of user B obtains the resource interaction data, and based on the target application identifier, the second application manager 1502 determines that the target application is the photo album application 1505, and starts The photo album application 1505 simultaneously queries the user management module 1507 and the device management module 1508 of the server through the second application manager 1502 for a device list under the account of user A based on the user ID, and the device list includes mobile phone A and mobile phone B. Further, the mobile phone C sets the device group range of the application device group management submodule in the device selector 1506 as the device list through the second application manager 1502, and determines the devices in the device list, that is, mobile phone A and mobile phone B as candidates equipment. Based on the device selection strategy of the user in the device selection interface of the photo album application 1505 is to select all devices, the candidate devices mobile phone A and mobile phone B are determined as target interaction devices. Further, the target resource gateway addresses of the target interaction devices mobile phone A and mobile phone B are obtained from the resource gateway management 1509 through the device selector 1506 , and the target resource gateway addresses are fed back to the album application 1505 . Further, the mobile phone C sends a resource call request to the target interactive device mobile phone A and mobile phone B, and the resource interaction request includes the sharing instance identifier, and the target interactive device mobile phone A and mobile phone B provide the mobile phone C with The photo resource corresponding to the photo album application. Mobile phone C traverses the resource gateways 1503 and 1504 in the target resource gateway address through the album application 1505, and calls the photo resource corresponding to the album application 1505.
在本申请实施例中,基于目标应用标识、分享方标识以及分享实例标识,交互参与设备可以调用资源交互发起设备处目标应用对应的资源,实现资源交互发起设备与交互参与设备之间资源分享,丰富了资源分享方式。In this embodiment of the application, based on the target application ID, the sharing party ID, and the sharing instance ID, the interaction participating device can call the resource corresponding to the target application at the resource interaction initiating device to realize resource sharing between the resource interaction initiating device and the interaction participating device. Enriched resource sharing methods.
在另一种可能的实施方式中,资源交互触发操作为共享操作,资源交互数据中包含目标应用标识以及共享组标识,目标应用标识用于确定目标应用,共享组标识用于确定共享组。下面对资源共享方法进行介绍,如图16所示,其中示出了本申请另一个示例性实施例提供的资源交互方法,该方法应用于资源交互发起设备,即共享群主。需要说明的是,资源交互发起设备为共享群主中的一个,为了方便表述,以共享群主为资源交互发起设备为例进行说明。In another possible implementation manner, the resource interaction trigger operation is a sharing operation, and the resource interaction data includes a target application identifier and a sharing group identifier, the target application identifier is used to determine the target application, and the sharing group identifier is used to determine the sharing group. The resource sharing method is introduced below, as shown in FIG. 16 , which shows a resource interaction method provided by another exemplary embodiment of the present application, and the method is applied to a device that initiates resource interaction, that is, a sharing group owner. It should be noted that the resource interaction initiating device is one of the sharing group owners. For the convenience of expression, the sharing group owner is taken as the resource interaction initiating device as an example for illustration.
步骤1601,响应于对目标应用的共享操作,资源交互发起设备通过应用管理器生成包含目标应用标识以及共享组标识的资源交互数据。 Step 1601, in response to the sharing operation on the target application, the resource interaction initiating device generates resource interaction data including the target application identifier and the sharing group identifier through the application manager.
在本申请实施例中,基于用户对目标应用的共享操作,资源交互发起设备通过应用管理器生成资源交互数据,该资源交互数据包括目标应用标识,以及共享组标识。In this embodiment of the present application, based on the user's sharing operation on the target application, the resource interaction initiating device generates resource interaction data through the application manager, and the resource interaction data includes the target application identifier and the sharing group identifier.
其中,共享是指多个设备或者用户关联在一起形成共享组,同一个共享组内的设备或者用户之间可以相互调用其他设备或者用户的资源。创建共享组的设备或者用户称之为共享群主。只有共享群主创建共享组之后,其他设备或者用户才可以加入该共享组。共享操作是指创建共享组的操作,共享组标识用于表征创建的共享组,其他设备或者用户可以通过共享组标识加入共享组。另外,需要说明的是共享组标识具有唯一性,不同的共享组具有不用的共享组标识。在本申请实施例中,资源交互发起设备为共享群主。Wherein, sharing means that multiple devices or users are associated together to form a sharing group, and devices or users in the same sharing group can call resources of other devices or users each other. The device or user who creates the sharing group is called the sharing group owner. Only after the sharing group owner creates the sharing group, other devices or users can join the sharing group. The sharing operation refers to the operation of creating a sharing group, and the sharing group identifier is used to represent the created sharing group, and other devices or users can join the sharing group through the sharing group identifier. In addition, it should be noted that the sharing group ID is unique, and different sharing groups have different sharing group IDs. In this embodiment of the application, the resource interaction initiating device is a sharing group owner.
示例性的,如图17所示,以协同画板应用为目标应用,应用管理器为超级应用,资源交互发起设备为共享群主为例进行说明。Exemplarily, as shown in FIG. 17 , the collaborative drawing board application is taken as the target application, the application manager is the super application, and the resource interaction initiating device is the shared group owner as an example for illustration.
用户1708在超级应用的应用列表界面1701点击协同画板应用1704,资源交互发起设备接收到用户对协同画板应用1704的触发操作,进入应用详情界面1702,应用详情界面1702包含分享按键1705和共享按键1706,用户1708点击共享按键1706,资源交互发起设备接收到用户1708对共享按键1706的触发操作,通过超级应用生成资源交互数据,该资源交互数据中包含目标应用标识以及共享组标识,同时显示共享组创建界面1703,此时资源交互发起设备为共享群主1707。The user 1708 clicks the collaborative drawing board application 1704 on the application list interface 1701 of the super application, and the resource interaction initiating device receives the user's trigger operation on the collaborative drawing board application 1704, and enters the application details interface 1702, which includes the sharing button 1705 and the sharing button 1706 , the user 1708 clicks the sharing button 1706, the resource interaction initiating device receives the user 1708's trigger operation on the sharing button 1706, generates resource interaction data through the super application, the resource interaction data includes the target application ID and the sharing group ID, and displays the sharing group Create an interface 1703 , and at this time, the resource interaction initiating device is the sharing group owner 1707 .
步骤1602,响应于对目标应用的设备级共享操作,资源交互发起设备向服务器发送第一共享组创建请求,第一共享组创建请求中包含设备标识,服务器用于基于第一共享组创建请求创建由设备构成的共享组。Step 1602: In response to the device-level sharing operation on the target application, the resource interaction initiating device sends a first sharing group creation request to the server, the first sharing group creation request includes the device identifier, and the server is used to create a resource based on the first sharing group creation request. A sharing group consisting of devices.
在本申请实施例中,服务器端部署有共享组管理,共享组管理用于管理共享组的创建以及共享组成员的加入和退出。因此当资源交互发起设备接收到用户对目标应用设备级共享操作时,向共享组管理发送共享组创建请求,该共享组创建请求中包含资源交互发起设备的设备标识,共享组管理基于该创建请求创建共享组,该资源交互发起设备即为共享群主。In the embodiment of the present application, the sharing group management is deployed on the server side, and the sharing group management is used to manage the creation of the sharing group and the joining and exiting of the sharing group members. Therefore, when the resource interaction initiating device receives the user's device-level sharing operation on the target application, it sends a sharing group creation request to the sharing group management. The sharing group creation request includes the device identifier of the resource interaction initiating device, and the sharing group management is based on the creation request. Create a sharing group, and the device that initiates the resource interaction is the sharing group owner.
在本申请实施例中,设备级共享是指其共享组的成员均为设备。可选地,该设备可以属于同一用户账号下,也可以属于不同用户账号下,本申请实施例对此不作限定。In this embodiment of the application, device-level sharing means that all members of the sharing group are devices. Optionally, the device may belong to the same user account, or may belong to different user accounts, which is not limited in this embodiment of the present application.
步骤1603,响应于对目标应用的用户级共享操作,资源交互发起设备向服务器发送第二共享组创建请求,第二共享组创建请求中包含用户标识,服务器用于基于第二共享组创建请求创建由用户构成的共享组。 Step 1603, in response to the user-level sharing operation on the target application, the resource interaction initiating device sends a second sharing group creation request to the server, the second sharing group creation request includes a user identifier, and the server is used to create a second sharing group creation request based on the second sharing group creation request A sharing group made up of users.
在本申请实施例中,当资源交互发起设备接收到用户对目标应用的用户级共享操作时,向共享组管理发送共享组创建请求,该共享组创建请求中包含资源交互发起设备所属用户账号对应的用户标识,共享组管理基于该创建请求创建共享组,该资源交互发起设备所属用户即为共享群主。共享组内包括该用户账号下的所有设备。In this embodiment of the application, when the resource interaction initiating device receives the user's user-level sharing operation on the target application, it sends a sharing group creation request to the sharing group management, and the sharing group creation request includes the user account corresponding to the resource interaction initiating device The user ID of the sharing group management creates a sharing group based on the creation request, and the user who belongs to the resource interaction initiating device is the sharing group owner. The sharing group includes all devices under the user account.
在本申请实施例中,用户级共享是指其共享组的成员包括不同用户账号下的所有设备。In this embodiment of the present application, user-level sharing means that members of the sharing group include all devices under different user accounts.
步骤1604,响应于交互参与设备的资源调用请求,资源交互发起设备通过资源网关向交互参与设备 提供目标交互资源,资源网关用于管理设备中资源的调用。 Step 1604, in response to the resource invocation request of the interaction participant device, the resource interaction initiating device provides the interaction participant device with the target interaction resource through the resource gateway, and the resource gateway is used to manage resource invocation in the device.
当交互参与设备基于资源交互数据中的目标应用标识和共享组标识确定目标应用以及加入共享组之后,向共享组内的目标交互设备发送资源调用请求,该资源调用请求用于调用目标交互设备处的目标交互资源,共享组内的目标交互设备,即资源交互发起设备接收到该资源调用请求后,通过资源网关向交互参与设备提供目标交互资源。After the interaction participating device determines the target application based on the target application identifier and the sharing group identifier in the resource interaction data and joins the sharing group, it sends a resource call request to the target interactive device in the sharing group, and the resource call request is used to call the target interactive device. The target interaction resource of the target interaction device in the shared group, that is, the resource interaction initiation device provides the target interaction resource to the interaction participant device through the resource gateway after receiving the resource invocation request.
步骤1605,资源交互发起设备通过目标应用调用交互参与设备处的目标交互资源。 Step 1605, the resource interaction initiating device invokes the target interaction resource on the interaction participating device through the target application.
在本申请实施例中,由于共享组内的设备可以相互调用所有设备的资源,因此资源交互发起设备也可以通过目标应用调用交互参与设备处的目标交互资源。In the embodiment of the present application, since the devices in the sharing group can call resources of all devices, the resource interaction initiating device can also call the target interaction resource on the interaction participating device through the target application.
下面对资源共享方法进行介绍,如图18所示,其中示出了本申请另一个示例性实施例提供的资源交互方法,该方法应用于交互参与设备,需要说明的是,交互参与设备为共享成员中的一个,为了方便表述,以共享成员为交互参与设备为例进行说明。The resource sharing method is introduced below, as shown in FIG. 18 , which shows a resource interaction method provided by another exemplary embodiment of the present application, which is applied to an interactive participating device. It should be noted that the interactive participating device is One of the sharing members, for the convenience of expression, the sharing member is an interactive participating device as an example for illustration.
步骤1801,交互参与设备获取资源交互数据,资源交互数据由资源交互发起设备在接收到对目标应用的共享操作中生成,资源交互数据中包含目标应用标识以及共享组标识。 Step 1801, the interaction participating device acquires resource interaction data, which is generated by the resource interaction initiating device upon receiving a sharing operation on a target application, and the resource interaction data includes a target application ID and a sharing group ID.
交互参与设备从资源交互发起设备处获取资源交互数据,该资源交互数据中包含目标应用标识以及共享组标识。该共享组标识用于表征交互参与设备要加入的共享组。The interaction participating device acquires resource interaction data from the resource interaction initiating device, and the resource interaction data includes a target application identifier and a sharing group identifier. The sharing group identifier is used to represent the sharing group to be joined by the interactive participating device.
步骤1802,基于资源交互数据,交互参与设备通过应用管理器确定目标应用,并启动目标应用,应用管理器用于管理不同应用的资源交互。 Step 1802, based on the resource interaction data, the interaction participating device determines the target application through the application manager, and starts the target application. The application manager is used to manage resource interaction of different applications.
在本申请实施例中,基于资源交互数据中的目标应用标识,交互参与设备通过应用管理器确定目标应用,该应用与资源交互发起设备的应用为同一应用,并运行该目标应用。In this embodiment of the present application, based on the target application identifier in the resource interaction data, the interaction participating device determines the target application through the application manager, and the application is the same as the application of the resource interaction initiating device, and runs the target application.
步骤1803,交互参与设备通过应用管理器加入共享组标识所表征的共享组。 Step 1803, the interactive participating device joins the sharing group represented by the sharing group identifier through the application manager.
在本申请实施例中,基于资源交互数据中的共享组标识,交互参与设备通过应用管理器加入该共享组标识对应的共享组中。需要说明的是,交互参与设备以共享成员的角色加入共享组,其与共享群主角色在功能上存在区别。第一,共享成员加入共享组需要得到共享群主的同意,第二,共享群主有将共享成员移出共享组的权限,而共享成员只有主动退出共享组的权限,第三,共享群主有解散共享组的权限,而共享成员没有该权限。In the embodiment of the present application, based on the sharing group identifier in the resource interaction data, the interaction participating device joins the sharing group corresponding to the sharing group identifier through the application manager. It should be noted that the interactive participating device joins the sharing group as a sharing member, which is functionally different from the sharing group owner role. First, sharing members need to get the consent of the sharing group owner to join the sharing group. Second, the sharing group owner has the right to remove the sharing members from the sharing group, while the sharing members only have the right to actively withdraw from the sharing group. Third, the sharing group owner has Dismiss the permission of the sharing group, but the sharing members do not have the permission.
在一种可能的实施方式中,交互参与设备作为共享成员只能加入一个共享组,例如,交互参与设备通过应用管理器加入第一共享组标识所表征的第一共享组后,当其再次通过应用管理器加入第二共享组标识所表征的第二共享组时,需要退出第一共享组,否则无法加入第二共享组。In a possible implementation manner, the interactive participating device can only join one sharing group as a sharing member. For example, after the interactive participating device joins the first sharing group represented by the first sharing group identifier through the application manager, when it passes through the When the application manager joins the second sharing group represented by the second sharing group identifier, it needs to exit the first sharing group, otherwise it cannot join the second sharing group.
示例性的,如图19所示,以协同画板应用为目标应用,超级应用为应用管理器对此进行说明。资源交互发起设备1901作为共享群主创建共享组1902,生成资源交互数据,并通过NFC信号将资源交互数据发送给交互参与设备1903。交互参与设备1903通过NFC信号获取到该资源交互数据,通过资源交互数据中的共享组标识作为共享成员加入共享组1902,但是交互参与设备1903之前已经加入过一个共享组,因为协同画板应用界面会弹出共享组选择界面1904,共享组选择界面1904中包括加入共享组按键1905和放弃加入共享组按键1906,用户点击加入共享组按键1905,交互参与设备1903接收到用户对加入共享组按键1905的触发操作,则自动退出已加入的共享组,同时作为共享成员1903加入共享组1902。Exemplarily, as shown in FIG. 19 , the cooperative drawing board application is taken as the target application, and the super application is the application manager for illustration. The resource interaction initiation device 1901 creates a sharing group 1902 as a sharing group owner, generates resource interaction data, and sends the resource interaction data to the interaction participating device 1903 through an NFC signal. The interaction participation device 1903 obtains the resource interaction data through the NFC signal, and joins the sharing group 1902 as a sharing member through the sharing group identifier in the resource interaction data, but the interaction participation device 1903 has already joined a sharing group before, because the collaborative sketchpad application interface will The sharing group selection interface 1904 pops up, the sharing group selection interface 1904 includes a join sharing group button 1905 and a quit joining sharing group button 1906, the user clicks the join sharing group button 1905, and the interactive participating device 1903 receives the user's trigger on the join sharing group button 1905 operation, it will automatically exit the shared group it has joined, and join the shared group 1902 as a shared member 1903 at the same time.
在另一种可能的实施方式中,交互参与设备作为共享成员可以同时加入多个共享组,且共享组与共享组之间资源交互互不干扰。例如,交互参与设备通过应用管理器加入第一共享组表示所表征的第一共享组后,也可以在此通过应用管理器加入第二共享组标识所表征的第二共享组,第一共享组与第二共享组之间的资源交互互不干扰。In another possible implementation manner, as a sharing member, an interaction participating device may join multiple sharing groups at the same time, and resource interaction between sharing groups does not interfere with each other. For example, after the interactive participating device joins the first sharing group represented by the first sharing group through the application manager, it may also join the second sharing group represented by the second sharing group identifier through the application manager. The first sharing group Resource interaction with the second sharing group does not interfere with each other.
在本申请实施例中,共享组中的成员可能是设备,也可能是用户,在这两种情况下确定目标交互设备的方法不同,下面对其进行介绍。In the embodiment of the present application, the members in the sharing group may be devices or users. In these two cases, the methods for determining the target interaction device are different, which will be introduced below.
步骤1804,在共享组中包含设备标识的情况下,交互参与设备通过应用管理器将设备标识所表征的设备确定为候选交互设备。 Step 1804, in the case that the sharing group contains the device identifier, the interaction participant device determines, through the application manager, the device represented by the device identifier as a candidate interaction device.
在一种可能的实施方式中,共享组的成员为设备,不同的设备对应不同的设备标识,交互参与设备中的应用管理器根据共享组中的设备标识配置设备选择器中应用设备组管理子模块管理的设备组范围,该设备组范围包括共享组中所有的设备,并将该设备组范围内的设备确定为候选设备。In a possible implementation manner, the members of the sharing group are devices, and different devices correspond to different device identifiers, and the application manager in the interactive participating device configures the application device group manager in the device selector according to the device identifiers in the sharing group. The scope of the device group managed by the module, the scope of the equipment group includes all the equipment in the sharing group, and the equipment within the scope of the equipment group is determined as the candidate equipment.
步骤1805,在共享组中包含用户标识的情况下,交互参与设备通过应用管理器获取用户标识对应的至少一个设备标识,并将设备标识所表征的设备确定为候选交互设备。 Step 1805, if the sharing group contains the user ID, the interaction participating device acquires at least one device ID corresponding to the user ID through the application manager, and determines the device represented by the device ID as a candidate interaction device.
在一种可能的实施方式中,共享组的成员为用户,用户标识用来表征用户账号信息,设备标识用来表征用户账号下对应的设备信息,用户账号下的设备数量可以是一个或者多个,不同的设备对应不同的设备标识。In a possible implementation, the members of the sharing group are users, the user ID is used to represent the user account information, the device ID is used to represent the corresponding device information under the user account, and the number of devices under the user account can be one or more , different devices correspond to different device IDs.
在本申请实施例中,交互参与设备中的应用管理器通过用户标识向服务器端的用户管理以及设备管理 查询用户标识对应的用户账号下的设备列表。进一步,应用管理器配置设备选择器中应用设备组管理子模块管理的设备组范围,该设备组范围为共享组中所有用户账号下的设备列表,该设备列表包括共享组中所有用户账号下的所有设备,并将设备列表中的所有设备确定为候选交互设备。In this embodiment of the application, the application manager in the interactive participating device queries the user management and device management on the server side for the list of devices under the user account corresponding to the user ID through the user ID. Further, the application manager configures the device group range managed by the application device group management submodule in the device selector. The device group range is a list of devices under all user accounts in the sharing group, and the device list includes devices under all user accounts in the sharing group. All devices, and determine all devices in the device list as candidate interaction devices.
步骤1806,交互参与设备获取目标应用的设备选择策略;通过设备选择器,将符合设备选择策略的候选交互设备确定为目标交互设备。In step 1806, the interaction participating device acquires the device selection policy of the target application; through the device selector, a candidate interaction device conforming to the device selection policy is determined as the target interaction device.
步骤1806参照步骤1305,本申请实施例对此不再赘述。For step 1806, refer to step 1305, which will not be repeated in this embodiment of the present application.
步骤1807,交互参与设备基于候选交互设备显示设备选择列表;通过设备选择器,将设备选择列表中选中的候选交互设备确定为目标交互设备。 Step 1807, the interaction participating device displays a device selection list based on the candidate interaction devices; and determines the candidate interaction device selected in the device selection list as the target interaction device through the device selector.
步骤1807参照步骤1306,本申请实施例对此不再赘述。For step 1807, refer to step 1306, which will not be repeated in this embodiment of the present application.
步骤1808,交互参与设备向目标交互设备提供目标交互资源。 Step 1808, the interaction participant device provides the target interaction resource to the target interaction device.
步骤1809,交互参与设备通过目标应用调用目标交互设备处的目标交互资源。 Step 1809, the interaction participating device invokes the target interaction resource on the target interaction device through the target application.
步骤1808至步骤1809,由于共享组内设备都可以调用所有设备的资源,因此交互参与设备可以向目标交互设备提供目标交互资源,同时交互参与设备也可以通过目标应用调用目标交互设备处的目标交互资源。From step 1808 to step 1809, since the devices in the shared group can call the resources of all devices, the interaction participating device can provide the target interaction resource to the target interaction device, and at the same time, the interaction participating device can also call the target interaction resource at the target interaction device through the target application. resource.
示例性的,如图20所示,以协同画板应用为目标应用为例,以应用管理器为超级应用,资源交互发起设备作为共享群主、交互参与设备作为共享组成员为例对共享资源交互进行说明。Exemplarily, as shown in Figure 20, take the collaborative drawing board application as the target application as an example, take the application manager as the super application, the resource interaction initiating device as the sharing group owner, and the interaction participating device as the sharing group member as an example to interact with the shared resources. Be explained.
用户2007在资源交互发起设备2001的协同画板应用的应用详情页面2003点击启动按键2009,资源交互发起设备2001接收到用户2007对启动按键2009的触发操作,显示协同画板应用的操作界面2004。用户2008在交互参与设备2002的协同画板应用的应用详情页面2005点击启动按键2010,交互参与设备2002接收到用户2008对启动按键2010的触发操作,显示协同画板应用的操作界面2006。由于资源交互发起设备2001与交互参与设备2002均在一个共享组内,因此资源交互发起设备2001与交互参与设备2002可相互调用对方绘画数据同步服务,也就是说,资源交互发起设备2001和交互参与设备2002协同画板应用的内容可以实现实时相互同步,例如在资源交互发起设备2001的协同画板应用的操作界面2004可以显示交互参与设备2002协同画板应用的内容,同时交互参与设备2002的协同画板应用的操作界面2006也可以显示资源交互发起设备2001协同画板应用的内容。The user 2007 clicks the start button 2009 on the application details page 2003 of the collaborative drawing board application of the resource interaction initiating device 2001, and the resource interaction initiating device 2001 receives the user 2007's trigger operation on the starting button 2009, and displays the operation interface 2004 of the collaborative drawing board application. The user 2008 clicks the start button 2010 on the application details page 2005 of the collaborative drawing board application of the interactive participating device 2002, and the interactive participating device 2002 receives the trigger operation of the starting button 2010 by the user 2008, and displays the operation interface 2006 of the collaborative drawing board application. Since the resource interaction initiating device 2001 and the interaction participating device 2002 are in a shared group, the resource interaction initiating device 2001 and the interaction participating device 2002 can call each other's drawing data synchronization service, that is, the resource interaction initiating device 2001 and the interactive participating device The content of the collaborative sketchpad application on the device 2002 can be synchronized with each other in real time. For example, the operation interface 2004 of the collaborative sketchpad application of the resource interaction initiating device 2001 can display the content of the collaborative sketchpad application of the interactive participating device 2002, and at the same time, the content of the collaborative sketchpad application of the interactive participating device 2002 The operation interface 2006 can also display the content of the resource interaction initiating device 2001 in collaboration with the sketchpad application.
示例性的,如图21所示,其中示出了设备级共享的资源交互的原理示意图,以目标应用为相册应用,以手机A为共享群主,手机B和手机C为共享成员组成的共享组为例进行说明。由于手机A、手机B、手机C都在一个共享组中,因此手机A、手机B以及手机C都可以相互调用对方的资源,下面仅以手机B调用手机A和手机C的资源为例进行说明。Exemplarily, as shown in Figure 21, which shows a schematic diagram of the principle of device-level shared resource interaction, the target application is the photo album application, mobile phone A is the sharing group owner, and mobile phone B and mobile phone C are sharing members. group as an example. Since mobile phone A, mobile phone B, and mobile phone C are all in a shared group, mobile phone A, mobile phone B, and mobile phone C can call each other's resources. The following only uses mobile phone B to call the resources of mobile phone A and mobile phone C as an example. .
手机A通过第一应用管理器2101向服务器端的共享组管理2108发送共享组创建请求并创建共享组,共享组的共享群主为手机A,同时通过第一应用管理器2101生成包含目标应用标识以及共享组标识的资源交互数据。手机B和手机C获取资源交互数据,并基于目标应用标识确定目标应用为相册应用2106,基于共享组标识手机B以及手机C加入共享组,并从共享组管理2108获得共享组下的设备列表,此时共享组管理2108中设备列表包括手机A、手机B以及手机C。以手机B调用共享组内成员的资源为例,手机B通过第二应用管理器2102从共享组管理2108中获取当前共享组的设备列表,并将设备选择器2103中应用设备组管理子模块的设备组范围设置为该共享组的设备列表,此时共享组的设备列表上的所有设备即手机A、手机B、手机C为候选设备。基于用户在相册应用2106的设备选择界面的设备选择策略为选择所有设备,因此确定候选设备手机A、手机B、手机C为目标交互设备。进一步,通过设备选择器2103从资源网关管理2109中获取目标交互设备手机A、手机B、手机C的目标资源网关地址,并将该目标资源网关地址反馈给相册应用2106。手机B通过相册应用2106遍历目标资源网关地址中的资源网关2105、2107、2104,调用手机A、手机B、手机C中的照片资源。另外手机B也向手机A以及手机C提供自己相册应用对应照片资源。另外,需要说明的是,共享组内任何一部手机打开相册应用都能看所有手机即手机A、手机B、手机C中的照片。Mobile phone A sends a sharing group creation request to the sharing group management 2108 on the server side through the first application manager 2101 and creates a sharing group. The sharing group owner of the sharing group is mobile phone A. Resource interaction data identified by the sharing group. Mobile phone B and mobile phone C obtain resource interaction data, and determine the target application as the photo album application based on the target application identification 2106, join the sharing group based on the sharing group identification, mobile phone B and mobile phone C, and obtain the device list under the sharing group from the sharing group management 2108, At this time, the device list in the sharing group management 2108 includes mobile phone A, mobile phone B and mobile phone C. Taking mobile phone B calling the resources of members in the sharing group as an example, mobile phone B obtains the device list of the current sharing group from the sharing group management 2108 through the second application manager 2102, and uses the device group management submodule in the device selector 2103 The scope of the device group is set to the device list of the sharing group, and at this time, all the devices on the device list of the sharing group, that is, mobile phone A, mobile phone B, and mobile phone C are candidate devices. Based on the device selection strategy of the user in the device selection interface of the photo album application 2106 is to select all devices, the candidate devices mobile phone A, mobile phone B, and mobile phone C are determined as target interactive devices. Further, the target resource gateway addresses of the target interactive devices mobile phone A, mobile phone B, and mobile phone C are obtained from the resource gateway management 2109 through the device selector 2103 , and the target resource gateway addresses are fed back to the album application 2106 . Mobile phone B traverses the resource gateways 2105, 2107, and 2104 in the target resource gateway address through the photo album application 2106, and calls the photo resources in mobile phone A, mobile phone B, and mobile phone C. In addition, mobile phone B also provides mobile phone A and mobile phone C with photo resources corresponding to the photo album application. In addition, it should be noted that any mobile phone in the sharing group can view the photos in all mobile phones, namely mobile phone A, mobile phone B, and mobile phone C, by opening the photo album application.
示例性的,如22所示,其中示出了用户级共享的资源交互的原理示意图,以目标应用为相册应用,以用户A为共享群主,用户B以及用户C为共享成员为例进行说明。其中用户A账号下的设备为手机A以及手机B、用户B账号下的设备为手机C、用户D账号下的设备为手机D以及手机E,每个手机对应不同的设备标识。其中,共享组内用户A、用户B以及用户C账号下任何一部手机都可以调用其他用户账号下手机的资源,下面以用户B账号下的手机C调用其他用户账号下的手机的资源为例进行说明。Exemplarily, as shown in 22, which shows a schematic diagram of the principle of user-level shared resource interaction, the target application is an album application, user A is the sharing group owner, and user B and user C are sharing members as an example. . The devices under the account of user A are mobile phone A and mobile phone B, the devices under the account of user B are mobile phone C, and the devices under the account of user D are mobile phone D and mobile phone E. Each mobile phone corresponds to a different device ID. Among them, any mobile phone under the account of user A, user B, and user C in the sharing group can call the resources of mobile phones under other user accounts. The following uses the mobile phone C under the account of user B to call the resources of mobile phones under other user accounts as an example. Be explained.
用户A账号下的手机A通过第一应用管理器2201向服务器端的共享组管理2210发送共享组创建请求并创建共享组,共享组的共享群主为用户A,同时通过第一应用管理器2201生成包含目标应用标识以及共享组标识的资源交互数据。用户B和用户C获取资源交互数据,并基于目标应用标识确定目标应用为相册应用2114,基于共享组标识用户B以及用户C加入共享组,并从共享组管理2210获得共享组下的用 户列表,此时共享组管理2210中用户列表包括用户A、用户B以及用户C,分别对应不同的用户标识。进一步,共享组成员即用户A、用户B以及用户C通过各自应用管理器遍历用户列表中的用户标识,通过服务器端的用户管理2211以及设备管理2212查询到所有设备,生成一张完整的设备列表,该列表中包括手机A、手机B、手机C、手机D以及手机E。用户B账号下的手机C通过第二应用管理器2202获取前述设备列表,并将设备选择器2203中应用设备组管理子模块的设备组范围设备为前述的设备列表,同时将该设备列表上的所有设备手机A、手机B、手机C、手机D以及手机E确定为候选设备。基于用户在相册应用2206的设备选择界面的设备选择策略为选择所有设备,因此确定候选设备手机A、手机B、手机C、手机D以及手机E为目标交互设备。进一步,通过设备选择器2203从资源网关管理2213中获取目标交互设备手机A、手机B、手机C、手机D以及手机E的目标资源网关地址,并将该目标资源网关地址反馈给相册应用2206。手机C通过相册应用2206遍历目标资源网关地址中的资源网关2204、2205、2209、2207、2208,调用手机A、手机B、手机C、手机D以及手机E中照片资源。另外手机C也向手机A、手机B、手机D以及手机E提供自己相册应用对应的照片资源。需要说明的是,共享组成员用户A、用户B、用户C账号下的任何一部手机打开相册应用都能看所有手机即手机A、手机B、手机C、手机D以及手机E的照片。The mobile phone A under the account of user A sends a sharing group creation request to the sharing group management 2210 on the server side through the first application manager 2201 and creates a sharing group. Resource interaction data including target application ID and sharing group ID. User B and user C obtain resource interaction data, and determine the target application as the photo album application based on the target application identification 2114, identify user B and user C based on the sharing group to join the sharing group, and obtain the user list under the sharing group from the sharing group management 2210, At this time, the user list in the sharing group management 2210 includes user A, user B, and user C, which respectively correspond to different user identifiers. Further, members of the sharing group, that is, user A, user B, and user C traverse the user IDs in the user list through their respective application managers, query all devices through the user management 2211 and device management 2212 on the server side, and generate a complete device list. The list includes mobile phone A, mobile phone B, mobile phone C, mobile phone D, and mobile phone E. The mobile phone C under the user B's account obtains the aforementioned device list through the second application manager 2202, and sets the device group scope device of the application device group management submodule in the device selector 2203 as the aforementioned device list, and at the same time, the device list on the device list All devices mobile phone A, mobile phone B, mobile phone C, mobile phone D and mobile phone E are determined as candidate devices. Based on the device selection strategy of the user in the device selection interface of the photo album application 2206 is to select all devices, the candidate devices mobile phone A, mobile phone B, mobile phone C, mobile phone D and mobile phone E are determined as target interactive devices. Further, obtain target resource gateway addresses of target interactive devices mobile phone A, mobile phone B, mobile phone C, mobile phone D, and mobile phone E from resource gateway management 2213 through device selector 2203 , and feed back the target resource gateway addresses to album application 2206 . Mobile phone C traverses the resource gateways 2204, 2205, 2209, 2207, and 2208 in the target resource gateway address through the album application 2206, and calls photo resources in mobile phones A, mobile phone B, mobile phone C, mobile phone D and mobile phone E. In addition, mobile phone C also provides photo resources corresponding to its own album application to mobile phone A, mobile phone B, mobile phone D and mobile phone E. It should be noted that any mobile phone under the accounts of user A, user B, and user C who are members of the sharing group can open the photo album application to view photos of all mobile phones, namely mobile phone A, mobile phone B, mobile phone C, mobile phone D, and mobile phone E.
在本申请实施例中,资源交互发起设备创建共享组,基于共享组标识,交互参与设备加入共享组,由于资源交互发起设备和交互参与设备属于同一个共享组,其可以相互调用对方目标应用对应的资源,实现资源共享,丰富资源交互的方式。In the embodiment of this application, the resource interaction initiating device creates a sharing group, and based on the sharing group identifier, the interaction participating device joins the sharing group. Since the resource interaction initiating device and the interaction participating device belong to the same sharing group, they can call each other's target application corresponding resources, realize resource sharing, and enrich the way of resource interaction.
另外,在本申请实施例中,共享群主可以解散共享组。资源交互发起设备响应于共享组解散操作,向服务器发送共享组解散指令,以便服务器基于共享解散指令解散共享组以及删除共享组标识。交互参与设备在接收到共享组解散消息的情况下,通过应用管理器退出共享组。In addition, in this embodiment of the application, the sharing group owner can dissolve the sharing group. In response to the sharing group disbanding operation, the resource interaction initiating device sends a sharing group disbanding instruction to the server, so that the server disbands the sharing group and deletes the sharing group identifier based on the sharing disbanding instruction. The interactive participating device exits the sharing group through the application manager when receiving the sharing group disbanding message.
在本申请实施例中,基于用户的共享组解散操作,资源交互发起设备向服务器端的共享组管理发送共享组解散指令,共享组管理接收到共享解散指令后解散共享组,并删除共享组标识。交互参与设备通过共享组管理获取共享组解散消息,通过应用管理器退出共享组。In the embodiment of the present application, based on the user's sharing group disbanding operation, the resource interaction initiating device sends a sharing group disbanding instruction to the sharing group manager on the server side, and the sharing group manager disbands the sharing group after receiving the sharing disbanding instruction, and deletes the sharing group ID. The interactive participating device obtains the sharing group dissolution message through the sharing group management, and exits the sharing group through the application manager.
示例性的,如图23所示,以协同画板应用为目标应用为例,对共享群主解散共享组进行说明,其中资源交互发起设备为共享群主,交互参与设备为共享成员。Exemplarily, as shown in FIG. 23 , taking the collaborative drawing board application as an example, the disbanding of the sharing group by the sharing group owner is explained, wherein the resource interaction initiating device is the sharing group owner, and the interaction participating devices are sharing members.
用户2310在协同画板应用共享组界面2301点击解散共享组按键2305,资源交互发起设备2303接收到用户2310对解散共享组按键2305的触发操作,在协同画板应用共享组界面2301弹出对话框2306,用户2310点击确定按键2307,资源交互发起设备2303向共享组管理发送共享组解散指令,共享组管理接收到解散指令后解散共享组,并删除共享组标识,协同画板应用恢复到应用详情界面2302。交互参与设备2304接收到解散指令,通过应用管理器退出共享组。此时,资源交互发起设备2303以及交互参与设备2304不在同一共享组,其不能相互调用对方的绘画数据同步服务,当其启动协同画板应用时,其在各自的应用操作界面2308、2309只能看到自己协同画板应用的内容。The user 2310 clicks the disband sharing group button 2305 on the collaborative drawing board application sharing group interface 2301, and the resource interaction initiating device 2303 receives the user 2310's trigger operation on the disbanding sharing group button 2305, and a dialog box 2306 pops up on the collaborative drawing board application sharing group interface 2301, and the user 2310 Click the OK button 2307, the resource interaction initiating device 2303 sends a sharing group disbanding instruction to the sharing group management, the sharing group management disbands the sharing group after receiving the disbanding instruction, and deletes the sharing group logo, and the collaborative drawing board application returns to the application details interface 2302. The interaction participating device 2304 receives the disbanding instruction, and exits the sharing group through the application manager. At this time, the resource interaction initiating device 2303 and the interaction participating device 2304 are not in the same sharing group, and they cannot call each other's drawing data synchronization service. When they start the collaborative drawing board application, they can only view to the content of your collaborative sketchpad application.
在本申请实施例中,共享群主也可以移除共享组成员。资源交互发起设备响应于移除操作,向服务器发送移除指令,以便服务器基于移除指令更新共享组,将更新结果同步至共享组中的共享方,移除指令中包含待移除的交互参与设备。交互参与设备在接收到移除消息的情况下,通过应用管理器退出共享组,移除消息用于指示被移除共享组。In this embodiment of the application, the sharing group owner can also remove the sharing group members. In response to the removal operation, the resource interaction initiating device sends a removal instruction to the server, so that the server updates the sharing group based on the removal instruction, and synchronizes the update result to the sharing parties in the sharing group. The removal instruction includes the interactive participation to be removed equipment. The interactive participating device exits the sharing group through the application manager when receiving the removal message, where the removal message is used to indicate that the sharing group is removed.
在本申请实施例中,基于用户的移除操作,资源交互发起设备向服务器端的共享组管理发送移除指令,移除指令中包含待移除的设备或者用户,例如,待移除的设备为交互参与设备,即移除指令中包含待移除的交互参与设备。共享组管理接收到移除指令后,将待移除的设备从共享管理组的设备或者用户列表中移除,同时更新设备列表或者用户列表,并将更新后的结果同步给共享组的所有成员。交互参与设备通过共享组管理获取移除消息,通过应用处理器退出共享组。In this embodiment of the application, based on the user's removal operation, the resource interaction initiating device sends a removal instruction to the sharing group management on the server side. The removal instruction includes the device or user to be removed. For example, the device to be removed is The interactive participating device, that is, the removal instruction includes the interactive participating device to be removed. After the sharing group management receives the removal instruction, remove the device to be removed from the device or user list of the sharing management group, update the device list or user list at the same time, and synchronize the updated results to all members of the sharing group . The interactive participating device obtains the removal message through the sharing group management, and exits the sharing group through the application processor.
示例性的,如图24所示,以协同画板应用为目标应用为例,对共享群主移除共享成员进行说明,其中资源交互发起设备为共享群主,交互参与设备为待移除的共享成员。Exemplarily, as shown in Figure 24, taking the collaborative drawing board application as the target application as an example, the removal of shared members by the sharing group owner is described, where the resource interaction initiating device is the sharing group owner, and the interactive participating device is the shared member.
用户2409在协同画板应用共享组界面2403点击用户踢出按键2408,资源交互发起设备2401接收到用户2409对用户踢出按键2408的触发操作,在协同画板应用共享组界面2403弹出对话框2404,用户2409点击确定按键2405,资源交互发起设备2401向共享组管理发送移除指令,该移除指令中包含待移除的设备,即交互参与设备,共享组管理接收到移除指令后在设备列表中移除交互参与设备,并将更新后的设备列表同步给共享组的其他成员。同时协同画板应用共享组界面2403更新共享组成员。交互参与设备2402接收到移除消息,通过应用管理器退出共享组。此时,资源交互发起设备2401以及交互参与设备2402不在同一共享组,其不能相互调用对方的绘画数据同步服务,当其启动协同画板应用时,其在各自的应用操作界面2406、2407只能看到自己的协同画板应用的内容。The user 2409 clicks the user kick button 2408 on the collaborative drawing board application sharing group interface 2403, and the resource interaction initiating device 2401 receives the trigger operation of the user 2409 on the user kicking button 2408, and a dialog box 2404 pops up on the collaborative drawing board application sharing group interface 2403, and the user 2409 Click the OK button 2405, the resource interaction initiating device 2401 sends a removal instruction to the sharing group management, the removal instruction includes the device to be removed, that is, the interactive participating device, and the sharing group management will add it to the device list after receiving the removal instruction Remove the participating devices and synchronize the updated device list to other members of the sharing group. At the same time, the sharing group interface 2403 is used to update the members of the sharing group in collaboration with the drawing board. The interaction participating device 2402 receives the removal message, and exits the sharing group through the application manager. At this time, the resource interaction initiating device 2401 and the interaction participating device 2402 are not in the same sharing group, and they cannot call each other's drawing data synchronization service. When they start the collaborative drawing board application, they can only view Apply the content to your own collaborative sketchpad.
在本申请实施例中,共享成员也可以主动退出共享组。交互参与设备响应于退出操作,通过应用管理器退出共享组,以及向服务器发出退出消息,服务器用于基于退出消息更新共享组,并将更新结果同步至目标交互设备。资源交互发起设备接收到服务器发出的退出消息,退出消息由主动退出共享组的交互参与设备触发。In this embodiment of the application, sharing members may also voluntarily withdraw from the sharing group. In response to the exit operation, the interactive participating device exits the sharing group through the application manager, and sends an exit message to the server, and the server is used to update the sharing group based on the exit message, and synchronize the update result to the target interactive device. The resource interaction initiating device receives an exit message sent by the server, and the exit message is triggered by an interaction participating device that actively exits the sharing group.
在本申请实施例中,基于用户的退出操作,交互参与设备通过应用管理器退出共享组,并向服务器端的共享组管理发出退出消息,共享组管理接收到退出消息后,将交互参与设备从共享组管理的设备列表中删除,同时更新设备列表,并将更新后的结果同步给共享组的所有成员。资源交互发起设备通过共享组管理接收到交互参与设备的发出的退出消息。In this embodiment of the application, based on the user's exit operation, the interactive participating device exits the sharing group through the application manager, and sends an exit message to the sharing group management on the server side. After receiving the exit message, the sharing group management removes the interactive participating device from the sharing group Delete from the device list managed by the group, update the device list at the same time, and synchronize the updated results to all members of the sharing group. The resource interaction initiating device receives the exit message sent by the interaction participating device through the sharing group management.
示例性的,如图25,以协同画板应用为目标应用为例,对共享成员退出共享组进行说明,其中资源交互发起设备为共享群主,交互参与设备为退出共享组的共享成员。Exemplarily, as shown in FIG. 25 , taking the collaborative drawing board application as an example, the sharing member withdraws from the sharing group is described, wherein the resource interaction initiating device is the sharing group owner, and the interaction participating device is the sharing member quitting the sharing group.
用户2510在协同画板应用共享组界面2503点击退出共享组按键2509,交互参与设备2502接收到用户2510对退出共享组按键2509的触发操作,在协同画板应用共享组界面2503弹出对话框2504,用户2510点击确定按键2505,交互参与设备2502通过应用管理器退出共享组,并向共享组管理发送退出消息,共享组管理接收到退出消息后在设备列表中移除交互参与设备,并将更新后的设备列表同步给共享组的其他成员。同时交互参与设备2502的协同画板应用返回应用详情界面2506。资源交互发起设备2501通过共享组管理接收到交互参与设备2502发出的退出消息。此时,交互参与设备2502以及资源交互发起设备2501不在同一共享组,其不能相互调用对方的绘画数据同步服务,当其启动协同画板应用时,其在各自的应用操作界面2508、2507只能看到自己的协同画板应用的内容。The user 2510 clicks the exit sharing group button 2509 on the collaborative drawing board application sharing group interface 2503, and the interactive participating device 2502 receives the user 2510's trigger operation on the exit sharing group button 2509, and a dialog box 2504 pops up on the collaborative drawing board application sharing group interface 2503, and the user 2510 Click the OK button 2505, and the interactive participating device 2502 exits the sharing group through the application manager, and sends an exit message to the sharing group management. The list is synchronized to other members of the sharing group. At the same time, the collaborative drawing board application of the interactive participation device 2502 returns to the application details interface 2506 . The resource interaction initiating device 2501 receives the exit message sent by the interaction participating device 2502 through sharing group management. At this time, the interaction participating device 2502 and the resource interaction initiating device 2501 are not in the same sharing group, and they cannot call each other's drawing data synchronization service. When they start the collaborative drawing board application, they can only view Apply the content to your own collaborative sketchpad.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
请参考图26,其示出了本申请一个示例性实施例提供的资源交互装置的结构框图,所述装置包括:Please refer to FIG. 26, which shows a structural block diagram of a resource interaction device provided by an exemplary embodiment of the present application, and the device includes:
获取模块2601,用于获取资源交互数据,所述资源交互数据由资源交互发起设备在接收到对目标应用的资源交互触发操作时生成,所述资源交互触发操作包括分享操作和共享操作中的至少一种;The acquisition module 2601 is configured to acquire resource interaction data, the resource interaction data is generated by the resource interaction initiating device when receiving a resource interaction trigger operation for the target application, and the resource interaction trigger operation includes at least a sharing operation and a sharing operation A sort of;
确定模块2602,用于基于所述资源交互数据确定所述目标应用以及目标交互设备,所述目标应用为进行资源交互的应用,所述目标交互设备为至少一个进行资源交互的设备;A determining module 2602, configured to determine the target application and the target interaction device based on the resource interaction data, the target application is an application for resource interaction, and the target interaction device is at least one device for resource interaction;
调用模块2603,用于通过所述目标应用调用所述目标交互设备处的目标交互资源。The invoking module 2603 is used for invoking the target interaction resources on the target interaction device through the target application.
可选地,所述确定模块2602,包括:Optionally, the determining module 2602 includes:
第一确定单元,用于基于所述资源交互数据,通过应用管理器确定所述目标应用,并启动所述目标应用,所述应用管理器用于管理不同应用的资源交互;The first determining unit is configured to determine the target application through an application manager based on the resource interaction data, and start the target application, and the application manager is used to manage resource interaction of different applications;
第二确定单元,用于基于所述资源交互数据,通过所述应用管理器以及设备选择器确定所述目标交互设备。The second determining unit is configured to determine the target interaction device through the application manager and the device selector based on the resource interaction data.
可选地,所述第二确定单元,用于:Optionally, the second determining unit is configured to:
基于所述分享方标识,通过所述应用管理器以及所述设备选择器确定所述目标交互设备。Based on the sharing party identifier, the target interaction device is determined by the application manager and the device selector.
可选地,所述第二确定单元,还用于:Optionally, the second determining unit is further configured to:
在所述分享方标识为设备标识的情况下,通过所述应用管理器将所述设备标识所表征的设备确定为候选交互设备;或,If the sharing party ID is a device ID, the application manager determines the device represented by the device ID as a candidate interactive device; or,
在所述分享方标识为用户标识的情况下,通过所述应用管理器获取所述用户标识对应的至少一个设备标识,并将所述设备标识所表征的设备确定为候选交互设备;When the sharing party ID is a user ID, at least one device ID corresponding to the user ID is acquired through the application manager, and the device represented by the device ID is determined as a candidate interactive device;
通过所述设备选择器从所述候选交互设备中确定所述目标交互设备。The target interaction device is determined from the candidate interaction devices by the device selector.
可选地,所述第二确定单元,还用于:Optionally, the second determining unit is further configured to:
获取所述目标应用的设备选择策略;通过所述设备选择器,将符合所述设备选择策略的所述候选交互设备确定为所述目标交互设备;或,Obtaining a device selection policy of the target application; using the device selector, determining the candidate interaction device conforming to the device selection policy as the target interaction device; or,
基于所述候选交互设备显示设备选择列表;通过所述设备选择器,将所述设备选择列表中选中的所述候选交互设备确定为所述目标交互设备。Displaying a device selection list based on the candidate interaction devices; determining the candidate interaction device selected in the device selection list as the target interaction device through the device selector.
可选地,所述调用模块2603,用于:Optionally, the calling module 2603 is configured to:
基于所述分享实例标识,通过所述目标应用从所述目标交互设备处获取所述目标交互资源,所述目标交互设备用于对所述分享实例标识进行权限验证,并在所述分享实例标识通过权限验证时提供所述目标交互资源。Based on the sharing instance identifier, the target interaction resource is obtained from the target interaction device through the target application, and the target interaction device is used to verify the authority of the sharing instance identifier, and The target interaction resource is provided when authorization verification is passed.
可选地,所述第二确定单元,还用于:Optionally, the second determining unit is further configured to:
基于所述共享组标识,通过所述应用管理器以及所述设备选择器通过确定所述目标交互设备;determining the target interaction device by the application manager and the device selector based on the shared group identifier;
可选地,所述装置还包括:Optionally, the device also includes:
提供模块,用于向所述目标交互设备提供所述目标交互资源。A providing module, configured to provide the target interaction resource to the target interaction device.
可选地,所述第二确定单元,还用于:Optionally, the second determining unit is further configured to:
通过所述应用管理器加入所述共享组标识所表征的共享组;join the sharing group represented by the sharing group identifier through the application manager;
通过所述应用管理器确定所述共享组中的候选交互设备;determining, by the application manager, candidate interactive devices in the sharing group;
通过所述设备选择器从所述候选交互设备中确定所述目标交互设备。The target interaction device is determined from the candidate interaction devices by the device selector.
可选地,所述第二确定单元,还用于:Optionally, the second determining unit is further configured to:
在所述共享组中包含设备标识的情况下,通过所述应用管理器将所述设备标识所表征的设备确定为所述候选交互设备;In the case that the sharing group contains a device identifier, the application manager determines the device represented by the device identifier as the candidate interaction device;
在所述共享组中包含用户标识的情况下,通过所述应用管理器获取所述用户标识对应的至少一个设备标识,并将所述设备标识所表征的设备确定为所述候选交互设备。If the sharing group includes the user identifier, at least one device identifier corresponding to the user identifier is acquired through the application manager, and the device represented by the device identifier is determined as the candidate interaction device.
可选地,所述第二确定单元,还用于:Optionally, the second determining unit is further configured to:
获取所述目标应用的设备选择策略;通过所述设备选择器,将符合所述设备选择策略的所述候选交互设备确定为所述目标交互设备;或,Obtaining a device selection policy of the target application; using the device selector, determining the candidate interaction device conforming to the device selection policy as the target interaction device; or,
基于所述候选交互设备显示设备选择列表;通过所述设备选择器,将所述设备选择列表中选中的所述候选交互设备确定为所述目标交互设备。Displaying a device selection list based on the candidate interaction devices; determining the candidate interaction device selected in the device selection list as the target interaction device through the device selector.
可选地,所述装置还包括:Optionally, the device also includes:
第一退出模块,用于响应于退出操作,通过所述应用管理器退出所述共享组,以及向服务器发送退出消息,所述服务器用于基于所述退出消息更新所述共享组,并将更新结果同步至所述目标交互设备;A first exit module, configured to, in response to an exit operation, exit the sharing group through the application manager, and send an exit message to a server, and the server is used to update the sharing group based on the exit message, and update The result is synchronized to the target interaction device;
第二退出模块,用于在接收到共享组解散消息的情况下,通过所述应用管理器退出所述共享组;A second exit module, configured to exit the sharing group through the application manager when a sharing group disbandment message is received;
第三退出模块,用于在接收到移除消息的情况下,通过所述应用管理器退出所述共享组,所述移除消息用于指示被移除所述共享组。A third exit module, configured to exit the sharing group through the application manager when a removal message is received, where the removal message is used to indicate that the sharing group is removed.
可选地,调用模块2603,用于:Optionally, call module 2603 for:
基于所述目标交互设备的设备标识,获取所述目标交互设备的目标资源网关地址,所述目标资源网关地址为所述目标交互设备中资源网关的网关地址,所述资源网关用于管理设备中资源的调用;Obtain a target resource gateway address of the target interactive device based on the device identifier of the target interactive device, where the target resource gateway address is a gateway address of a resource gateway in the target interactive device, and the resource gateway is used in a management device resource call;
基于所述目标资源网关地址,通过所述目标应用访问所述目标资源网关以获取所述目标交互资源。Based on the address of the target resource gateway, the target application accesses the target resource gateway to obtain the target interaction resource.
可选地,所述获取模块2601,用于:Optionally, the obtaining module 2601 is configured to:
从图形码中解析得到所述资源交互数据;或,Obtaining the resource interaction data by parsing the graphics code; or,
从交互链接中解析得到所述资源交互数据;或,Obtaining the resource interaction data by parsing the interaction link; or,
通过近场通信方式接收所述资源交互数据。The resource interaction data is received through near field communication.
可选地,所述目标交互资源包括文件资源、硬件资源以及服务资源中的至少一种。Optionally, the target interaction resources include at least one of file resources, hardware resources and service resources.
综上所述,在本申请实施例中,基于对目标应用的分享或者共享操作,资源交互发起设备生成资源交互数据,交互参与设备基于获取的资源交互数据确定目标应用以及目标交互设备,进而从通过目标应用调用目标交互设备处的目标交互资源。和相关技术相比,在本申请实施例中分享和共享的对象不是目标应用本身,而是目标应用对应的资源。通过将目标应用对应的资源分享给其他设备,使得其他设备可以通过该目标应用调用对应的资源,从而实现目标应用功能。通过该机制,目标应用不仅能够使用当前设备的资源,还能够调用其他设备的资源,实现了资源的分布式调用,进而能够实现更多类型的应用功能。To sum up, in the embodiment of this application, based on the sharing or sharing operation of the target application, the resource interaction initiating device generates resource interaction data, and the interaction participating device determines the target application and the target interaction device based on the obtained resource interaction data, and then from A target interaction resource at the target interaction device is invoked by the target application. Compared with related technologies, in the embodiment of the present application, the object to be shared and shared is not the target application itself, but the resource corresponding to the target application. By sharing the resources corresponding to the target application with other devices, other devices can call the corresponding resources through the target application, thereby realizing the target application function. Through this mechanism, the target application can not only use the resources of the current device, but also call the resources of other devices, realize the distributed call of resources, and then realize more types of application functions.
请参考图27,其示出了本申请一个示例性实施例提供的资源交互装置的结构框图,所述装置包括:Please refer to FIG. 27, which shows a structural block diagram of a resource interaction device provided by an exemplary embodiment of the present application, and the device includes:
第一生成模块2701,用于响应于对目标应用的资源交互触发操作,生成资源交互数据;The first generation module 2701 is configured to generate resource interaction data in response to a resource interaction trigger operation on the target application;
提供模块2702,用于响应于交互参与设备的资源调用请求,向所述交互参与设备提供目标交互资源,所述资源调用请求由所述交互参与设备基于所述资源交互数据确定出目标应用以及目标交互设备后,通过所述目标应用发送。The providing module 2702 is configured to provide a target interaction resource to the interaction participation device in response to a resource invocation request of the interaction participation device, and the resource invocation request is determined by the interaction participation device based on the resource interaction data to determine a target application and a target After interacting with the device, it is sent through the target application.
可选地,所述生成模块2701,包括:Optionally, the generating module 2701 includes:
生成单元,用于响应于对所述目标应用的资源交互触发操作,通过应用管理器生成所述资源交互数据,所述应用管理器用于管理不同应用的资源交互;a generating unit, configured to generate the resource interaction data through an application manager in response to a resource interaction trigger operation on the target application, and the application manager is used to manage resource interaction of different applications;
可选地,所述提供模块2702,包括:Optionally, the providing module 2702 includes:
提供单元,用于响应于所述交互设备的所述资源调用请求,通过资源网关向所述交互设备提供所述目标交互资源,所述资源网关用于管理设备中资源的调用。The providing unit is configured to, in response to the resource invocation request of the interaction device, provide the target interaction resource to the interaction device through a resource gateway, where the resource gateway is used to manage resource invocation in the device.
可选地,所述生成单元,用于:Optionally, the generating unit is configured to:
响应于对所述目标应用的分享操作,通过所述应用管理器生成包含目标应用标识以及分享方标识的所述资源交互数据。In response to the sharing operation on the target application, the application manager generates the resource interaction data including the target application identifier and the sharing party identifier.
可选地,所述生成单元,还用于:Optionally, the generating unit is also used for:
响应于对所述目标应用的设备级分享操作,通过所述应用管理器生成包含所述目标应用标识以及设备标识的所述资源交互数据;In response to the device-level sharing operation on the target application, generating the resource interaction data including the target application identifier and the device identifier through the application manager;
响应于对所述目标应用的用户级分享操作,通过所述应用管理器生成包含所述目标应用标识以及用户标识的所述资源交互数据,所述用户标识用于表征分享方对应的用户。In response to a user-level sharing operation on the target application, the resource interaction data including the target application identifier and a user identifier is generated by the application manager, and the user identifier is used to represent a user corresponding to the sharing party.
可选地,所述提供单元,用于:Optionally, the providing unit is used for:
响应于所述交互参与设备的所述资源调用请求,对所述资源调用请求中包含的所述分享实例标识进行权限校验;In response to the resource invocation request of the interaction participating device, perform permission verification on the sharing instance identifier included in the resource invocation request;
在所述分享实例标识通过权限校验的情况下,向所述交互参与设备提供所述目标交互资源。In the case that the shared instance identifier passes the authorization check, the target interaction resource is provided to the interaction participating device.
可选地,所述装置还包括:Optionally, the device also includes:
删除模块,用于:Remove modules for:
响应于对所述目标应用的分享取消操作,删除所述分享实例标识。In response to a sharing cancellation operation on the target application, the sharing instance identifier is deleted.
可选地,所述生成单元,还用于:Optionally, the generating unit is also used for:
响应于对所述目标应用的共享操作,通过所述应用管理器生成包含目标应用标识以及共享组标识的所述资源交互数据;In response to the sharing operation on the target application, generating the resource interaction data including the target application identifier and the sharing group identifier through the application manager;
可选地,所述装置还包括:Optionally, the device also includes:
调用模块,用于通过所述目标应用调用所述交互参与设备处的所述目标交互资源。A calling module, configured to call the target interaction resource at the interaction participating device through the target application.
可选地,所述装置还包括:Optionally, the device also includes:
第一发送模块,用于:The first sending module is used for:
响应于对所述目标应用的设备级共享操作,向服务器发送第一共享组创建请求,所述第一共享组创建请求中包含设备标识,所述服务器用于基于所述第一共享组创建请求创建由设备构成的共享组;In response to the device-level sharing operation on the target application, sending a first sharing group creation request to a server, where the first sharing group creation request includes a device identifier, and the server is configured to create a request based on the first sharing group Create a sharing group consisting of devices;
第二发送模块,用于:The second sending module is used for:
响应于对所述目标应用的用户级共享操作,向服务器发送第二共享组创建请求,所述第二共享组创建请求中包含用户标识,所述服务器用于基于所述第二共享组创建请求创建由用户构成的共享组。In response to the user-level sharing operation on the target application, sending a second sharing group creation request to the server, where the second sharing group creation request includes a user identifier, and the server is configured to create a second sharing group based on the second sharing group creation request Create a sharing group consisting of users.
可选地,所述装置还包括:Optionally, the device also includes:
第三发送模块,用于:The third sending module is used for:
响应于共享组解散操作,向服务器发送共享组解散指令,以便所述服务器基于所述共享组解散指令解散共享组,以及删除所述共享组标识。In response to the sharing group disbanding operation, sending a sharing group disbanding instruction to the server, so that the server disbands the sharing group based on the sharing group disbanding instruction, and deletes the sharing group identifier.
可选地,所述装置还包括:Optionally, the device also includes:
第四发送模块,用于:The fourth sending module is used for:
响应于移除操作,向服务器发送移除指令,以便所述服务器基于所述移除指令更新所述共享组,将更新结果同步至所述共享组中的共享方,所述移除指令中包含待移除的交互参与设备。In response to the removal operation, send a removal instruction to the server, so that the server updates the sharing group based on the removal instruction, and synchronizes the update result to the sharing parties in the sharing group, and the removal instruction includes The interactive participating device to be removed.
可选地,所述装置还包括:Optionally, the device also includes:
接收模块,用于:Receiver module for:
接收服务器发送的退出消息,所述退出消息由主动退出所述共享组的交互参与设备触发。An exit message sent by the server is received, and the exit message is triggered by an interactive participating device that actively exits the sharing group.
可选地,所述装置还包括:Optionally, the device also includes:
更新模块,用于:Update modules for:
在所述资源网关的网关地址更新的情况下,向服务器发送网关地址更新消息,以便所述服务器将更新后的网关地址同步至其它设备的设备选择器,所述设备选择器中存储有设备标识与网关地址之间的映射关系。When the gateway address of the resource gateway is updated, send a gateway address update message to the server, so that the server will synchronize the updated gateway address to the device selector of other devices, and the device selector stores the device identifier The mapping relationship with the gateway address.
可选地,所述装置还包括:Optionally, the device also includes:
第二生成模块,用于:Second build module for:
基于所述资源交互数据生成图形码;或,generating a graphical code based on said resource interaction data; or,
基于所述资源交互数据生成交互链接;或,generating an interaction link based on the resource interaction data; or,
通过近场通信方式发送所述资源交互数据。The resource interaction data is sent by means of near field communication.
可选地,所述目标交互资源包括文件资源、硬件资源以及服务资源中的至少一种。Optionally, the target interaction resources include at least one of file resources, hardware resources and service resources.
综上所述,在本申请实施例中,基于对目标应用的分享或者共享操作,资源交互发起设备生成资源交互数据,交互参与设备基于获取的资源交互数据确定目标应用以及目标交互设备,进而从通过目标应用调用目标交互设备处的目标交互资源。和相关技术相比,在本申请实施例中分享和共享的对象不是目标应用本身,而是目标应用对应的资源。通过将目标应用对应的资源分享给其他设备,使得其他设备可以通过该目标应用调用对应的资源,从而实现目标应用功能。通过该机制,目标应用不仅能够使用当前设备的资源,还能够调用其他设备的资源,实现了资源的分布式调用,进而能够实现更多类型的应用功能。To sum up, in the embodiment of this application, based on the sharing or sharing operation of the target application, the resource interaction initiating device generates resource interaction data, and the interaction participating device determines the target application and the target interaction device based on the obtained resource interaction data, and then from A target interaction resource at the target interaction device is invoked by the target application. Compared with related technologies, in the embodiment of the present application, the object to be shared and shared is not the target application itself, but the resource corresponding to the target application. By sharing the resources corresponding to the target application with other devices, other devices can call the corresponding resources through the target application, thereby realizing the target application function. Through this mechanism, the target application can not only use the resources of the current device, but also call the resources of other devices, realize the distributed call of resources, and then realize more types of application functions.
需要说明的是:上述实施例提供的装置,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现 过程详见方法实施例,这里不再赘述。It should be noted that the device provided by the above-mentioned embodiment is only illustrated by the division of the above-mentioned functional modules. In practical applications, the above-mentioned function distribution can be completed by different functional modules according to the needs, that is, the internal structure of the device is divided into Different functional modules to complete all or part of the functions described above. In addition, the device provided by the above embodiment and the method embodiment belong to the same idea, and its specific implementation process is detailed in the method embodiment, and will not be repeated here.
请参考图28,其示出了本申请一个示例性实施例提供的终端2800的结构方框图。本申请中的终端2800可以包括一个或多个如下部件:处理器2810、存储器2820,其中,处理器2810与存储器2820电性相连。Please refer to FIG. 28 , which shows a structural block diagram of a terminal 2800 provided by an exemplary embodiment of the present application. The terminal 2800 in this application may include one or more of the following components: a processor 2810 and a memory 2820 , where the processor 2810 is electrically connected to the memory 2820 .
处理器2810可以包括一个或者多个处理核心。处理器2810利用各种接口和线路连接整个终端2800内的各个部分,通过运行或执行存储在存储器2820内的指令、程序、代码集或指令集,以及调用存储在存储器2820内的数据,执行终端2800的各种功能和处理数据。可选地,处理器2810可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器2810可集成CPU、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责触摸显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器2810中,单独通过一块通信芯片进行实现。 Processor 2810 may include one or more processing cores. The processor 2810 uses various interfaces and lines to connect various parts of the entire terminal 2800, and executes the terminal by running or executing instructions, programs, code sets or instruction sets stored in the memory 2820, and calling data stored in the memory 2820. 2800's various functions and processing data. Optionally, the processor 2810 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 2810 may integrate one or a combination of a CPU, a Graphics Processing Unit (GPU), a modem, and the like. Among them, the CPU mainly processes the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing the content that needs to be displayed on the touch screen; the modem is used for processing wireless communication. It can be understood that, the above modem may not be integrated into the processor 2810, but implemented by a communication chip alone.
存储器2820可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器2820包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器2820可用于存储指令、程序、代码、代码集或指令集。存储器2820可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等,该操作系统可以是安卓(Android)系统(包括基于Android系统深度开发的系统)、苹果公司开发的IOS系统(包括基于IOS系统深度开发的系统)或其它系统。存储数据区还可以存储终端2800在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 2820 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory, ROM). Optionally, the memory 2820 includes a non-transitory computer-readable storage medium. The memory 2820 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 2820 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , the instruction etc. that are used to realize above-mentioned each method embodiment, this operating system can be Andrews (Android) system (comprising the system based on the depth development of Android system), the IOS system developed by Apple Inc. (comprising the system based on the depth development of IOS system) or other systems. The data storage area can also store data created by the terminal 2800 during use (such as phonebook, audio and video data, chat record data) and the like.
本申请实施例中,存储器2820中存储有至少一条指令,该至少一条指令用于被处理器2810以执行如上述实施例中所示的资源交互方法。In this embodiment of the present application, at least one instruction is stored in the memory 2820, and the at least one instruction is used by the processor 2810 to execute the resource interaction method shown in the above-mentioned embodiments.
在本申请实施例中,终端2800还可以包括NFC组件,NFC组件用于接收和发送NFC信号,使得终端2800可以通过处理器2810对NFC信号进行处理。In this embodiment of the present application, the terminal 2800 may further include an NFC component, and the NFC component is configured to receive and send an NFC signal, so that the terminal 2800 can process the NFC signal through the processor 2810 .
可选地,终端2800还包括摄像头,用于扫描图形码,以便处理器从图形码中解析得到资源交互数据。Optionally, the terminal 2800 further includes a camera for scanning the graphic code, so that the processor can parse the graphic code to obtain resource interaction data.
可选地,终端2800还可以包括触摸显示屏,其可以为电容式触摸显示屏,该电容式触摸显示屏用于接收用户使用手指、触摸笔等任何适合的物体在其上或附近的触摸操作,以及显示各个应用程序的用户界面。触摸显示屏通常设置在终端2800的前面板。触摸显示屏可被设计成为全面屏、曲面屏或异型屏。触摸显示屏还可被设计成为全面屏与曲面屏的结合,异型屏与曲面屏的结合,本申请实施例对此不加以限定。Optionally, the terminal 2800 may further include a touch display screen, which may be a capacitive touch display screen, and the capacitive touch screen screen is used to receive a user's touch operation on or near it using any suitable object such as a finger or a touch pen. , and display the user interface of each application. The touch screen is usually set on the front panel of the terminal 2800. Touch screens can be designed as full screens, curved screens or special-shaped screens. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in this embodiment of the present application.
除此之外,本领域技术人员可以理解,上述附图所示出的终端2800的结构并不构成对终端2800的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端2800中还包括射频电路、拍摄组件、传感器(不包括温度传感器)、音频电路、无线保真(Wireless Fidelity,WiFi)组件、电源、蓝牙组件等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the terminal 2800 shown in the above drawings does not constitute a limitation on the terminal 2800, and the terminal may include more or less components than those shown in the figure, or combine some components, or different component arrangements. For example, the terminal 2800 also includes components such as a radio frequency circuit, a photographing component, a sensor (not including a temperature sensor), an audio circuit, a wireless fidelity (Wireless Fidelity, WiFi) component, a power supply, and a Bluetooth component, which will not be repeated here.
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有至少一段程序,所述至少一段程序由处理器加载并执行以实现如上各个实施例所述的资源交互方法。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores at least one program, and the at least one program is loaded and executed by a processor to implement the resource interaction method described in each of the above embodiments .
根据本申请的一个方面,提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中;终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该终端执行上述方面的各种可选实现方式中提供的资源交互方法。According to one aspect of the present application, a computer program product is provided, the computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium The processor executes the computer instruction, so that the terminal executes the resource interaction method provided in various optional implementation manners of the foregoing aspect.
本领域技术人员在考虑说明书及实践这里公开的实施例后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。Other embodiments of the present application will be readily apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any modification, use or adaptation of the application, these modifications, uses or adaptations follow the general principles of the application and include common knowledge or conventional technical means in the technical field not disclosed in the application . The specification and examples are to be considered exemplary only, with a true scope and spirit of the application indicated by the following claims.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that the present application is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (33)

  1. 一种资源交互方法,所述方法包括:A resource interaction method, the method comprising:
    获取资源交互数据,所述资源交互数据由资源交互发起设备在接收到对目标应用的资源交互触发操作时生成,所述资源交互触发操作包括分享操作和共享操作中的至少一种;Acquiring resource interaction data, the resource interaction data is generated by the resource interaction initiating device when receiving a resource interaction trigger operation for the target application, the resource interaction trigger operation includes at least one of a sharing operation and a sharing operation;
    基于所述资源交互数据确定所述目标应用以及目标交互设备,所述目标应用为进行资源交互的应用,所述目标交互设备为至少一个进行资源交互的设备;determining the target application and the target interaction device based on the resource interaction data, the target application is an application for resource interaction, and the target interaction device is at least one device for resource interaction;
    通过所述目标应用调用所述目标交互设备处的目标交互资源。A target interaction resource at the target interaction device is invoked by the target application.
  2. 根据权利要求1所述的方法,其中,所述基于所述资源交互数据确定所述目标应用以及目标交互设备,包括:The method according to claim 1, wherein said determining the target application and the target interaction device based on the resource interaction data comprises:
    基于所述资源交互数据,通过应用管理器确定所述目标应用,并启动所述目标应用,所述应用管理器用于管理不同应用的资源交互;Based on the resource interaction data, an application manager is used to determine the target application and start the target application, and the application manager is used to manage resource interaction of different applications;
    基于所述资源交互数据,通过所述应用管理器以及设备选择器确定所述目标交互设备。Based on the resource interaction data, the target interaction device is determined by the application manager and the device selector.
  3. 根据权利要求2所述的方法,其中,所述当所述资源交互触发操作为分享操作时,所述资源交互数据中包含目标应用标识以及分享方标识;The method according to claim 2, wherein, when the resource interaction trigger operation is a sharing operation, the resource interaction data includes a target application identifier and a sharing party identifier;
    所述基于所述资源交互数据,通过所述应用管理器以及设备选择器确定所述目标交互设备,包括:The determining the target interaction device through the application manager and the device selector based on the resource interaction data includes:
    基于所述分享方标识,通过所述应用管理器以及所述设备选择器确定所述目标交互设备。Based on the sharing party identifier, the target interaction device is determined by the application manager and the device selector.
  4. 根据权利要求3所述的方法,其中,所述基于所述分享方标识,通过所述应用管理器以及所述设备选择器确定所述目标交互设备,包括:The method according to claim 3, wherein the determining the target interaction device through the application manager and the device selector based on the sharing party identifier comprises:
    在所述分享方标识为设备标识的情况下,通过所述应用管理器将所述设备标识所表征的设备确定为候选交互设备;或,If the sharing party ID is a device ID, the application manager determines the device represented by the device ID as a candidate interactive device; or,
    在所述分享方标识为用户标识的情况下,通过所述应用管理器获取所述用户标识对应的至少一个设备标识,并将所述设备标识所表征的设备确定为候选交互设备;When the sharing party ID is a user ID, at least one device ID corresponding to the user ID is acquired through the application manager, and the device represented by the device ID is determined as a candidate interactive device;
    通过所述设备选择器从所述候选交互设备中确定所述目标交互设备。The target interaction device is determined from the candidate interaction devices by the device selector.
  5. 根据权利要求4所述的方法,其中,所述通过所述设备选择器从所述候选交互设备中确定所述目标交互设备,包括:The method according to claim 4, wherein said determining the target interaction device from the candidate interaction devices by the device selector comprises:
    获取所述目标应用的设备选择策略;通过所述设备选择器,将符合所述设备选择策略的所述候选交互设备确定为所述目标交互设备;或,Obtaining a device selection policy of the target application; using the device selector, determining the candidate interaction device conforming to the device selection policy as the target interaction device; or,
    基于所述候选交互设备显示设备选择列表;通过所述设备选择器,将所述设备选择列表中选中的所述候选交互设备确定为所述目标交互设备。Displaying a device selection list based on the candidate interaction devices; determining the candidate interaction device selected in the device selection list as the target interaction device through the device selector.
  6. 根据权利要求3所述的方法,其中,所述资源交互数据中还包含分享实例标识;The method according to claim 3, wherein the resource interaction data further includes a sharing instance identifier;
    所述通过所述目标应用调用所述目标交互设备处的目标交互资源,包括:The invoking the target interaction resource at the target interaction device through the target application includes:
    基于所述分享实例标识,通过所述目标应用调用所述目标交互设备处的所述目标交互资源,所述目标交互设备用于对所述分享实例标识进行权限验证,并在所述分享实例标识通过权限验证时提供所述目标交互资源。Based on the sharing instance identifier, the target application invokes the target interaction resource at the target interaction device, and the target interaction device is used to perform permission verification on the sharing instance identifier, and The target interaction resource is provided when authorization verification is passed.
  7. 根据权利要求2所述的方法,其中,当所述资源交互触发操作为共享操作时,所述资源交互数据中包含目标应用标识以及共享组标识;The method according to claim 2, wherein, when the resource interaction trigger operation is a sharing operation, the resource interaction data includes a target application identifier and a sharing group identifier;
    所述基于所述资源交互数据,通过所述应用管理器以及设备选择器确定所述目标交互设备,包括:The determining the target interaction device through the application manager and the device selector based on the resource interaction data includes:
    基于所述共享组标识,通过所述应用管理器以及所述设备选择器通过确定所述目标交互设备;determining the target interaction device by the application manager and the device selector based on the shared group identifier;
    所述方法还包括:The method also includes:
    向所述目标交互设备提供所述目标交互资源。The target interaction resource is provided to the target interaction device.
  8. 根据权利要求7所述的方法,其中,所述基于所述共享组标识,通过所述应用管理器以及所述设备选择器通过确定所述目标交互设备,包括:The method according to claim 7, wherein said determining said target interaction device by said application manager and said device selector based on said sharing group identity comprises:
    通过所述应用管理器加入所述共享组标识所表征的共享组;join the sharing group represented by the sharing group identifier through the application manager;
    通过所述应用管理器确定所述共享组中的候选交互设备;determining, by the application manager, candidate interactive devices in the sharing group;
    通过所述设备选择器从所述候选交互设备中确定所述目标交互设备。The target interaction device is determined from the candidate interaction devices by the device selector.
  9. 根据权利要求8所述的方法,其中,所述通过所述应用管理器确定所述共享组中的候选交互设备,包括:The method according to claim 8, wherein the determining the candidate interactive devices in the sharing group by the application manager comprises:
    在所述共享组中包含设备标识的情况下,通过所述应用管理器将所述设备标识所表征的设备确定为所述候选交互设备;或,In the case that the sharing group contains a device identifier, the application manager determines the device represented by the device identifier as the candidate interaction device; or,
    在所述共享组中包含用户标识的情况下,通过所述应用管理器获取所述用户标识对应的至少一个设备 标识,并将所述设备标识所表征的设备确定为所述候选交互设备。In the case that the sharing group contains the user identifier, at least one device identifier corresponding to the user identifier is acquired through the application manager, and the device represented by the device identifier is determined as the candidate interactive device.
  10. 根据权利要求8所述的方法,其中,所述通过所述设备选择器从所述候选交互设备中确定所述目标交互设备,包括:The method according to claim 8, wherein said determining the target interaction device from the candidate interaction devices by the device selector comprises:
    获取所述目标应用的设备选择策略;通过所述设备选择器,将符合所述设备选择策略的所述候选交互设备确定为所述目标交互设备;或,Obtaining a device selection policy of the target application; using the device selector, determining the candidate interaction device conforming to the device selection policy as the target interaction device; or,
    基于所述候选交互设备显示设备选择列表;通过所述设备选择器,将所述设备选择列表中选中的所述候选交互设备确定为所述目标交互设备。Displaying a device selection list based on the candidate interaction devices; determining the candidate interaction device selected in the device selection list as the target interaction device through the device selector.
  11. 根据权利要求8所述的方法,其中,所述方法还包括:The method according to claim 8, wherein the method further comprises:
    响应于退出操作,通过所述应用管理器退出所述共享组,以及向服务器发送退出消息,所述服务器用于基于所述退出消息更新所述共享组,并将更新结果同步至所述目标交互设备;In response to an exit operation, exiting the sharing group through the application manager, and sending an exit message to a server, the server is configured to update the sharing group based on the exit message, and synchronize the update result to the target interaction equipment;
    在接收到共享组解散消息的情况下,通过所述应用管理器退出所述共享组;Exiting the sharing group through the application manager when receiving the sharing group disbanding message;
    在接收到移除消息的情况下,通过所述应用管理器退出所述共享组,所述移除消息用于指示被移除所述共享组。Exiting the sharing group through the application manager when receiving a remove message, where the remove message is used to indicate that the sharing group is removed.
  12. 根据权利要求1至11任一所述的方法,其中,所述通过所述目标应用调用所述目标交互设备处的目标交互资源,包括:The method according to any one of claims 1 to 11, wherein the invoking the target interaction resource at the target interaction device through the target application comprises:
    基于所述目标交互设备的设备标识,获取所述目标交互设备的目标资源网关地址,所述目标资源网关地址为所述目标交互设备中资源网关的网关地址,所述资源网关用于管理设备中资源的调用;Obtain a target resource gateway address of the target interactive device based on the device identifier of the target interactive device, where the target resource gateway address is a gateway address of a resource gateway in the target interactive device, and the resource gateway is used in a management device resource call;
    基于所述目标资源网关地址,通过所述目标应用访问所述目标资源网关以获取所述目标交互资源。Based on the address of the target resource gateway, the target application accesses the target resource gateway to obtain the target interaction resource.
  13. 根据权利要求1至11任一所述的方法,其中,所述获取资源交互数据,包括:The method according to any one of claims 1 to 11, wherein said acquiring resource interaction data comprises:
    从图形码中解析得到所述资源交互数据;或,Obtaining the resource interaction data by parsing the graphics code; or,
    从交互链接中解析得到所述资源交互数据;或,Obtaining the resource interaction data by parsing the interaction link; or,
    通过近场通信方式接收所述资源交互数据。The resource interaction data is received through near field communication.
  14. 根据权利要求1至11任一所述的方法,其中,所述目标交互资源包括文件资源、硬件资源以及服务资源中的至少一种。The method according to any one of claims 1 to 11, wherein the target interaction resources include at least one of file resources, hardware resources and service resources.
  15. 一种资源交互方法,所述方法包括:A resource interaction method, the method comprising:
    响应于对目标应用的资源交互触发操作,生成资源交互数据;generating resource interaction data in response to a resource interaction trigger operation on the target application;
    响应于交互参与设备的资源调用请求,向所述交互参与设备提供目标交互资源,所述资源调用请求由所述交互参与设备基于所述资源交互数据确定出目标应用以及目标交互设备后,通过所述目标应用发送。Responding to the resource invocation request of the interaction participation device, providing the interaction participation device with a target interaction resource, the resource invocation request is determined by the interaction participation device based on the resource interaction data to determine the target application and the target interaction device, through the sent by the target application.
  16. 根据权利要求15所述的方法,其中,所述响应于对目标应用的资源交互触发操作,生成资源交互数据,包括:The method according to claim 15, wherein the generating resource interaction data in response to a resource interaction trigger operation on the target application comprises:
    响应于对所述目标应用的资源交互触发操作,通过应用管理器生成所述资源交互数据,所述应用管理器用于管理不同应用的资源交互;In response to a resource interaction trigger operation on the target application, generating the resource interaction data through an application manager, the application manager is used to manage resource interaction of different applications;
    所述响应于交互参与设备的资源调用请求,向所述交互参与设备提供目标交互资源,包括:The responding to the resource call request of the interactive participating device, providing the target interactive resource to the interactive participating device includes:
    响应于所述交互参与设备的所述资源调用请求,通过资源网关向所述交互参与设备提供所述目标交互资源,所述资源网关用于管理设备中资源的调用。In response to the resource invocation request of the interaction participating device, the target interaction resource is provided to the interaction participating device through a resource gateway, and the resource gateway is used to manage resource invocation in the device.
  17. 根据权利要求16所述的方法,其中,所述响应于对所述目标应用的资源交互触发操作,通过应用管理器生成所述资源交互数据,包括:The method according to claim 16, wherein the generating the resource interaction data by an application manager in response to the resource interaction trigger operation on the target application comprises:
    响应于对所述目标应用的分享操作,通过所述应用管理器生成包含目标应用标识以及分享方标识的所述资源交互数据。In response to the sharing operation on the target application, the application manager generates the resource interaction data including the target application identifier and the sharing party identifier.
  18. 根据权利要求17所述的方法,其中,所述响应于对所述目标应用的分享操作,通过所述应用管理器生成包含目标应用标识以及分享方标识的所述资源交互数据,包括:The method according to claim 17, wherein in response to the sharing operation on the target application, generating the resource interaction data including the target application identifier and the sharing party identifier through the application manager includes:
    响应于对所述目标应用的设备级分享操作,通过所述应用管理器生成包含所述目标应用标识以及设备标识的所述资源交互数据;In response to the device-level sharing operation on the target application, generating the resource interaction data including the target application identifier and the device identifier through the application manager;
    响应于对所述目标应用的用户级分享操作,通过所述应用管理器生成包含所述目标应用标识以及用户标识的所述资源交互数据,所述用户标识用于表征分享方对应的用户。In response to the user-level sharing operation on the target application, the application manager generates the resource interaction data including the target application identifier and a user identifier, and the user identifier is used to represent a user corresponding to the sharing party.
  19. 根据权利要求18所述的方法,其中,所述资源交互数据中还包括分享实例标识;The method according to claim 18, wherein the resource interaction data further includes a sharing instance identifier;
    所述响应于交互参与设备的资源调用请求,向所述交互参与设备提供目标交互资源,包括:The responding to the resource call request of the interactive participating device, providing the target interactive resource to the interactive participating device includes:
    响应于所述交互参与设备的所述资源调用请求,对所述资源调用请求中包含的所述分享实例标识进行权限校验;In response to the resource invocation request of the interaction participating device, perform permission verification on the sharing instance identifier contained in the resource invocation request;
    在所述分享实例标识通过权限校验的情况下,向所述交互参与设备提供所述目标交互资源。In the case that the shared instance identifier passes the authorization check, the target interaction resource is provided to the interaction participating device.
  20. 根据权利要求19所述的方法,其中,所述方法还包括:The method according to claim 19, wherein said method further comprises:
    响应于对所述目标应用的分享取消操作,删除所述分享实例标识。In response to a sharing cancellation operation on the target application, the sharing instance identifier is deleted.
  21. 根据权利要求16所述的方法,其中,所述响应于对所述目标应用的资源交互触发操作,通过应用管理器生成所述资源交互数据,包括:The method according to claim 16, wherein the generating the resource interaction data by an application manager in response to the resource interaction trigger operation on the target application comprises:
    响应于对所述目标应用的共享操作,通过所述应用管理器生成包含目标应用标识以及共享组标识的所述资源交互数据;In response to the sharing operation on the target application, generating the resource interaction data including the target application identifier and the sharing group identifier through the application manager;
    所述方法还包括:The method also includes:
    通过所述目标应用调用所述交互参与设备处的所述目标交互资源。Invoking the target interaction resource at the interaction participating device through the target application.
  22. 根据权利要求21所述的方法,其中,所述方法还包括:The method according to claim 21, wherein said method further comprises:
    响应于对所述目标应用的设备级共享操作,向服务器发送第一共享组创建请求,所述第一共享组创建请求中包含设备标识,所述服务器用于基于所述第一共享组创建请求创建由设备构成的共享组;In response to the device-level sharing operation on the target application, sending a first sharing group creation request to a server, where the first sharing group creation request includes a device identifier, and the server is configured to create a request based on the first sharing group Create a sharing group consisting of devices;
    响应于对所述目标应用的用户级共享操作,向服务器发送第二共享组创建请求,所述第二共享组创建请求中包含用户标识,所述服务器用于基于所述第二共享组创建请求创建由用户构成的共享组。In response to the user-level sharing operation on the target application, sending a second sharing group creation request to the server, where the second sharing group creation request includes a user identifier, and the server is configured to create a second sharing group based on the second sharing group creation request Create a sharing group consisting of users.
  23. 根据权利要求21所述的方法,其中,所述方法还包括:The method according to claim 21, wherein said method further comprises:
    响应于共享组解散操作,向服务器发送共享组解散指令,以便所述服务器基于所述共享组解散指令解散共享组,以及删除所述共享组标识。In response to the sharing group disbanding operation, sending a sharing group disbanding instruction to the server, so that the server disbands the sharing group based on the sharing group disbanding instruction, and deletes the sharing group identifier.
  24. 根据权利要求21所述的方法,其中,所述方法还包括:The method according to claim 21, wherein said method further comprises:
    响应于移除操作,向服务器发送移除指令,以便所述服务器基于所述移除指令更新所述共享组,将更新结果同步至所述共享组中的共享方,所述移除指令中包含待移除的交互参与设备。In response to the removal operation, send a removal instruction to the server, so that the server updates the sharing group based on the removal instruction, and synchronizes the update result to the sharing parties in the sharing group, and the removal instruction includes The interactive participating device to be removed.
  25. 根据权利要求21所述的方法,其中,所述方法还包括:The method according to claim 21, wherein said method further comprises:
    接收服务器发送的退出消息,所述退出消息由主动退出所述共享组的交互参与设备触发。An exit message sent by the server is received, and the exit message is triggered by an interactive participating device that actively exits the sharing group.
  26. 根据权利要求16所述的方法,其中,所述方法还包括:The method according to claim 16, wherein the method further comprises:
    在所述资源网关的网关地址更新的情况下,向服务器发送网关地址更新消息,以便所述服务器将更新后的网关地址同步至其它设备的设备选择器,所述设备选择器中存储有设备标识与网关地址之间的映射关系。When the gateway address of the resource gateway is updated, send a gateway address update message to the server, so that the server will synchronize the updated gateway address to the device selector of other devices, and the device selector stores the device identifier The mapping relationship with the gateway address.
  27. 根据权利要求15至26任一所述的方法,其中,所述生成资源交互数据之后,所述方法包括:The method according to any one of claims 15 to 26, wherein, after generating the resource interaction data, the method comprises:
    基于所述资源交互数据生成图形码;或,generating a graphical code based on the resource interaction data; or,
    基于所述资源交互数据生成交互链接;或,generating an interaction link based on the resource interaction data; or,
    通过近场通信方式发送所述资源交互数据。The resource interaction data is sent by means of near field communication.
  28. 根据权利要求15至26任一所述的方法,其中,所述目标交互资源包括文件资源、硬件资源以及服务资源中的至少一种。The method according to any one of claims 15 to 26, wherein the target interaction resources include at least one of file resources, hardware resources and service resources.
  29. 一种资源交互装置,所述装置包括:A resource interaction device, the device comprising:
    获取模块,用于获取资源交互数据,所述资源交互数据由资源交互发起设备在接收到对目标应用的资源交互触发操作时生成,所述资源交互触发操作包括分享操作和共享操作中的至少一种;An acquisition module, configured to acquire resource interaction data, the resource interaction data is generated by the resource interaction initiating device when it receives a resource interaction trigger operation for the target application, and the resource interaction trigger operation includes at least one of a sharing operation and a sharing operation kind;
    确定模块,用于基于所述资源交互数据确定所述目标应用以及目标交互设备,所述目标应用为进行资源交互的应用,所述目标交互设备为至少一个进行资源交互的设备;A determining module, configured to determine the target application and the target interaction device based on the resource interaction data, the target application is an application for resource interaction, and the target interaction device is at least one device for resource interaction;
    调用模块,用于通过所述目标应用调用所述目标交互设备处的目标交互资源。A calling module, configured to use the target application to call the target interaction resource on the target interaction device.
  30. 一种资源交互装置,所述装置包括:A resource interaction device, the device comprising:
    第一生成模块,用于响应于对目标应用的资源交互触发操作,生成资源交互数据;A first generation module, configured to generate resource interaction data in response to a resource interaction trigger operation on the target application;
    提供模块,用于响应于交互参与设备的资源调用请求,向所述交互参与设备提供目标交互资源,所述资源调用请求由所述交互参与设备基于所述资源交互数据确定出目标应用以及目标交互设备后,通过所述目标应用发送。A providing module, configured to provide a target interaction resource to the interaction participation device in response to a resource invocation request of the interaction participation device, and the resource invocation request is determined by the interaction participation device based on the resource interaction data to determine a target application and a target interaction device, sent through the target application.
  31. 一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一段程序,所述至少一段程序由所述处理器加载并执行以实现如权利要求1至14任一所述的资源交互方法,或,实现如权利要求15至28任一所述的资源交互方法。A terminal, the terminal includes a processor and a memory, at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to implement the resource according to any one of claims 1 to 14 An interaction method, or, implement the resource interaction method as claimed in any one of claims 15 to 28.
  32. 一种计算机可读存储介质,所述可读存储介质中存储有至少一段程序,所述至少一段程序由处理器加载并执行以实现如权利要求1至14任一所述的资源交互方法,或实现如权利要求15至28任一所述的资源交互方法。A computer-readable storage medium, at least one program is stored in the readable storage medium, and the at least one program is loaded and executed by a processor to implement the resource interaction method according to any one of claims 1 to 14, or Realizing the resource interaction method as claimed in any one of claims 15 to 28.
  33. 一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中;终端的处理器从所述计算机可读存储介质读取所述计算机指令,所述处理器执行所述计算机指令,使得该终端执行如权利要求1至14任一所述的资源交互方法,或,实现如权利要求15至28任一所述的资源交互方法。A computer program product, the computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processing The computer executes the computer instructions, so that the terminal executes the resource interaction method according to any one of claims 1 to 14, or implements the resource interaction method according to any one of claims 15 to 28.
PCT/CN2022/128064 2021-11-29 2022-10-27 Resource interaction method and apparatus, and terminal and storage medium WO2023093452A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111436006.X 2021-11-29
CN202111436006.XA CN114237840A (en) 2021-11-29 2021-11-29 Resource interaction method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
WO2023093452A1 true WO2023093452A1 (en) 2023-06-01

Family

ID=80751909

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/128064 WO2023093452A1 (en) 2021-11-29 2022-10-27 Resource interaction method and apparatus, and terminal and storage medium

Country Status (2)

Country Link
CN (1) CN114237840A (en)
WO (1) WO2023093452A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237840A (en) * 2021-11-29 2022-03-25 Oppo广东移动通信有限公司 Resource interaction method, device, terminal and storage medium
CN115150645A (en) * 2022-06-28 2022-10-04 海信视像科技股份有限公司 Display device and display method of screen projection function page
CN116709549B (en) * 2023-08-04 2023-10-20 腾讯科技(深圳)有限公司 Resource sharing method and device, electronic equipment and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102171996A (en) * 2008-09-30 2011-08-31 苹果公司 System and method for simplified resource sharing
CN103503385A (en) * 2012-12-27 2014-01-08 华为技术有限公司 Method for information share and device
CN103945268A (en) * 2014-03-17 2014-07-23 深圳创维-Rgb电子有限公司 Control processing method and system based on multiple accounts and multiple target devices
CN105630587A (en) * 2014-10-31 2016-06-01 腾讯科技(深圳)有限公司 Method, device and system for migrating application program data between terminals
CN107277012A (en) * 2017-06-19 2017-10-20 深圳天珑无线科技有限公司 A kind of information sharing method and device
US20180232213A1 (en) * 2017-02-10 2018-08-16 Bank Of America Corporation Customized interaction manipulation and implementation for resource storage
CN110825709A (en) * 2019-10-30 2020-02-21 维沃移动通信有限公司 Interaction method and electronic equipment
CN111143002A (en) * 2019-12-25 2020-05-12 维沃移动通信有限公司 Application sharing method, electronic equipment and computer readable storage medium
CN112583806A (en) * 2020-12-04 2021-03-30 广州酷狗计算机科技有限公司 Resource sharing method, device, terminal, server and storage medium
CN114237840A (en) * 2021-11-29 2022-03-25 Oppo广东移动通信有限公司 Resource interaction method, device, terminal and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102171996A (en) * 2008-09-30 2011-08-31 苹果公司 System and method for simplified resource sharing
CN103503385A (en) * 2012-12-27 2014-01-08 华为技术有限公司 Method for information share and device
CN103945268A (en) * 2014-03-17 2014-07-23 深圳创维-Rgb电子有限公司 Control processing method and system based on multiple accounts and multiple target devices
CN105630587A (en) * 2014-10-31 2016-06-01 腾讯科技(深圳)有限公司 Method, device and system for migrating application program data between terminals
US20180232213A1 (en) * 2017-02-10 2018-08-16 Bank Of America Corporation Customized interaction manipulation and implementation for resource storage
CN107277012A (en) * 2017-06-19 2017-10-20 深圳天珑无线科技有限公司 A kind of information sharing method and device
CN110825709A (en) * 2019-10-30 2020-02-21 维沃移动通信有限公司 Interaction method and electronic equipment
CN111143002A (en) * 2019-12-25 2020-05-12 维沃移动通信有限公司 Application sharing method, electronic equipment and computer readable storage medium
CN112583806A (en) * 2020-12-04 2021-03-30 广州酷狗计算机科技有限公司 Resource sharing method, device, terminal, server and storage medium
CN114237840A (en) * 2021-11-29 2022-03-25 Oppo广东移动通信有限公司 Resource interaction method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN114237840A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
US11601385B2 (en) Conversion of text relating to media content and media extension apps
WO2023093452A1 (en) Resource interaction method and apparatus, and terminal and storage medium
US10554599B2 (en) Conversion of detected URL in text message
US10872127B2 (en) Method and system of providing for cross-device operations between user devices
JP6101861B2 (en) Group creation method, group withdrawal method, apparatus, program, and recording medium
US9925465B2 (en) Game accessing method and processing method, server, terminal, and system
EP4130963A1 (en) Object dragging method and device
CN106416195B (en) Processor-implemented method, a communication network-connected system, and tangible computer-readable storage medium
WO2021164445A1 (en) Notification processing method, electronic apparatus, and system
WO2023093429A1 (en) Micro-application running method and apparatus, and device, storage medium and program product
US11204681B2 (en) Program orchestration method and electronic device
US20130205408A1 (en) Live representation of users within online systems
US11108727B2 (en) System, method, and server for playing multimedia resource
KR20170049513A (en) Shared session techniques
WO2015096682A1 (en) Application starting method, device and system
US10904481B1 (en) Broadcasting and managing call participation
CN110737844B (en) Data recommendation method and device, terminal equipment and storage medium
CN114741008B (en) Distributed cross-device cooperation method, electronic device and communication system
WO2023098345A1 (en) Subscription system and method, electronic device, server, storage medium, and product
US20230017859A1 (en) Meeting control method and apparatus, device, and medium
CN114422460A (en) Method and system for establishing same-screen communication sharing in instant messaging application
CN114222003A (en) Service calling method, system, device, equipment and storage medium
CN114217989A (en) Service calling method, device, equipment, medium and computer program between equipment
CN114530148A (en) Control method and device and electronic equipment
CN115190158A (en) Information interaction method, information interaction device, information interaction system and storage medium

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: 22897535

Country of ref document: EP

Kind code of ref document: A1