CN112866284B - Audio stream viewing method, device, electronic equipment and storage medium - Google Patents

Audio stream viewing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112866284B
CN112866284B CN202110205122.4A CN202110205122A CN112866284B CN 112866284 B CN112866284 B CN 112866284B CN 202110205122 A CN202110205122 A CN 202110205122A CN 112866284 B CN112866284 B CN 112866284B
Authority
CN
China
Prior art keywords
audio stream
network port
data information
target
network
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
CN202110205122.4A
Other languages
Chinese (zh)
Other versions
CN112866284A (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.)
China Media Group
Original Assignee
China Media Group
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 China Media Group filed Critical China Media Group
Priority to CN202110205122.4A priority Critical patent/CN112866284B/en
Publication of CN112866284A publication Critical patent/CN112866284A/en
Application granted granted Critical
Publication of CN112866284B publication Critical patent/CN112866284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/60Network streaming of media packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides an audio stream viewing method, an audio stream viewing device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a preset operation acted on a link of a topological interface; responding to the preset operation, and acquiring a target network port; and determining the data information of the audio stream corresponding to the target network port based on the target network port and the pre-established corresponding relationship between the network port and the data information of the audio stream, and displaying the data information of the audio stream on the topological interface. After receiving preset operation of a user on the topological interface, acquiring a network port associated with the link, and acquiring data information of the corresponding audio stream based on the network port for displaying, so that the audio stream on the communication link can be quickly viewed.

Description

Audio stream checking method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an audio stream viewing method and apparatus, an electronic device, and a storage medium.
Background
In an AoIP (Audio over IP) Audio system, there are multiple terminal devices and network devices, where a terminal device may be a streaming device for an Audio stream or a receiving device for an Audio stream, and a communication link is provided between a terminal device and a network device, and transmission of an Audio stream can be achieved through the communication link.
In the transmission of the audio stream, the transmitted audio stream can be acquired by the streaming device and the receiving device, so that the viewing of the audio stream in the communication link is realized.
Disclosure of Invention
The embodiment of the application provides an audio stream viewing method, an audio stream viewing device, electronic equipment and a storage medium, and can effectively solve the problem that the audio stream in a communication link is difficult to rapidly view.
According to a first aspect of the embodiments of the present application, there is provided an audio stream viewing method, which receives a preset operation acting on a link of a topology interface; responding to the preset operation, and acquiring a target network port, wherein the target network port is a network port associated with the link; determining data information of the audio stream corresponding to the target network port based on the target network port and a pre-established corresponding relationship between the network port and the data information of the audio stream; and displaying the data information of the audio stream on the topological interface.
According to a second aspect of embodiments of the present application, there is provided an audio stream viewing apparatus, including: the receiving module is used for receiving preset operation acted on a link of the topological interface; the response module is used for responding to the preset operation and acquiring a target network port, wherein the target network port is a network port associated with the link; the determining module is used for determining the data information of the audio stream corresponding to the target network port based on the target network port and the pre-established corresponding relationship between the network port and the data information of the audio stream; and the display module is used for displaying the data information of the audio stream on the topological interface.
According to a third aspect of embodiments of the present application, there is provided an electronic device comprising one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method as applied to an electronic device, as described above.
According to a fourth aspect of the embodiments of the present application, there is provided a computer-readable storage medium having a program code stored therein, wherein the method described above is performed when the program code runs.
By adopting the audio stream viewing method provided by the embodiment of the application, the preset operation acting on the link of the topological interface is received; responding to the preset operation, and acquiring a target network port; and determining the data information of the audio stream corresponding to the target network port based on the target network port and the pre-established corresponding relationship between the network port and the data information of the audio stream, and displaying the data information of the audio stream on the topological interface. After receiving preset operation of a user on the topological interface, acquiring a network port associated with the link, and acquiring data information of the corresponding audio stream based on the network port for displaying, so that the audio stream on the communication link can be quickly viewed.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic application environment diagram of an audio stream viewing method according to a first embodiment of the present application;
fig. 2 is a flowchart of an audio stream viewing method according to a first embodiment of the present application;
FIG. 3 is a schematic diagram of a topological interface according to a first embodiment of the present application;
fig. 4 is a diagram illustrating data information of an audio stream according to a first embodiment of the present application;
FIG. 5 is a flowchart of an audio stream viewing method according to the second embodiment of the present application;
fig. 6 is a flowchart of an audio stream viewing method according to a third embodiment of the present application;
FIG. 7 is a flowchart of a portion of steps of an audio stream viewing method according to a third embodiment of the present application;
fig. 8 is a schematic diagram of displaying path information in a topology interface according to a third embodiment of the present application;
fig. 9 is a functional block diagram of an audio stream viewing apparatus according to a fourth embodiment of the present application;
fig. 10 is a block diagram of an electronic device for executing an audio stream viewing method according to a fifth embodiment of the present application.
Detailed Description
In the AOIP audio system, there are a plurality of terminal devices and network devices, where a terminal device may be a streaming device for an audio stream or a receiving device for an audio stream, and a communication link is provided between a terminal device and a network device, and transmission of an audio stream can be achieved through the communication link.
In the transmission of the audio stream, the data information of the audio stream in the communication link can be viewed by acquiring the data information of the transmitted audio stream through the streaming device and the receiving device, however, this method needs to implement protocol intercommunication with all the streaming devices and the receiving devices, and is difficult to rapidly view the data information of the audio stream in the communication link.
For the acquired data information of the audio stream, the audio stream can be traced to find the streaming device of the audio stream. The inventor finds in research that when all streaming devices and receiving devices are relied on to acquire an audio stream, the streaming devices and the receiving devices usually inform them of what is received or transmitted through some instructions, which may deviate from the actual reception or transmission. Not only can the accuracy of the data information of the viewed audio stream be low, but also the accuracy of the tracing can be affected.
In view of the above problems, an embodiment of the present application provides an audio stream viewing method, which receives a preset operation acting on a link of a topology interface; responding to the preset operation, and acquiring a target network port; and determining the data information of the audio stream corresponding to the target network port based on the target network port and the pre-established corresponding relationship between the network port and the data information of the audio stream, and displaying the data information of the audio stream on the topological interface. After receiving the preset operation of a user on the topological interface, acquiring a network port associated with the link, and acquiring data information of the corresponding audio stream based on the network port for displaying, so that the audio stream on the communication link can be quickly checked.
The scheme in the embodiment of the present application may be implemented by using various computer languages, for example, object-oriented programming language Java and transliterated scripting language JavaScript, python, and the like.
In order to make the technical solutions and advantages of the embodiments of the present application more apparent, the following further detailed description of the exemplary embodiments of the present application with reference to the accompanying drawings makes it clear that the described embodiments are only a part of the embodiments of the present application, and are not exhaustive of all embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Referring to fig. 1, which is a schematic application environment diagram of an audio stream viewing method according to a first embodiment of the present application, in fig. 1, the application environment 10 includes a terminal device 11, a server 12, and a network device 13. The terminal device 11 may be a device capable of supporting an application program, such as a mobile phone, a tablet computer, a notebook computer, and a smart television. The server 12 may be a local server, a cloud server. The network device 13 may be a switch, a router, etc. The server 12 and the network device 13 are in communication connection, and the server 12 may obtain a data packet sent by the network device 13 in real time and establish a corresponding relationship between a network port and data information of an audio stream according to the data packet.
The terminal device 11 may display a topology interface, where links between multiple transceiver devices and a network device may be displayed in the topology interface, and when a user performs a preset operation on a link of the topology interface, the server 12 may obtain that a network port associated with the link is the target network port in response to the preset operation. After the target network port is obtained, the data information of the audio stream corresponding to the target network port can be determined based on the target network port and the pre-established corresponding relationship between the network port and the data information of the audio stream, and the data information of the audio stream is displayed on the topological interface, so that the video stream can be quickly viewed. After the data information of the audio stream is displayed, a user may perform a specified operation on an interface displaying the data information of the audio stream, the server 12 determines the data information of the target audio stream in response to the specified operation of the user, and performs source tracing on the target audio stream to determine a streaming device of the target audio stream, and displays path information of the target audio stream from the streaming device to a receiving device in the topology interface for the user to view.
Referring to fig. 2, a flowchart of an audio stream viewing method according to a first embodiment of the present application is shown, where the viewing of an audio stream is implemented based on the application environment. The following will describe a specific flow of the present embodiment by taking an electronic device as an example. The electronic device applied in this embodiment may be a server or a terminal device, and is not limited specifically herein. A particular such method may include the following steps.
Step 110, receiving a preset operation acting on a link of the topology interface.
A topological interface can be displayed on a display screen of the electronic device, and the topological interface visually represents communication connection between the transceiver device and the network device in the audio system. The topological interface can be generated based on the audio system as planned after the audio system is planned. In the topology interface, a plurality of transceiving devices, network devices, and links between the transceiving devices and the network devices may be included. Specifically, fig. 3 is a schematic diagram of a topology interface according to an embodiment of the present application, in which a link 22 and a network device 23 are located between the transceiver devices 21. The transceiving device 21 may be a streaming device, which is a terminal device that sends out the audio stream, and may also be a receiving device, which may send the audio stream to the receiving device through the link 22 and the network device 23.
On a topological interface, a preset operation may be performed on a link in the topological interface, where the preset operation may be a click operation and a skip operation. Further, the clicking operation may include a single-click operation, a double-click operation, and the skipping operation may be a cursor holding operation of a mouse or a sliding operation on a touch screen. Specifically, the preset operation may be set according to actual needs, and is not specifically limited herein. That is, the user may skip the link by manipulating the mouse to control the cursor, or click the link, to trigger the subsequent steps.
And step 120, responding to the preset operation, and acquiring a target network port, wherein the target network port is a network port associated with the link.
After receiving a preset operation acting on a link, a network port associated with the link may be acquired. It can be understood that, at both ends of the link in the topology interface, the transceiving device or the network device is connected, but in an actual audio system, the transceiving device and the network device both have corresponding network ports, so as to implement the transmission of the audio stream. Therefore, after receiving the preset operation acting on the link, the network port of the transceiver or the network device connected to the link, that is, the target network port, can be obtained.
Step 130, determining the data information of the audio stream corresponding to the target network port based on the target network port and the pre-established corresponding relationship between the network port and the data information of the audio stream.
After the target network port is obtained, data information of an audio stream corresponding to the target network port may be determined. When determining the data information of the audio stream corresponding to the target network port, the data information of the audio stream corresponding to the target network port may be determined according to the correspondence relationship obtained by obtaining the correspondence relationship between the pre-established network port and the data information of the audio stream.
The corresponding relationship between the network port and the data information of the audio stream can be a data packet sent by the receiving network device; extracting data information and a network port of the audio stream from the data packet; and establishing a corresponding relation between the data information of the audio stream and the network port.
In some embodiments, the correspondence between the data information of the audio stream and the network port may be stored as a database, so that the content in the database may be directly read to obtain the correspondence between the data information of the audio stream and the network port.
When the data information of the audio stream corresponding to the target network port is determined based on the target network port and the pre-established correspondence between the network port and the data information of the audio stream, the data information of the audio stream corresponding to the target network port may be retrieved from the preset database under the condition that the target network port is used as a retrieval condition.
And 140, displaying the data information of the audio stream on the topological interface.
After the data information of the audio stream corresponding to the target network port is acquired, the data information of the audio stream can be output and displayed on the topology interface.
In some embodiments, after the data information of the audio stream is acquired, the data information of the audio stream may be separated into input information and output information, the output information including one or more of: from the identification, address, and transmission rate of the audio stream input to the network device, the output information includes one or more of: an identification, address, and transmission rate of an audio stream output from the network device; and displaying the input information and the output information on the topological interface.
That is to say, after the data information of the audio stream is acquired, whether the audio stream is input to the network device or output to the network device may be determined according to a parameter in the data information of the audio stream, specifically, the data information corresponding to the audio stream input to the network device may be used as the input information, and the data information corresponding to the audio stream output from the network device may be used as the output information. It should be noted that specific contents of the input information and the output information may be set according to actual needs, and are not specifically limited herein. The input information may also be referred to as an upstream, and the output information may also be referred to as a downstream.
Referring to fig. 4, a schematic diagram of displaying data information of an audio stream according to a first embodiment of the present application is shown. . In fig. 4, the data information of the audio stream may be displayed in a superimposed manner on the topological interface, and may be displayed in different areas in the form of input information and output information. Where the area indicated by reference numeral 24 may display input information and the area indicated by reference numeral 25 may display output information.
In some embodiments, after the data information of the audio stream is displayed, the data information of the target audio stream may be determined according to a specified operation of a user, the target audio stream is traced, and the path information of the target audio stream from the streaming device to the receiving device is displayed on the topology interface. Specifically, the method may be a specific operation of receiving a function on a topological interface displaying data information of the audio stream; determining data information of a target audio stream according to the specified operation; and displaying the path information of the target audio stream from the streaming device to the receiving device on a topological interface according to the data information of the target audio stream and the corresponding relation. Therefore, the user can clearly see the path information of the target audio stream, and can obtain the device from which the target audio stream is sent. In particular, the tracing of the target audio stream will be explained in detail in the following embodiments.
The audio stream viewing method provided by the embodiment of the application receives preset operation acting on a link of a topological interface; responding to the preset operation, and acquiring a target network port; and determining the data information of the audio stream corresponding to the target network port based on the target network port and the pre-established corresponding relationship between the network port and the data information of the audio stream, and displaying the data information of the audio stream on the topological interface. After receiving the preset operation of the user on the topological interface, acquiring the port information associated with the link, and acquiring the data information of the corresponding audio stream based on the port information to display, so that the audio stream on the link can be quickly checked.
Referring to fig. 5, a flowchart of an audio stream viewing method according to a second embodiment of the present application is shown, where a process of obtaining data information of an audio stream is mainly described on the basis of the foregoing embodiments, and the method may specifically include the following steps.
Step 210, receiving a preset operation acting on a link of the topology interface.
Step 220, in response to the preset operation, obtaining a target network port, where the target network port is a network port associated with the link.
The steps 210 to 220 can refer to the corresponding parts of the previous embodiments, and are not described herein again.
Step 230, receiving the data packet sent by the network device.
Step 240, extracting data information of the audio stream and a network port from the data packet.
Step 250, storing the corresponding relation between the data information of the audio stream and the network port.
The data packets sent by the receiving network device may be Sflow data packets, which is a technique for monitoring the forwarding status of the traffic of a switch or router on the data network, and generally provides a set of agents and a Collector. The Agent is embedded in the network device, the network device can be a switch, a router and the like and is responsible for collecting relevant flow information, the Collector is usually a server, and a data packet sent by the Agent can be received by running special software on the server.
The electronic device may obtain the data packet from a network device, that is, by arranging an Agent in the network device, running a special software in the electronic device, so as to obtain the data packet sent by the network device, and after obtaining the data packet, the electronic device may analyze the data packet to obtain data information of an audio stream in the data packet and a network port where the audio stream is located, so as to establish a corresponding relationship between the data information of the audio stream and the network port. The data information of the audio stream acquired through the data packet is actually transmitted in the link, and is more accurate and reliable.
The data information of the audio stream is data information corresponding to the audio stream, such as an identifier, an address, a transmission rate, and the like. And the network port corresponding to the data information of the audio stream is a network port through which the audio stream passes when being transmitted. There may be a many-to-many relationship between the data information of the audio streams and the network ports, that is, the data information of one audio stream may correspond to a plurality of network ports, and one network port may correspond to the data information of a plurality of audio streams. After the correspondence between the data information of the audio stream and the network port is obtained, a subsequent operation may be performed based on the correspondence. It can be understood that the electronic device may continuously receive the data packet, so that the corresponding relationship between the data information of the audio stream and the network port may be continuously updated according to the data packet, so as to ensure the accuracy of the data.
Step 260, determining the data information of the audio stream corresponding to the target network port based on the target network port and the pre-established correspondence between the network port and the data information of the audio stream.
And 270, displaying the data information of the audio stream on the topological interface.
The steps 260 to 270 refer to the corresponding parts of the previous embodiments, and are not described herein again.
According to the audio stream viewing method provided by the embodiment of the application, the corresponding relation between the data information of the audio stream and the network port is established according to the data packet; determining data information of the audio stream corresponding to the target network port based on the corresponding relation; and displaying the data information of the audio stream on the topological interface. The data packet is directly acquired from the network equipment, and the acquired data information of the audio stream and the network port are really transmitted in the link, so that the method is more accurate and reliable, and the data information of the viewed audio stream can be ensured to have higher accuracy.
Referring to fig. 6, a flowchart of an audio stream viewing method according to a third embodiment of the present application is shown, where a process of displaying path information between a target audio stream from a streaming device to a receiving device is described in detail on the basis of the foregoing embodiments, and the method may specifically include the following steps.
In step 310, a preset operation acting on a link of the topology interface is received.
Step 320, responding to the preset operation, acquiring a target network port, where the target network port is a network port associated with the link.
Step 330, determining the data information of the audio stream corresponding to the target network port based on the target network port and the pre-established corresponding relationship between the network port and the data information of the audio stream.
And step 340, displaying the data information of the audio stream on the topological interface.
The corresponding parts of the foregoing embodiments can be referred to in steps 310 to 340, which are not described herein again.
Step 350, receiving a specified operation acted on a topological interface for displaying the data information of the audio stream.
And step 360, determining data information of the target audio stream according to the specified operation.
After the data information of the audio stream is displayed on the topological interface, the user may continue to perform the specified operation on the interface, that is, the interface shown in fig. 4, and after the user performs the specified operation on the interface, the electronic device may receive the specified operation. The specifying operation is used to determine data information of the target audio stream. That is, the user can arbitrarily select one of the displayed data information of the audio stream as the data information of the target audio stream.
As an embodiment, the specifying operation may be a click operation, that is, arbitrarily clicking one piece of data information as a target audio stream among the displayed data information of the audio streams. As another embodiment, the specifying operation may be an input operation, that is, a user may input an address of an audio stream at a specified position of the topological interface, and data information corresponding to an audio stream indicated by the address of the audio stream input by the user is used as the data information of the target audio stream.
Step 370, displaying the path information of the target audio stream from the streaming device to the receiving device on the topological interface according to the data information of the target audio stream and the corresponding relationship.
When the data information of the audio streams is acquired, whether the network ports corresponding to the audio streams are input or output is already acquired, and any one of the audio streams can be traced based on the information. That is, after determining the data information of the target audio stream from the data information of the displayed audio streams according to the designation operation, the path information of the target audio stream from the streaming apparatus to the receiving apparatus may be determined. Specifically, referring to fig. 7, which is a flowchart of a part of steps of an audio stream viewing method according to the third embodiment of the present application, the method may specifically include the following steps.
Step 371, with the data information of the target audio stream as a retrieval condition, determining a network port corresponding to the data information of the target audio stream according to the correspondence.
Assuming that the corresponding relationship between the data information of the audio stream and the network port is stored in a database, after the data information of the target audio stream is obtained, the data information of the target audio stream may be used as a retrieval condition, and the network port corresponding to the data information of the target audio stream may be retrieved in the database.
And 372, filtering the network ports according to preset conditions, and determining the flow sending equipment.
The network port corresponding to the data information of the target audio stream may be a network interconnection port, that is, a connection port between a network device and a network device, or a connection port of a terminal device. The input of the target audio stream in the network is usually a terminal device, which may be referred to as a streaming device, so that the network port may be filtered according to a preset condition to determine the streaming device.
Specifically, it may be determined whether the network port is a terminal device connection port; if the network port is a terminal equipment connection port, determining that the terminal equipment corresponding to the network port is the streaming equipment; and if the network port is not the terminal equipment connecting port, acquiring another network port connected with the network port, and determining the flow sending equipment until determining that the other network port is the terminal equipment connecting port.
Because the data information of the target audio stream is any one of the displayed data information of the audio streams, the position of the network device in the topological interface can be known through the link for transmitting the target audio stream. Then, when the network port corresponding to the data information of the target audio stream is obtained, it may be determined whether the network port is a terminal device connection port, and when the network port is a terminal device connection port, it indicates that the device corresponding to the network port is a terminal device, thereby determining that the terminal device corresponding to the network port is a streaming device, and the tracing is completed.
If the network port is not the terminal device connection port, the network port may be a network interconnection port, and since the device corresponding to the network interconnection port is a network device, another network port connected to the network device may be acquired until it is determined that the another network port is a terminal device connection port, the device corresponding to the another network port may be determined to be a streaming device, and the tracing is completed. That is, when the network port is a network interconnection port, it indicates that the device corresponding to the network interconnection port is a network device, is an intermediate forwarding device, and is not a streaming device. Therefore, it may be possible to continue to trace to the source based on the network device to obtain another network port connected to the network interconnection port, and it may be understood that the device corresponding to the another network port may be a network device or may be a streaming device.
It can be understood that when the network ports are acquired, whether the network ports are network interconnection ports or terminal device connection ports can be directly acquired, and therefore, whether the network ports are terminal device connection ports can be directly judged. As an embodiment, when the network port is obtained, the terminal device connection port may be identified, and whether the network port is the terminal device connection port is determined according to the identification. That is to say, when the network port is obtained, whether the network port is a connection intersection of the terminal device can be determined according to the identifier; if the network port has the identifier, the network port is indicated to be a terminal equipment connection port; and if the network port does not have the identifier, indicating that the network port is not the terminal equipment connection port.
Before judging whether the network port is a terminal equipment connection port, whether the target audio stream has only one input in the same network equipment can be determined; if the target audio stream is determined to have only one input in the same network equipment, continuously executing the step of determining whether the network port is a terminal equipment connection port until the streaming equipment is determined; and if the target audio stream is determined not to have only one input in the same network equipment, alarming.
To avoid collisions, the target audio stream has only one input in the same network device. That is to say, if the device 1 sends the target audio stream to the network device 1, the device 2 also sends the target audio stream to the network device 1, that is, the target audio stream has two inputs in the same network device, which indicates that a conflict occurs, and may alarm to prompt the user that the conflict occurs, and stop tracing. When the data information of the audio stream is displayed, the data information of the audio stream is divided into input information and output information, so that whether the target audio stream has only one input in the same network device can be determined based on the output information and the input information.
In some embodiments, the alarm may be a pop-up alarm window on the topology interface, or an alarm sound, or a combination of both, to prompt the user for a conflict. The specific manner of the alarm may be set according to actual needs, and is not specifically limited herein.
Step 373, displaying the path information from the streaming device to the receiving device in the topology interface.
After the streaming device is obtained, path information from the streaming device to the receiving device may be displayed in the topology interface. Thus, the user can view the path information of the target audio stream at the topology interface.
In one embodiment, when the path information of the target audio stream is displayed, a link may be identified in the topology interface. For example, the transmission path of the target audio stream is determined to be the streaming device-network device 1-network device 2-network device 3-receiving device. The path information may be identified in the topology interface, and specifically, refer to fig. 8, which is a schematic diagram of displaying the path information in the topology interface according to the third embodiment of the present application. In fig. 8, reference numeral 31 denotes a streaming apparatus, reference numeral 32 denotes a network apparatus 1, reference numeral 33 denotes a network apparatus 2, reference numeral 34 denotes a network apparatus 3, reference numeral 35 denotes a receiving apparatus, and reference numeral 36 denotes the path information.
In some embodiments, when the path information is displayed, flow direction information may also be displayed, which may be in the form of an arrow or in the form of a dynamic animation, and may be set according to actual needs, which is not specifically limited herein. As in fig. 8, the gray portions of the path indicated by reference numeral 36 may flow in animation, indicating the direction of flow.
As another embodiment, the path information may be output in a text manner, for example, it is determined that a streaming device of the target audio stream is device 1, and passes through switch 1 and switch 2 in the middle, and then, the corresponding network path may be represented as device 1-switch 2.
Therefore, a user can clearly know the whole transmission path of the target audio stream according to the path information output on the topological interface, and the tracing of the target audio stream is realized.
According to the audio stream viewing method provided by the embodiment of the application, the data information of the target audio stream is determined from the displayed data information interface of the audio stream, and the path information of the target audio stream from the streaming device to the receiving device is displayed on the topological interface according to the data information of the target audio stream and the corresponding relation. The method provides the source tracing function of the audio stream on the basis of quickly checking the data information of the audio stream, and the accuracy of the checked data information of the audio stream is higher, so that the accuracy of the path information obtained by tracing is higher.
Referring to fig. 9, which is a functional block diagram of an audio stream viewing apparatus according to a fourth embodiment of the present application, the audio stream viewing apparatus 400 includes a receiving module 410, a responding module 420, a determining module 430, and a displaying module 440. The receiving module 410 is configured to receive a preset operation acting on a link of a topology interface; the response module 420 is configured to, in response to the preset operation, obtain a target network port, where the target network port is a network port associated with the link; the determining module 430 is configured to determine, based on the target network port and a pre-established correspondence between the network port and data information of an audio stream, data information of the audio stream corresponding to the target network port; the display module 440 is configured to display the data information of the audio stream on the topology interface.
Further, before determining the data information of the audio stream corresponding to the target network port based on the target network port and the pre-established correspondence between the network port and the data information of the audio stream, the determining module 430 is further configured to receive a data packet sent by a network device; extracting data information and a network port of the audio stream from the data packet; and storing the corresponding relation between the data information of the audio stream and the network port.
Further, the determining module 430 is further configured to store the corresponding relationship between the data information of the audio stream and the network port in a database.
Further, the determining module 430 is further configured to retrieve, in the preset database, data information of an audio stream corresponding to the target network port, with the target network port as a retrieval condition.
Further, the display module 440 is further configured to divide the data information of the audio stream into input information and output information, where the input information includes one or more of the following: an identification, address, and transmission rate of an audio stream input to the network device, the output information including one or more of: an identification, address, and transmission rate of an audio stream output from the network device; and displaying the input information and the output information on the topological interface.
Further, the audio stream viewing apparatus 400 further includes a source tracing module, which is configured to receive a specified operation acting on a topology interface displaying data information of the audio stream; determining data information of a target audio stream according to the specified operation; and displaying the path information of the target audio stream from the streaming device to the receiving device on a topological interface according to the data information of the target audio stream and the corresponding relation.
Further, the source tracing module is further configured to determine, according to the correspondence, a network port corresponding to the data information of the target audio stream, using the data information of the target audio stream as a retrieval condition; filtering the network port according to preset conditions to determine flow sending equipment; and displaying the path information from the streaming device to the receiving device in the topological interface.
Further, the source tracing module is further configured to determine whether the network port is a terminal device connection port; if the network port is a terminal equipment connection port, determining that the terminal equipment corresponding to the network port is the streaming equipment; and if the network port is not the terminal equipment connecting port, acquiring another network port connected with the network port, and determining the flow sending equipment until determining that the other network port is the terminal equipment connecting port.
Further, before determining whether the network port is a terminal device connection port, the tracing module is further configured to determine whether the target audio stream has only one input in the same network device; if the target audio stream is determined to have only one input in the same network equipment, continuously executing the step of determining whether the network port is a terminal equipment connection port until the streaming equipment is determined; and if the target audio stream is determined not to have only one input in the same network equipment, alarming.
The audio stream viewing device provided by the embodiment of the application receives preset operation acting on a link of a topological interface; responding to the preset operation, and acquiring a target network port; and determining the data information of the audio stream corresponding to the target network port based on the target network port and the pre-established corresponding relationship between the network port and the data information of the audio stream, and displaying the data information of the audio stream on the topological interface. After receiving preset operation of a user on the topological interface, port information associated with the link is obtained, and data information of the corresponding audio stream is obtained based on the port information to be displayed, so that the audio stream on the link can be quickly viewed.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working process of the above-described apparatus may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Referring to fig. 10, a block diagram of an electronic device for performing an audio stream viewing method according to a fifth embodiment of the present application is shown, where the electronic device 500 includes a processor 510, a memory 520, and one or more applications, where the one or more applications are stored in the memory 520 and configured to be executed by the one or more processors 510, and the one or more programs are configured to perform the audio stream tracing method.
The electronic device 500 may be a terminal device capable of running an application, such as a smart phone, a tablet computer, an electronic book, or may be a server. The electronic device 500 in the present application may include one or more of the following components: a processor 510, a memory 520, and one or more applications, wherein the one or more applications may be stored in the memory 520 and configured to be executed by the one or more processors 510, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 510 may include one or more processing cores. The processor 510 interfaces with various components throughout the electronic device 500 using various interfaces and lines to perform various functions of the electronic device 500 and process data by executing or performing instructions, programs, code sets, or instruction sets stored in the memory 520 and invoking data stored in the memory 520. Alternatively, the processor 510 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 510 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 510, but may be implemented by a communication chip.
The Memory 520 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 520 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 520 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created during use by the electronic device 500 (e.g., phone books, audio-visual data, chat log data), and so forth.
The electronic device provided by the embodiment of the application acquires the data packet sent by the network device in real time; responding to a selection operation acted on a topological interface, and acquiring a related audio stream, wherein the related audio stream is an audio stream which is determined according to the data packet and corresponds to the selection operation; determining a network path of a target audio stream according to the data packet, wherein the network path is path information between the target audio stream from a streaming device to a receiving device, and the target audio stream is any one of the related audio streams; and outputting the network path at the topological interface. The data packet is directly acquired from the network equipment, the acquired audio stream and the network port are actual paths of the audio stream, the method is more accurate and reliable, the audio stream is traced based on the acquired audio stream and the network port, and the accuracy of tracing the audio stream can be improved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (16)

1. An audio stream viewing method, the method comprising:
receiving a preset operation acted on a link of a topological interface;
responding to the preset operation, and acquiring a target network port, wherein the target network port is a network port associated with the link;
determining data information of the audio stream corresponding to the target network port based on the target network port and a pre-established corresponding relationship between the network port and the data information of the audio stream;
displaying data information of the audio stream on the topological interface;
receiving a designated operation acting on a topological interface displaying data information of the audio stream;
determining data information of a target audio stream according to the specified operation, wherein the target audio stream is an AoIP audio stream;
displaying path information of the target audio stream from the streaming device to the receiving device on a topological interface according to the data information of the target audio stream and the corresponding relation;
the method further comprises the following steps:
determining whether the target audio stream has only one input in the same network device;
if the target audio stream is determined to have only one input in the same network equipment, continuously executing the step of determining whether the network port is a terminal equipment connection port until the streaming equipment is determined;
and if the target audio stream is determined not to have only one input in the same network equipment, alarming.
2. The method according to claim 1, wherein before determining the data information of the audio stream corresponding to the target network port based on the target network port and the pre-established correspondence between the network port and the data information of the audio stream, the method further comprises:
receiving a data packet sent by network equipment;
extracting data information and a network port of the audio stream from the data packet;
and storing the corresponding relation between the data information of the audio stream and the network port.
3. The method according to claim 2, wherein the storing the correspondence between the data information of the audio stream and the network port comprises:
and storing the corresponding relation between the data information of the audio stream and the network port to a database.
4. The method according to claim 3, wherein the determining the data information of the audio stream corresponding to the target network port based on the target network port and a pre-established correspondence between the network port and the data information of the audio stream comprises:
and retrieving the data information of the audio stream corresponding to the target network port in a preset database by taking the target network port as a retrieval condition.
5. The method of claim 1, wherein outputting the data information of the audio stream at the topology interface comprises:
separating data information of the audio stream into input information and output information, the input information including one or more of: an identification, address, and transmission rate of an audio stream input to the network device, the output information including one or more of: an identification, an address, and a transmission rate of an audio stream output from the network device;
and displaying the input information and the output information on the topological interface.
6. The method according to claim 1, wherein the displaying, on a topological interface, path information of the target audio stream from a streaming device to a receiving device according to the data information of the target audio stream and the correspondence comprises:
determining a network port corresponding to the data information of the target audio stream according to the corresponding relation by taking the data information of the target audio stream as a retrieval condition;
filtering the network port according to preset conditions to determine flow sending equipment;
and displaying the path information from the streaming device to the receiving device in the topological interface.
7. The method of claim 6, wherein the filtering the network ports according to the preset condition to determine the streaming device comprises:
determining whether the network port is a terminal equipment connection port;
if the network port is a terminal equipment connection port, determining that the terminal equipment corresponding to the network port is the streaming equipment;
and if the network port is not the terminal equipment connecting port, acquiring another network port connected with the network port, and determining the flow sending equipment until determining that the other network port is the terminal equipment connecting port.
8. An audio stream viewing apparatus, the apparatus comprising:
the receiving module is used for receiving preset operation acted on a link of the topological interface;
a response module, configured to respond to the preset operation, to obtain a target network port, where the target network port is a network port associated with the link;
the determining module is used for determining the data information of the audio stream corresponding to the target network port based on the target network port and the pre-established corresponding relation between the network port and the data information of the audio stream;
the display module is used for displaying the data information of the audio stream on the topological interface;
the audio stream viewing device further comprises a source tracing module, wherein the source tracing module is used for:
receiving a designated operation acting on a topological interface displaying data information of the audio stream;
determining data information of a target audio stream according to the specified operation, wherein the target audio stream is an AoIP audio stream;
displaying path information of the target audio stream from the streaming device to the receiving device on a topological interface according to the data information of the target audio stream and the corresponding relation;
the tracing module is further configured to:
determining whether the target audio stream has only one input in the same network device;
if the target audio stream is only input in the same network equipment, continuously executing the step of determining whether the network port is a terminal equipment connection port until the streaming equipment is determined;
and if the target audio stream is determined not to have only one input in the same network equipment, alarming.
9. The apparatus of claim 8, wherein before determining the data information of the audio stream corresponding to the target network port based on the target network port and a pre-established correspondence between the network port and the data information of the audio stream, the determining module is further configured to:
receiving a data packet sent by network equipment;
extracting data information and a network port of the audio stream from the data packet;
and storing the corresponding relation between the data information of the audio stream and the network port.
10. The apparatus of claim 9, wherein the determining module is further configured to:
and storing the corresponding relation between the data information of the audio stream and the network port to a database.
11. The apparatus of claim 10, wherein the determining module is further configured to:
and retrieving the data information of the audio stream corresponding to the target network port in a preset database by taking the target network port as a retrieval condition.
12. The apparatus of claim 8, wherein the display module is further configured to:
separating data information of the audio stream into input information and output information, the input information including one or more of: an identification, address, and transmission rate of an audio stream input to the network device, the output information including one or more of: an identification, an address, and a transmission rate of an audio stream output from the network device;
and displaying the input information and the output information on the topological interface.
13. The apparatus of claim 8, wherein the tracing module is further configured to:
determining a network port corresponding to the data information of the target audio stream according to the corresponding relation by taking the data information of the target audio stream as a retrieval condition;
filtering the network port according to a preset condition to determine a flow sending device;
and displaying the path information from the streaming device to the receiving device in the topological interface.
14. The apparatus of claim 13, wherein the tracing module is further configured to:
determining whether the network port is a terminal equipment connection port;
if the network port is a terminal equipment connection port, determining that the terminal equipment corresponding to the network port is the streaming equipment;
and if the network port is not the terminal equipment connecting port, acquiring another network port connected with the network port, and determining the flow sending equipment until determining that the other network port is the terminal equipment connecting port.
15. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory electrically connected with the one or more processors;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-7.
16. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 7.
CN202110205122.4A 2021-02-24 2021-02-24 Audio stream viewing method, device, electronic equipment and storage medium Active CN112866284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110205122.4A CN112866284B (en) 2021-02-24 2021-02-24 Audio stream viewing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110205122.4A CN112866284B (en) 2021-02-24 2021-02-24 Audio stream viewing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112866284A CN112866284A (en) 2021-05-28
CN112866284B true CN112866284B (en) 2023-04-18

Family

ID=75990750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110205122.4A Active CN112866284B (en) 2021-02-24 2021-02-24 Audio stream viewing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112866284B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756756A (en) * 2020-06-28 2020-10-09 深圳市信锐网科技术有限公司 Terminal network control method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431435B (en) * 2008-12-17 2012-01-04 武汉烽火网络有限责任公司 Connection-oriented service configuration and management method
GB201109417D0 (en) * 2011-06-06 2011-07-20 Trilogy Comm Ltd Communications device
CN110505439A (en) * 2018-05-18 2019-11-26 杭州海康威视数字技术股份有限公司 Video traffic the Visual Implementation method, apparatus, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756756A (en) * 2020-06-28 2020-10-09 深圳市信锐网科技术有限公司 Terminal network control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112866284A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
US20170324859A1 (en) Information processing method, terminal, and computer-readable storage medium
EP3316139B1 (en) Unified monitoring flow map
CN112671933B (en) Data processing method and system
CN102576281B (en) Methods for interacting with and manipulating information and systems thereof
US20180121032A1 (en) Displaying a complex service topology for monitoring
CN110262370B (en) Batch reading and writing method, device and system of PLC
CN104243590A (en) Resource object recommendation method and device
CN104394475A (en) Streaming media file playing method and media player
CN107741902A (en) Program application detection method and program application detection means
CN111352847A (en) Real-time debugging method and system for mobile application terminal
CN108737204A (en) A kind of acquisition method and communication terminal of network performance information
CN112866284B (en) Audio stream viewing method, device, electronic equipment and storage medium
US20180121329A1 (en) Uninstrumented code discovery
CN117130318B (en) Industrial data acquisition method, device, system and readable storage medium
CN109831335B (en) Data monitoring method, monitoring terminal, storage medium and data monitoring system
CN114257472B (en) Network topology monitoring method, device, equipment and readable storage medium
CN110716789A (en) Data configuration method, readable storage medium and electronic device
CN109698774A (en) Method and device for monitoring device working condition
CN112559278B (en) Method and device for acquiring operation data
CN107995037B (en) Pre-judging method and device for wide area network optimization
CN112135199A (en) Video playing method based on multiple types of video sources and related equipment
CN112787880B (en) Playback data acquisition and flow playback method, device and storage medium
CN114078332A (en) Broadcast control method and system
CN111106977A (en) Data stream detection method, device and storage medium
CN106507446B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal

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