Media stream transmission method, system and device

By identifying the device that interacts with the media collection device in the security scene and sending the media stream directly to the device, the problem of high energy consumption and noise caused by multiple device ringing is solved and the user experience is improved.

CN118540310APending Publication Date: 2024-08-23HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310171523.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In security scenarios, multiple media collection devices ring at the same time, resulting in high overall energy consumption, and the devices continue to ring when the user does not answer the call for a long time, increasing noise and energy consumption.

Method used

The first device sends feedback information to the second device, determines the device for media interaction with the second device as the third device, and directly sends the media stream to the third device to avoid multiple device responses, reduce energy consumption, and optimize user experience.

Benefits of technology

It effectively reduces the overall energy consumption of equipment in security scenarios, reduces noise, improves user experience, and simplifies user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540310A
    Figure CN118540310A
Patent Text Reader

Abstract

The invention provides a media stream transmission method, system and device, relates to the technical field of electronics, and is used for reducing the overall energy consumption of equipment in a security scene. The method comprises the following steps: after first equipment receives first request information from second equipment, the first equipment can determine equipment (such as third equipment) which performs media interaction with the second equipment, and the first equipment receives a first media stream from the second equipment and sends a second media stream to the third equipment, the second media stream is determined according to the first media stream. In this way, the first device does not need to initiate ringing prompts to multiple devices, and the overall energy consumption of the devices can be reduced. Moreover, the situation that a plurality of devices output ringing prompts at the same time is avoided, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of electronic technology, and in particular to a media stream transmission method, system and device. Background Art

[0002] Media acquisition devices such as smart doorbells or smart door locks are essential devices in security scenarios. Media acquisition devices can collect media streams such as audio and / or video streams, and send the media streams to the user's device so that the user can view them through the device. Before the media acquisition device interacts with the user's device through media streams, the media acquisition device needs to determine the device with which the media stream interaction is to be performed.

[0003] There may be multiple devices in the room that can interact with the media acquisition device through video. The media acquisition device can broadcast a ringing prompt to multiple devices. The ringing prompt requests video interaction with the media acquisition device. After receiving the ringing prompt, these multiple media acquisition devices will all output the ringing prompt. Outputting the ringing prompt itself consumes energy, and if the user does not answer the call for a long time, these multiple devices will continue to output the ringing prompt, which leads to a large overall energy consumption of these multiple devices. Summary of the invention

[0004] The embodiments of the present application provide a media stream transmission method, system and device for reducing the overall energy consumption of equipment in security scenarios.

[0005] In a first aspect, an embodiment of the present application provides a media stream transmission method, which can be executed by a system, and the system can also be referred to as a media stream transmission system. The system includes a first device, a second device, and a third device. The method includes: the second device sends a first request message to the first device, and the first request message is used to request media interaction with the second device; the first device sends a first feedback message to the second device, and the first feedback message indicates that the device for media interaction with the second device is a third device; the second device sends a first media stream to the first device; the first device sends a second media stream to the third device, and the second media stream is determined based on the first media stream. Optionally, the first device can also be referred to as a first electronic device, the second device can also be referred to as a second electronic device or a media acquisition device, and the third device can also be referred to as a third electronic device.

[0006] It should be understood that the second media stream is determined based on the first media stream, which can be alternatively described as the first media stream being related to the second media stream, for example, the first media stream is the same as the second media stream, or the second media stream is obtained by converting the first media stream.

[0007] In an embodiment of the present application, the first device can directly feed back to the second device the device (such as a third device) that interacts with the second device, so that the third device can respond to the media interaction of the second device, and there is no situation where multiple devices respond to the media interaction of the second device, thereby reducing the overall energy consumption of the devices in the system. In addition, there are no multiple devices responding to the media interaction of the second device, so noise can be reduced, which is conducive to improving the user experience. In addition, the first device can process the first media stream from the second device to obtain a second media stream that better meets the needs of the third device, so that the third device can output the second media stream with better effect.

[0008] In a possible design, the media streaming system further includes a fourth device; before the first device sends the first feedback information to the second device, the method further includes: the first device sends a second request information to the fourth device, the second request information is used to request to determine the device for media interaction with the second device; the fourth device sends a second feedback information to the first device, the second feedback information indicates that the device for media interaction with the second device is the third device. Exemplarily, the fourth device can be a device that is easy for the user to operate, but the fourth device may not support media interaction with the second device.

[0009] In the above design, the first device can request other devices (such as the fourth device) to determine the device to interact with the second device, thereby improving the flexibility of determining the device for media interaction with the second device. If the fourth device is a device that is easy for the user to operate, the above design can also improve the convenience of user operation.

[0010] In one possible design, before the fourth device sends the second feedback information to the first device, the method also includes: the fourth device determines the third device based on the user's operation; or, the fourth device determines the third device from a device list, wherein the device list includes N devices arranged in order, and the order is the order of priority of the N devices from high to low, and N is a positive integer.

[0011] In the above design, two methods are provided for the fourth device to determine the device for media interaction with the second device. In one method, the fourth device is determined based on the user's operation (which may be referred to as a determination operation or a first operation), thereby improving the user's flexibility in determining the device for media interaction with the second device; in another method, the fourth device selects the device for media interaction with the second device based on the device list, thereby ensuring that the device determined for media interaction with the second device (i.e., the third device) is a device with a relatively qualified priority, which can ensure, to a certain extent, the subsequent smooth media interaction between the third device and the second device.

[0012] In one possible design, the fourth device determines the third device from the device list, including: the fourth device sends a third request message to the i-th device, wherein the third request message indicates media interaction with the second device, wherein the i-th device is a device in the device list, and i is greater than or equal to 1 and less than or equal to N; if the fourth device receives third feedback information from the i-th device within a preset time length, the fourth device determines that the i-th device is the third device, and the third feedback information indicates that media interaction with the second device is determined.

[0013] In the above design, the fourth device may determine the device in the device list that feeds back the fourth device within a preset time period as the third device, thereby ensuring that the third device can subsequently smoothly perform media interaction with the second device.

[0014] In one possible design, the second request information includes: information of the device list; and / or visitor information, wherein the first request information includes an image and / or audio of the visitor, and the visitor information is obtained based on the image and / or audio of the visitor.

[0015] In the above design, the first device can directly provide the device list to the fourth device without the need for the fourth device to determine the device list, thereby reducing the processing load of the fourth device. In addition, the first device can also provide the visitor's information to the fourth device, so that the user can know the visitor's information and determine whether to perform media interaction.

[0016] In one possible design, before the first device sends first feedback information to the second device, the method also includes: the first device sends a third request information to the i-th device, wherein the third request information indicates media interaction with the second device, wherein the i-th device is a device in a device list, i is greater than or equal to 1 and less than or equal to N, and the device list includes N devices arranged in order, the order is the order of priority of the N devices from high to low, and N is a positive integer; if the first device receives the third feedback information from the i-th device within a preset time length, it determines that the i-th device is the third device, and the third feedback information indicates determination to perform media interaction with the second device.

[0017] In the above design, the first device can determine the device for media interaction with the second device based on the device list, without the need to determine through other devices, which can relatively reduce the number of interactions between devices in the media streaming system. In addition, the first device can select the device for media interaction with the second device based on the device list, ensuring that the device (i.e., the third device) determined for media interaction with the second device can respond in time, ensuring that the third device can quickly perform media interaction with the second device later.

[0018] In a possible design, the priorities of the N devices are related to the online duration of the N devices and / or the usage duration of the N devices. For example, the longer the online duration of a device, the higher the priority of the device; for another example, the longer the usage duration of a device, the higher the priority of the device.

[0019] In one possible design, before the first device sends the third request information to the first device, the method further includes: the first device determining that a fourth device does not exist in the system.

[0020] In the above design, when the first device determines that the fourth device does not exist in the media streaming transmission system, the first device can determine the device for media interaction with the second device by itself.

[0021] In one possible design, the fourth device satisfies at least one of the following conditions: a distance between the fourth device and the user is less than or equal to a first threshold; the fourth device is in a worn state; or the fourth device does not support media interaction with the second device.

[0022] In the above design, the fourth device may be a device that is relatively close to the user, or the fourth device may be a device that is in a wearable state, which can improve the convenience of the user in operating the fourth device and help improve the user experience. Alternatively, the fourth device may not support media interaction with the second device, but it may be convenient for the user to operate the fourth device. In this way, it is more convenient to determine the device (i.e., the third device) that interacts with the second device through the fourth device. In this case, subsequent users can directly interact with the second device through the third device without having to confirm again whether to interact with the second device. This is equivalent to performing a reverse control operation on the third device through the fourth device, which can improve the flexibility of user operations and simplify user operations.

[0023] In one possible design, before the first device sends the second media stream to the third device, the method also includes: the third device sends information of the third device to the first device, the information of the third device indicating target encoding parameters and / or target type of media supporting interaction; the first device obtains the second media stream based on the first media stream and the information of the third device, wherein the encoding parameters of the second media stream are the target encoding parameters and / or the type is the target type.

[0024] In the above design, a method for determining the second media stream based on the first media stream is provided. Specifically, the first device can determine the target encoding parameters and / or target type of the media supported for interaction by the third device, and convert the first media stream into a second media stream that conforms to the target encoding parameters and / or target type, so that the third device can smoothly output the second media stream, which is also beneficial to improve the effect of the third device outputting the second media stream.

[0025] In a second aspect, an embodiment of the present application provides a media stream transmission method, which can be executed by a first device. The method includes: receiving a first request message from a second device, the first request message is used to request media interaction with the second device; sending a first feedback message to the second device, the first feedback message indicates that the device for media interaction with the second device is a third device; receiving a first media stream from the second device; sending a second media stream to the third device, the second media stream is determined based on the first media stream.

[0026] In one possible design, before sending first feedback information to the second device, the method also includes: sending second request information to a fourth device, the second request information being used to request determination of a device for media interaction with the second device; and receiving second feedback information from the fourth device, the second feedback information indicating that the device for media interaction with the second device is the third device.

[0027] In one possible design, the second request information includes: information of a device list, the device list including N devices arranged in order, the order being the order of priority of the N devices from high to low, and N is a positive integer; and / or visitor information, wherein the first request information includes an image and / or audio of the visitor, and the visitor information is obtained based on the image and / or audio of the visitor.

[0028] In one possible design, before sending first feedback information to the second device, the method also includes: sending third request information to the i-th device, wherein the third request information indicates media interaction with the second device, wherein the i-th device is a device in a device list, i is greater than or equal to 1 and less than or equal to N, and the device list includes N devices arranged in order, and the order is the order of priority of the N devices from high to low, and N is a positive integer; if within a preset time length, third feedback information is received from the i-th device, it is determined that the i-th device is the third device, and the third feedback information indicates determination to perform media interaction with the second device.

[0029] In one possible design, before sending the first feedback information to the second device, the method further includes: determining that a fourth device does not exist in the system where the first device is located.

[0030] In one possible design, the fourth device satisfies at least one of the following conditions: a distance between the fourth device and the user is less than or equal to a first threshold; the fourth device is in a worn state; or the fourth device does not support media interaction with the second device.

[0031] In one possible design, before sending the second media stream to the third device, the method also includes: receiving information from the third device, the information of the third device indicating target encoding parameters and / or target type of media supporting interaction; obtaining the second media stream based on the first media stream and the information of the third device, wherein the encoding parameters of the second media stream are the target encoding parameters and / or the type is the target type.

[0032] In a third aspect, an embodiment of the present application provides a media stream transmission method, which can be executed by a second device. The method includes: sending a first request message to a first device, the first request message is used to request media interaction with the second device; receiving a first feedback message from the second device, the first feedback message indicates that the device for media interaction with the second device is a third device; sending a first media stream to the first device, the first media stream is used to obtain a second media stream sent to the third device.

[0033] In a fourth aspect, an embodiment of the present application provides a media stream transmission method, which can be performed by a third device. The method includes: sending information of the third device to a first device, wherein the information of the third device indicates a target encoding parameter and / or a target type of media supporting interaction; receiving the second media stream from the first device, wherein the encoding parameter of the second media stream is the target encoding parameter and / or the type is the target type.

[0034] In one possible design, before receiving the second media stream from the first device, the method also includes: receiving third request information from the first device or the fourth device, the third request information indicating media interaction with the second device; sending third feedback information to the first device or the fourth device, the third feedback information indicating determination to perform media interaction with the second device.

[0035] In a fifth aspect, an embodiment of the present application provides a media stream transmission method, which can be performed by a fourth device. The method includes: receiving a second request message from a first device, the second request message is used to request to determine a device for media interaction with a second device; and sending a second feedback message to the first device, the second feedback message indicating that the device for media interaction with the second device is a third device.

[0036] In one possible design, the fourth device satisfies at least one of the following conditions: a distance between the fourth device and the user is less than or equal to a first threshold; the fourth device is in a worn state; or the fourth device does not support media interaction with the second device.

[0037] In one possible design, before sending the second feedback information to the first device, the method also includes: determining the third device based on the user's operation; or, determining the third device from a device list, wherein the device list includes N devices arranged in order, and the order is the order of priority of the N devices from high to low, and N is a positive integer.

[0038] In one possible design, determining the third device from a device list includes: sending a third request message to the i-th device, wherein the third request message indicates media interaction with the second device, wherein the i-th device is a device in the device list, and i is greater than or equal to 1 and less than or equal to N; if within a preset time period, third feedback information is received from the i-th device, determining that the i-th device is the third device, and the third feedback information indicates determination to perform media interaction with the second device.

[0039] In a sixth aspect, an embodiment of the present application provides a media stream transmission system, which executes the method as described in the first aspect or any possible design.

[0040] In a seventh aspect, an embodiment of the present application provides a media stream transmission device, which may be the first device involved in the first aspect or the second aspect, or a software or hardware module in the first device. The media stream transmission device includes corresponding means (means) or modules for executing the second aspect or any optional implementation. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).

[0041] For example, the transceiver module is used to receive a first request information from a second device under the control of the processing module, the first request information is used to request media interaction with the second device, send first feedback information to the second device, the first feedback information indicates that the device for media interaction with the second device is a third device, receive a first media stream from the second device, and send a second media stream to the third device, the second media stream is related to the first media stream.

[0042] In an eighth aspect, an embodiment of the present application provides a media stream transmission device, which may be the second device involved in the first aspect or the third aspect, or a software or hardware module in the second device. The media stream transmission device includes corresponding means or modules for executing the third aspect or any optional implementation. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).

[0043] For example, the transceiver module is used to send a first request message to the first device under the control of the processing module, wherein the first request message is used to request media interaction with the second device, receive first feedback information from the second device, wherein the first feedback information indicates that the device for media interaction with the second device is a third device, and send a first media stream to the first device, wherein the first media stream is used to obtain a second media stream sent to the third device.

[0044] In a ninth aspect, an embodiment of the present application provides a media stream transmission device, which may be the third device involved in the first aspect or the fourth aspect, or a software or hardware module in the third device. The media stream transmission device includes corresponding means or modules for executing the fourth aspect or any optional implementation. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).

[0045] For example, the transceiver module is used to send information of the third device to the first device under the control of the processing module, wherein the information of the third device indicates target encoding parameters and / or target type of media supporting interaction, and to receive the second media stream from the first device, wherein the encoding parameters of the second media stream are the target encoding parameters and / or the type is the target type.

[0046] In a tenth aspect, an embodiment of the present application provides a media stream transmission device, which can be the fourth device involved in the first aspect or the fifth aspect, or a software or hardware module in the fourth device. The media stream transmission device includes corresponding means (means) or modules for executing the fourth aspect or any optional implementation method. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).

[0047] The transceiver module is used to receive second request information from the first device under the control of the processing module, the second request information is used to request to determine the device for media interaction with the second device, and send second feedback information to the first device, the second feedback information indicates that the device for media interaction with the second device is a third device.

[0048] In an eleventh aspect, an embodiment of the present application provides a media stream transmission system, wherein the media stream transmission system includes the media stream transmission device described in the seventh to tenth aspects.

[0049] In the twelfth aspect, an embodiment of the present application provides a media streaming transmission device, comprising a processor, a memory, and one or more programs; wherein the one or more programs are stored in the memory, and the one or more programs include instructions, and when the instructions are executed by the processor, the electronic device executes the method as described in any one of the first to fifth aspects.

[0050] Optionally, the media stream transmission device further includes other components, such as an antenna, an input / output module, an interface, etc. These components may be hardware, software, or a combination of software and hardware.

[0051] In a thirteenth aspect, an embodiment of the present application provides a chip system, the chip system comprising: a processor and an interface. The processor is used to call and run instructions from the interface, and when the processor executes the instructions, the method described in any one of the first to fifth aspects is implemented.

[0052] In a fourteenth aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store computer programs or instructions. When the computer-readable storage medium is executed, it implements any one of the methods described in the first to fifth aspects above.

[0053] In a fifteenth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, implements any of the methods described in any one of the first to fifth aspects above.

[0054] Regarding the beneficial effects of the second to fifteenth aspects, reference may be made to the beneficial effects discussed in the first aspect and will not be listed here again. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A schematic diagram of a security scenario;

[0056] Figure 2 A schematic diagram of an application scenario provided in an embodiment of the present application;

[0057] Figure 3 A schematic diagram of another application scenario provided by an embodiment of the present application;

[0058] Figure 4 A schematic diagram of the structure of a device provided in an embodiment of the present application;

[0059] Figure 5 A schematic diagram of the structure of a second device provided in an embodiment of the present application;

[0060] Figure 6 A schematic diagram of a media stream transmission method provided in an embodiment of the present application;

[0061] Figure 7 A schematic diagram of a fourth device displaying visitor information provided by an embodiment of the present application;

[0062] Figure 8 A schematic diagram of a process for waking up a fourth device provided in an embodiment of the present application;

[0063] Fig. 9 A schematic diagram of a device selection interface provided in an embodiment of the present application;

[0064] Fig.10 A schematic diagram of media interaction between a second device and a third device provided in an embodiment of the present application;

[0065] Fig.11 A schematic diagram of a network of a media stream transmission system provided in an embodiment of the present application;

[0066] Fig.12A schematic diagram of another media stream transmission method provided in an embodiment of the present application;

[0067] Fig.13 A schematic diagram of an answering interface provided in an embodiment of the present application;

[0068] Fig.14 A schematic diagram of the structure of a media stream transmission device provided in an embodiment of the present application;

[0069] Fig.15 A schematic diagram of the structure of another media stream transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0070] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0071] Below, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.

[0072] 1. Application (APP / app / App), referred to as application, is a software program that can realize one or more specific functions. Usually, multiple applications can be installed in an electronic device, such as instant messaging applications, video playback applications, audio applications, image capture applications, and security applications.

[0073] The application in the embodiments of the present application may be an application installed on the electronic device when it leaves the factory, or may be an application downloaded from the Internet by the user during the use of the electronic device, an application obtained from other electronic devices, a sub-application in an application running in the electronic device, or an application in a web page running in the electronic device, etc. The embodiments of the present application are not limited to this.

[0074] In the embodiments of the present application, the number of nouns, unless otherwise specified, means "singular noun or plural noun", that is, "one or more". "At least one" means one or more, and "plural" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. For example, A / B means: A or B. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c means: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.

[0075] The media streaming transmission method provided in the embodiment of the present application can be applied to security scenarios, for example, security scenarios in smart homes or smart offices. Smart home refers to a combination of new generation information technologies such as the Internet of Things, cloud computing, mobile Internet and big data to provide users with a satisfactory family life. Generally speaking, security scenarios include media acquisition devices and multiple devices. The media acquisition device can be installed outside the door, for example, on a door lock. Moreover, the media acquisition device can correspond to a visitor, in other words, a visitor can operate the media acquisition device. Multiple devices can be placed or installed at home and correspond to users (such as family members). In other words, users can operate multiple devices. The media acquisition device can communicate with multiple devices through a communication network. These multiple devices can also be referred to as multiple user devices or multiple devices. Of course, some or all of the multiple devices may also be placed or installed outdoors, and the embodiment of the present application does not limit the specific locations of the multiple devices.

[0076] The communication network is, for example, a wireless network or a wired network. The wireless network is, for example, a wireless local area network (WLAN), Bluetooth (BT), a global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC) or infrared (IR), etc. The WLAN is, for example, a wireless fidelity (Wi-Fi) network.

[0077] Please refer to Figure 1 , is a schematic diagram of a security scenario. Figure 1In the description, the media acquisition device is a smart doorbell, multiple devices include a mobile phone and a tablet computer, and the user is family member 1.

[0078] Exemplarily, a visitor clicks an access button on a smart doorbell, and the smart doorbell determines that the visitor wants to initiate a media interaction, which includes a video interaction and / or an audio interaction, so the smart doorbell can generate a ring prompt. The ring prompt indicates that a media interaction is to be performed with the smart doorbell. The smart doorbell can initiate a ring prompt to a mobile phone or tablet computer, and the mobile phone or tablet computer can issue a ring prompt. Optionally, the ring prompt includes an answer button and a reject button. The answer button is used to indicate that the media interaction is confirmed, and the reject button indicates that the media interaction is rejected.

[0079] Since there are many devices that can communicate with the smart doorbell, the overall power consumption of the devices in the security scene is large and the energy consumption is high. In addition, if family member 1 does not answer the call, the mobile phone and tablet will continue to ring, which will further increase the energy consumption of the devices in the security scene. In addition, the mobile phone and tablet will continue to ring, causing more noise in the home, which will undoubtedly affect the user experience.

[0080] In view of this, an embodiment of the present application provides a media stream transmission method, which can be applied to security scenarios. In this method, the second device (such as a media acquisition device) can directly send a first request message to the first device to request media interaction with the second device. The first device can determine the device (such as a third device) for media interaction with the second device and notify the second device. Then, the first device obtains the second media stream based on the first media stream from the second device and forwards the second media stream to the third device. In this way, the first device does not need to send the first request message to multiple devices, but directly sends the first request message to the second device, which is conducive to reducing the overall energy consumption of the device in the security scenario, and can also reduce noise and improve the user experience. In addition, in this method, the first device can determine the device for media interaction with the second device, and the user does not need to manually select the device for media interaction from multiple devices, which is conducive to reducing user operations, and there is no need to wait for the user to select the device for media interaction, which is conducive to improving the efficiency of transmitting media streams.

[0081] The application scenarios of the embodiments of the present application are introduced below.

[0082] In the first application scenario, the first device can determine the device (i.e., the third device) for media interaction with the second device through other devices (e.g., the fourth device, which is, for example, a wearable device). Alternatively, in the second application scenario, the first device can determine the device (i.e., the third device) for media interaction with the second device by itself. The first application scenario and the second application scenario are introduced below respectively.

[0083] The first application scenario.

[0084] Please refer to Figure 2 , is a schematic diagram of the first application scenario provided in the embodiment of the present application. Or, Figure 2 It can be regarded as a schematic diagram of the architecture of a media streaming system. Figure 2 As shown, the first application scenario includes a first device, a second device, and multiple devices. The multiple devices include a third device and a fourth device. Figure 2 In the description, multiple devices including a mobile phone, a tablet computer and a wearable device are used as an example, and the mobile phone is used as the third device, and the wearable device is used as the fourth device. Figure 2 The second device in can be considered as Figure 1 The multimedia acquisition device in the third device can be regarded as Figure 1 One of multiple devices in a.

[0085] The first device may communicate with the second device via a communication network, and the first device may communicate with the third device and the fourth device respectively via the communication network. Optionally, any two of the first device, the third device and the fourth device may communicate via a communication network. The communication network may be, for example, a wireless network or a wired network. The wireless network may be, for example, WLAN, BT, GNSS, FM, NFC or IR. The WLAN may be, for example, a Wi-Fi network.

[0086] The first device may be any electronic device, for example, a smart screen, a tablet computer, a personal computer (PC), a television, or a projector, a mobile phone or a super terminal. The second device can be used to collect media streams, such as audio streams and / or video streams, and the second device may be, for example, a doorbell (such as a smart doorbell), a door lock (such as a smart door lock) or a camera. The third device may be any electronic device, for example, a smart screen, a tablet computer, a PC, a television, a projector, a mobile phone, a super terminal, a wearable device or a smart home device. Wearable devices are, for example, smart bracelets, smart watches, virtual reality (VR) glasses, VR helmets, augmented reality (AR) glasses or AR helmets. Smart home devices are, for example, speakers, smart lights, smart robots, smart refrigerators, smart washing machines or wearable devices. The fourth device may also be any electronic device, such as a wearable device or a mobile phone. It should be understood that the above is an example of the implementation of the first device, the second device, the third device and the fourth device, and does not limit the implementation of the first device, the second device, the third device and the fourth device.

[0087] The fourth device and the first device may correspond to user A. In other words, user A may operate the first device and the fourth device. The second device may correspond to a visitor. In other words, the visitor may operate the second device. The third device may correspond to user B. In other words, user B may operate the third device. Unless otherwise specified, user A and user B may be the same user or different users.

[0088] Exemplarily, the second device may send a first request message to the first device to request media interaction with the second device. After the first device receives the first request message, the device (such as a third device) for media interaction with the second device may be determined through the fourth device. Subsequently, the second device may perform media interaction with the third device.

[0089] For example, the first device determines a device (such as the fourth device) that is convenient for user A to operate, and the first device may request the fourth device to determine a device for media interaction with the second device. Because the screen of the fourth device is too small, or the fourth device does not support media interaction with the second device, etc., the fourth device may determine a device (such as the third device) for media interaction with the second device from multiple devices. In this way, user A can perform media interaction with the second device through the third device.

[0090] For another example, the first device determines that it is convenient for user A to operate the fourth device, so the first device can request the fourth device to determine a device for media interaction with the second device, but user A is not currently convenient for media interaction (such as user A is currently in a meeting or answering a phone call). Therefore, the fourth device can determine a device for media interaction with the second device (such as a third device). In this way, user B can subsequently interact with the second device through the third device.

[0091] In a possible design, the first device, the second device, the third device and the fourth device may all be installed with the same application, for example, may all be installed with a security application.

[0092] The second application scenario.

[0093] Please refer to Figure 3 , is a schematic diagram of the second application scenario provided by the embodiment of the present application. Or, Figure 3 It can be regarded as a schematic diagram of the architecture of a media streaming system. Figure 3 As shown, the second application scenario includes a first device, a second device, and multiple devices, wherein the multiple devices include a third device. Figure 3 In the description, multiple devices including a tablet computer, a mobile phone and a printer are used, and a mobile phone is taken as an example as the third device. Figure 3 The second device in can be considered as Figure 1 The multimedia acquisition device in the third device can be regarded as Figure 1One of multiple devices in a. Figure 3 Compared to Figure 2 , missing the fourth device.

[0094] The first device may correspond to user A, in other words, user A may operate the first device. The second device may correspond to a visitor, in other words, the visitor may operate the second device. The third device may correspond to user B, in other words, user B may operate the third device. Unless otherwise specified, user A and user B may be the same user or different users.

[0095] In the second application scenario, after the first device receives the first request information from the second device, it can directly determine a third device for interacting with the second device from multiple devices. In this way, the third device can subsequently perform media interaction with the second device.

[0096] In a possible design, the same application may be installed in the first device, the second device, and the third device, for example, a security application may be installed in each of them.

[0097] The structure of the related equipment in the embodiments of the present application is introduced below.

[0098] Please refer to Figure 4 , is a schematic diagram of the structure of a device provided in an embodiment of the present application. The device may be Figure 2 or Figure 3 The first device in the text Figure 2 or Figure 3 The third device in the above Figure 2 The fourth device in.

[0099] like Figure 4As shown, the device 400 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc. The sensor module 480 may include a pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, an ambient light sensor 480L and a bone conduction sensor 480M, etc.

[0100] The processor 410 may include one or more processing units, for example, the processor 410 may include at least one of an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors 410. The controller may be the nerve center and command center of the device 400. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.

[0101] The processor 410 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may store instructions or data that the processor 410 has just used or cyclically used. If the processor 410 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.

[0102] In some embodiments, the processor 410 may include one or more interfaces. The interface may include at least one of an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) card interface, and a universal serial bus (USB) interface.

[0103] The processor 410 may control the execution of the application code to implement the functions of the first device, the third device, or the fourth device mentioned above.

[0104] In a possible implementation manner, the device 400 implements the function of the first device.

[0105] Exemplarily, after the device 400 receives the first request information sent by the second device, in response to the first request information (the first request message requests media interaction with the second device), the device (such as a third device) for media interaction with the second device is determined. The device 400 sends first feedback information to the second device through (or controls) the wireless communication module 460, and the first feedback information indicates that the device for media interaction with the second device is the third device. The device 400 can also receive a first media stream from the second device through the wireless communication module 460, and process the first media stream through the processor 410 to obtain a second media stream, and send the second media stream to the third device through the wireless communication module 460, thereby realizing the transmission of the media stream.

[0106] In a possible implementation manner, the device 400 implements the function of a third device.

[0107] Exemplarily, the device 400 may receive the second media stream from the first device through the wireless communication module 460 , and decode the second media stream through the processor 410 .

[0108] In a possible implementation manner, the device 400 implements the function of a fourth device.

[0109] Exemplarily, the device 400 may receive second request information from the second device through the wireless communication module 460, and the second request information is used to determine the device that performs media interaction with the second device. The device 400 may determine that the device that performs media interaction with the second device is the third device through the processor 410. The device 400 may send second feedback information to the second device through the wireless communication module 460, and the second feedback information indicates that the device that performs media interaction with the first device is the third device.

[0110] For example, the fourth device is a wearable device, and the device 400 can detect whether there is an object near the fourth device through the proximity light sensor 480G, thereby determining whether the device 400 is worn by a user (such as user A).

[0111] The USB interface 430 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 430 can be used to connect a charger to charge the device 400, and can also be used to transfer data between the device 400 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0112] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the device 400. In other embodiments of the present invention, the device 400 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0113] The charging management module 440 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 440 may receive charging input from a wired charger through the USB interface 430. In some wireless charging embodiments, the charging management module 440 may receive wireless charging input through a wireless charging coil of the device 400. While the charging management module 440 is charging the battery 442, it may also power the electronic device through the power management module 441.

[0114] The power management module 441 is used to connect the battery 442, the charging management module 440 and the processor 410. The power management module 441 receives input from the battery 442 and / or the charging management module 440, and supplies power to the processor 410, the internal memory 421, the external memory, the display screen 494, the camera 493, and the wireless communication module 460. The power management module 441 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (such as leakage and / or impedance). In some other embodiments, the power management module 441 can also be set in the processor 410. In other embodiments, the power management module 441 and the charging management module 440 can also be set in the same device.

[0115] The wireless communication function of the device 400 can be implemented through antenna 1, antenna 2, mobile communication module 450, wireless communication module 460, modem processor and baseband processor.

[0116] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in device 400 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0117] The mobile communication module 450 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the device 400. The mobile communication module 450 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 450 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 450 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 450 can be set in the processor 410. In some embodiments, at least some of the functional modules of the mobile communication module 450 can be set in the same device as at least some of the modules of the processor 410.

[0118] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 470A and a receiver 470B, etc.), or displays an image or video through a display screen 494. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 410 and be set in the same device as the mobile communication module 450 or other functional modules.

[0119] The wireless communication module 460 can provide wireless communication solutions including WLAN / GNSS / FM / NFC / IR applied on the device 400. The wireless communication module 460 can be one or more devices integrating at least one communication processing module. The wireless communication module 460 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 410. The wireless communication module 460 can also receive the signal to be sent from the processor 410, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0120] Device 400 implements display functions through a GPU, a display screen 494, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 410 may include one or more GPUs that execute program instructions to generate or change display information.

[0121] The display screen 494 is used to display images and / or videos, etc. For example, when the device 400 implements the function of the third device, after the device 400 receives the second media stream from the first device, if the second media stream includes a video stream, the device 400 can display the decoded video stream through the display screen 494. If the second media stream includes an audio stream, the device 400 can play the decoded audio stream through the speaker 470A. Optionally, the device 400 can also collect the audio stream through the microphone 470C and forward the audio stream to the second device through the wireless communication module 460.

[0122] The display screen 494 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed or a quantum dot light emitting diode (QLED), etc. In some embodiments, the device 400 may include one or more display screens 494.

[0123] The device 400 can realize the shooting function through the ISP, the camera 493, the video codec, the GPU, the display screen 494 and the application processor.

[0124] The camera 493 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the device 400 may include one or more cameras 493.

[0125] For example, when the device 400 implements the function of the third device and performs media interaction with the second device, the processor 410 of the device 400 can control the camera 493 to turn on and collect the video stream after the media interaction is turned on.

[0126] The external memory interface 420 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the device 400. The external memory card communicates with the processor 410 through the external memory interface 420 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0127] The internal memory 421 can be used to store computer executable program codes, which include instructions. The processor 410 executes various functional applications and data processing of the device 400 by running the instructions stored in the internal memory 421. The internal memory 421 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function or an image playback function), etc. The data storage area may store data created during the use of the device 400 (such as audio data or a phone book, etc.). In addition, the internal memory 421 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0128] The device 400 may implement audio functions through an audio module 470 , a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, and an application processor.

[0129] The audio module 470 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 470 can also be used to encode and decode audio signals. In some embodiments, the audio module 470 can be arranged in the processor 410, or some functional modules of the audio module 470 can be arranged in the processor 410.

[0130] Speaker 470A, also called a "speaker", is used to convert audio electrical signals into sound signals. Device 400 can listen to music or listen to hands-free calls through speaker 470A. For example, after device 400 implements the function of a third device and device 400 receives a second media stream from a second device, and the second media stream includes an audio stream, speaker 470A can play the audio stream.

[0131] The receiver 470B, also called a handset, is used to convert audio electrical signals into sound signals. When the device 400 receives an incoming call or voice message, the voice can be received by placing the receiver 470B close to the human ear. For example, after the device 400 connects to the media interaction with the second device, the receiver 470B plays the media stream from the second device.

[0132] Microphone 470C, also known as a microphone or a microphone, is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 470C with his mouth to input the sound signal into the microphone 470C. The device 400 can be provided with at least one microphone 470C. In other embodiments, the device 400 can be provided with two microphones 470C, which can not only collect sound signals but also realize the noise reduction function. In other embodiments, the device 400 can also be provided with three, four or more microphones 470C to realize the collection of sound signals, noise reduction, and can also identify the source of sound, realize directional recording function, etc. For example, when the device 400 realizes the function of the third device and the media interaction between the device 400 and the second device is performed, the microphone 470C can record.

[0133] The earphone interface 470D is used to connect a wired earphone and can be a USB interface 430 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0134] The key 490 includes a power key and / or a volume key, etc. The key 490 may be a mechanical key or a touch key. The device 400 may receive key input and generate key signal input related to user settings and function control of the device 400.

[0135] Motor 491 can generate vibration prompts. Motor 491 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 494, motor 491 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0136] Indicator 492 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0137] The SIM card interface 495 is used to connect a SIM card. The SIM card can be connected to and separated from the device 400 by inserting it into the SIM card interface 495 or pulling it out from the SIM card interface 495. The device 400 can support 4 or N SIM card interfaces, where N is a positive integer greater than 4. The SIM card interface 495 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 495 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 495 can also be compatible with different types of SIM cards. The SIM card interface 495 can also be compatible with external memory cards. The device 400 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the device 400 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the device 400 and cannot be separated from the device 400.

[0138] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the device 400. In other embodiments of the present application, the device 400 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0139] Please refer to Figure 5 , is a schematic diagram of the structure of a second device provided in an embodiment of the present application. The second device may be the Figure 2 or Figure 3 The second device in.

[0140] like Figure 5 As shown, the second device 500 may include a processor 501, a memory 502, a sensor 503, a speaker 504, at least one microphone 505, a power supply 506, a camera 507, a wireless communication module 508, a display screen 509, and the like.

[0141] The memory 502 may be used to store application code. The processor 501 may execute the application code to implement the function of the second device 500 in this embodiment. For example, after the wireless communication module 508 receives the first feedback message from the first device, the camera 507 may collect the video stream, and at least one microphone 505 may collect the audio stream. The processor 501 may generate a first media stream based on the audio stream and / or the video stream, and send the first media stream to the first device through the wireless communication module 508 to implement the transmission of streaming media.

[0142] The memory 502 may also store information about the second device 500. In addition, the memory 502 may also store connection information of an electronic device that has previously communicated with the second device. For example, the connection information may be the address of the electronic device that communicates with the second device. Based on the connection information, the second device 500 can automatically pair with the electronic device without configuring a connection therewith, such as performing a legitimacy verification. The address of the electronic device may be a media access control (MAC) address.

[0143] The sensor 503 may be a distance sensor or a proximity light sensor. For example, the sensor 503 includes a distance sensor, which can detect the distance between the second device 500 and the visitor. For another example, the second device 500 may use a proximity light sensor to detect whether there is a user near the second device 500. When it is determined that there is a user near the second device, the camera 507 is turned on. In some embodiments, the second device 500 may also include a bone conduction sensor, combined into a bone conduction headset. The bone conduction sensor can obtain the vibration signal of the vocal part vibrating bone block, and the processor 501 parses the voice signal to implement the control function corresponding to the voice signal. In other embodiments, the second device 500 may also include a touch sensor or a pressure sensor, which is used to detect the user's touch operation and press operation respectively. In other embodiments, the second device 500 may also include a fingerprint sensor for detecting the user's fingerprint, identifying the user's identity, etc. In other embodiments, the second device 500 may also include an ambient light sensor, and the processor 501 of the second device 500 may adaptively adjust some parameters, such as volume, according to the brightness of the ambient light sensed by the ambient light sensor.

[0144] The speaker 504 can be used to convert the audio electrical signal into a sound signal and play it. For example, when the second device 500 performs media interaction with the third device, the speaker 504 can convert the audio stream received from the third device into a sound signal and play it.

[0145] Microphone 505, which may also be referred to as a microphone or a microphone, is used to convert a sound signal into an audio electrical signal. For example, when the second device 500 performs media interaction with the third device, microphone 505 may collect the user's sound signal and convert it into an audio stream. It should be understood that the audio stream may be an audio electrical signal.

[0146] Camera 507 is used to collect video streams.

[0147] The wireless communication module 508 can provide solutions for wireless communication including 2G / 3G / 4G / 5G, etc., applied on the second device 500. The wireless communication module 508 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. In some embodiments, at least some functional modules of the wireless communication module 508 may be arranged in the same device as at least some modules of the processor 501.

[0148] The display screen 509 is used to display images, videos, dialing information, or caller information, etc. For example, after the second device 500 receives a call from the network side, the display screen 509 can display specific caller information (such as phone number, location, etc.). For example, after the second device 500 receives an instruction to answer the call, the call answering interface is displayed on the display screen 509.

[0149] The power source 506 can be used to supply power to various components included in the smart watch. In some embodiments, the power source 506 can be a battery, such as a rechargeable battery.

[0150] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the second device 500. Figure 5 More or fewer components shown in the figure may be combined with two or more components, or may have different component configurations. For example, the second device 500 also includes components such as an indicator light (which may indicate a status such as power). Figure 5 The various components shown in the drawings may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits.

[0151] The method provided by the embodiments of the present application is described below with reference to the accompanying drawings.

[0152] In the drawings corresponding to the various embodiments of the present application, all steps indicated by dashed lines are optional steps. Figure 2 or Figure 3 The first device involved, the second device is, for example, Figure 2 or Figure 3 The second device and the third device involved are, for example, Figure 2 or Figure 3 The third device and the fourth device involved are, for example, Figure 3 The structures of the first device, the third device and the fourth device can refer to Figure 4 The structure of the device 400 involved and the structure of the second device can refer to Figure 5 The structure of the second device 500 involved. User A in each embodiment of the present application can refer to Figure 2 or Figure 3 The user A involved, visitors can refer to Figure 2 or Figure 3 The visitors involved, and user B can refer to Figure 2 or Figure 3 The user B is involved.

[0153] Please refer to Figure 6 , which is a schematic diagram of a media stream transmission method provided in this application. Figure 6 The media stream transmission method in the embodiment shown can be applied to Figure 2 The first application scenario involved.

[0154] S601. The second device generates first request information in response to a triggering operation of a visitor.

[0155] Exemplarily, the second device may be provided with an access button, which may be a physical button or a touch button, etc. The embodiment of the present application does not limit the specific form of the access button. When the visitor expects to interact with user A through media, he can click the access button (equivalent to the visitor performing a trigger operation), which is used to initiate media interaction. In response to the trigger operation, the second device determines that the visitor expects to interact with user A through media, and thus generates a first request information. Among them, any user who operates the second device can be regarded as a visitor.

[0156] Optionally, the first request information may include an image of the visitor and / or an audio of the visitor.

[0157] Exemplarily, the image of the visitor may be collected by the second device, for example, the second device may collect the image of the visitor through a camera. The image of the visitor is, for example, a face image of user A. The second device may carry the image of the visitor in the first request information. The audio of the visitor may be collected by the second device, for example, the second device may collect the audio of the visitor through a microphone.

[0158] In a possible implementation, before the second device generates the first request information, the second device may also compare the visitor's image with at least one pre-stored reference image. If the visitor's image is successfully compared with one of the at least one reference image, the door is controlled to open and the visitor is allowed to enter. If the visitor's image fails to be compared with at least one reference image, S602 is executed, that is, the second device sends the first request information to the first device. The first request information indicates a request for media interaction with the second device. In this way, security is guaranteed, and it is convenient for user A to manually verify the identity of the visitor later. At least one reference image can be an image pre-entered by a member using the second device. In other words, at least one reference image is an image of a legitimate member. This implementation can be applicable to the case where the second device is a door lock (such as a smart door lock).

[0159] In S601, the second device generates the first request information in response to the visitor's operation trigger. In fact, there may be multiple triggering conditions for the second device to generate the first request information. For example, the second device may detect a visitor within a first distance and generate the first request information. If the second device generates the first request information under other triggering conditions, S601 does not need to be executed, that is, S601 is an optional step. Figure 6 Indicated by dotted line.

[0160] S602: The second device sends a first request message to the first device. Correspondingly, the first device receives the first request message from the second device. The meaning of the first request message can be found in the above text.

[0161] If the second device is a door lock (such as a smart door lock) or a camera, then after the second device generates the first request information, S602 can be directly executed. Exemplarily, the second device can send the first request information to the first device via a wireless network or a wired network. The implementation of the wireless network can refer to the above Figure 2 content.

[0162] S603: The first device determines that a fourth device exists.

[0163] The fourth device may be a device that satisfies at least one of conditions A1 to A4.

[0164] A1. The distance to user A is less than or equal to the first threshold.

[0165] The distance between the fourth device and user A is less than or equal to the first threshold, which means that the distance between the fourth device and user A is relatively close, so it is convenient for user A to operate the fourth device.

[0166] A2. The fourth device is in a wearing state.

[0167] The fourth device may be a wearable device and is in a wearable state, in other words, the fourth device is in a state of being used by user A. In this way, it is also convenient for user A to operate the fourth device.

[0168] A3. The fourth device does not support displaying video streams and / or audio streams.

[0169] The second device requests media interaction, which may include audio interaction and / or video interaction. If the fourth device cannot display the video stream and / or audio stream, it means that the second device cannot perform media interaction with the fourth device, so user A needs to select another device (such as the third device) to perform media interaction with the second device. In this way, the second device and the third device can smoothly perform media interaction.

[0170] A4. The fourth device is online.

[0171] The fourth device being online may mean that the fourth device is powered on, the fourth device maintains a communication connection with the first device, the fourth device is in a non-sleep state, or a security application in the fourth device is in a running state.

[0172] The conditions satisfied by the fourth device are different, so the manner in which the first device determines the existence of the fourth device is also different, which are explained below respectively.

[0173] B1. The fourth device meets the conditions shown in A1 above.

[0174] For example, if the first device can determine that the distance between user A and a certain device is less than the first threshold, then the device is determined to be the fourth device, that is, the fourth device exists. If the first device determines that there is no fourth device and the distance between the user A is less than the first threshold, then the fourth device is determined to not exist.

[0175] The following is an example of how the first device determines the distance between the fourth devices.

[0176] For example, the first device detects the location of user A through a sensor (such as a proximity light sensor or a temperature sensor, etc.). The first device may also determine the locations of multiple devices based on the interaction between the multiple devices. The first device may determine the distance between the multiple devices and user A based on the location of user A and the locations of the multiple devices, and further determine whether the distance is less than the first threshold.

[0177] Alternatively, the first device may obtain distance information from multiple devices, and by analogy, the first device may obtain multiple distance information, each of which indicates the distance between one of the multiple devices and user A. The first device determines whether there is a fourth device whose distance to user A is less than the first threshold based on the multiple distance information. The at least one device is a device other than the first device and the second device.

[0178] If, among the multiple devices, the devices whose distances to the user A are smaller than the first threshold include at least two devices, then the fourth device may use the device whose distance to the user A is the shortest among the at least two devices as the fourth device.

[0179] B2. The fourth device meets the conditions shown in A2 above.

[0180] The first device may obtain information of the multiple devices from the multiple devices, and the information of the multiple devices includes information of the wearing status of the multiple devices. The information of the wearing status indicates whether the device is in the wearing status or not in the wearing status. The first device may determine, based on the information of the multiple devices, that there is a fourth device that satisfies the above A2.

[0181] B3. The fourth device meets the conditions shown in A3 above.

[0182] The first device may obtain information of multiple devices from at least one device, where the information of the multiple devices includes types of media supported for output by the multiple devices. The first device may, based on the information of the plurality of devices, designate a device that does not support output of audio streams and / or video streams as a fourth device.

[0183] B4. The fourth device meets the conditions shown in A4 above.

[0184] Exemplarily, a heartbeat may be maintained between the multiple devices and the first device. If the first device receives heartbeat information from one of the multiple devices within a preset time period, it may be determined that the one device is online and the one device may be used as the fourth device.

[0185] If the fourth device satisfies at least two of the above conditions A1 to A4, the fourth device may determine the fourth device in a manner corresponding to the at least two conditions. The manner corresponding to the at least two conditions may refer to the contents discussed in B1 to B4 above, which will not be repeated here.

[0186] S604: The first device sends second request information to the fourth device. Correspondingly, the fourth device receives the second request information from the first device. The second request information is used to request to determine a device for media interaction with the second device.

[0187] Exemplarily, the first device may also send the second request information to the fourth device via a wireless network or a wired network. The implementation of the wireless network may refer to the above Figure 2 The content of the discussion.

[0188] Optionally, the second request information may include the visitor's information. The visitor's information may be determined based on the visitor's image and / or audio. For example, the visitor's information may include the visitor's image, the visitor's audio, a recognition result of the visitor's image, and a recognition result of the visitor's audio.

[0189] The recognition result of the visitor's image may be obtained by the first device recognizing the visitor's image, and the recognition result of the visitor's audio may be obtained by the first device recognizing the visitor's audio.

[0190] The recognition result of the visitor's image and the recognition result of the visitor's audio may be in the form of text. The recognition result of the visitor's image includes the visitor's appearance information and / or gender information, etc. The visitor's appearance information is used to describe the visitor's appearance. The visitor's appearance information, for example, includes whether the visitor's face is round or wears a hat. The recognition result of the visitor's audio, for example, includes feature information of the visitor's audio and / or keywords in the visitor's audio. The feature information of the visitor's audio is used to describe the visitor's voice features. The feature information of the visitor's audio, for example, indicates that the visitor has a sweet voice.

[0191] Optionally, the first device may determine the content of the visitor's information based on the fourth device information from the fourth device and the content of the first request information. The fourth device information includes the type of media that the fourth device can support, for example, the type of media such as image and / or audio.

[0192] Among them, the content of the first request information is different, the capability of the fourth device is different, and the content of the visitor information is also different, which are listed below respectively.

[0193] C1. If the first request information includes an image of the visitor, and the fourth device does not support outputting images, the visitor information may be a recognition result of the visitor's image.

[0194] C2. If the first request information includes the visitor's audio, and the fourth device does not support outputting audio, the visitor's information may be a recognition result of the visitor's audio.

[0195] C3. If the first request information includes the image and audio of the visitor, and the fourth device does not support outputting the image and audio, the visitor information may be the recognition result of the visitor's image and the recognition result of the visitor's audio.

[0196] C4. If the first request information includes an image of the visitor, and the fourth device supports outputting images, the visitor information may be a recognition result of the visitor's image and / or the visitor's image.

[0197] C5. If the first request information includes the visitor's audio, and the fourth device supports outputting audio, the visitor's information may include the visitor's audio, and / or a recognition result of the visitor's audio.

[0198] C6. If the first request information includes the audio and image of the visitor, and the fourth device supports audio and image, the visitor's information may include at least one of the visitor's image, the recognition result of the visitor's image, the visitor's audio, and the recognition result of the visitor's audio.

[0199] In a possible implementation, if the second request information includes the visitor's information, the fourth device may display the visitor's information after receiving the second request information, so that user A can know the visitor's basic information.

[0200] For example, see Figure 7 , is a schematic diagram of a fourth device displaying visitor information provided by an embodiment of the present application. Figure 7 In the example, the visitor's information is taken as the visitor's image.

[0201] like Figure 7 As shown, the fourth device may display the visitor's image 701. Optionally, the fourth device may further display a confirmation button 702. The confirmation button 702 is used to determine the device for media interaction.

[0202] In a possible implementation, if the fourth device is offline, the first device may wake up the fourth device before sending the second request information to the fourth device (ie, in S604).

[0203] Exemplarily, the first device may wake up the fourth device according to the wake-up operation performed by user A. The wake-up operation is, for example, a click operation performed by user A on the consent wake-up button displayed on the first device. Optionally, if user A clicks the reject wake-up button, the first device may re-determine the fourth device according to step S603. Alternatively, the first device may wake up the fourth device through a voice assistant. The voice assistant is, for example, a software module or a hardware module in the first device. Alternatively, the voice assistant may also be a device other than the first device and the fourth device.

[0204] Among them, the meaning of online is different, and the methods of waking up the fourth device are also different, which are introduced below.

[0205] If the fourth device is online and in the power-on state, the wake-up can be for the fourth device to control the fourth device to power on. Alternatively, if the fourth device is online and maintains a communication connection with the first device, the wake-up can be for the first device to establish a communication connection with the fourth device. Alternatively, if the fourth device is online and in a non-sleeping state, the wake-up can be for the first device to control the fourth device to be in a non-sleeping state. Alternatively, if the security application in the fourth device is online and is in a running state, the wake-up can be for the first device to control the fourth device to run the security application.

[0206] For example, see Figure 8 , is a schematic diagram of a process of waking up a fourth device provided in an embodiment of the present application. Figure 8 As shown, the first device may display a wake-up interface 801, which is used to indicate whether to wake up the fourth device. The wake-up interface may include an agree wake-up button 802 and a reject wake-up button 803 for waking up the fourth device. If user A clicks the agree wake-up button 802, the first device may control the fourth device to turn on. At this time, the fourth device displays Figure 8 The power-on interface 804 is shown. The power-on interface 804 indicates that the fourth device is being powered on. If user A clicks the reject wake-up button 803, the first device may not wake up the fourth device.

[0207] In a possible implementation, the first device may further determine a device list and carry the device list in the second request information, that is, the second request information may include the device list. The device list indicates N devices arranged in order of priority from high to low. The device list may specifically include the identifiers of the N devices arranged in the order.

[0208] Optionally, the N devices included in the device list are all online devices. Exemplarily, the first device may determine the N online devices based on a situation of maintaining heartbeats with the N devices.

[0209] In a possible implementation, the priorities of N devices may be related to the online duration of the N devices, wherein the longer the online duration of the device, the higher the priority of the device. Alternatively, the priorities of the N devices may be related to the usage duration of the N devices by user B, wherein the longer the usage duration of the device, the higher the priority of the device. Alternatively, the priorities of the N devices may be related to the online duration of the N devices and the usage duration of the N devices by user B. The longer the sum of the usage duration of the device and the online duration is, the higher the priority of the device is. The first device may determine the online duration and / or usage duration of the N devices based on the situation of maintaining heartbeats with the N devices.

[0210] Optionally, the online duration of the N devices may be the online duration of the N devices in the previous cycle. The usage duration of the N devices may be the usage duration of the N devices used by user B in the previous cycle. The cycle is, for example, every hour or every day.

[0211] In a possible implementation manner, the first device may directly execute step S604 without executing step S603. In this case, step S603 is an optional step. Figure 6 Indicated by dotted line.

[0212] S605: The fourth device determines a device for interacting with the second device. In the embodiment of the present application, the device for interacting with the second device is taken as an example as the third device.

[0213] The following describes a method in which the fourth device determines a device for interacting with the second device.

[0214] Method 1: The fourth device may determine a device for interacting with the second device according to a determination operation of user A.

[0215] Exemplarily, after executing S604 or being awakened by the first device, the fourth device may display a confirmation button, which is used to determine the device for media interaction. User A may click the confirmation button, which is equivalent to performing a confirmation operation. The fourth device may display a device list, and select the device corresponding to the device list according to user A, so as to use the device selected by the user as the fourth device. Among them, the device list may be obtained by the fourth device from the second request information, or determined by the fourth device itself. The way in which the fourth device determines the device list may refer to the content of the device list determined by the first device in the previous text.

[0216] For example, continue to refer to Figure 7 , user A clicks the confirmation button 702, which is equivalent to performing a confirmation operation, and the fourth device may display the following Fig. 9 The device selection interface 901 is shown. Fig. 9 As shown in FIG. 1 , the device list includes the identifier “1” of the mobile phone and the identifier “2” of the tablet computer. The fourth device selects the mobile phone 1 according to the user, for example, by clicking on the Fig. 9 The “√” button 902 shown is equivalent to performing a selection operation, so that the first device determines that the mobile phone 1 is the fourth device.

[0217] In the first approach, user A can select a device for performing media interaction with the second device through the fourth device, thereby improving the flexibility of determining the device for performing media interaction with the second device.

[0218] Method 2: The fourth device can determine the third device by itself according to the device list. The method for the fourth device to obtain the device list can refer to the method for the fourth device to determine the device list mentioned above.

[0219] Exemplarily, the fourth device may send a third request message to the i-th device among the N devices, and the third request message indicates media interaction with the first device. The i-th device is, for example, the device with the highest priority corresponding to the N devices, that is, the first device in the device list. The third device receives third feedback information from the i-th device within a preset time period, and the third feedback information indicates that media interaction with the second device is determined. Then the fourth device may use the i-th device as the third device.

[0220] If the fourth device does not receive the third feedback information from the i-th device within the preset time length, the fourth device may send a third request information to the (i+1)-th device corresponding to the device list. The (i+1)-th device is, for example, a device whose priority corresponding to the device list is lower than that of the i-th device. If the fourth device receives the third feedback information from the (i+1)-th device within the preset time length, the fourth device may use the (i+1)-th device as the third device. If the fourth device does not receive the third feedback information from the (i+1)-th device within the preset time length, and so on, the fourth device may refer to the method discussed above until the third device is determined.

[0221] Alternatively, the fourth device may determine the device with the shortest distance from user B among the N devices as the third device. The manner in which the fourth device determines the distance between any device among the N devices and user B may refer to the above description of the first device determining the distance between the device and user A.

[0222] S606: The fourth device may send second feedback information to the first device. Correspondingly, the first device may receive the second feedback information from the fourth device. The second feedback information indicates that the device that performs media interaction with the first device is the third device.

[0223] Exemplarily, the second feedback information may include an identifier of a third device, and the identifier of the third device indicates that the device performing media interaction with the first device is the third device. After the first device receives the second feedback information, it is equivalent to the first device determining that the device performing media interaction with the first device is the third device.

[0224] S607: The first device sends first feedback information to the second device. The second device receives the first feedback information from the first device. The first feedback information indicates that the device performing media interaction with the second device is a third device.

[0225] In this way, the second device determines to perform media interaction with the third device.

[0226] S608: The second device sends the first media stream to the first device. Correspondingly, the first device receives the first media stream from the second device.

[0227] When the fourth device determines the device (i.e., the third device) for media interaction with the second device, it is equivalent to the fourth device determining the media interaction with the second device for the third device, and it is also equivalent to the fourth device performing a reverse control operation on the third device, so it is equivalent to the third device responding to the first request information, so after the second device receives the first feedback information, it can directly send the first media stream to the first device. The first media stream may include, for example, an audio stream and / or a video stream.

[0228] In one possible implementation, if the second device can obtain information of the third device, and the information of the third device can indicate the target type and / or target encoding parameters of the media that the third device supports for interaction, then the second device can collect the initial media stream and process the initial media stream to obtain a first media stream that conforms to the information of the third device.

[0229] S609: The first device obtains a second media stream according to the first media stream.

[0230] Exemplarily, the first device may obtain the second media stream according to the first media stream and the information of the third device. The information of the third device may indicate the target type and / or target encoding parameters of the media supported for interaction by the third device, and the information of the third device may be obtained by the third device. The first device may obtain the second media stream that conforms to the information of the third device according to the first media stream. The target type includes, for example, an audio stream and / or a video stream. The target encoding parameters include, for example, an encoding standard and / or an encoding resolution. The encoding standard includes, for example, H264 or H265. The encoding resolution includes, for example, 1080P, 2K or 4K.

[0231] Case 1: The first device determines that the type of the first media stream does not conform to the target type, then the first device may obtain a second media stream that conforms to the target type according to the first media stream.

[0232] For example, the first media stream includes an audio stream and a video stream, and the target type includes an audio stream but does not include a video stream. Then, the first device may decode the audio stream from the first media stream and use the decoded audio stream as the second media stream.

[0233] Alternatively, the first media stream includes an audio stream and a video stream, and the target type includes a video stream but does not include an audio stream, then the first device may decode the video stream from the first media stream and use the decoded video stream as the second media stream.

[0234] Case 2: The first device determines that the encoding type of the first media stream does not conform to the target encoding parameters, then the first device can obtain a second media stream that conforms to the target encoding parameters based on the first media stream.

[0235] Exemplarily, the first device decodes the first media stream to obtain the decoded first media stream, and further encodes the decoded first media stream according to the target encoding parameter to obtain the second media stream.

[0236] Case three: the first device determines that the type of the first media stream does not match the target type, and the encoding type of the first media stream does not match the target encoding parameters. Then the first device can obtain a second media stream whose type matches the target type and whose encoding parameters match the target encoding parameters based on the first media stream.

[0237] In another possible implementation, if the first media stream conforms to the information of the third device, the second media stream and the first media stream may be considered the same. In this case, the first device may not need to perform S609, that is, S609 is an optional step. Figure 6 Indicated by dotted line.

[0238] S610: The first device sends a second media stream to the third device. Correspondingly, the third device receives the second media stream from the first device.

[0239] After receiving the second media stream, the third device may display a media interaction interface, so that user B can interact with the visitor through the media interaction interface. The media interaction interface may output the second media stream.

[0240] Optionally, the media interaction interface may include auxiliary operation buttons, which include, for example, at least one of a sound button, a video recording button, a screenshot button, a voice change button, a hang-up button, and a quick reply button. The sound button is used to control the volume of the played audio. The video recording button is used to record the visitor's video. The voice change button is used to change the voice of user B collected by the third device. The screenshot button is used to take a screenshot of the screen of the third device. The hang-up button is used to end the current media interaction. The quick reply is used to provide a sentence to reply to the visitor.

[0241] For example, see Fig.10 , is a schematic diagram of a second device and a third device performing media interaction provided in an embodiment of the present application. Fig.10 In the example, the first media stream includes an audio stream and a video stream, and the third device supports interactive audio stream and video stream.

[0242] like Fig.10 As shown, the second device can collect the first media stream through the camera, and the first media stream includes the visitor's video stream and audio stream. The audio stream includes Fig.10 The second device sends the first media stream to the first device, and the first device can process the first media stream to obtain the second media stream. The first device can also send the second media stream to the third device. After receiving the second media stream, the third device can display the following Fig.10 The media interaction interface 1001 shown. Fig.10 As shown, the media interaction interface 1001 can output a second media stream 1002. Optionally, the media interaction interface further includes an auxiliary operation button 1003 for user B to operate.

[0243] In the embodiment of the present application, the second device can request the first device to perform media interaction, and the first device can determine the device used to perform media interaction with the second device through the fourth device, so that multiple devices do not need to respond to the request information of the second device, thereby reducing the overall energy consumption of multiple devices. In addition, the fourth device can be a wearable device or other device that is easy for users to operate, so that it is easy for users to operate.

[0244] In a possible implementation, before S601, the first device, the second device, and the plurality of devices may be networked, and the plurality of devices may include a third device and a fourth device, so that any two of the first device, the second device, and the plurality of devices may communicate with each other. Fig.11, which is a schematic diagram of a network provided in an embodiment of the present application.

[0245] S1101. A first device, a second device, and any two devices among a plurality of devices discover each other.

[0246] The manner in which the first device, the second device, and any two of the multiple devices discover each other may be the same, and the following is introduced by taking the mutual discovery between the first device and the second device as an example.

[0247] Exemplarily, the first device may broadcast a discovery signal, for example, the first device may broadcast the discovery signal via Bluetooth or WIFI. After receiving the discovery signal, the second device may send a feedback signal to the first device, so that the first device and the second device can discover each other. By analogy, any two devices among the first device, the second device, and the plurality of devices can discover each other.

[0248] S1102: Mutual authentication between the first device, the second device, and any two devices among the multiple devices.

[0249] The mutual authentication method between the first device, the second device, and any two devices among the multiple devices may be the same, and is described below by taking the mutual authentication between the first device and the second device as an example.

[0250] In the first mutual authentication method, the first device and the second device can perform mutual authentication based on an identity code. The identity code is used to indicate the identity of the user corresponding to the device, for example, a personal identification number (PIN).

[0251] For example, the second device generates an identity code and sends the identity code to the first device, or user A inputs the identity code of the second device into the first device, so that the first device can determine the identity of the second device. In addition, the first device and the second device can agree on an interactive password, so that the first device and the second device can subsequently perform encrypted communication based on the password.

[0252] In the second mutual authentication method, the first device and the second device can perform mutual authentication based on a certificate.

[0253] Exemplarily, the first device may be pre-configured with a first certificate, and the second device may be pre-configured with a second certificate. Exemplarily, the first device may be configured with the first certificate through a digital certificate authority (CA), and the second device may also be configured with the second certificate through the CA.

[0254] Optionally, the first certificate includes, for example, a first root certificate and a server certificate, and the second certificate includes, for example, a second root certificate and a client certificate. The server certificate may include first key information, such as a public key. The client certificate may include second key information, such as a public key. The first root certificate and the second root certificate may be the same, for example, both include first key information.

[0255] During mutual authentication, the first device may send first authentication information to the second device, so that the second device can authenticate the first device based on the first authentication information. The first authentication information may, for example, indicate first key information in the first certificate.

[0256] Similarly, the second device may send the second authentication information to the first device. In this way, the first device may authenticate the second device based on the second authentication information, and the second authentication information may, for example, indicate the second key information in the second certificate. In this way, the first device and the second device may subsequently perform encrypted communication based on the key information (including the first key information and the second key information), which is equivalent to establishing a trust channel between the first device and the second device.

[0257] As an example, authentication information authentication can be implemented between the second device and the first device through a proxy interface. Exemplarily, the first device can send the first authentication information to the second device through the proxy interface of the first device. Correspondingly, the second device can also send the second authentication information to the first device through the proxy interface of the second device.

[0258] S1103. The first device, the second device, and multiple devices form a network.

[0259] S1104: The first device, the second device, and any two devices among the multiple devices negotiate capabilities with each other.

[0260] Exemplarily, the first device, the second device, and any two devices in the plurality of devices may transmit device information through a trusted transmission communication. The manner in which the first device, the second device, and any two devices in the plurality of devices negotiate capabilities with each other may be the same, and the following takes the mutual negotiation of capabilities between the first device and the second device as an example for introduction.

[0261] Exemplarily, the second device may send information of the second device to the first device. Correspondingly, the first device may receive information from the second device. The information of the second device may include at least one of the following D1 to D6.

[0262] D1. Device type of the second device.

[0263] The device type of the second device, for example, indicates the device type to which the second device belongs, for example, indicates whether the second device is a wearable device.

[0264] D2. Information on the types of media that support interaction.

[0265] For example, the information of the media type includes information of video capability and / or audio capability. The information of video capability indicates that the second device has the video playback capability, or the second device does not have the video playback capability. The information of audio capability indicates that the second device has the audio playback capability, or the second device does not have the audio playback capability.

[0266] D3, information about the camera's encoding-decoding ability.

[0267] The camera encoding capability information may indicate whether the camera supports variable encoding.

[0268] D4. Information on text ability.

[0269] The text capability indicates that the second device has text display capability, or that the second device does not have text display capability.

[0270] D5. Information on wearable status.

[0271] The wearing status information, for example, indicates whether the second device is in a wearing state or not in a wearing state.

[0272] D6. Information about the device's online status (on offline status).

[0273] The information on the device online status indicates that the second device is in an online state, or indicates that the second device is in an offline state.

[0274] Similarly, the first device can send information of the first device to the second device. Correspondingly, the first device receives information of the first device from the second device. In this way, the second device can determine the capability of the first device.

[0275] Please refer to Table 1, which is an example of information of a second device provided for the implementation of this application.

[0276] Table 1

[0277]

[0278] In the above possible implementation manner, the first device, the second device and the multiple devices may be networked to facilitate subsequent mutual communication between the devices.

[0279] Please refer to Fig.12, which is a schematic diagram of a media stream transmission method provided in this application. Fig.12 The media stream transmission method in the embodiment shown can be applied to Figure 3 The second application scenario involved.

[0280] S1201. The second device generates first request information in response to a triggering operation of a visitor.

[0281] The triggering operation, the first request information, and the manner in which the second device generates the first request information may refer to the contents of S601 above, and will not be described in detail here.

[0282] S1202: The second device sends first request information to the first device. Correspondingly, the first device receives the first request information from the second device.

[0283] The manner in which the second device sends the first request information to the first device can refer to the content of S602 above, which will not be repeated here.

[0284] S1203: The first device determines that the fourth device does not exist.

[0285] The manner in which the first device determines that the fourth device does not exist can be referred to the content of S603 above, which will not be repeated here.

[0286] In a possible implementation, if the first device determines that there is a fourth device, the first device may perform the above step S604. If there is no fourth device, the first device may perform step S1204, that is, the first device determines a device for interacting with the second device.

[0287] The manner in which the first device determines the device for interacting with the second device can refer to the content of the fourth device determining the device for interacting with the second device mentioned above, and will not be repeated here.

[0288] S1205: The first device sends a third request message to the third device. Correspondingly, the third device receives the third request message from the first device. The third request message is used to request media interaction with the second device. The third request message is also called a call request message or a media request message.

[0289] In a possible implementation, the third device may determine to perform media interaction with the second device according to a confirmation operation performed by user B. The confirmation operation is used to confirm the media interaction with the second device.

[0290] Exemplarily, after receiving the third request information, the third device may display an answering interface. The answering interface is used to confirm whether to conduct media interaction with the second device. The answering interface also includes an agree to answer button and a reject to answer button. The agree to answer button is used to confirm media interaction with the second device. The reject to answer button is used to confirm rejection of media interaction with the second device. The third device responds to user B's click operation on the agree to answer button, which is equivalent to user B performing a confirmation operation, so the third device determines to conduct media interaction with the second device. The third device responds to user B's click operation on the reject to answer button and determines not to conduct media interaction with the second device. Optionally, the answering interface may display the visitor's information. The content of the visitor's information can refer to the content of the previous S604, which will not be repeated here.

[0291] For example, see Fig.13 , is a schematic diagram of an answering interface provided in an embodiment of the present application. Fig.13 As shown, the answering interface 1301 displays the visitor's information 1302, such as Fig.13 As shown, the visitor's information 1302 includes the visitor's image. The answering interface 1301 also includes an accept answering button 1303 and a reject answering button 1304.

[0292] In another possible implementation, the third device may detect the distance from user B, and if the distance from user B is less than the first threshold, it may be determined to perform media interaction with the second device. The third device may detect the distance from user B through a sensor, such as a proximity light sensor.

[0293] S1206: The third device sends third feedback information to the first device. Correspondingly, the first device receives the third feedback information from the third device. The third feedback information indicates that it is determined to perform media interaction with the second device.

[0294] Exemplarily, when the third device determines to perform media interaction with the first device, the third device may send third feedback information to the third device, so that the first device may determine that the third device may perform media interaction with the second device.

[0295] In another possible implementation, if the third device refuses to perform media interaction with the first device, the third request information of the first device may not be responded to.

[0296] S1207: The first device sends first feedback information to the second device. Correspondingly, the second device receives the first feedback information from the first device.

[0297] The meaning of the first feedback information can be referred to the content discussed in S607 above, which will not be repeated here.

[0298] S1208: The second device sends the first media stream to the first device. Correspondingly, the first device receives the first media stream from the second device.

[0299] The meaning of the first media stream and the way in which the first device obtains the first media stream can refer to the content of S608 above, which will not be repeated here.

[0300] S1209: The first device obtains a second media stream according to the first media stream.

[0301] The meaning of the second media stream and the way in which the first device obtains the second media stream can refer to the way in which the second media stream is obtained in S609 above, which will not be described in detail here.

[0302] S1210: The first device sends a second media stream to the third device. Correspondingly, the third device receives the second media stream from the first device.

[0303] Optionally, after receiving the second media stream, the third device may display a media interaction interface. The content of the media interaction interface may refer to the content of the media interaction interface in S610 above, and will not be described in detail here.

[0304] Optionally, S1201, S1203 and S1209 are all optional steps. Fig.12 Indicated by dotted line.

[0305] In a possible implementation manner, the first device, the second device, and the third device may be networked in advance, and the networking process may refer to the previous Figure 6 The content discussed will not be repeated here.

[0306] In the embodiment of the present application, the second device can request the first device to perform media interaction, and the first device can determine the device used for media interaction with the second device through the fourth device, so that multiple devices do not need to respond to the request information of the second device, thereby reducing the overall energy consumption of multiple devices. The first device can determine the device to interact with the second device by itself without relying on other devices, thus reducing the number of interactions in the media streaming system.

[0307] The present application embodiment provides a media stream transmission device. Fig.14 , is a schematic diagram of the structure of a media stream transmission device provided in an embodiment of the present application. The media stream transmission device 1400 can be used to implement the functions of any of the first device, second device, third device or fourth device described above, and accordingly, can also execute the steps executed by the first device, second device, third device or fourth device described above.

[0308] like Fig.14 As shown, the media stream transmission device 1400 includes a transceiver module 1401 and a processing module 1402 .

[0309] The transceiver module 1401 and the processing module 1402 may be implemented by software or hardware.

[0310] For example, the implementation of the processing module 1402 is described below by taking the processing module 1402 as an example. Similarly, the implementation of the transceiver module 1401 can be the implementation of the processing module 1402.

[0311] As an example of a software functional unit, the processing module 1402 may include code running on a computing instance, wherein the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container.

[0312] As an example of a hardware functional unit, the processing module 1402 may also be implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0313] In the first embodiment, the media stream transmission device 1400 can be used to implement the functions of any of the first devices described above, for example, to implement the functions of any of the first devices described above. Figure 6 or Fig.12 The functionality of the first device is involved.

[0314] Exemplarily, under the control of the processing module 1402, the transceiver module 1401 may receive a first request message from the second device, send a first feedback message to the second device, receive a first media stream from the second device, and send a second media stream to the third device. Optionally, the processing module 1402 is further configured to determine the existence of a fourth device. The content of the first request message, the content of the first feedback message, the content of the first media stream, the content of the second media stream, and the method for determining the existence of the fourth device may refer to the above description. Figure 6 or Fig.12 The content of the discussion.

[0315] In a second embodiment, the media stream transmission device 1400 can be used to implement the functions of any of the second devices described above, for example, to implement the functions of the second device described above. Figure 6 or Fig.12The functionality of the second device is involved.

[0316] Exemplarily, under the control of the processing module 1402, the transceiver module 1401 may send a first request message to the first device, receive a first feedback message from the first device, send a first media stream to the first device, and send a second media stream to the third device. The content of the first request message, the content of the first feedback message, the content of the first media stream, and the content of the second media stream may refer to the foregoing description. Figure 6 or Fig.12 The content of the discussion.

[0317] In a third embodiment, the media stream transmission device 1400 may be used to implement the functions of any of the third devices described above, for example, to implement the functions of the third device described above. Figure 6 or Fig.12 Functionality of the third device involved.

[0318] Exemplarily, the transceiver module 1401 may receive the second media stream from the first device under the control of the processing module 1402. The meaning of the second media stream may refer to Figure 6 or Fig.12 content.

[0319] In a fourth embodiment, the media stream transmission device 1400 may be used to implement the function of any of the fourth devices described above, for example, to implement the function of the fourth device described above. Figure 6 The functionality of the fourth device is involved.

[0320] Exemplarily, the transceiver module 1401 may receive the second request information from the first device and send the second feedback information to the first device under the control of the processing module 1402. Optionally, the processing module 1402 may also determine the device used to interact with the second device. The content of the second request information, the content of the second feedback information, and the content of the device used to interact with the second device may all refer to the above description. Figure 6 content.

[0321] The present application embodiment provides a media stream transmission device. Fig.15 , is a schematic diagram of the structure of a media stream transmission device provided in an embodiment of the present application. Fig.15 As shown, the media stream transmission device 1500 includes a processor 1501 and a memory 1502. Optionally, the media stream transmission device 1500 also includes a communication interface 1503.

[0322] The processor 1501, the memory 1502 and the communication interface 1503 can communicate with each other via the bus 1504. The media stream transmission device 1500 can be a server or a terminal device. It should be understood that the embodiment of the present application does not limit the number of processors and memories in the media stream transmission device 1500.

[0323] The bus 1504 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.15 The bus 1504 is represented by only one line, but it does not mean that there is only one bus or one type of bus. The bus 1504 may include a path for transmitting information between various components of the media streaming device 1500 (for example, the processor 1501, the memory 1502, and the communication interface 1503).

[0324] The processor 1501 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0325] The memory 1502 may include a volatile memory, such as a random access memory (RAM). The memory 1502 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0326] The memory 1502 stores executable program codes, and the processor 1501 executes the executable program codes to implement any of the above-mentioned media stream transmission methods. That is, the memory 1502 stores instructions for executing any of the above-mentioned media stream transmission methods.

[0327] Optionally, the memory 1502 stores executable code, and the processor 1501 executes the executable code to respectively implement the functions of the first device, the second device, the third device or the fourth device mentioned above.

[0328] The communication interface 1503 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the media stream transmission apparatus 1500 and other devices or communication networks.

[0329] The embodiment of the present application provides a media stream transmission system, the media stream transmission system comprising a first device, a second device and a third device. The first device can implement the above Figure 6 or Fig.12 The second device can implement the functions of the first device. Figure 6 or Fig.12 The third device can implement the functions of the second device mentioned above. Figure 6 or Fig.12 The functionality of the third device involved.

[0330] The embodiment of the present application provides a media stream transmission system, the media stream transmission system comprising a first device, a second device, a third device and a fourth device. The first device, the second device, the third device and the fourth device can implement the above Figure 6 or Fig.12 Any media stream transmission method. Wherein, the first device can implement the above Figure 6 or Fig.12 The second device can implement the functions of the first device. Figure 6 or Fig.12 The third device can implement the functions of the second device mentioned above. Figure 6 or Fig.12 The fourth device can implement the functions of the third device mentioned above. Figure 6 or Fig.12 The functionality of the fourth device involved.

[0331] The embodiment of the present application provides a chip system, which includes: a processor and an interface. The processor is used to call and run instructions from the interface, and when the processor executes the instructions, any of the above-mentioned media stream transmission methods is implemented.

[0332] The embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program or instruction, and when it is executed, implements any of the methods for adjusting resources described above. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0333] The embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, implements any of the above-mentioned methods for adjusting resources. The computer program product may be a software or program product including instructions that can be executed on a computing device or stored in any available medium.

[0334] The method steps in the embodiments of the present application can be implemented by hardware, or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, a register, a hard disk, a mobile hard disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a base station or a terminal. Of course, the processor and the storage medium can also be present in a base station or a terminal as discrete components.

[0335] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc; it may also be a semiconductor medium, for example, a solid-state hard disk. The computer-readable storage medium may be a volatile or nonvolatile storage medium, or may include both volatile and nonvolatile types of storage media.

[0336] In the various embodiments of the present application, unless otherwise specified or provided for in any logical conflict, the terms and / or descriptions between the different embodiments are consistent and may be referenced to each other, and the technical features in the different embodiments may be combined to form new embodiments according to their inherent logical relationships.

[0337] It is understood that the various numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. The size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic.

Claims

1. A media stream transmission method, characterized in that: Applied to a system including a first device, a second device and a third device; the method includes: The second device sends first request information to the first device, where the first request information is used to request media interaction with the second device; The first device sends first feedback information to the second device, where the first feedback information indicates that a device performing media interaction with the second device is a third device; The second device sends a first media stream to the first device; The first device sends a second media stream to the third device, where the second media stream is determined according to the first media stream.

2. The method according to claim 1, characterized in that The system further includes a fourth device; before the first device sends the first feedback information to the second device, the method further includes: The first device sends second request information to the fourth device, where the second request information is used to request to determine a device that performs media interaction with the second device; The fourth device sends second feedback information to the first device, where the second feedback information indicates that a device performing media interaction with the second device is the third device.

3. The method according to claim 2, characterized in that Before the fourth device sends the second feedback information to the first device, the method further includes: The fourth device determines the third device according to the user's operation; or, The fourth device determines the third device from a device list, wherein the device list includes N devices arranged in order, the order is an order of priority of the N devices from high to low, and N is a positive integer.

4. The method according to claim 3, characterized in that The fourth device determines the third device from the device list, including: The fourth device sends third request information to the i-th device, wherein the third request information indicates media interaction with the second device, wherein the i-th device is a device in the device list, and i is an integer greater than or equal to 1 and less than or equal to N; If the fourth device receives the third feedback information from the ith device within a preset time period, it determines that the ith device is the third device, and the third feedback information indicates that it is determined to perform media interaction with the second device.

5. The method according to claim 3 or 4, characterized in that: The second request information includes: information of the device list; and / or, The visitor's information, wherein the first request information includes an image and / or audio of the visitor, and the visitor's information is obtained based on the image and / or audio of the visitor.

6. The method according to claim 1, characterized in that Before the first device sends the first feedback information to the second device, the method further includes: The first device sends third request information to the i-th device, wherein the third request information indicates media interaction with the second device, wherein the i-th device is a device in a device list, i is greater than or equal to 1 and less than or equal to N, and the device list includes N devices arranged in order, and the order is an order of priorities of the N devices from high to low, and N is a positive integer; If the first device receives the third feedback information from the ith device within a preset time period, it is determined that the ith device is the third device, and the third feedback information indicates that media interaction with the second device is determined.

7. The method according to claim 6, characterized in that Before the first device sends the third request information to the first device, the method further includes: The first device determines that a fourth device does not exist in the system.

8. The method according to any one of claims 2 to 5 and 7, characterized in that The fourth device satisfies at least one of the following conditions: The distance between the fourth device and the user is less than or equal to the first threshold; The fourth device is in a wearable state; or, The fourth device does not support media interaction with the second device.

9. The method according to any one of claims 1 to 8, characterized in that: Before the first device sends the second media stream to the third device, the method further includes: The third device sends information about the third device to the first device, where the information about the third device indicates a target encoding parameter and / or a target type of media supporting interaction; The first device obtains the second media stream according to the first media stream and the information of the third device, wherein the encoding parameter of the second media stream is the target encoding parameter and / or the type is the target type.

10. A media stream transmission method, characterized in that: Applied to a first device, the method includes: Receiving first request information from a second device, where the first request information is used to request media interaction with the second device; Sending first feedback information to the second device, where the first feedback information indicates that a device performing media interaction with the second device is a third device; receiving a first media stream from the second device; A second media stream is sent to the third device, where the second media stream is determined according to the first media stream.

11. The method according to claim 10, characterized in that Before sending the first feedback information to the second device, the method further includes: Sending second request information to a fourth device, where the second request information is used to request to determine a device for media interaction with the second device; Second feedback information is received from the fourth device, where the second feedback information indicates that a device that performs media interaction with the second device is the third device.

12. The method according to claim 11, characterized in that The second request information includes: Information on a device list, wherein the device list includes N devices arranged in order, the order being the order of priority of the N devices from high to low, where N is a positive integer; and / or, The visitor's information, wherein the first request information includes an image and / or audio of the visitor, and the visitor's information is obtained based on the image and / or audio of the visitor.

13. The method according to claim 10, characterized in that Before sending the first feedback information to the second device, the method further includes: Sending a third request message to the i-th device, wherein the third request message indicates media interaction with the second device, wherein the i-th device is a device in a device list, i is greater than or equal to 1 and less than or equal to N, the device list includes N devices arranged in order, the order is an order of priorities of the N devices from high to low, and N is a positive integer; If third feedback information is received from the i-th device within a preset time period, it is determined that the i-th device is the third device, and the third feedback information indicates that media interaction with the second device is determined.

14. The method according to claim 13, characterized in that Before sending the first feedback information to the second device, the method further includes: It is determined that no fourth device exists in the system where the first device is located.

15. The method according to claim 11, 12 or 14, characterized in that The fourth device satisfies at least one of the following conditions: The distance between the fourth device and the user is less than or equal to the first threshold; The fourth device is in a wearable state; or, The fourth device does not support media interaction with the second device.

16. The method according to any one of claims 10 to 15, characterized in that: Before sending the second media stream to the third device, the method further includes: receiving information from the third device, wherein the information from the third device indicates a target encoding parameter and / or a target type of media supporting interactivity; The second media stream is obtained according to the first media stream and the information of the third device, wherein the encoding parameter of the second media stream is the target encoding parameter and / or the type is the target type.

17. A media stream transmission method, characterized in that: Applied to the second device, the method includes: Sending first request information to the first device, where the first request information is used to request media interaction with the second device; receiving first feedback information from a second device, where the first feedback information indicates that a device performing media interaction with the second device is a third device; A first media stream is sent to the first device, where the first media stream is used to obtain a second media stream sent to the third device.

18. A media stream transmission method, characterized in that: Applied to a fourth device, the method includes: Receiving second request information from the first device, where the second request information is used to request to determine a device for media interaction with the second device; Second feedback information is sent to the first device, where the second feedback information indicates that a device that performs media interaction with the second device is a third device.

19. The method according to claim 18, characterized in that Before sending the second feedback information to the first device, the method further includes: Determining the third device according to the user's operation; or, The third device is determined from a device list, wherein the device list includes N devices arranged in order, the order is an order of priority of the N devices from high to low, and N is a positive integer.

20. The method according to claim 19, characterized in that Determining the third device from the device list includes: Sending a third request message to the i-th device, wherein the third request message indicates media interaction with the second device, wherein the i-th device is a device in the device list, and i is greater than or equal to 1 and less than or equal to N; If third feedback information is received from the i-th device within a preset time period, it is determined that the i-th device is the third device, and the third feedback information indicates that media interaction with the second device is determined.

21. A media streaming transmission system, characterized in that: The media stream transmission system is used to execute the method according to any one of claims 1 to 9.

22. A media stream transmission device, characterized in that: include: A module for executing the method according to any one of claims 10-20.

23. A media stream transmission device, characterized in that: include: a processor, a memory, and one or more programs; The one or more programs are stored in the memory, and the one or more programs include instructions, and when the instructions are executed by the processor, the media stream transmission device executes the method according to any one of claims 10-20.

24. A computer-readable storage medium, characterized in that: The storage medium stores a computer program or instruction, and when the computer program or instruction is executed, the method according to any one of claims 1 to 20 is implemented.