A method for sharing multimedia resources, electronic equipment and computer storage medium
By displaying the allocation capability interface on the first electronic device and allocating the target multimedia resources to the second electronic device, the problem of a single existing multimedia resource sharing method is solved, and the diversity and flexibility of multimedia resource sharing is realized.
Patent Information
- Application Number
- CN202210158217.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-21
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2042-02-21
AI Technical Summary
There is a problem of a single sharing method in the existing multimedia resource sharing method, which cannot meet the diverse entertainment needs.
By displaying the allocation capability interface on the first electronic device, the user can allocate the target capability of the target multimedia resource to the second electronic device through touch operation, operating and sharing based on the capability when the control information and media information of the second electronic device are received.
The diversity and flexibility of multimedia resource sharing methods have been improved, making multimedia resource sharing between the first electronic device and the second electronic device more flexible and diverse.
Smart Images

Figure CN114546201B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a multimedia resource sharing technology between electronic devices, and in particular to a multimedia resource sharing method, electronic device and computer storage medium. Background Art
[0002] At present, using electronic devices to share multimedia resources has become a way of entertainment for people. Taking multimedia resources as game applications as an example, the following two methods can be used to achieve game sharing. The first game sharing method is to provide more than one controllable character for the game, based on the multi-touch capability of the electronic device screen, so that multiple users can operate different game characters on the same screen of the same device to complete the game. The second game sharing method is to allow the images on two mobile phones to be projected onto a TV screen for display, and two people can each play the game on their own mobile phones.
[0003] However, the first game sharing method mentioned above is suitable for fewer types of games and has limited display screens. In the second game sharing method, for independent games, either the audio and video between games will affect each other or the fun of playing games together cannot be felt when wearing headphones. For collaborative games, the types of games are limited. It can be seen that the existing multimedia resource sharing method has a technical problem of a single sharing method. Summary of the invention
[0004] The embodiments of the present application provide a method for sharing multimedia resources, an electronic device, and a computer storage medium, which can increase the diversity of sharing modes when sharing multimedia resources.
[0005] The technical solution of this application is implemented as follows:
[0006] An embodiment of the present application provides a method for sharing multimedia resources, the method being applied to a first electronic device, the first electronic device running a target multimedia resource, including:
[0007] In response to a touch operation on an allocation capability item displayed on the allocation capability interface, determining a target capability of the target multimedia resource for the second electronic device according to the touch operation;
[0008] When control information is received from the second electronic device and the target capability is a capability corresponding to the control information, controlling the operation of the target multimedia resource based on the control information;
[0009] When the target multimedia resource generates media information and the target capability is a capability corresponding to the media information, the media information is shared with the second electronic device.
[0010] An embodiment of the present application provides a method for sharing multimedia resources, the method being applied in a second electronic device, comprising:
[0011] For a target multimedia resource running on a first electronic device, when control information is received and the target capability of the second electronic device that is capable of sharing the target multimedia resource is the capability corresponding to the control information, the control information is sent to the first electronic device; wherein the control information is used to control the target multimedia resource to achieve sharing of the target multimedia resource;
[0012] When receiving the media information shared by the first electronic device and the target capability of the second electronic device is the capability corresponding to the media information, playing the media information;
[0013] The target capability is obtained by the first electronic device through a touch operation on an allocation capability item displayed on an allocation capability interface.
[0014] An embodiment of the present application provides a first electronic device, wherein the first electronic device runs a target multimedia resource, including:
[0015] a selection module, configured to respond to a touch operation on an allocation capability item displayed on the allocation capability interface, and determine a target capability of the target multimedia resource for the second electronic device according to the touch operation;
[0016] a control module, configured to, when receiving control information from the second electronic device and the target capability is a capability corresponding to the control information, control the operation of the target multimedia resource based on the control information to achieve sharing of the target multimedia resource;
[0017] The sharing module is used to share the media information with the second electronic device when the target multimedia resource generates media information and the target capability is a capability corresponding to the media information.
[0018] An embodiment of the present application provides a second electronic device, including:
[0019] A sending module, for a target multimedia resource running on a first electronic device, when receiving control information and the target capability of the second electronic device that is capable of sharing the target multimedia resource is the capability corresponding to the control information, sending the control information to the first electronic device; wherein the control information is used to control the target multimedia resource to achieve sharing of the target multimedia resource;
[0020] a playing module, configured to play the media information when receiving the media information shared by the first electronic device and the target capability of the second electronic device is the capability corresponding to the media information;
[0021] The target capability is obtained by the first electronic device through a touch operation on an allocation capability item displayed on an allocation capability interface.
[0022] An embodiment of the present application provides an electronic device, including:
[0023] A processor and a storage medium storing instructions executable by the processor, wherein the storage medium relies on the processor to perform operations through a communication bus, and when the instructions are executed by the processor, the multimedia resource sharing method described in one or more of the above embodiments is executed.
[0024] An embodiment of the present application provides a computer storage medium storing executable instructions. When the executable instructions are executed by one or more processors, the processors execute the multimedia resource sharing method as described in one or more embodiments.
[0025] The embodiment of the present application provides a method for sharing multimedia resources, an electronic device and a computer storage medium, wherein a first electronic device runs a target multimedia resource, and the first electronic device responds to a touch operation on an allocation capability item displayed on an allocation capability interface, and determines a target capability of the target multimedia resource for a second electronic device according to the touch operation, and when control information is received from the second electronic device, and the target capability is a capability corresponding to the control information, the operation on the target multimedia resource is controlled based on the control information, and when the target multimedia resource generates media information, and the target capability is a capability corresponding to the media information, the media information is shared with the second electronic device; that is, in the embodiment of the present application, by responding to a touch operation on an allocation capability item displayed on the allocation capability interface, the target multimedia resource is determined for the second electronic device. The target capability of the target multimedia resource is determined, and on this basis, when the capability corresponding to the control information received from the second electronic device is the target capability, the operation of the target multimedia resource is controlled based on the control information, and when the capability corresponding to the media information generated by the target multimedia resource is the target capability, the media information is shared with the second electronic device. In this way, the target capability is determined for the second electronic device in response to the touch operation, making the target capability of the second electronic device more flexible and diverse, and responding to the received control information and media information based on the flexible and diverse target capabilities makes the way of sharing the target media resource between the first electronic device and the second electronic device more flexible and diverse, thereby improving the diversity of the sharing methods of the multimedia resource sharing method, and then improving the flexibility of multimedia resource sharing. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A schematic diagram of the structure of an optional multimedia resource sharing system provided in an embodiment of the present application;
[0027] Figure 2 A schematic diagram of the process interaction of an optional multimedia resource sharing method provided in an embodiment of the present application;
[0028] Figure 3 A schematic diagram of an example of an optional operation interface provided in an embodiment of the present application;
[0029] Figure 4 A schematic diagram of an example of adding an allocation capability item to an optional operation interface provided in an embodiment of the present application;
[0030] Figure 5 A schematic flow chart of an example 1 of an optional detection method provided in an embodiment of the present application;
[0031] Figure 6 A schematic diagram of an example of removing an allocation capability item from an optional operation interface provided in an embodiment of the present application;
[0032] Figure 7 A schematic diagram of a flow chart of Example 2 of an optional detection method provided in an embodiment of the present application;
[0033] Figure 8 A schematic diagram of the structure of an example 1 of an optional multimedia resource sharing system provided in an embodiment of the present application;
[0034] Fig. 9 A schematic diagram of the structure of Example 2 of an optional multimedia resource sharing system provided in an embodiment of the present application;
[0035] Fig.10 A schematic diagram of the structure of Example 3 of an optional multimedia resource sharing system provided in an embodiment of the present application;
[0036] Fig.11 A structural diagram of Example 4 of an optional multimedia resource sharing system provided in an embodiment of the present application;
[0037] Fig.12 A flowchart of an optional multimedia resource sharing method provided in an embodiment of the present application;
[0038] Fig.13 A flowchart of another optional multimedia resource sharing method provided in an embodiment of the present application;
[0039] Fig.14 A schematic diagram of the structure of an optional first electronic device provided in an embodiment of the present application;
[0040] Fig.15 A schematic diagram of the structure of an optional second electronic device provided in an embodiment of the present application;
[0041] Fig.16 A schematic diagram of the structure of an optional electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0043] The embodiment of the present application provides a method for sharing multimedia resources, which is applied to a multimedia resource sharing system. Figure 1 A schematic diagram of the structure of an optional multimedia resource sharing system provided in an embodiment of the present application, such as Figure 1 As shown, the multimedia resource sharing system may include: a first electronic device 11 and a second electronic device 12; wherein,
[0044] In the process of sharing multimedia resources, the first electronic device 11 is an electronic device running the target multimedia resources, and the second electronic device 12 is an electronic device that needs to share the target multimedia resources running on the first electronic device. In addition, a communication connection is established between the first electronic device 11 and the second electronic device 12 so that the first electronic device 11 and the second electronic device 12 can communicate with each other to realize the sharing of multimedia resources.
[0045] Based on the above Figure 1 Provides a sharing system for multimedia resources. Figure 2 A schematic diagram of the process interaction of an optional multimedia resource sharing method provided in an embodiment of the present application, such as Figure 2 As shown, the multimedia resource sharing method may include:
[0046] S201: The first electronic device determines a target capability of a target multimedia resource for the second electronic device in response to a touch operation on an allocation capability item displayed on an allocation capability interface according to the touch operation;
[0047] At present, there is a technical problem of a single sharing method for both sharing methods of games including multiple controllable characters and sharing methods of multiple games. In order to overcome the technical problem of a single sharing method for multimedia resources, an embodiment of the present application provides a method for sharing multimedia resources. First, when a first electronic device runs a target multimedia resource, an allocation capability interface for the target multimedia resource is displayed on the interface of the first electronic device, and the allocation capability interface displays allocation capability items.
[0048] When the user needs to allocate target capabilities for the second electronic device, the user sends a touch operation to the capability allocation interface, so that the first electronic device receives the operation information of the touch operation on the capability allocation item displayed on the capability allocation interface. The first electronic device responds to the touch operation on the capability allocation item displayed on the capability allocation interface, and determines the target capabilities for the second electronic device for the target multimedia resource.
[0049] The target capability mentioned above may be any one or more capabilities of the allocated capability items, and the embodiment of the present application does not specifically limit this.
[0050] For multimedia resources, in an optional embodiment, the allocated capability items include at least one of the following: a control capability item, an audio capability item and a video capability item; that is, when sharing multimedia resources, the target capability item that can be allocated to the second electronic device is one or more of the control capability item, the audio capability item and the video capability item, so that the second electronic device can flexibly share different allocated capability items of the target multimedia resources to improve the flexibility and diversity of the sharing method of multimedia resources.
[0051] S202: When the second electronic device receives the control information, and the target capability of the second electronic device that shares the target multimedia resource is the capability corresponding to the control information, the second electronic device sends the control information to the first electronic device;
[0052] For the target capability as the capability of the control capability item, after the first electronic device determines the target capability for the second electronic device, when the second electronic device receives the control information, the second electronic device first compares whether the target capability of the second electronic device is the same as the capability corresponding to the control information. If they are the same, it means that the second electronic device has the control capability of the target multimedia resource, so the second electronic device sends the control information to the first electronic device to achieve control of the target multimedia resource; if they are not the same, it means that the second electronic device does not have the control capability of the target multimedia resource, so even if the control information is received, it does not respond to the control information.
[0053] S203: When the target capability is a capability corresponding to the control information, the first electronic device controls the operation of the target multimedia resource based on the control information;
[0054] After the first electronic device receives the control information from the second electronic device, the first electronic device first determines whether the target capability of the second electronic device is the capability corresponding to the control information. If so, it means that the second electronic device has the control capability of the target multimedia resource. Therefore, the first electronic device controls the operation of the target multimedia resource based on the control information. If not, it means that the second electronic device does not have the control capability of the target multimedia resource, so it does not respond.
[0055] S204: When the target multimedia resource generates media information and the target capability is a capability corresponding to the media information, the first electronic device shares the media information with the second electronic device;
[0056] For the target capability being the capability possessed by the audio capability item and / or the capability possessed by the video capability item, when the target multimedia resource running on the first electronic device generates media information, the first electronic device first determines whether the target capability of the second electronic device is the capability corresponding to the media information. If so, it means that the second electronic device can share the media information of the target multimedia resource, so the first electronic device shares the media information with the second electronic device; if not, it means that the second electronic device cannot share the media information of the target multimedia resource, so the first electronic device does not share the media information with the second electronic device.
[0057] S205: When the second electronic device receives the media information shared by the first electronic device, and the target capability of the second electronic device is the capability corresponding to the media information, the second electronic device plays the media information.
[0058] After the second electronic device receives the media information shared by the first electronic device, the second electronic device determines whether the target capability is the capability corresponding to the media information. If so, it means that the second electronic device has the capability to share media information, so the second electronic device plays the media information. If not, it means that the second electronic device does not have the capability to share media information, so the second electronic device does not respond even if it receives the media information.
[0059] In this way, the first electronic device determines the target capability for the second electronic device, so that the first electronic device and the second electronic device can respond to the received control information or media information according to the target capability to achieve flexible sharing of the target multimedia resources.
[0060] In order to achieve sharing of the target multimedia resource by the second electronic device, the first electronic device needs to determine the target capability for the second electronic device. In an optional embodiment, the method may further include:
[0061] In response to receiving a start operation of a capability allocation function for a target multimedia resource, the first electronic device displays a capability allocation interface for the target multimedia resource on a current interface of the first electronic device, and displays allocation capability items and a capability allocation area of the second electronic device on the capability allocation interface.
[0062] Here, when the first electronic device is running a target multimedia resource, the first electronic device has a capability allocation function for the target multimedia resource. At this time, in order to determine the target capability of the second electronic device, the user can issue a startup operation to the entrance of the capability allocation function of the target multimedia resource displayed on the first electronic device, so that the first electronic device receives the operation information of the startup operation for the capability allocation function of the target multimedia resource. The first electronic device responds to the startup operation and displays an allocation capability interface for the target multimedia resource on the current interface of the first electronic device, and displays the allocation capability items and the capability allocation area of the second electronic device on the allocation capability interface.
[0063] That is, after the first electronic device turns on the capability allocation function of the target multimedia resource, the capability allocation interface is displayed on the current interface of the first electronic device, and the capability allocation interface also displays the capability allocation items and the capability allocation area of the second electronic device, so that the capability allocation items for the target multimedia resource and the target capability of the second electronic device are displayed on the current interface of the first electronic device. This helps to determine the target capability of the second electronic device.
[0064] Based on one or more of the foregoing embodiments, in order to determine the target capability for the second electronic device, in an optional embodiment, S201 may be implemented by the following S201a-S201d:
[0065] S201a: In response to receiving a signal that a first allocation capability item in the allocation capability interface is selected, the first electronic device displays the first allocation capability item on the allocation capability interface in a copy manner;
[0066] S201b: the first electronic device moves the first allocation capability item in response to a drag operation on the duplicate displayed first allocation capability item;
[0067] S201c: When receiving a release operation for the first allocated capability item and the area where the first allocated capability item is located belongs to the capability allocation area of the second electronic device, the first electronic device stops moving and displays the first allocated capability item on the capability allocation area of the second electronic device;
[0068] S201d: The first electronic device determines the capability of the first allocated capability item as the target capability.
[0069] Specifically, when the user issues an operation to select the first allocation capability item in the allocation capability interface, for example, when the selected operation is a long press operation, the first electronic device receives the operation information that the first allocation capability item in the allocation capability interface is selected, and the first electronic device responds to the received operation information that the first allocation capability item in the allocation capability interface is selected by copying and displaying the first allocation capability item on the allocation capability interface.
[0070] After selecting the first allocation capability item, the user continues to issue a drag operation on the duplicated displayed first allocation capability item, and the first electronic device moves the first allocation capability item in response to the drag operation on the duplicated displayed first allocation capability item. In this way, the first allocation capability item is moved by the drag operation.
[0071] When the first allocated capability item is moved to the target position by dragging, the user issues a release operation on the first allocated capability item, so that the first electronic device receives the operation information of the release operation on the first allocated capability item, and the first electronic device responds to the release operation and determines whether the area where the first allocated capability item is located belongs to the capability allocation area of the second electronic device. If so, the first electronic device stops moving the first allocated capability item and displays the first allocated capability item on the capability allocation area of the second electronic device. In this way, the first allocated capability item is moved to the capability allocation area of the second electronic device.
[0072] After the first allocated capability item is moved to the capability allocation area of the second electronic device, the first electronic device determines the capability of the first allocated capability item as the target capability; in this way, through the allocated capability item displayed on the first electronic device, the user can operate the capability allocation interface to enable the first electronic device to determine the target capability for the second electronic device, so that the target capability can be determined for the second electronic device according to the user's needs, thereby improving the flexibility of the sharing method of the target multimedia resources and improving the user experience.
[0073] Further, in order to determine the target capability of the second electronic device, in an optional embodiment, S201c may include:
[0074] When receiving a release operation for the first allocated capability item, the area where the first allocated capability item is located belongs to the capability allocation area of the second electronic device, and the first electronic device does not have a capability channel for the first allocated capability item with the second electronic device, the first electronic device stops moving and establishes a capability channel for the first allocated capability item with the second electronic device;
[0075] When the capability channel for the first allocated capability item is successfully established with the second electronic device, the first electronic device displays the first allocated capability item on the capability allocation area of the second electronic device.
[0076] That is to say, when the first electronic device receives the operation information of the release operation on the first allocated capability item and determines that the area where the first allocated capability item is located belongs to the capability allocation area of the second electronic device, the first electronic device needs to further determine whether there is a capability channel for the first allocated capability item between the first electronic device and the second electronic device. If not, the first electronic device stops moving and establishes a capability channel for the first allocated capability item between the first electronic device and the second device to ensure that the capability corresponding to the first allocated capability item can be shared with the second electronic device using the capability channel; if available, it means that the second electronic device can share the capability corresponding to the first allocated capability item using the existing capability channel, so there is no need to establish a capability channel, and the first electronic device only needs to stop moving the first allocated capability item.
[0077] In the absence of a capability channel, when the first electronic device successfully establishes a capability channel with the second electronic device for the first allocated capability item, the first electronic device displays the first allocated capability item on the capability allocation area of the second electronic device, so that the capability item allocated by the second electronic device can be known on the display interface of the first electronic device; if the first electronic device fails to establish a capability channel with the second electronic device for the first allocated capability item, a prompt message can be popped up to prompt the first electronic device that the capability channel with the second electronic device for the first allocated capability item has failed.
[0078] After the target capability is determined for the second electronic device, the capability allocation area of the second electronic device displays the allocated capability items of the second electronic device. At this time, the user can also remove a certain allocated capability item from the allocated capability items of the second electronic device by operating the display interface of the first electronic device. In an optional embodiment, the above method can also remove the second allocated capability item through the following S201e-S201h:
[0079] S201e: the first electronic device displays a movable second allocation capability item on the allocation capability interface in response to the second allocation capability item on the capability allocation area of the second electronic device in the capability allocation interface being selected.
[0080] S201f: the first electronic device moves the second allocation capability item in response to a drag operation on the movable second allocation capability item;
[0081] S201g: When a release operation of the movable second allocated capability item is received, and the area where the movable second allocated capability item is located does not belong to the capability allocation area of the second electronic device, the first electronic device cancels display of the second allocated capability item in the capability allocation area of the second electronic device;
[0082] S201h: The first electronic device deletes the capability of the second allocated capability item from the target capability.
[0083] Here, when the user needs to remove the allocated capability item of the second electronic device, the user issues an operation on the second allocated capability item in the capability allocation area of the second electronic device in the capability allocation interface, for example, a long press operation can be performed to select the second allocated capability item, so that the first electronic device receives the information that the second allocated capability item in the capability allocation area of the second electronic device in the capability allocation interface is selected, responds to the selection of the second allocated capability item, and displays the movable second allocated capability item on the capability allocation interface, that is, by selecting the second allocated capability item, the second allocated capability item becomes movable, so that the user issues a drag operation on the movable second allocated capability item, and the first electronic device responds to the drag operation on the movable second allocated capability item, thereby moving the second allocated capability item, so that the second allocated capability item moves along the trajectory of the drag operation.
[0084] When the user moves the second allocated capability item to the target position by dragging the item, the user issues a release operation on the movable second allocated capability item. After the first electronic device receives the release operation on the movable second allocated capability item, it first determines whether the area where the movable second allocated capability item is located belongs to the capability allocation area of the second electronic device. If so, it means that the user wants to remove the second allocated capability item from the allocated capability items of the second electronic device. Therefore, the first electronic device cancels the display of the second allocated capability item on the capability allocation area of the second electronic device. If not, the first electronic device does not cancel the display of the second allocated capability item on the capability allocation area of the second electronic device.
[0085] After the first electronic device cancels the display of the second allocated capability item in the capability allocation area of the second electronic device, it is also necessary to delete the capability of the second allocated capability item from the target capability. In this way, the target capability of the second electronic device is removed, and a flexible setting method is provided for determining the target capability, which increases the sharing method when sharing multimedia resources.
[0086] When the target capability of the second electronic device includes the capability of the control capability item, the second electronic device can control the target multimedia resource on the first electronic device. In an optional embodiment, the first electronic device receives the control information from the second electronic device, including:
[0087] The first electronic device receives control information from the second electronic device through the first communication module of the first electronic device.
[0088] After generating the control information, the second electronic device may send the control information to the first electronic device. Here, the first electronic device is provided with a first communication module for receiving the control information from the second electronic device.
[0089] In order to control the target multimedia resource, in an optional embodiment, the first electronic device controls the operation of the target multimedia resource based on the control information, including:
[0090] The first electronic device converts the control information into a control instruction for the target multimedia resource;
[0091] The first electronic device controls the operation of the target multimedia resource in response to the control instruction.
[0092] That is to say, after receiving the control information, the first communication module of the first electronic device first converts the control information into a control instruction for the target multimedia resource, and then controls the operation of the target multimedia resource in response to the control instruction, thereby enabling the second electronic device to control the target multimedia resource running on the first electronic device.
[0093] In order to convert the control information into the control instruction, in an optional embodiment, the first electronic device converts the control information into the control instruction for the target multimedia resource, including:
[0094] The first electronic device converts the control information into a control instruction for the target multimedia resource through a first control flow module of the first electronic device.
[0095] A first control flow module is provided in the first electronic device, and the first control flow module converts the control information received by the first communication module to obtain control instructions for the target multimedia resources. In this way, the first electronic device uses the converted control instructions to control the target multimedia resources, thereby realizing the control of the target multimedia resources by the second electronic device with control capability items.
[0096] In view of the second electronic device having the capability of the audio capability item and the capability of the video capability item, in an optional embodiment, the first electronic device shares the media information with the second electronic device, including:
[0097] The first electronic device encodes the media information to obtain a media stream;
[0098] The first electronic device shares the media stream with the second electronic device.
[0099] After generating media information, the first electronic device first encodes the media information to obtain a media stream, wherein the media stream may include an audio stream and a video stream. After encoding the media stream, the media stream is shared with the second electronic device, so that the second electronic device with audio capability items and / or video capability items can share the media stream of the target multimedia resource.
[0100] In order to implement encoding of the media information, in an optional embodiment, the first electronic device encodes the media information to obtain a media stream, including:
[0101] The first electronic device encodes the media information through the first media information encoder of the first electronic device to obtain a media stream.
[0102] Here, an encoder for the first media information is provided in the first electronic device, and the encoder for the first media information encodes the media information to obtain a media stream, so as to share the media stream with the second electronic device.
[0103] In order to enable the first electronic device to share the media stream with the second electronic device, in an optional embodiment, the first electronic device shares the media stream with the second electronic device, including:
[0104] The first electronic device shares the media stream with the second electronic device through the first communication module of the first electronic device.
[0105] Here, the first communication module in the first electronic device can share the encoded media stream with the second electronic device, that is, the first communication module is responsible for information transmission, so that the first electronic device can receive control information and the shared media stream.
[0106] In addition, in order to determine the target capability of the second electronic device, it can be determined according to the functions of the second electronic device. In an optional embodiment, the method further includes:
[0107] When the second electronic device has an audio playback function, the first electronic device determines the target capability of the second electronic device as an audio capability item;
[0108] When the second electronic device has a video playback function, the first electronic device determines the target capability of the second electronic device as a video capability item;
[0109] When the second electronic device has a control function, the first electronic device determines the target capability of the second electronic device as the control capability item.
[0110] That is to say, first determine the function of the second electronic device. For example, for a smart TV, the smart TV has an audio playback function and a video playback function, so the first electronic device can determine the target capabilities of the smart TV as audio capability items and video capability items; for a Bluetooth headset, the Bluetooth headset has an audio playback function, so the first electronic device can determine the audio playback function as the target capability of the Bluetooth headset; for a remote control or a control handle, it has a control function, so the first electronic device can determine the target capability of the remote control or the control handle as the control capability item.
[0111] In this way, the target capability is assigned to the second electronic device, so that the target capability does not need to be determined through the received touch operation on the assigned capability item, and the target capability is assigned to the second electronic device more intelligently, thereby improving the intelligence of multimedia resource sharing.
[0112] For the first electronic device and the second electronic device that are already in a shared state, when a new electronic device is added to the second electronic device, in order to determine a target capability item for the new electronic device, in an optional embodiment, the method further includes:
[0113] When a new electronic device is added to the second electronic device, the first electronic device obtains the function category of the new electronic device;
[0114] The first electronic device matches the target capability item of the new electronic device from the allocated capability items according to the functional category.
[0115] Here, when a new electronic device is added to the second electronic device, the first electronic device first obtains the functional category of the new electronic device, and then matches the target capability items of the new electronic device from the allocated capability items based on the functional category. Among them, in matching the target capability items of the new electronic device based on the functional category, when the new electronic device includes multiple functional categories, it can be matched according to the main functional category of the new electronic device, or a functional category can be randomly selected from it for matching. Here, the embodiments of the present application do not make specific limitations on this.
[0116] In order to match a target capability item for a new electronic device, in an optional embodiment, the first electronic device matches a target capability item of the new electronic device from the allocated capability items according to the function category, including:
[0117] When the function category is an electronic device category having an audio playback function, the first electronic device determines the audio capability item as a target capability item of the new electronic device;
[0118] When the function category is an electronic device category having a video playback function, the first electronic device determines the video capability item as a target capability item of the new electronic device;
[0119] When the function category is an electronic device category having a control function, the first electronic device determines the control capability item as a target capability item of the new electronic device.
[0120] Exemplarily, for a speaker, when the function category of the speaker is the category of electronic equipment with audio playback function, the audio capability item is determined as the target capability item of the new electronic device; for a smart TV, the function category of the smart TV is the category of electronic equipment with video playback function, and the video capability item is determined as the target capability item of the new electronic device; for a control handle, the function category of the control handle is the category of electronic equipment with control function, and the control capability item is determined as the target capability item of the new electronic device.
[0121] For the case where the new electronic device has at least two functional categories, in an optional embodiment, the first electronic device matches the target capability item of the new electronic device from the allocated capability items according to the functional category, including:
[0122] When the function category of the new electronic device includes at least two function categories, the first electronic device selects at least one function category from the at least two function categories;
[0123] The first electronic device matches the target capability item of the new electronic device from the allocated capability items according to the selected function category.
[0124] Taking smart TV as a new electronic device as an example, the functional categories of the smart TV may include at least a category of electronic devices with audio playback functions and a category of electronic devices with video playback functions. At this time, the first electronic device may select at least one functional category from the two functional categories, for example, select the category of electronic devices with video playback functions, and match the target capability item of the new electronic device as the video capability item from the allocated capability items.
[0125] In this way, a target capability item suitable for each second electronic device can be determined.
[0126] For the first electronic device, the target multimedia resource can be flexibly controlled. In an optional embodiment, the method further includes:
[0127] When the second electronic devices all have an audio playback function, the first electronic device stops playing the audio data of the target multimedia resource;
[0128] When at least one of the second electronic devices does not have an audio playing function, the first electronic device plays the audio data of the target multimedia resource.
[0129] That is to say, when there are at least two second electronic devices and all of them have the audio playback function, the first electronic device stops playing the audio data of the target multimedia resource, so that all of the second electronic devices share the audio data through the allocated audio capability items. For example, when the target multimedia resource is a game application and all of them have the audio playback function, the first electronic device stops playing the audio data generated by the game application, thereby providing users with an optimal way to share game applications.
[0130] With respect to the second electronic device, in an optional embodiment, the second electronic device includes at least one of the following: an input device and an output device.
[0131] That is to say, the above-mentioned second electronic device is not limited to smart TVs, smart speakers, smart phones, etc., but can also be an input device, such as a microphone, a mouse and a keyboard, etc., and can also be an output device, such as a display, a speaker, etc. Here, the embodiment of the present application does not make specific limitations on this.
[0132] For the second electronic device, in order to implement control over the target multimedia resource, in an optional embodiment, the second electronic device receives control information, including:
[0133] The second electronic device receives the operation information from the input device and converts the operation information into control information.
[0134] Here, in order to control the target multimedia resource, the user of the second electronic device issues an operation through the input device of the second electronic device, so that the second electronic device receives the operation information from the input device. After receiving the operation information, the operation information is converted into control information, so that the second electronic device sends the control information to the first electronic device to control the target multimedia resource.
[0135] In order to enable the second electronic device to convert the operation information into the control information, in an optional embodiment, the second electronic device converts the operation information into the control information, including:
[0136] The second electronic device converts the operation information into control information through a second control flow module of the second electronic device.
[0137] A second control flow module is provided in the second electronic device, and the second control flow module converts the received operation information into control information, so that the second electronic device sends the control information to the first electronic device to realize control of the target multimedia resource.
[0138] In order to enable the first electronic device to receive the control information, in an optional embodiment, the second electronic device sends the control information to the first electronic device, including:
[0139] The second electronic device sends the control information to the first electronic device through the second communication module of the second electronic device.
[0140] Here, a second communication module is provided in the second electronic device, and the second communication module sends the control information to the first electronic device, so that the first electronic device converts the control information into a control instruction to realize the control of the target multimedia resource.
[0141] In order to enable the second electronic device to receive the shared media information, in an optional embodiment, the second electronic device receives the media information shared by the first electronic device, including:
[0142] The second electronic device receives the media information shared by the first electronic device through the second communication module of the second electronic device.
[0143] Here, a second communication module is further provided in the second electronic device, and the second communication module receives the media information shared by the first electronic device, so as to play the audio and video data of the target multimedia resource by using the media information.
[0144] In the second electronic device playing the media information, in an optional embodiment, the second electronic device playing the media information includes:
[0145] The second electronic device decodes the media information to obtain a media signal;
[0146] The second electronic device plays the media signal.
[0147] After the second electronic device receives the media information, it first encodes the media information to obtain a media signal, and then plays the media signal, for example, plays an audio signal or a video signal, to achieve sharing of the media information of the target multimedia resource.
[0148] In decoding the media information, in an optional embodiment, the second electronic device decodes the media information to obtain a media signal, including:
[0149] The second electronic device decodes the media information through a decoder of the second media information of the second electronic device to obtain a media signal.
[0150] The second electronic device is provided with a decoder of the second media information, and the decoder of the second media information decodes the media information to obtain a media signal, so as to realize the sharing of the media information of the target multimedia resource.
[0151] The following is an example to describe the method for sharing multimedia resources in one or more of the above embodiments.
[0152] In this example, taking game applications as the target multimedia resources, the sharing method of game applications is explained, wherein the operation interface part is mainly reflected on the host device (equivalent to the first electronic device mentioned above), and the host device provides the game running environment and provides an interface for controlling game sharing.
[0153] The game is run on the host device, and the methods include but are not limited to: the user manually selects the game to be shared, and the game is started by the service on the host device; through specific conditions (such as: clicking an icon displayed in a specific area on the screen, tapping the back of the phone, etc.), the service on the host device is triggered to automatically use the game currently running by the user as the game to be shared.
[0154] Figure 3 A schematic diagram of an example of an optional operation interface provided in an embodiment of the present application, such as Figure 3 As shown, the operation interface is an allocation capability interface for target multimedia resources, which is mainly composed of three parts, namely: information of the current shared game, a list of target devices participating in the shared game (equivalent to the above-mentioned second electronic device), and a list of capabilities that can be allocated by the host device. Among them, the information displayed for the current shared game can be: information such as the name of the game shared between the host device and the target device.
[0155] The target device list participating in the shared game may display content such as: a list of all target devices connected to the host device, each item in the target device list contains identifiable information such as the name of the target device and a list of capabilities assigned to the target device. Among them, the "target device assigned capabilities list" displays the capabilities that have been assigned to the target device, and the capabilities that can be displayed range from one to three (respectively "video", "audio", and "control", each item appears 0 or once, without duplication), which are specifically assigned by the host device, and can respond to the user deleting the capabilities in its list to reduce the corresponding capabilities of the target device.
[0156] Among them, "video" indicates the video capability item, "audio" indicates the audio capability item, and "control" indicates the control capability item.
[0157] The host device allocatable capability list shows: the allocatable capability items that the host device can allocate, which may include: video capability items, audio capability items and control capability items. Users can allocate specific capabilities to one or more target devices from here.
[0158] It should be noted that in this example, the assignment of the corresponding capability to the target device can be confirmed by dragging the assignment capability item in the host device's assignment capability list and dropping it on the target device; the content of the host device's assignment capability list always consists of three items: video, audio, and control, and the user's dragging behavior will not change the number of icons in the list; when the user long presses an assignment capability item in the host device's assignment capability list, it is selected and can be dragged. The assignment capability item will move with the user's dragging action until the user releases the assignment capability item.
[0159] Figure 4 A schematic diagram of an example of adding an allocation capability item to an optional operation interface provided in an embodiment of the present application, such as Figure 4 As shown, when determining to use the video capability item as the target capability of the target device B, the user long presses and clicks on the video assignment capability item in the host device's assignable capability list, and long presses and drags it to the area of the target device B's assigned capability list, and then releases the assignment capability item. In this way, the video capability item is added to the target device B's assigned capability list, that is, the target capability of the second electronic device is the capability of the video capability item.
[0160] By the above Figure 4 It can be seen that the target device list participating in the shared game on the capability allocation interface of the host device will detect the user's action of releasing the allocated capability item. When the allocated capability item is released within the area of the allocated capability list representing the target device, the corresponding target device will be given the corresponding capability. Figure 5 A flow chart of an example 1 of an optional detection method provided in an embodiment of the present application, such as Figure 5 As shown, the detection method may include:
[0161] S501: The host device detects that an icon long press event occurs;
[0162] Among them, the above icon is one of the allocated capability items. When the user long presses one of the allocated capability items, the host device detects that an icon long press event occurs.
[0163] S502: The host device determines whether the coordinates of the event are within the range of the icon representing the specific capability in the host device capability list. If yes, execute S503; if no, end;
[0164] S503: The host device responds to the dragging practice and updates the icon position;
[0165] That is, if the icon is one of the allocation capability items of the host device, the host device responds to the drag operation to update the position of the icon. If the icon is not one of the allocation capability items of the host device, no response is made and the process ends.
[0166] S504: The host device determines whether a release icon event occurs. If yes, execute S505; if no, execute S503;
[0167] After S503, if the host device releases the icon, it continues to determine whether the coordinates of the release event are within the graphic range representing the target device, that is, whether the coordinates of the release event are within the capability allocation area of the target device. If the host device does not release the icon, it returns to execute the host device's response to the drag practice and update the icon position.
[0168] S505: The host device determines whether the coordinates of the icon release event are within the graphic range representing the target device. If yes, execute S506; if no, end;
[0169] S506: The host device determines whether the target device has the capability. If yes, the process ends; if no, the process proceeds to S507.
[0170] S507: The host device establishes a capability channel;
[0171] Among them, if the host device determines that the coordinates of the release icon event are the capability allocation area of the target device, it judges whether the target device has the capability corresponding to the icon. If it is determined that the target device has the capability corresponding to the icon, it means that the target device already has the capability corresponding to the icon, and there is no need to allocate the capability corresponding to the icon to the target device. If it is determined that the target device does not have the capability corresponding to the icon, execute S507, and the host device establishes a capability channel corresponding to the icon with the target device.
[0172] S508: The host device determines whether the channel is successfully established. If yes, execute S509; if no, end;
[0173] S509: The host device determines whether the capability list of the target device displays an icon of the capability;
[0174] S510: Data is exchanged between the host device and the target device.
[0175] Here, when the host device determines that the capability channel corresponding to the icon is successfully established, the host device determines whether the icon is displayed in the capability allocation area of the target device. If it is displayed, it means that the host device has successfully allocated the capability corresponding to the icon to the target device. The host device and the target device then exchange data based on the allocated capability items in the capability allocation area of the target device to achieve sharing of gaming applications.
[0176] In addition, similar to the operation of determining the capability items to be assigned to the target device, when the user reverses the operation by dragging the icon in the capability list of the specific target device out of the graphic area representing the target device and releasing it, the capability corresponding to the dragged icon of the target device is deleted; Figure 6 A schematic diagram of an example of removing an allocation capability item from an optional operation interface provided in an embodiment of the present application, such as Figure 6 As shown, when it is determined to remove the video capability item from the capability list assigned to the target device B, the user long presses the icon of the video capability item in the capability list assigned to the target device B, and long presses and drags the icon to an area outside the capability list assigned to the target device B, and then releases the icon. In this way, the video icon is removed from the capability list assigned to the target device B, so that the target device B does not have the video capability item, that is, it cannot play video data of game applications.
[0177] By the above Figure 6 It can be seen that the target device list participating in the shared game on the capability allocation interface of the host device will detect the user's action of releasing the allocated capability item. When the allocated capability item is released outside the area of the allocated capability list representing the target device, the corresponding capability of the corresponding target device will be revoked. Figure 7 A flow chart of Example 2 of an optional detection method provided in an embodiment of the present application is shown as follows: Figure 7 As shown, the detection method may include:
[0178] S701: The host device detects that an icon long press event occurs;
[0179] Among them, the above icon is one of the allocated capability items. When the user long presses one of the allocated capability items, the host device detects that an icon long press event occurs.
[0180] S702: The host device determines whether the coordinates of the event are within the range of the icon representing the specific capability in the target device capability list. If yes, execute S703; if no, end;
[0181] S703: The host device responds to the dragging practice and updates the icon position;
[0182] That is, if the icon is an item in the capability allocation area of the target device, the host device responds to the drag operation to update the position of the icon. If the icon is not an item in the allocation capability items of the host device, no response is made and the process ends.
[0183] S704: The host device determines whether a release icon event occurs. If yes, execute S705; if no, execute S703;
[0184] S705: The host device determines whether the coordinates of the icon release event are within the icon range representing the target device. If yes, the process ends; if no, the process proceeds to S706;
[0185] S706: The host device closes the capability channel corresponding to the target device.
[0186] After S703, if the host device releases the icon, it continues to determine whether the coordinates of the release event are within the graphic range representing the target device, that is, whether the coordinates of the release event are in the capability allocation area of the target device. If the coordinates of the release event are in the capability allocation area of the target device, it ends. If the coordinates of the release event are not in the capability allocation area of the target device, it means that the host device needs to remove the allocated capability item corresponding to the icon from the allocated capability item of the target device. Therefore, the host device closes the capability channel corresponding to the icon of the host device. If the host device does not release the icon, it returns to execute the host device's response to dragging and updating the icon position.
[0187] In order to realize the sharing of game applications between the host device and the target device, the host device and the target device form a multimedia resource sharing system. Figure 8 A structural diagram of an example 1 of an optional multimedia resource sharing system provided in an embodiment of the present application, such as Figure 8 As shown, the host device 81 includes: a host-side service module 811, the host-side service module 811 includes a control stream module 8111, a media stream module 8112 and a communication module 8113, and the target device 82 includes a target-side service module 821, the target-side service module 821 includes a control stream module 8211, a media stream module 8212 and a communication module 8213. This example is implemented by two-way data communication between the host-side service module 811 running on the host device 81 and the target-side service module 821 running on the target device 82. A connection is established between the host device 81 and the target device 82 through the communication module 8113 and the communication module 8213, and audio and video and control data are transmitted to realize the video image and game sound of the game on the target device 82, and the input information of the user on the target device 82 is transmitted to the game on the host device 81, thereby operating the game.
[0188] For the media information generated by the host device, Fig. 9 A structural diagram of Example 2 of an optional multimedia resource sharing system provided in an embodiment of the present application, such as Fig. 9As shown, the host device 91 includes: a game program module 911 and a host-side service module 912, the game program module 911 includes: a video module 9111 and an audio module 9112, the host-side service module 912 includes: a video encoder module 9121, an audio encoder module 9122 and a communication module 9123; the target device 92 includes: a display device 921, an audio device 922, a target-side service module 923, the target-side service module 923 includes: a video decoder module 9231, an audio decoder module 9232 and a communication module 9233;
[0189] Among them, when the host-side service is started on the host device 91, the audio and video information of the game running on the host device 91 will be encoded into a data stream output by the media stream module. After the target device 92 establishes a connection with the host device 91 through its own target-side service module 923, if it is allowed to access the media stream, it will read the media stream of the host device 91 through the communication module 9233 of the target-side service module 923, and decode the obtained media stream through the media stream module of the target-side service module 923, so as to play it using the video and audio devices of the target device 92.
[0190] Control information sent by the target device to the host device. Fig.10 The structural diagram of Example 3 of an optional multimedia resource sharing system provided in the embodiment of the present application is as follows: Fig.10 As shown, the host device 101 includes: a game program module 1011 and a host-side service module 1012, and the host-side service module 1012 includes: a control flow module 10121 and a communication module 10122; the target device 102 includes: an input device 1021 and a target-side service module 1022, and the target-side service module 1022 includes: a control flow module 10221 and a communication module 10222;
[0191] Among them, the control flow module 10221 of the target service module 1022 obtains the user's input based on its own sensors (including but not limited to keyboards, touch screens, etc.) and converts it into control flow data. When the target device 102 and the host device 101 are connected, if the target device 102 is allowed to control the host device 101, the control flow data can be sent to the communication module 10122 of the host service module 1012 through the communication module 10222 of the target service module 1022. When the control flow module 10121 of the host service module 1012 receives the control flow data from the communication module 10122, it converts it into operation information on the host device 101 and passes it to the game, thereby operating the game.
[0192] In order to more clearly illustrate the sharing system proposed in the embodiment of the present application, Fig.11A structural diagram of an example 4 of an optional multimedia resource sharing system provided in an embodiment of the present application, such as Fig.11 As shown, it includes: a host device 111, target devices 112-116, wherein the allocated capability item allocated to the target device 112 is a control capability item, the allocated capability item allocated to the target device 113 is an audio capability item, a video playback capability item and a control capability item, the allocated capability item allocated to the target device 114 is a video capability item, the allocated capability item allocated to the target device 115 is a video capability item and an audio capability item, and the allocated capability item allocated to the target device 116 is an audio capability item;
[0193] The host device implements permission control for three channels (audio, video, and control), and can assign one, two, or all three permissions to the specific target device connected. The target device can only read audio and video information or send control information to the host device if it obtains the corresponding permissions.
[0194] The host device realizes connecting multiple target devices, so that multiple target devices can read its media stream and can also accept control stream input from multiple target devices.
[0195] In this example, multiple people can play the same game together on different devices without making any changes to the game itself; and the game's audio, video, and control capabilities can be distributed on different devices, making full use of the advantages of different devices to give participating players the best gaming experience. At the same time, this example provides users with the ability to freely distribute audio, video, and control. Users can seamlessly assign one or more different capabilities to other devices. This example is based on the hardware capabilities of the mobile device system and does not rely on specific game application implementations. It does not require game developers to do special development. In theory, it supports all games and can serve all game users.
[0196] It should also be noted that the expansion of target devices can support non-mobile devices, such as TVs, speakers, game controllers and other devices with video, audio and control capabilities, thereby providing users with a more immersive gaming experience: for example, game videos are displayed on a large-screen TV, while the audio is played in each player's Bluetooth headset, and multiple players can cooperate in operating the game through game controllers and keyboards.
[0197] For the allocation of audio / video control and control capabilities, the device discovery and device capability description mechanism can be used to achieve the best automatic allocation after the device is found to be added, thus reducing the user's operation. For example, if a speaker is added during the game, the audio signal will be automatically output to it, but the video will not be output to it, nor will it be accepted as an input device.
[0198] Based on the sensors and other intent recognition technologies of other target devices, the distribution of audio / video and control capabilities of the devices can be more intelligently allocated to minimize the disturbance to users and provide an immersive gaming experience. For example, the game screen and sound are played on the TV, and the users participating in the game are operating the game with their respective mobile phones. When one of the users wears a Bluetooth headset, the game audio will be played on the headset and the TV, but when all users wear Bluetooth headsets, the audio will only be played in the Bluetooth headsets of each user, and only the video screen of the game will be displayed on the TV.
[0199] The embodiment of the present application provides a method for sharing multimedia resources, in which a first electronic device runs a target multimedia resource, and the first electronic device responds to a touch operation on an allocation capability item displayed on an allocation capability interface, and determines a target capability of the target multimedia resource for a second electronic device according to the touch operation; when control information is received from the second electronic device, and the target capability is a capability corresponding to the control information, the operation on the target multimedia resource is controlled based on the control information; when the target multimedia resource generates media information, and the target capability is a capability corresponding to the media information, the media information is shared with the second electronic device; that is, in the embodiment of the present application, the target multimedia resource is determined for the second electronic device by responding to a touch operation on an allocation capability item displayed on the allocation capability interface. The target capability of the source, on this basis, when the capability corresponding to the control information received from the second electronic device is the target capability, the operation of the target multimedia resource is controlled based on the control information, and when the capability corresponding to the media information generated by the target multimedia resource is the target capability, the media information is shared with the second electronic device. In this way, the target capability is determined for the second electronic device in response to the touch operation, making the target capability of the second electronic device more flexible and diverse, and responding to the received control information and media information based on the flexible and diverse target capabilities, making the way of sharing the target as media resources between the first electronic device and the second electronic device more flexible and diverse, thereby improving the diversity of the sharing methods of the multimedia resource sharing method, and then improving the flexibility of multimedia resource sharing.
[0200] The multimedia resource sharing method described above is described below with reference to each device side deployed in the multimedia resource sharing system.
[0201] First, a method for sharing multimedia resources on the first electronic device side is described.
[0202] The embodiment of the present application provides a method for sharing multimedia resources, which is applied to a first electronic device, wherein the first electronic device runs a target multimedia resource. Fig.12 A flowchart of an optional multimedia resource sharing method provided in an embodiment of the present application is shown as follows: Fig.12As shown, the multimedia resource sharing method may include:
[0203] S1201: In response to a touch operation on an allocation capability item displayed on an allocation capability interface, determine a target capability for a target multimedia resource of a second electronic device according to the touch operation;
[0204] S1202: When control information is received from the second electronic device and the target capability is a capability corresponding to the control information, control the operation of the target multimedia resource based on the control information;
[0205] S1203: When the target multimedia resource generates media information and the target capability is a capability corresponding to the media information, the media information is shared with the second electronic device.
[0206] In an optional embodiment, the allocation capability item includes at least one of the following: a control capability item, an audio capability item, and a video capability item.
[0207] In an optional embodiment, the above method may include:
[0208] In response to the received start operation of the capability allocation function for the target multimedia resource, an allocation capability interface is displayed for the target multimedia resource on the current interface of the first electronic device, and allocation capability items and a capability allocation area of the second electronic device are displayed on the allocation capability interface.
[0209] In an optional embodiment, in response to a touch operation on an allocation capability item displayed on the allocation capability interface, determining a target capability for a target multimedia resource of the second electronic device according to the touch operation includes:
[0210] In response to the received information that the first allocation capability item in the allocation capability interface is selected, displaying the first allocation capability item in the allocation capability interface in duplicate;
[0211] In response to a drag operation on the duplicate displayed first allocation capability item, moving the first allocation capability item;
[0212] When receiving a release operation on the first allocated capability item and the area where the first allocated capability item is located belongs to the capability allocation area of the second electronic device, stopping the movement and displaying the first allocated capability item on the capability allocation area of the second electronic device;
[0213] The capability of the first allocated capability item is determined as the target capability.
[0214] In an optional embodiment, when a release operation on the first allocated capability item is received and the area where the first allocated capability item is located belongs to the capability allocation area of the second electronic device, the movement is stopped and the first allocated capability item is displayed on the capability allocation area of the second electronic device, including:
[0215] When a release operation for the first allocated capability item is received, the area where the first allocated capability item is located belongs to the capability allocation area of the second electronic device, and there is no capability channel for the first allocated capability item with the second electronic device, the movement is stopped, and a capability channel for the first allocated capability item is established with the second electronic device;
[0216] When the capability channel for the first allocated capability item is successfully established with the second electronic device, the first allocated capability item is displayed on the capability allocation area of the second electronic device.
[0217] In an optional embodiment, the above method may further include:
[0218] In response to the second allocated capability item on the capability allocation area of the second electronic device in the allocated capability interface being selected, displaying the movable second allocated capability item on the allocated capability interface;
[0219] In response to a drag operation on the movable second allocation capability item, moving the second allocation capability item;
[0220] When a release operation of the movable second allocated capability item is received, and the area where the movable second allocated capability item is located does not belong to the capability allocation area of the second electronic device, canceling the display of the second allocated capability item on the capability allocation area of the second electronic device;
[0221] The capability of the second allocated capability item is deleted from the target capability.
[0222] In an optional embodiment, receiving control information from a second electronic device includes:
[0223] The control information from the second electronic device is received through the first communication module of the first electronic device.
[0224] In an optional embodiment, controlling the operation of the target multimedia resource based on the control information includes:
[0225] Convert control information into control instructions for target multimedia resources;
[0226] In response to the control instruction, the operation on the target multimedia resource is controlled.
[0227] In an optional embodiment, converting the control information into a control instruction for the target multimedia resource includes:
[0228] The control information is converted into control instructions for the target multimedia resource through a first control flow module of the first electronic device.
[0229] In an optional embodiment, sharing the media information with the second electronic device includes:
[0230] The media information is encoded to obtain a media stream; and the media stream is shared with the second electronic device.
[0231] In an optional embodiment, encoding the media information to obtain a media stream includes:
[0232] The media information is encoded by the first media information encoder of the first electronic device to obtain a media stream.
[0233] In an optional embodiment, sharing the media stream with the second electronic device includes:
[0234] The media stream is shared with the second electronic device through the first communication module of the first electronic device.
[0235] In an optional embodiment, the above method may further include:
[0236] When the second electronic device has an audio playback function, the target capability of the second electronic device is determined as an audio capability item.
[0237] In an optional embodiment, the above method may further include:
[0238] When the second electronic device has a video playback function, the target capability of the second electronic device is determined as a video capability item.
[0239] In an optional embodiment, the above method may further include:
[0240] When a new electronic device is added to the second electronic device, obtaining a function category of the new electronic device;
[0241] According to the functional category, the target capability items of the new electronic device are matched from the allocated capability items.
[0242] In an optional embodiment, matching a target capability item of a new electronic device from the assigned capability items according to the function category includes:
[0243] When the function category is an electronic device category with an audio playback function, the audio capability item is determined as a target capability item of the new electronic device;
[0244] When the function category is an electronic device category with a video playback function, determining the video capability item as a target capability item of the new electronic device;
[0245] When the function category is an electronic device category having a control function, the control capability item is determined as a target capability item of the new electronic device.
[0246] In an optional embodiment, matching a target capability item of a new electronic device from the allocated capability items according to the functional category includes:
[0247] When the function category of the new electronic device includes at least two function categories, selecting at least one function category from the at least two function categories;
[0248] According to the selected functional category, the target capability items of the new electronic device are matched from the allocated capability items.
[0249] In an optional embodiment, the above method further includes:
[0250] When the second electronic devices all have an audio playback function, stop playing the audio data of the target multimedia resource;
[0251] When at least one of the second electronic devices does not have an audio playing function, the audio data of the target multimedia resource is played.
[0252] In an optional embodiment, the second electronic device includes at least one of the following: an input device and an output device.
[0253] Next, a method for sharing the multimedia resources on the second electronic device side is described.
[0254] The embodiment of the present application provides a method for sharing multimedia resources, which is applied in a second electronic device. Fig.13 A flowchart of another optional multimedia resource sharing method provided in an embodiment of the present application is shown as follows: Fig.13 As shown, the multimedia resource sharing method may include:
[0255] S1301: For a target multimedia resource running on a first electronic device, when control information is received and a target capability of a second electronic device that shares the target multimedia resource is a capability corresponding to the control information, the control information is sent to the first electronic device;
[0256] S1302: When receiving media information shared by the first electronic device and the target capability of the second electronic device is the capability corresponding to the media information, the media information is played.
[0257] The control information is used to control the target multimedia resource to achieve sharing of the target multimedia resource; the target capability is obtained by the first electronic device based on the touch operation of the allocation capability item displayed on the allocation capability interface.
[0258] In an optional embodiment, the allocation capability item includes at least one of the following: a control capability item, an audio capability item, and a video capability item.
[0259] In an optional embodiment, receiving control information includes:
[0260] Receive operation information from the input device and convert the operation information into control information.
[0261] In an optional embodiment, converting the operation information into control information includes:
[0262] The operation information is converted into the receiving control information through the second control flow module of the second electronic device.
[0263] In an optional embodiment, sending the control information to the first electronic device includes:
[0264] The control information is sent to the first electronic device through the second communication module of the second electronic device.
[0265] In an optional embodiment, receiving media information shared by a first electronic device includes:
[0266] The media information shared by the first electronic device is received through the second communication module of the second electronic device.
[0267] In an optional embodiment, playing the media information includes:
[0268] The media information is decoded to obtain a media signal; and the media signal is played.
[0269] In an optional embodiment, decoding the media information to obtain a media signal includes:
[0270] The media information is decoded by a decoder of the second media information of the second electronic device to obtain a media signal.
[0271] In addition, based on the same inventive concept as the aforementioned embodiments, an embodiment of the present application provides a first electronic device, which is consistent with the first electronic device provided by one or more of the aforementioned embodiments, and the first electronic device runs a target multimedia resource.
[0272] Fig.14 A schematic diagram of the structure of an optional first electronic device provided in an embodiment of the present application, such as Fig.14 As shown, the first electronic device includes:
[0273] A selection module 141 is used to determine a target capability of a target multimedia resource for the second electronic device according to the touch operation in response to a touch operation on an allocation capability item displayed on the allocation capability interface;
[0274] The control module 142 is configured to control the operation of the target multimedia resource based on the control information to achieve sharing of the target multimedia resource when the control information is received from the second electronic device and the target capability is a capability corresponding to the control information;
[0275] The sharing module 143 is configured to share the media information with the second electronic device when the target multimedia resource generates the media information and the target capability is a capability corresponding to the media information.
[0276] In an optional embodiment, the allocation capability item includes at least one of the following: a control capability item, an audio capability item, and a video capability item.
[0277] In an optional embodiment, the first electronic device is further used for:
[0278] In response to the received start operation of the capability allocation function for the target multimedia resource, an allocation capability interface is displayed for the target multimedia resource on the current interface of the first electronic device, and allocation capability items and a capability allocation area of the second electronic device are displayed on the allocation capability interface.
[0279] In an optional embodiment, the module 141 is selected to be specifically used for:
[0280] In response to the received information that the first allocation capability item in the allocation capability interface is selected, displaying the first allocation capability item in the allocation capability interface in duplicate;
[0281] In response to a drag operation on the duplicate displayed first allocation capability item, moving the first allocation capability item;
[0282] When receiving a release operation on the first allocated capability item and the area where the first allocated capability item is located belongs to the capability allocation area of the second electronic device, stopping the movement and displaying the first allocated capability item on the capability allocation area of the second electronic device;
[0283] The capability of the first allocated capability item is determined as the target capability.
[0284] In an optional embodiment, when a release operation on the first allocated capability item is received and the area where the first allocated capability item is located belongs to the capability allocation area of the second electronic device, the selection module 141 stops moving and displays the first allocated capability item on the capability allocation area of the second electronic device, including:
[0285] When a release operation for the first allocated capability item is received, the area where the first allocated capability item is located belongs to the capability allocation area of the second electronic device, and there is no capability channel for the first allocated capability item with the second electronic device, the movement is stopped, and a capability channel for the first allocated capability item is established with the second electronic device;
[0286] When the capability channel for the first allocated capability item is successfully established with the second electronic device, the first allocated capability item is displayed on the capability allocation area of the second electronic device.
[0287] In an optional embodiment, the first electronic device is further used for:
[0288] In response to the second allocated capability item on the capability allocation area of the second electronic device in the allocated capability interface being selected, displaying the movable second allocated capability item on the allocated capability interface;
[0289] In response to a drag operation on the movable second allocation capability item, moving the second allocation capability item;
[0290] When a release operation of the movable second allocated capability item is received, and the area where the movable second allocated capability item is located does not belong to the capability allocation area of the second electronic device, canceling the display of the second allocated capability item on the capability allocation area of the second electronic device;
[0291] The capability of the second allocated capability item is deleted from the target capability.
[0292] In an optional embodiment, the control information received by the control module 142 from the second electronic device includes:
[0293] The control information from the second electronic device is received through the first communication module of the first electronic device.
[0294] In an optional embodiment, the control module 142 controls the operation of the target multimedia resource based on the control information, including:
[0295] Convert control information into control instructions for target multimedia resources;
[0296] In response to the control instruction, the operation on the target multimedia resource is controlled.
[0297] In an optional embodiment, the control module 142 converts the control information into a control instruction for the target multimedia resource, including:
[0298] The control information is converted into control instructions for the target multimedia resource through a first control flow module of the first electronic device.
[0299] In an optional embodiment, the sharing module 143 shares the media information with the second electronic device, including:
[0300] The media information is encoded to obtain a media stream; and the media stream is shared with the second electronic device.
[0301] In an optional embodiment, the sharing module 143 encodes the media information to obtain a media stream, including:
[0302] The media information is encoded by the first media information encoder of the first electronic device to obtain a media stream.
[0303] In an optional embodiment, the sharing module 143 shares the media stream with the second electronic device, including:
[0304] The media stream is shared with the second electronic device through the first communication module of the first electronic device.
[0305] In an optional embodiment, the first electronic device is further used for:
[0306] When the second electronic device has an audio playback function, the target capability of the second electronic device is determined as an audio capability item.
[0307] In an optional embodiment, the first electronic device is further used for:
[0308] When the second electronic device has a video playback function, the target capability of the second electronic device is determined as a video capability item.
[0309] In an optional embodiment, the first electronic device is further used for:
[0310] When the second electronic device has a control function, the target capability of the second electronic device is determined as the control capability item.
[0311] In an optional embodiment, the first electronic device is further used for:
[0312] When a new electronic device is added to the second electronic device, obtaining a function category of the new electronic device;
[0313] According to the functional category, the target capability items of the new electronic device are matched from the allocated capability items.
[0314] In an optional embodiment, the first electronic device matches the target capability item of the new electronic device from the allocated capability item according to the function category, including:
[0315] When the function category is an electronic device category with an audio playback function, the audio capability item is determined as a target capability item of the new electronic device;
[0316] When the function category is an electronic device category with a video playback function, determining the video capability item as a target capability item of the new electronic device;
[0317] When the function category is an electronic device category having a control function, the control capability item is determined as a target capability item of the new electronic device.
[0318] In an optional embodiment, the first electronic device matches the target capability item of the new electronic device from the allocated capability item according to the function category, including:
[0319] When the function category of the new electronic device includes at least two function categories, selecting at least one function category from the at least two function categories;
[0320] According to the selected functional category, the target capability items of the new electronic device are matched from the allocated capability items.
[0321] In an optional embodiment, the first electronic device is further used for:
[0322] When the second electronic devices all have an audio playback function, stop playing the audio data of the target multimedia resource;
[0323] When at least one of the second electronic devices does not have an audio playing function, the audio data of the target multimedia resource is played.
[0324] In an optional embodiment, the second electronic device includes at least one of the following: an input device and an output device.
[0325] In actual applications, the above-mentioned selection module 141, control module 142 and sharing module 143 can be implemented by a processor located on the first electronic device, specifically a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA).
[0326] An embodiment of the present application provides a second electronic device, which is consistent with the second electronic device described in one or more of the above embodiments.
[0327] Fig.15 A schematic diagram of the structure of an optional second electronic device provided in an embodiment of the present application, such as Fig.15 As shown, the second electronic device includes:
[0328] The sending module 151 is used for sending the control information to the first electronic device when receiving the control information for the target multimedia resource running on the first electronic device and the target capability of the second electronic device that shares the target multimedia resource is the capability corresponding to the control information;
[0329] The control information is used to control the target multimedia resource to achieve sharing of the target multimedia resource;
[0330] The playing module 152 is used to play the media information when the media information shared by the first electronic device is received and the target capability of the second electronic device is the capability corresponding to the media information;
[0331] The target capability is obtained by the first electronic device based on a touch operation of an allocation capability item displayed on the allocation capability interface.
[0332] In an optional embodiment, the allocation capability item includes at least one of the following: a control capability item, an audio capability item, and a video capability item.
[0333] In an optional embodiment, the control information received by the sending module 151 includes:
[0334] Receive operation information from the input device and convert the operation information into control information.
[0335] In an optional embodiment, the sending module 151 converts the operation information into control information, including:
[0336] The operation information is converted into the receiving control information through the second control flow module of the second electronic device.
[0337] In an optional embodiment, the sending module 151 sends the control information to the first electronic device, including:
[0338] The control information is sent to the first electronic device through the second communication module of the second electronic device.
[0339] In an optional embodiment, the media information shared by the first electronic device received by the playing module 152 includes:
[0340] The media information shared by the first electronic device is received through the second communication module of the second electronic device.
[0341] In an optional embodiment, the playing module 152 plays the media information, including:
[0342] The media information is decoded to obtain a media signal; and the media signal is played.
[0343] In an optional embodiment, the playing module 152 decodes the media information to obtain a media signal, including:
[0344] The media information is decoded by a decoder of the second media information of the second electronic device to obtain a media signal.
[0345] In practical applications, the sending module 151 and the playing module 152 may be implemented by a processor located on the second electronic device, specifically a CPU, an MPU, a DSP or an FPGA.
[0346] Fig.16 A schematic diagram of the structure of an optional electronic device provided in an embodiment of the present application, such as Fig.16 As shown, an embodiment of the present application provides an electronic device 1600, including:
[0347] A processor 161 and a storage medium 162 storing executable instructions of the processor 161, wherein the storage medium 162 relies on the processor 161 to perform operations through a communication bus 163, and when the instructions are executed by the processor 161, the multimedia resource sharing method executed by the first electronic device or the second electronic device in one or more of the above-mentioned embodiments is executed.
[0348] It should be noted that in actual application, the various components in the terminal are coupled together through the communication bus 163. It is understandable that the communication bus 163 is used to realize the connection and communication between these components. In addition to the data bus, the communication bus 163 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig.16 Various buses are labeled as communication buses 163.
[0349] An embodiment of the present application provides a computer storage medium storing executable instructions. When the executable instructions are executed by one or more processors, the processors execute the sharing method as described in one or more of the above-mentioned embodiments performed by the first electronic device, or the multimedia resource sharing method as described in one or more of the above-mentioned embodiments performed by the second electronic device.
[0350] Among them, the computer-readable storage medium can be a ferromagnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and other memories.
[0351] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0352] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0353] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0354] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0355] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A method for sharing multimedia resources, characterized in that: The method is applied in a first electronic device, where the first electronic device runs a target multimedia resource, and includes: In response to a touch operation on an allocation capability item displayed on the allocation capability interface, a target capability of the target multimedia resource for the second electronic device is determined according to the touch operation; wherein the allocation capability item includes at least one of the following: a control capability item, an audio capability item, and a video capability item; When receiving control information from the second electronic device, and the target capability is a capability corresponding to the control information, controlling the operation of the target multimedia resource based on the control information; wherein the target capability is a capability possessed by the control capability item; When the target multimedia resource generates media information and the target capability is a capability corresponding to the media information, the media information is shared with the second electronic device; wherein the target capability is a capability of the audio capability item and / or a capability of the video capability item.
2. The method according to claim 1, characterized in that The method further comprises: In response to receiving a start operation of the capability allocation function for the target multimedia resource, the capability allocation interface is displayed for the target multimedia resource on the current interface of the first electronic device, and the capability allocation items and the capability allocation area of the second electronic device are displayed on the capability allocation interface.
3. The method according to claim 1 or 2, characterized in that: The step of responding to a touch operation on an allocation capability item displayed on the allocation capability interface and determining a target capability of the target multimedia resource for the second electronic device according to the touch operation includes: In response to the received information that a first allocation capability item in the allocation capability interface is selected, displaying the first allocation capability item in a copy on the allocation capability interface; In response to a drag operation on the duplicate displayed first allocation capability item, moving the first allocation capability item; When a release operation on the first allocated capability item is received and the area where the first allocated capability item is located belongs to the capability allocation area of the second electronic device, the movement is stopped and the first allocated capability item is displayed on the capability allocation area of the second electronic device; The capability of the first allocated capability item is determined as the target capability.
4. The method according to claim 3, characterized in that When a release operation on the first allocated capability item is received and the area where the first allocated capability item is located belongs to the capability allocation area of the second electronic device, the movement is stopped and the first allocated capability item is displayed on the capability allocation area of the second electronic device, including: When a release operation for the first allocated capability item is received, the area where the first allocated capability item is located belongs to the capability allocation area of the second electronic device, and the second electronic device does not have a capability channel for the first allocated capability item, stop moving and establish a capability channel for the first allocated capability item with the second electronic device; When the capability channel with the second electronic device for the first allocated capability item is successfully established, the first allocated capability item is displayed on the capability allocation area of the second electronic device.
5. The method according to claim 1 or 2, characterized in that: The method further comprises: In response to the second allocated capability item on the capability allocation area of the second electronic device in the allocated capability interface being selected, displaying the movable second allocated capability item on the allocated capability interface; In response to a drag operation on the movable second allocation capability item, moving the second allocation capability item; When a release operation of the movable second allocated capability item is received, and the area where the movable second allocated capability item is located does not belong to the capability allocation area of the second electronic device, canceling the display of the second allocated capability item on the capability allocation area of the second electronic device; The capability of the second allocated capability item is deleted from the target capability.
6. The method according to claim 1 or 2, characterized in that: The receiving control information from the second electronic device includes: The control information from the second electronic device is received through the first communication module of the first electronic device.
7. The method according to claim 1 or 2, characterized in that: The controlling the operation of the target multimedia resource based on the control information includes: Converting the control information into control instructions for the target multimedia resource; In response to the control instruction, the operation on the target multimedia resource is controlled.
8. The method according to claim 7, characterized in that The converting the control information into a control instruction for the target multimedia resource includes: The control information is converted into a control instruction for the target multimedia resource through a first control flow module of the first electronic device.
9. The method according to claim 1 or 2, characterized in that: The step of sharing the media information with the second electronic device includes: Encoding the media information to obtain a media stream; The media stream is shared with the second electronic device.
10. The method according to claim 9, characterized in that The encoding of the media information to obtain a media stream includes: The media information is encoded by the encoder of the first media information of the first electronic device to obtain the media stream.
11. The method according to claim 9, characterized in that The step of sharing the media stream with the second electronic device includes: The media stream is shared with the second electronic device through the first communication module of the first electronic device.
12. The method according to claim 1, characterized in that The method further comprises: When the second electronic device has an audio playback function, the target capability of the second electronic device is determined as an audio capability item.
13. The method according to claim 1, characterized in that The method further comprises: When the second electronic device has a video playback function, the target capability of the second electronic device is determined as a video capability item.
14. The method according to claim 1, characterized in that The method further comprises: When the second electronic device has a control function, the target capability of the second electronic device is determined as a control capability item.
15. The method according to claim 1, characterized in that The method further comprises: When a new electronic device is added to the second electronic device, obtaining a function category of the new electronic device; According to the function category, the target capability item of the new electronic device is matched from the allocated capability items.
16. The method according to claim 15, characterized in that The step of matching the target capability item of the new electronic device from the allocated capability items according to the functional category includes: When the function category is an electronic device category having an audio playback function, determining the audio capability item as a target capability item of the new electronic device; When the function category is an electronic device category having a video playback function, determining the video capability item as a target capability item of the new electronic device; When the function category is an electronic device category having a control function, the control capability item is determined as a target capability item of the new electronic device.
17. The method according to claim 15 or 16, characterized in that The step of matching the target capability item of the new electronic device from the allocated capability items according to the functional category includes: When the function category of the new electronic device includes at least two function categories, selecting at least one function category from the at least two function categories; According to the selected function category, the target capability item of the new electronic device is matched from the allocated capability items.
18. The method according to claim 1, characterized in that The method further comprises: When the second electronic devices all have an audio playing function, stop playing the audio data of the target multimedia resource; When at least one of the second electronic devices does not have an audio playing function, the audio data of the target multimedia resource is played.
19. The method according to claim 1, characterized in that The second electronic device includes at least one of the following: an input device and an output device.
20. A method for sharing multimedia resources, characterized in that: The method is applied in a second electronic device, comprising: For a target multimedia resource running on a first electronic device, when control information is received and the target capability of the second electronic device that is capable of sharing the target multimedia resource is the capability corresponding to the control information, the control information is sent to the first electronic device; wherein the control information is used to control the target multimedia resource to achieve sharing of the target multimedia resource; wherein the target capability is the capability of the control capability item; When receiving the media information shared by the first electronic device, and the target capability of the second electronic device is the capability corresponding to the media information, playing the media information; wherein the target capability is the capability of the audio capability item and / or the capability of the video capability item; The target capability is obtained by the first electronic device through a touch operation on an allocation capability item displayed on an allocation capability interface; the allocation capability item includes at least one of the following: a control capability item, an audio capability item, and a video capability item.
21. The method according to claim 20, characterized in that The second electronic device receives control information, including: Receive operation information from an input device and convert the operation information into control information.
22. The method according to claim 21, characterized in that The converting the operation information into control information comprises: The operation information is converted into the reception control information through the second control flow module of the second electronic device.
23. The method according to claim 22, characterized in that The sending the control information to the first electronic device includes: The control information is sent to the first electronic device through the second communication module of the second electronic device.
24. The method according to claim 20, characterized in that The receiving the media information shared by the first electronic device includes: The media information shared by the first electronic device is received through the second communication module of the second electronic device.
25. The method according to claim 20, characterized in that The playing of the media information includes: Decoding the media information to obtain a media signal; The media signal is played.
26. The method according to claim 25, characterized in that The decoding of the media information to obtain a media signal includes: The media information is decoded by a decoder of the second media information of the second electronic device to obtain the media signal.
27. A first electronic device, characterized in that: The first electronic device runs a target multimedia resource, including: A selection module, for responding to a touch operation on an allocation capability item displayed on the allocation capability interface, and determining a target capability of the target multimedia resource for the second electronic device according to the touch operation; wherein the allocation capability item includes at least one of the following: a control capability item, an audio capability item, and a video capability item; a control module, configured to, when receiving control information from the second electronic device and the target capability is a capability corresponding to the control information, control the operation of the target multimedia resource based on the control information to achieve sharing of the target multimedia resource; wherein the target capability is a capability possessed by the control capability item; A sharing module is used to share the media information with the second electronic device when the target multimedia resource generates media information and the target capability is a capability corresponding to the media information; wherein the target capability is a capability possessed by the audio capability item and / or a capability possessed by the video capability item.
28. A second electronic device, characterized in that: include: A sending module, for a target multimedia resource running on a first electronic device, when receiving control information and a target capability of the second electronic device that is capable of sharing the target multimedia resource is a capability corresponding to the control information, sending the control information to the first electronic device; wherein the control information is used to control the target multimedia resource to achieve sharing of the target multimedia resource; wherein the target capability is a capability possessed by a control capability item; a playing module, configured to play the media information when receiving the media information shared by the first electronic device and the target capability of the second electronic device is the capability corresponding to the media information; wherein the target capability is the capability of the audio capability item and / or the capability of the video capability item; The target capability is obtained by the first electronic device through a touch operation on an allocation capability item displayed on an allocation capability interface; the allocation capability item includes at least one of the following: a control capability item, an audio capability item, and a video capability item.
29. An electronic device, characterized in that: include: A processor and a storage medium storing instructions executable by the processor, wherein the storage medium relies on the processor to perform operations via a communication bus, and when the instructions are executed by the processor, the multimedia resource sharing method described in any one of claims 1 to 19 or the multimedia resource sharing method described in any one of claims 20 to 26 is executed.
30. A computer storage medium, characterized in that Executable instructions are stored. When the executable instructions are executed by one or more processors, the processors execute the multimedia resource sharing method according to any one of claims 1 to 19, or the multimedia resource sharing method according to any one of claims 20 to 26.
Citation Information
Patent Citations
Limiting access to shared media content
CN102016821A
Method of playing multimedia data and electronic device
CN109660842A