CN112312094B - Method and device for processing media information, storage medium and electronic device - Google Patents

Method and device for processing media information, storage medium and electronic device Download PDF

Info

Publication number
CN112312094B
CN112312094B CN202011182981.8A CN202011182981A CN112312094B CN 112312094 B CN112312094 B CN 112312094B CN 202011182981 A CN202011182981 A CN 202011182981A CN 112312094 B CN112312094 B CN 112312094B
Authority
CN
China
Prior art keywords
media information
connection
linked list
request
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011182981.8A
Other languages
Chinese (zh)
Other versions
CN112312094A (en
Inventor
黄彤津
陈宇锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202011182981.8A priority Critical patent/CN112312094B/en
Publication of CN112312094A publication Critical patent/CN112312094A/en
Application granted granted Critical
Publication of CN112312094B publication Critical patent/CN112312094B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • H04L65/403Arrangements for multi-party communication, e.g. for conferences

Abstract

The embodiment of the invention provides a method and a device for processing media information, a storage medium and an electronic device.

Description

Media information processing method, device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a method and a device for processing media information, a storage medium and an electronic device.
Background
In the related art, in the process of acquiring media information acquired by a video acquisition device, generally, devices that need to acquire the media information are directly connected to the video acquisition device, or the media information is acquired by the video acquisition device and forwarded by a server, so as to acquire the media information, for example, a video camera is installed on an outdoor unit of a building unit, so as to provide a service that the indoor unit of the building unit can monitor. In the same network of a unit building, a unit indoor unit initiates a monitoring request to a unit outdoor unit, the unit outdoor unit provides video stream to achieve the effect of real-time monitoring, but generally, the monitored capacity of the unit outdoor unit has an upper limit, generally, the unit outdoor unit is a single-digit number, and in order to meet the monitoring requirements of more monitoring clients, the hardware performance of the unit outdoor unit is generally enhanced or the monitoring capacity expansion effect is achieved by providing stream forwarding through an external service platform and a large-scale service platform.
The monitoring requirements of indoor units of building products on outdoor units, generally in building communities, the number of the unit building users reaches more than 100, 1 or more indoor units are arranged in each household, the monitoring requirements of the unit building users on the unit outdoor units generally meet the requirement of unit path number, if the upper limit reaches more than 100 paths under the condition of full load, the monitoring indoor units can not only have unfriendly experiences such as black screen and blockage in a special scene or under the condition of more than connection limit number, but also can influence the normal working operation of the outdoor units.
Aiming at the technical problem that the equipment load is high due to a single mode for acquiring the media information in the related technology, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for processing media information, a storage medium and an electronic device, which at least solve the technical problem that the equipment load is higher due to a single mode for acquiring the media information in the related technology.
According to an embodiment of the present invention, there is provided a method for processing media information, including: receiving a first request sent by first equipment, wherein the first request is used for requesting to acquire media information acquired by second equipment in real time; and under the condition that a third device is determined to exist, sending a target message to the first device, wherein the third device is a device currently acquiring the media information acquired by the second device in real time, and the target message is used for indicating the first device to acquire the media information from the third device.
According to another embodiment of the present invention, there is provided a media information processing apparatus including: the receiving module is used for receiving a first request sent by first equipment, wherein the first request is used for requesting to acquire media information acquired by second equipment in real time; a sending module, configured to send a target message to the first device when it is determined that a third device exists, where the third device is a device that is currently acquiring the media information acquired by the second device in real time, and the target message is used to instruct the first device to acquire the media information from the third device.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the target message is sent to the first equipment by receiving the first request sent by the first equipment under the condition that the third equipment is determined to exist, and the technical scheme that all equipment can only be directly connected to the acquisition equipment to acquire the media information in the related art is replaced, so that the technical effects of reducing the network load and improving the efficiency and stability of acquiring the media information by a user are achieved, and the technical problem that the equipment load is higher due to a single mode of acquiring the media information is solved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of a method for processing media information according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an alternative method for processing media information according to an embodiment of the invention;
FIG. 3 is a diagram illustrating an alternative method for processing media information according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an alternative media information processing method according to an embodiment of the invention;
FIG. 5 is a diagram illustrating an alternative method for processing media information according to an embodiment of the invention;
FIG. 6 is a flow chart illustrating an alternative media information processing method according to an embodiment of the invention;
FIG. 7 is a flow chart illustrating an alternative media information processing method according to an embodiment of the invention;
fig. 8 is a schematic structural diagram of an alternative media information processing apparatus according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the example of being operated on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of a media information processing method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the media information processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for processing media information running on a mobile terminal, a computer terminal, or a similar computing device is provided, and fig. 2 is a schematic flow chart of an alternative method for processing media information according to an embodiment of the present invention, as shown in fig. 2, the flow chart includes the following steps:
s202, receiving a first request sent by first equipment, wherein the first request is used for requesting to acquire media information acquired by second equipment in real time;
and S204, under the condition that a third device is determined to exist, sending a target message to the first device, wherein the third device is a device currently acquiring the media information acquired by the second device in real time, and the target message is used for indicating the first device to acquire the media information from the third device.
Optionally, in this embodiment, the first device includes, but is not limited to, a device currently needing to acquire media information, the second device includes, but is not limited to, a device capable of acquiring media information in real time, the third device includes, but is not limited to, a device that acquires media information acquired by the second device in real time from the second device, for example, the first device and the third device may specifically include, but are not limited to, a Mobile phone (such as an Android Mobile phone, an iOS Mobile phone, and the like), a laptop, a tablet computer, a palmtop computer, an MID (Mobile Internet device), a PAD, a desktop computer, a smart television, and the like, and the second device may include, but is not limited to, a type same as that of the first device or the third device, and may further include, but is not limited to, a camera, a monitor, a sensor, a scanner, and other Devices capable of acquiring media information.
Optionally, in this embodiment, the media information may include, but is not limited to, audio information, video information, text information, picture information, identification information, and other information capable of recording media data.
For example, the audio information, the video information, the picture information, and the like collected by the monitoring camera are processed according to the super audio information, the video information, or the picture information to obtain the text information, the identification information, and the like.
The above is merely an example, and the present embodiment is not limited in any way.
Optionally, in this embodiment, the first request may include, but is not limited to, a request for requesting to obtain the media information, and may also include, but is not limited to, a dedicated request for requesting to obtain the media information from a specific device.
Optionally, in this embodiment, the target message may include, but is not limited to, information such as an IP address, a port, and a gateway of the third device, so that the first device can obtain the media information from the third device based on the target message.
According to the embodiment, a first request sent by a first device is received, wherein the first request is used for requesting to acquire media information acquired by a second device in real time, and a target message is sent to the first device under the condition that a third device is determined to exist, so that the technical scheme that all devices can only be directly connected to the acquisition device to acquire the media information in the related art is replaced, further, the technical effects of reducing network load and improving the efficiency and stability of acquiring the media information by a user are achieved, and the technical problem that the device load is high due to the fact that the mode of acquiring the media information is single is solved.
In an optional embodiment, in the case that it is determined that the third device exists, sending a target message to the first device includes: acquiring a target linked list, wherein the target linked list is a linked list generated according to an initiating device of a second request received by the second device; determining that the third device exists in the target linked list under the condition that the target linked list comprises a device currently acquiring the media information acquired by the second device in real time; and sending the target message to the first device.
Optionally, in this embodiment, the target linked list may include, but is not limited to, a linked list established in a skip list manner, and may also include, but is not limited to, a linked list established in an N-ary tree manner, where N is a natural number greater than or equal to 2, the second request for acquiring media information and a corresponding initiator are recorded in the target linked list, and may also record an initiation time, a duration time, and the like of the second request, and in the case that there are a plurality of initiator, an order in which the second request is received may also be recorded.
The above is merely an example, and the present embodiment is not limited in any way.
In an optional embodiment, in a case that it is determined that the target linked list includes a device currently acquiring the media information acquired by the second device in real time, determining that the third device exists in the target linked list includes: determining the third device by at least one of the following ways when it is determined that the target linked list includes a plurality of devices currently acquiring the media information acquired by the second device in real time: determining a device of the plurality of devices that last sent the second request to the second device as the third device; determining a device having a highest network transmission rate with the first device among the plurality of devices as the third device; and determining the device with the longest time for acquiring the media information acquired by the second device in real time in the plurality of devices as the third device.
Optionally, in this embodiment, the determining, as the third device, the device that sends the second request to the second device last among the multiple devices may determine, according to the time sequence for receiving the second request in the target linked list, the last device that is received as the third device, and may also determine, according to the timestamp information for receiving the second request recorded in the target linked list, the device corresponding to the time indicated by the timestamp information and closest to the current time as the third device.
Optionally, in this embodiment, the determining, as the third device, the device with the highest network transmission rate to the first device in the multiple devices may be implemented by configuring speed measuring devices in the multiple devices respectively, and performing speed measurement on the multiple devices included in the target linked list before obtaining the media information through a Micro Control Unit (MCU), so as to determine the device with the highest network transmission rate as the third device.
Optionally, in this embodiment, the determining, as the third device, the device with the longest time to acquire the media information acquired by the second device in real time in the multiple devices may be determined according to timestamp information recorded in a target linked list and used for receiving the second request, and may also be determined according to a time sequence in the target linked list and used for receiving the second request, and then determining a device received first as the third device.
Through the embodiment, the device which sends the second request to the second device at last is determined as the third device, and each device can only forward the media information with one device of the other devices, so that the efficiency of acquiring the media information is improved, the safety of data forwarding is ensured, the efficiency of acquiring the media information can be improved by determining the device with the highest network transmission rate as the third device, the technical effect of user experience is improved, and the technical effect of stability of acquiring the media information can be increased by determining the device with the longest time of acquiring the media information as the third device.
In an optional embodiment, determining, as the third device, a device of the plurality of devices that last sent the second request to the second device comprises: determining a last received second request based on the receiving time of the second requests sent by the multiple devices recorded in the target linked list, and determining a device sending the last received second request in the multiple devices as the third device; or, determining, based on device identifiers arranged in a predetermined order in the target linked list, a device that last sends the second request to the second device among the multiple devices, and determining, as the third device, the device that last sends the second request to the second device among the multiple devices, where the predetermined order is a time order for receiving the second request. In an optional embodiment, sending the target message to the first device comprises: determining address information of the third device; and generating the target message based on the address information of the third equipment, and sending the target message to the first equipment.
Optionally, in this embodiment, the receiving time of the second request sent by the multiple devices based on the record in the target linked list may include, but is not limited to, recording through timestamp information.
For example, in a case that the current time is 14.
Optionally, in this embodiment, the determining, based on the device identifiers arranged in the predetermined order and included in the target linked list, that the device that sends the second request to the second device in the multiple devices last, and the determining, as the third device, the device that sends the second request to the second device in the multiple devices last may include, but are not limited to, adding, to the target linked list, the device corresponding to the newly received second request according to the predetermined time each time.
For example, after receiving the second request sent by device 1, the device identifier corresponding to device 1 is added to the target linked list, and when receiving the second request sent by device 2 after device 1, after adding the device identifier corresponding to device 2 to device 1 in the target linked list, when determining a third device, the device arranged last in the above order is always determined as the third device, in other words, the device added to the target linked list is determined as the third device.
In an optional embodiment, in a case that it is determined that the target linked list includes a device currently acquiring the media information acquired by the second device in real time, after it is determined that the third device exists in the target linked list, the method further includes: after the latter device of the third device in the target linked list is a fourth device and receives the first request, disconnecting a first connection and generating a second connection and a third connection, wherein the first connection is a connection through which the fourth device acquires the media information from the third device, the second connection is a connection through which the fourth device acquires the media information from the second device, and the third connection is a connection through which the first device acquires the media information from the third device; detecting the number of connections currently kept with the second device for acquiring the media information; and under the condition that the connection number is larger than or equal to a preset threshold value, disconnecting the second connection and generating a fourth connection, wherein the fourth connection is a connection for acquiring the media information from the first equipment by the fourth equipment.
Optionally, in this embodiment, the second device of the third device may be a fourth device, and may include but is not limited to a second device determined in the order in which the media information is obtained in the target linked list, and may also include but is not limited to a second device determined in the order after the device identifiers are arranged.
Fig. 3 is a schematic diagram of an alternative media information processing method according to an embodiment of the invention, and as shown in fig. 3, the apparatuses for performing the processing method may include, but are not limited to, an outdoor unit (corresponding to the second apparatus), an indoor unit 1, an indoor unit 2 (corresponding to the third apparatus), an indoor unit 4 (corresponding to the fourth apparatus), and an indoor unit 3 (corresponding to the first apparatus).
And when the indoor unit 3 acquires the media information collected by the outdoor unit, fig. 4 is a schematic diagram of another alternative media information processing method according to the embodiment of the present invention, as shown in fig. 4, the connection (corresponding to the first connection) of the indoor unit 4 from the indoor unit 2 is firstly disconnected, then the connection (corresponding to the second connection) between the indoor unit 4 and the outdoor unit and the connection (corresponding to the third connection) between the indoor unit 3 and the indoor unit 2 are established, and finally, fig. 5 is a schematic diagram of another alternative media information processing method according to the embodiment of the present invention, as shown in fig. 5, the connection between the indoor unit 4 and the outdoor unit is disconnected, and the connection (corresponding to the fourth connection) between the indoor unit 4 and the indoor unit 3 is established, so as to achieve the technical effect that the indoor units can acquire the media information only as a source of one indoor unit in a normal state of the outdoor unit, and under the condition that the network load of the outdoor unit is reduced, it is ensured that the media information collected by the outdoor units can be acquired in real time by the indoor units.
The invention is further explained below with reference to specific examples:
fig. 6 is a schematic flowchart of another alternative media information processing method according to an embodiment of the present invention, and as shown in fig. 6, the flowchart includes the following steps:
s602, the indoor unit sends a monitoring request to the outdoor unit;
s604, the outdoor unit receives a monitoring request of the indoor unit and checks whether the outdoor unit is a first monitoring client;
s606, under the condition that the first monitoring client is determined, the indoor unit provides video streaming service, the monitoring is successful, and the indoor unit starts media forwarding service for the monitoring requests of other indoor units;
s608, under the condition that the first monitoring client is not determined, adding the monitoring client into a monitoring linked list, maintaining the monitoring linked list by using a user ID, and performing insertion, deletion and query actions by adopting a skip list mode;
s610, providing a monitoring URL of the indoor unit of the previous node inserted into the linked list to enable the current monitoring indoor unit to carry out redirection monitoring request;
and S612, redirecting the monitoring URL request of the back node inserted into the linked list to the outdoor unit so as to ensure that the normal operation of the indoor unit in the subsequent monitoring is not influenced by the inserted node in the monitoring linked list, switching the monitoring node directly connected with the outdoor unit after the current monitoring indoor unit linked list is successfully inserted and successfully monitored, connecting the current monitoring indoor unit node, and enabling the outdoor unit to only provide one indoor unit monitoring pull service under a normal state.
The maintenance process of the monitoring linked list may be as follows:
s702, as shown in fig. 3, the indoor unit 3 is an indoor unit to be monitored, and obtains a redirection monitoring URL as the indoor unit 2 by a monitoring request to the outdoor unit;
s704, as shown in fig. 4, after the outdoor unit receives the monitoring request of the indoor unit 3, first, the indoor unit 4 is notified to abandon the previous monitoring flow source, and directly connect to the outdoor unit to obtain the flow, and then, the indoor unit 3 is notified to redirect the monitoring flow source to the indoor unit 2, at this time, the indoor unit 3 obtains the flow from the indoor unit 2, and the indoor unit 4 obtains the flow from the outdoor unit;
s706, as shown in fig. 5, after the indoor unit 3 successfully monitors the flow taking, the outdoor unit detects more than 1 indoor unit monitoring requests, and the original indoor unit 4 is monitored and connected to the indoor unit 2, and at this time, the indoor unit 4 is notified to be connected to the indoor unit 3 in a redirected manner, so as to keep the flow source provided by one indoor unit in the normal state of the outdoor unit.
According to the embodiment, the client side cascade connection is utilized to provide the streaming media forwarding, the monitoring stream pressure is transferred to each client side, the performance of the stream monitoring server is released, the monitoring server maintains the monitoring linked list, and provides the monitoring source redirection function, so that the whole monitoring environment is more flexible and easy to use, a large monitoring platform is not needed to be used as background maintenance, the technical effects of improving the efficiency of acquiring the media information, reducing the maintenance cost and reducing the cost of acquiring the media information are achieved.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for processing media information is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details of the description are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 8 is a block diagram of an alternative media information processing apparatus according to an embodiment of the present invention, and as shown in fig. 8, the apparatus includes:
a receiving module 802, configured to receive a first request sent by a first device, where the first request is used to request to acquire media information acquired by a second device in real time;
a sending module 804, configured to send a target message to the first device when it is determined that a third device exists, where the third device is a device that is currently acquiring the media information acquired by the second device in real time, and the target message is used to instruct the first device to acquire the media information from the third device.
In an optional embodiment, the sending module 804 includes:
the acquisition unit is used for acquiring a target linked list, wherein the target linked list is a linked list generated according to an initiating device of a second request received by the second device;
a determining unit, configured to determine that the third device exists in the target linked list when it is determined that the target linked list includes a device currently acquiring the media information acquired by the second device in real time;
a sending unit, configured to send the target message to the first device.
In an optional embodiment, the determining unit is configured to determine that the third device exists in the target linked list when it is determined that the target linked list includes a device currently acquiring the media information acquired by the second device in real time, in the following manner: determining the third device by at least one of the following ways when it is determined that the target linked list includes a plurality of devices currently acquiring the media information acquired by the second device in real time: determining a device of the plurality of devices that last sent the second request to the second device as the third device; determining a device having a highest network transmission rate with the first device among the plurality of devices as the third device; and determining the device which has the longest time for acquiring the media information acquired by the second device in real time in the plurality of devices as the third device.
In an optional embodiment, the determining unit is configured to determine, as the third device, a device that last sent the second request to the second device in the plurality of devices by: determining a last received second request based on the receiving time of the second requests sent by the multiple devices recorded in the target linked list, and determining a device sending the last received second request in the multiple devices as the third device; or, determining, based on device identifiers arranged in a predetermined order in the target linked list, a device that last sends the second request to the second device among the multiple devices, and determining, as the third device, the device that last sends the second request to the second device among the multiple devices, where the predetermined order is a time order for receiving the second request.
In an optional embodiment, the sending unit is configured to send the target message to the first device by: determining address information of the third device; and generating the target message based on the address information of the third equipment, and sending the target message to the first equipment.
In an optional embodiment, the apparatus is further configured to: under the condition that it is determined that the target linked list includes a device currently acquiring the media information acquired by the second device in real time, after it is determined that the third device exists in the target linked list, a next device of the third device in the target linked list is a fourth device, and after the first request is received, the first connection is disconnected, and a second connection and a third connection are generated, wherein the first connection is a connection through which the fourth device acquires the media information from the third device, the second connection is a connection through which the fourth device acquires the media information from the second device, and the third connection is a connection through which the first device acquires the media information from the third device; detecting the number of connections currently keeping acquiring the media information with the second equipment; and under the condition that the connection number is larger than or equal to a preset threshold value, disconnecting the second connection and generating a fourth connection, wherein the fourth connection is a connection for acquiring the media information from the first equipment by the fourth equipment.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
the method comprises the following steps of S1, receiving a first request sent by first equipment, wherein the first request is used for requesting to acquire media information acquired by second equipment in real time;
and S2, under the condition that a third device is determined to exist, sending a target message to the first device, wherein the third device is a device currently acquiring the media information acquired by the second device in real time, and the target message is used for indicating the first device to acquire the media information from the third device.
The computer readable storage medium is further arranged to store a computer program for performing the steps of:
the method comprises the following steps of S1, receiving a first request sent by first equipment, wherein the first request is used for requesting to acquire media information acquired by second equipment in real time;
and S2, under the condition that a third device is determined to exist, sending a target message to the first device, wherein the third device is a device currently acquiring the media information acquired by the second device in real time, and the target message is used for indicating the first device to acquire the media information from the third device.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to perform the following steps by a computer program:
the method comprises the following steps of S1, receiving a first request sent by first equipment, wherein the first request is used for requesting to acquire media information acquired by second equipment in real time;
and S2, under the condition that a third device is determined to exist, sending a target message to the first device, wherein the third device is a device currently acquiring the media information acquired by the second device in real time, and the target message is used for indicating the first device to acquire the media information from the third device.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1. A method for processing media information, comprising:
receiving a first request sent by first equipment, wherein the first request is used for requesting to acquire media information acquired by second equipment in real time;
under the condition that a third device is determined to exist, sending a target message to the first device, wherein the third device is a device currently acquiring the media information acquired by the second device in real time, and the target message is used for indicating the first device to acquire the media information from the third device;
wherein, in case that it is determined that the third device exists, sending a target message to the first device includes: acquiring a target linked list, wherein the target linked list is generated according to an initiating device of a second request received by the second device; determining that the third device exists in the target linked list under the condition that the target linked list comprises a device which is currently acquiring the media information acquired by the second device in real time; sending the target message to the first device;
wherein, after determining that the third device exists in the target linked list under the condition that it is determined that the target linked list includes a device currently acquiring the media information acquired by the second device in real time, the method further includes: after the latter device of the third device in the target linked list is a fourth device and receives the first request, disconnecting the first connection, and generating a second connection and a third connection, where the first connection is a connection through which the fourth device acquires the media information from the third device, the second connection is a connection through which the fourth device acquires the media information from the second device, and the third connection is a connection through which the first device acquires the media information from the third device; detecting the number of connections currently kept with the second device for acquiring the media information; and under the condition that the connection number is larger than or equal to a preset threshold value, disconnecting the second connection and generating a fourth connection, wherein the fourth connection is a connection for acquiring the media information from the first equipment by the fourth equipment.
2. The method according to claim 1, wherein in a case that it is determined that the target linked list includes a device that is currently acquiring the media information acquired by the second device in real time, determining that the third device exists in the target linked list comprises:
determining the third device by at least one of the following ways when it is determined that the target linked list includes a plurality of devices currently acquiring the media information acquired by the second device in real time:
determining a device of the plurality of devices that last sent the second request to the second device as the third device;
determining a device having a highest network transmission rate with the first device among the plurality of devices as the third device;
and determining the device which has the longest time for acquiring the media information acquired by the second device in real time in the plurality of devices as the third device.
3. The method of claim 2, wherein determining a device of the plurality of devices that last sent the second request to the second device as the third device comprises:
determining a last received second request based on the receiving time of the second requests sent by the multiple devices recorded in the target linked list, and determining a device sending the last received second request in the multiple devices as the third device; alternatively, the first and second liquid crystal display panels may be,
and determining the device which sends the second request to the second device in the plurality of devices last based on the device identifiers which are arranged in a predetermined order and included in the target linked list, and determining the device which sends the second request to the second device in the plurality of devices last as the third device, wherein the predetermined order is a time order for receiving the second request.
4. The method of claim 1, wherein sending a target message to the first device comprises:
determining address information of the third device;
and generating the target message based on the address information of the third equipment, and sending the target message to the first equipment.
5. An apparatus for processing media information, comprising:
the receiving module is used for receiving a first request sent by first equipment, wherein the first request is used for requesting to acquire media information acquired by second equipment in real time;
a sending module, configured to send a target message to the first device when it is determined that a third device exists, where the third device is a device that is currently acquiring the media information acquired by the second device in real time, and the target message is used to instruct the first device to acquire the media information from the third device;
wherein, the sending module includes: the acquisition unit is used for acquiring a target linked list, wherein the target linked list is a linked list generated according to an initiating device of a second request received by the second device; a determining unit, configured to determine that the third device exists in the target linked list when it is determined that the target linked list includes a device currently acquiring the media information acquired by the second device in real time; a sending unit, configured to send the target message to the first device;
the apparatus is further configured to: under the condition that it is determined that the target linked list includes a device currently acquiring the media information acquired by the second device in real time, after it is determined that the third device exists in the target linked list, a subsequent device of the third device in the target linked list is a fourth device, and after the first request is received, a first connection is disconnected, and a second connection and a third connection are generated, wherein the first connection is a connection in which the fourth device acquires the media information from the third device, the second connection is a connection in which the fourth device acquires the media information from the second device, and the third connection is a connection in which the first device acquires the media information from the third device; detecting the number of connections currently keeping acquiring the media information with the second equipment; and under the condition that the connection number is larger than or equal to a preset threshold value, disconnecting the second connection and generating a fourth connection, wherein the fourth connection is a connection for acquiring the media information from the first equipment by the fourth equipment.
6. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 4 when executed.
7. An electronic device comprising a memory and a processor, wherein the memory has a computer program stored therein, and the processor is configured to execute the computer program to perform the method of any of claims 1 to 4.
CN202011182981.8A 2020-10-29 2020-10-29 Method and device for processing media information, storage medium and electronic device Active CN112312094B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011182981.8A CN112312094B (en) 2020-10-29 2020-10-29 Method and device for processing media information, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011182981.8A CN112312094B (en) 2020-10-29 2020-10-29 Method and device for processing media information, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112312094A CN112312094A (en) 2021-02-02
CN112312094B true CN112312094B (en) 2022-10-18

Family

ID=74331690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011182981.8A Active CN112312094B (en) 2020-10-29 2020-10-29 Method and device for processing media information, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112312094B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008025294A1 (en) * 2006-08-22 2008-03-06 Tencent Technology (Shenzhen) Company Limited A stream media live system, device and method of peer to peer connection

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1217543C (en) * 2002-06-28 2005-08-31 国际商业机器公司 Apparatus and method for equivalent VOD system
US9325786B2 (en) * 2006-07-27 2016-04-26 The Hong Kong University Of Science And Technology Peer-to-peer interactive media-on-demand
CN101163230A (en) * 2006-10-13 2008-04-16 贾波 Method of performing on-site living broadcast and client terminal node preparation through network camera
CN101729862B (en) * 2008-10-21 2011-12-28 中兴通讯股份有限公司 Method and system for passing media through NAT by using video monitoring system
CN102256113B (en) * 2011-08-03 2013-05-08 浙江宇视科技有限公司 Control method and control device for forwarding media stream
CN108833391A (en) * 2018-06-06 2018-11-16 北京世纪东方通讯设备有限公司 A kind of media flow point retransmission method and device for video monitoring system
CN110519616B (en) * 2019-10-10 2022-09-13 腾讯科技(深圳)有限公司 Video distribution method, distribution node, scheduling center and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008025294A1 (en) * 2006-08-22 2008-03-06 Tencent Technology (Shenzhen) Company Limited A stream media live system, device and method of peer to peer connection

Also Published As

Publication number Publication date
CN112312094A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
EP3550892B1 (en) Method for network slice selection, user equipment, and network device
CN105451087B (en) Method for pushing, terminal, historic data server and the system of barrage information
CN105635180B (en) Information push method and device
US9198223B2 (en) Telecommunication network
CN109561320B (en) Server switching method, device, equipment and medium
WO2018166415A1 (en) Cloud storage system, media data storage method and system
CN103312593B (en) A kind of message distributing system and method
US10681314B2 (en) Moving image splitting device and monitoring method
CN111432158B (en) Load balancing method and device for media nodes, storage medium and electronic device
CN107645386B (en) Method and device for acquiring data resources
US9015344B2 (en) Method, apparatus and system for managing private network remotely using session initiation protocol
CN113032223B (en) Server state detection method and device
CN110691398B (en) Network interaction method, system, equipment and storage medium of intelligent equipment
EP3057287A1 (en) Node allocation method, device and system
CN105391979A (en) Method and device for processing service
CN114222086B (en) Method, system, medium and electronic device for scheduling audio and video code stream
CN108551571B (en) Monitoring video distribution method, device and system and distribution server
CN112312094B (en) Method and device for processing media information, storage medium and electronic device
US8805993B2 (en) System and method for bulk network data collection
CN111737029A (en) Server, data pushing method and data pushing system
US10798456B2 (en) Method and device for presenting information
CN114143569B (en) Webpage recording and live broadcasting method and system
EP3474530A1 (en) Image compressing method, image reconstructing method, image compressing device, image reconstructing device, image compressing program product, and image reconstructing program product
CN102769786A (en) Program data processing method and method
CN112887752A (en) Live broadcast establishing method and device based on multiple live broadcast platforms and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant