CN114697090A - System, method, device, storage medium and product for acquiring streaming media - Google Patents

System, method, device, storage medium and product for acquiring streaming media Download PDF

Info

Publication number
CN114697090A
CN114697090A CN202210267888.XA CN202210267888A CN114697090A CN 114697090 A CN114697090 A CN 114697090A CN 202210267888 A CN202210267888 A CN 202210267888A CN 114697090 A CN114697090 A CN 114697090A
Authority
CN
China
Prior art keywords
streaming media
media data
server
identifier
media server
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.)
Granted
Application number
CN202210267888.XA
Other languages
Chinese (zh)
Other versions
CN114697090B (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.)
Beijing SoundAI Technology Co Ltd
Original Assignee
Beijing SoundAI 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 Beijing SoundAI Technology Co Ltd filed Critical Beijing SoundAI Technology Co Ltd
Priority to CN202210267888.XA priority Critical patent/CN114697090B/en
Publication of CN114697090A publication Critical patent/CN114697090A/en
Application granted granted Critical
Publication of CN114697090B publication Critical patent/CN114697090B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • H04L63/0236Filtering by address, protocol, port number or service, e.g. IP-address or URL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0281Proxies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/2895Intermediate processing functionally located close to the data provider application, e.g. reverse proxies

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a system, a method, equipment, a storage medium and a product for acquiring streaming media, belonging to the technical field of Internet. The system comprises: the system comprises a first electronic device, a first streaming media server, a reverse proxy server and a second streaming media server for generating streaming media data; the first electronic equipment is used for acquiring streaming media data in a network isolation environment, and the first electronic equipment and the first streaming media server are located in the same local area network; the first streaming media server and the reverse proxy server respectively provide proxy services for the first electronic equipment, and the reverse proxy server is used for providing streaming media service channels for the first streaming media server and the second streaming media server; the reverse proxy server is used for pulling the streaming media data from the second streaming media server and transmitting the pulled streaming media data to the first streaming media server; the first streaming media server is used for transmitting the streaming media data to the first electronic equipment, so that the applicability of the streaming media data is improved.

Description

System, method, device, storage medium and product for acquiring streaming media
Technical Field
The present application relates to the field of internet technologies, and in particular, to a system, a method, a device, a storage medium, and a product for acquiring streaming media.
Background
With the development of internet technology, the application range of the streaming media technology is increasingly wide; the streaming media technology is a technology that compresses a series of streaming media data (such as live data stream or monitoring data stream) and then pushes the compressed streaming media data through the internet to realize instant transmission on the internet, so that a user can obtain the instant streaming media data.
The streaming media data can be obtained from the streaming media server only through the wide area network; in some special network environments (e.g., government affair network environments), because of high requirements for network security, a network firewall and the like are generally set in the network environment, so that devices in the network environment cannot acquire streaming media data.
Disclosure of Invention
The embodiment of the application provides a system, a method, equipment, a storage medium and a product for acquiring streaming media, which can improve the applicability of streaming media data. The technical scheme is as follows:
in one aspect, a system for acquiring streaming media is provided, where the system includes:
the system comprises a first electronic device, a first streaming media server, a reverse proxy server and a second streaming media server for generating streaming media data;
the first electronic device is used for acquiring streaming media data in a network isolation environment, and the first electronic device and the first streaming media server are located in the same local area network;
the first streaming media server and the reverse proxy server respectively provide proxy services for the first electronic device, and the reverse proxy server is used for providing streaming media service channels for the first streaming media server and the second streaming media server;
the reverse proxy server is configured to pull streaming media data from the second streaming media server, and transmit the pulled streaming media data to the first streaming media server;
the first streaming media server is used for transmitting the streaming media data to the first electronic equipment.
In some embodiments, the first electronic device is configured to send a first acquisition request to the first streaming media server, where a response port of the first acquisition request is the first streaming media server, and the first acquisition request carries a first port identifier of the first streaming media server and an equipment identifier of a second electronic device that collects streaming media data;
the first streaming media server is configured to map the first port identifier as a second port identifier based on a first port mapping configuration, and generate a second acquisition request based on the second port identifier and the device identifier, where a response port of the second acquisition request is the reverse proxy server, and the first port mapping configuration is used to represent a mapping relationship between a port of the first streaming media server and a port of the reverse proxy server;
the reverse proxy server is configured to map the second port identifier to a third port identifier based on a second port mapping configuration, and generate a third acquisition request based on the third port identifier and the device identifier, where a response port of the third acquisition request is the second streaming media server, and the second port mapping configuration is used to represent a mapping relationship between a port of the reverse proxy server and a port of the second streaming media server;
and the second streaming media server is configured to acquire streaming media data acquired by the second electronic device corresponding to the device identifier based on the third acquisition request, and transmit the acquired streaming media data to the reverse proxy server.
In some embodiments, the system further comprises at least one second electronic device for acquiring streaming media data;
the second streaming media server is configured to determine an address identifier of streaming media data to be acquired based on the device identifier, and acquire streaming media data corresponding to the address identifier from the streaming media data acquired by the at least one second electronic device based on the address identifier.
In some embodiments, the second electronic device is configured to generate an application identifier of the streaming media data based on the service identifier and the device identifier corresponding to the collected streaming media data, generate an address identifier of the streaming media data based on the application identifier and a channel identifier for collecting the streaming media data, and send the address identifier and the collected streaming media data to the second streaming media server.
In some embodiments, the second streaming server is configured to actively push the streaming media data to the reverse proxy server;
the reverse proxy server is configured to actively push the streaming media data to the first streaming media server.
In some embodiments, a network isolation device is disposed between the first streaming media server and the reverse proxy server, and a network isolation configuration is disposed in the network isolation device, and is configured to restrict streaming media data passing through the network isolation device;
the reverse proxy server is used for transmitting the pulled streaming media data to the network isolation device;
the network isolation device is configured to verify the streaming media data based on the network isolation configuration, and transmit the streaming media data to the first streaming media server if it is determined that the streaming media data is allowed to pass.
In some embodiments, a network switching configuration is further provided in the network isolation device, and the network switching configuration is used for performing network switching on the limited streaming media data, so that the converted streaming media data is allowed to pass through;
the network isolation device is further configured to perform network conversion on the streaming media data based on the network conversion configuration and transmit the converted streaming media data to the first streaming media server when it is determined that the streaming media data is not allowed to pass through.
In another aspect, a method for acquiring streaming media is provided, where the method includes:
the second streaming media server generates streaming media data;
the reverse proxy server pulls streaming media data from the second streaming media server and transmits the pulled streaming media data to the first streaming media server, the first streaming media server and the reverse proxy server respectively provide proxy services for the first electronic device, and the reverse proxy server is used for providing streaming media service channels for the first streaming media server and the second streaming media server;
the first streaming media server transmits the streaming media data to first electronic equipment, the first electronic equipment is equipment used for acquiring the streaming media data in a network isolation environment, and the first electronic equipment and the first streaming media server are located in the same local area network.
In some embodiments, the reverse proxy server pulls streaming media data from the second streaming media server, and transmits the pulled streaming media data to the first streaming media server, including:
the first electronic equipment sends a first acquisition request to the first streaming media server, wherein a response port of the first acquisition request is the first streaming media server, and the first acquisition request carries a first port identifier of the first streaming media server and an equipment identifier of second electronic equipment for acquiring streaming media data;
the first streaming media server maps the first port identifier to a second port identifier based on a first port mapping configuration, and generates a second acquisition request based on the second port identifier and the equipment identifier, wherein a response port of the second acquisition request is the reverse proxy server, and the first port mapping configuration is used for representing a mapping relationship between a port of the first streaming media server and a port of the reverse proxy server;
the reverse proxy server maps the second port identifier to a third port identifier based on a second port mapping configuration, and generates a third acquisition request based on the third port identifier and the device identifier, where a response port of the third acquisition request is the second streaming media server, and the second port mapping configuration is used to represent a mapping relationship between a port of the reverse proxy server and a port of the second streaming media server;
and the second streaming media server acquires streaming media data acquired by the second electronic equipment corresponding to the equipment identifier based on the third acquisition request, and transmits the acquired streaming media data to the reverse proxy server.
In some embodiments, the obtaining, by the second streaming media server, streaming media data collected by a second electronic device corresponding to the device identifier based on the third obtaining request includes:
the second streaming media server determines an address identifier of streaming media data to be acquired based on the device identifier, and acquires the streaming media data corresponding to the address identifier from the streaming media data acquired by at least one second electronic device based on the address identifier, wherein the at least one second electronic device is used for acquiring the streaming media data.
In some embodiments, the method further comprises:
the second electronic device generates an application identifier of the streaming media data based on the acquired service identifier and the device identifier corresponding to the streaming media data, generates an address identifier of the streaming media data based on the application identifier and a channel identifier of the streaming media data, and sends the address identifier and the acquired streaming media data to the second streaming media server.
In some embodiments, the reverse proxy server pulling streaming media data from the second streaming media server, and transmitting the pulled streaming media data to the first streaming media server, includes:
the second streaming media server actively pushes the streaming media data to the reverse proxy server;
and the reverse proxy server actively pushes the streaming media data to the first streaming media server.
In some embodiments, a network isolation device is disposed between the first streaming media server and the reverse proxy server, and a network isolation configuration is disposed in the network isolation device, and is configured to restrict streaming media data passing through the network isolation device;
the reverse proxy server transmits the pulled streaming media data to a first streaming media server, and the method comprises the following steps:
the reverse proxy server transmits the pulled streaming media data to the network isolation device;
the network isolation device verifies the streaming media data based on the network isolation configuration, and transmits the streaming media data to the first streaming media server under the condition that the streaming media data is determined to be allowed to pass through.
In some embodiments, a network switching configuration is further provided in the network isolation device, and the network switching configuration is used for performing network switching on the limited streaming media data, so that the converted streaming media data is allowed to pass through;
the method further comprises the following steps:
and the network isolation device performs network conversion on the streaming media data based on the network conversion configuration under the condition that the streaming media data is determined not to be allowed to pass through, and transmits the converted streaming media data to the first streaming media server.
In another aspect, an apparatus for acquiring streaming media is provided, where the apparatus for acquiring streaming media includes one or more processors and one or more memories, where at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the method for acquiring streaming media according to any of the above implementations.
In another aspect, a computer-readable storage medium is provided, where at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the method for acquiring streaming media according to any of the above implementation manners.
In another aspect, a computer program product is provided, where the computer program product includes computer program code, the computer program code is stored in a computer readable storage medium, and a processor of an electronic device reads the computer program code from the computer readable storage medium, and the processor executes the computer program code, so that the electronic device executes the method for acquiring streaming media according to any of the above-mentioned implementation manners.
The embodiment of the application provides a streaming media acquisition system, because the system establishes a first streaming media server under the same local area network for electronic equipment under a network isolation environment, and establishes a reverse proxy server between the first streaming media server and a second streaming media server generating streaming media data, the first streaming media server can pull the streaming media data from the second streaming media server through the reverse proxy server and transmit the streaming media data to first electronic equipment, so that the electronic equipment under the network isolation environment can also acquire the streaming media data, application scenes of the streaming media data are expanded, and further the applicability of the streaming media data is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an acquisition system for streaming media according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a system for acquiring streaming media according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a system for acquiring streaming media according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a method for acquiring streaming media according to an embodiment of the present application;
fig. 5 is a flowchart of a method for acquiring streaming media according to an embodiment of the present application;
fig. 6 is a flowchart of a method for acquiring streaming media according to an embodiment of the present application;
fig. 7 is a block diagram of a server provided in an embodiment of the present application;
fig. 8 is a block diagram of a terminal according to an embodiment of the present application.
The reference numerals in the figures are denoted respectively by:
10-a first electronic device;
20-a first streaming media server;
30-reverse proxy server;
40-a second streaming media server;
50-a second electronic device;
60-network isolation means.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be noted that the user information (including but not limited to user device information, user personal information, etc.) referred to in the present application is information authorized by the user or sufficiently authorized by each party.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The present application provides a system for acquiring streaming media, and referring to fig. 1, the system includes:
a first electronic device 10, a first streaming media server 20, a reverse proxy server 30 and a second streaming media server 40 for generating streaming media data.
The first electronic device 10 is a device for acquiring streaming media data in a network isolation environment, and the first electronic device 10 and the first streaming media server 20 are located in the same local area network. The first streaming media server 20 and the reverse proxy server 30 provide proxy services for the first electronic device 10, respectively, and the reverse proxy server 30 is used to provide streaming media service channels for the first streaming media server 20 and the second streaming media server 40. The reverse proxy server 30 is configured to pull streaming media data from the second streaming media server 40, and transmit the pulled streaming media data to the first streaming media server 20. And the first streaming media server 20 is used for transmitting the streaming media data to the first electronic equipment 10.
The embodiment of the application provides a streaming media acquisition system, because the system establishes a first streaming media server 20 under the same local area network for electronic equipment under a network isolation environment, and establishes a reverse proxy server 30 between the first streaming media server 20 and a second streaming media server 40 generating streaming media data, the first streaming media server 20 can pull the streaming media data from the second streaming media server 40 through the reverse proxy server 30 and transmit the streaming media data to a first electronic device 10, so that the electronic equipment under the network isolation environment can also acquire the streaming media data, the application scene of the streaming media data is expanded, and further the applicability of the streaming media data is improved.
The network isolation environment is an environment in which two or more routable networks exchange data through a non-routable protocol to achieve an isolation target, and the network isolation can achieve physical isolation of the two networks and can also exchange data in a secure network environment. Alternatively, the network isolation environment is implemented by an isolation product such as a firewall or a gatekeeper. The network isolation environment comprises an environment for network isolation in order to ensure network security in the industries such as government affairs networks, aerospace military, finance, telecommunication, energy, media, medical treatment, education, large-scale enterprises and the like. The streaming media data includes at least one of sound stream data, video stream data, text stream data, image stream data, animation stream data, and the like, which is not particularly limited in the embodiment of the present application. Optionally, the streaming media data is video stream data, and the video stream data may be live video stream data or monitored video stream data.
The first electronic device 10 and the first streaming media server 20 are located in the same local area network, and the first electronic device 10 and the first streaming media server 20 perform Data transmission through the local area network, where a Data transmission manner in the local area network includes at least one of ethernet transmission, ATM (Asynchronous Transfer Mode) transmission, FDDI (Fiber Distributed Data Interface) transmission, bluetooth transmission, and the like, and this is not particularly limited in this embodiment of the application. The second streaming server 40 is a server in a wide area network, and the first streaming server 20 and the second streaming server 40 cannot directly communicate to transmit streaming media data.
Optionally, the first electronic device 10 is provided as at least one of a terminal or a server; in some embodiments, the first electronic device 10 is provided as a terminal, on which a target application for displaying streaming media data is installed, the first streaming media server 20 is a background server of the target application, and the first electronic device 10 implements data transmission with the first streaming media server 20 through the target application.
In some embodiments, the first electronic device 10 is configured to send a first get request to the first streaming media server 20, and a response port of the first get request is the first streaming media server 20. The first acquisition request carries the first port identifier of the first streaming media server 20 and the device identifier of the second electronic device 50 that collects the streaming media data.
Wherein the device identification is used to mark the second electronic device 50; optionally, the device identifier is at least one of a SN (Serial Number) code of the device, a name of the device, a production lot of the device, location information of the device, and the like, which is not particularly limited in this embodiment of the application. The first port identification is used to mark the port of the first streaming media server 20; optionally, the first port of the first streaming media server 20 is identified as port number, such as the first port being identified as port number 8800.
Accordingly, the first streaming media server 20 is configured to map the first port identifier to a second port identifier based on the first port mapping configuration, generate a second acquisition request based on the second port identifier and the device identifier, where a response port of the second acquisition request is the reverse proxy server 30, and the first port mapping configuration is configured to represent a mapping relationship between a port of the first streaming media server 20 and a port of the reverse proxy server 30.
Wherein the second port identifies the port used to label reverse proxy server 30; optionally, the second port of the reverse server is identified as the port number, such as the second port is identified as port number 8801; if the first port identification is 8800, the first port mapping established by the first streaming media server 20 for the first port identification and the second port identification is configured to map the first port identification 8800 to the second port identification 8801, so that the access of the first electronic device 10 to the first streaming media server 20 is forwarded to the reverse proxy server 30 corresponding to the second port identification 8801.
Correspondingly, the reverse proxy server 30 is configured to map the second port identifier to a third port identifier based on the second port mapping configuration, generate a third acquisition request based on the third port identifier and the device identifier, where a response port of the third acquisition request is the second streaming media server 40, and the second port mapping configuration is used to represent a mapping relationship between a port of the reverse proxy server 30 and a port of the second streaming media server 40.
Wherein the third port identifies a port used to mark the second streaming server 40; optionally, the third port of the second streaming media server 40 is identified as port number, such as the third port being identified as port number 8802. If the second port identification 8801, the reverse proxy server 30 establishes a second port mapping configuration for the second port identification 8801 and the third port identification 8802, so that access to the reverse proxy server 30 by the first streaming media server 20 is forwarded to the second streaming media server 40 corresponding to the third port identification 8802. Alternatively, reverse proxy server 30 is a nginx (a proxy server) server, which is not specifically limited in this application.
Accordingly, the second streaming media server 40 is configured to obtain, based on the third obtaining request, streaming media data collected by the second electronic device 50 corresponding to the device identifier, and transmit the obtained streaming media data to the reverse proxy server 30.
In this embodiment of the present application, by setting the port mapping configuration, when receiving an acquisition request of a streaming media of a first electronic device 10, a first streaming media server 20 can sequentially map and convert the request, so that the request can be sequentially forwarded to a reverse proxy server 30 and a second streaming media server 40, and then acquire streaming media data corresponding to the request from the second streaming media server 40, so that the first electronic device 10 can also acquire the streaming media data in a network isolation environment.
In this embodiment of the present application, since the respective port identifiers of the multiple servers can effectively mark the first streaming media server 20, the reverse proxy server 30, and the second streaming media server 40, the port identifier between the first streaming media server 20 and the reverse proxy server 30 is configured by mapping, and the port identifier between the reverse proxy server 30 and the second streaming media server 40 is configured by mapping, so that the acquisition request sent by the first electronic device 10 to the first streaming media server 20 can be sequentially transmitted to the second streaming media server 40 through the port mapping configuration to pull the streaming media data corresponding to the request, so that the first electronic device 10 in a network isolation environment can acquire the streaming media data, and further, the flexibility of acquiring the streaming media data is improved.
In some embodiments, referring to fig. 2, the system further comprises at least one second electronic device 50, the at least one second electronic device 50 for acquiring streaming media data; and the second streaming media server 40 is configured to determine an address identifier of streaming media data to be acquired based on the device identifier, and acquire streaming media data corresponding to the address identifier from streaming media data acquired by at least one second electronic device 50 based on the address identifier.
In one implementation manner, the second streaming media server 40 stores a corresponding relationship between the device identifier and the address identifier, and the second streaming media server 40 determines the address identifier corresponding to the device identifier based on the device identifier and the corresponding relationship. It should be noted that, the first electronic device 10 generally obtains streaming media data collected by a certain second electronic device 50 for displaying, and the device identifier can effectively distinguish multiple second electronic devices 50, so that the streaming media data is requested to be obtained based on the device identifier, and the corresponding streaming media data can be accurately found based on the device identifier; and the address identifier is determined based on the device identifier and the corresponding relation by establishing the corresponding relation between the device identifier and the address identifier, so that the streaming media data to be acquired can be found more accurately.
In one implementation, the second electronic device 50 is configured to generate an application identifier of the streaming media data based on a service identifier and a device identifier corresponding to the collected streaming media data, generate an address identifier of the streaming media data based on the application identifier and a channel identifier of the collected streaming media data, and send the address identifier and the collected streaming media data to the second streaming media server 40.
The service identifier is determined based on a service attribute corresponding to the streaming media data, and the service identifier is used to indicate at least one of a name, a topic, a category, content, a location, and the like of an item to which the streaming media data belongs, for example, the service identifier may be a city name, a cell name, a building name, and the like to which the streaming media data belongs. Taking the streaming media data as the monitoring data stream in the elevator as an example, the corresponding service identifier may be at least one of a city name, a cell name, a building name, a stair number name, and the like to which the streaming media data belongs, and is not limited in detail herein.
Wherein the channel identifier is used for marking a channel for transmitting the streaming media data; the channel identifier may be a channel name, such as channel 1, channel 2, etc., set by the second electronic device from the factory; the channel identification may also be a custom named channel name. Such as a channel name determined based on a name of a location where the second electronic device 50 is located or based on a codestream of streaming media data; alternatively, for the monitoring devices in the elevator, the corresponding passage identifier may be the elevator number where the monitoring device is located. Optionally, a channel name is determined based on the main stream and the sub stream, the channel of the main stream is used for transmitting streaming media data with high resolution, and the channel of the sub stream is used for transmitting streaming media data with low resolution.
The address identification is used for marking the address of the streaming media data, and the address identification can be an address which can be accessed by a browser; optionally, the application identifier and the channel identifier are spliced to obtain an address identifier, and the arrangement sequence of the application identifier and the channel identifier is not particularly limited; or the key identification words in the application identification and the channel identification are spliced to obtain the address identification.
In some embodiments, the second electronic device 50 is provided as a terminal and a background server of the terminal, and the terminal and the background server are connected through a local area network or a wide area network. The terminal is used for collecting the streaming media data and transmitting the streaming media data to the background server, and the background server transmits the streaming media data to the second streaming media server 40. In one implementation, the other electronic devices are connected to the background server through a local area network, and the other electronic devices can obtain the streaming media data from the background server for offline display. Optionally, if the streaming media data is monitored video stream data, the second electronic device 50 is provided as a monitoring device; or the streaming media data is live video stream data, the second electronic device 50 is provided as a live device or a camera device.
In the embodiment of the application, the application identifier is determined based on the service identifier and the device identifier, and then the address identifier is determined based on the application identifier and the channel identifier, because the service identifier, the device identifier, the channel identifier and the like further limit the address range of the streaming media data in sequence, the address identifier of the streaming media data is determined based on the service identifier, the device identifier and the channel identifier, so that the service item to which the streaming media data belongs can be represented based on the address identifier, a plurality of streaming media data can be accurately distinguished based on the address identifier, and further the streaming media data to be acquired can be accurately found based on the address identifier.
In some embodiments, the system further includes a third electronic device, the third electronic device is connected to the second streaming media server 40, and the third electronic device is a device in an open network environment and used for displaying streaming media data; a third electronic device, configured to send an acquisition request to the second streaming server 40; and the second streaming media server 40 is configured to return streaming media data corresponding to the acquisition request to the third electronic device based on the acquisition request.
In some embodiments, a second streaming server 40 for actively pushing streaming media data to the reverse proxy server 30; and the reverse proxy server 30 is used for actively pushing the streaming media data to the first streaming media server 20.
In one implementation, after acquiring streaming media data from the second electronic device 50, the second streaming media server 40 pushes the streaming media data to the reverse proxy server 30 in real time, the reverse proxy server 30 pushes the streaming media data to the first streaming media server 20 in real time, and the first streaming media server 20 is configured to cache the streaming media data. In response to receiving the fourth acquisition request of the first electronic device 10, the first streaming media server 20 transmits streaming media data corresponding to the fourth acquisition request to the first electronic device 10.
In one implementation, the second electronic device 50 sends a first data packet to the second streaming media server 40, where the first data packet carries the streaming media data and the third port identifier. And the second streaming media server 40 is configured to map the third port identifier to a second port identifier based on the second port mapping configuration, generate a second data packet based on the second port mapping identifier and the streaming media data, and send the second data packet to the reverse proxy server 30. The reverse proxy server 30 is configured to map the second port identifier to the first port identifier based on the first port mapping configuration, generate a third data packet based on the first port identifier and the streaming media data, and push the third data packet to the first streaming media server 20. In this implementation manner, any data packet further carries an address identifier of the streaming media data and a device identifier corresponding to the address identifier, so that the first electronic device 10 can obtain the streaming media data corresponding to the address identifier based on the device identifier.
In this embodiment, the second streaming media server 40 actively pushes the streaming media data to the first streaming media server 20, so that when the first electronic device 10 requests to acquire the streaming media data, the first electronic device 10 can directly acquire the streaming media data from the first streaming media server 20 in the same local area network as the first electronic device, thereby avoiding a process of sending requests to the reverse proxy server 30 and the second streaming media server 40, reducing a flow, and improving efficiency of the first electronic device 10 in acquiring the streaming media data.
In some embodiments, referring to fig. 3, a network isolation device 60 is disposed between the first streaming media server 20 and the reverse proxy server 30, and a network isolation configuration is disposed in the network isolation device 60 and is used for limiting streaming media data passing through the network isolation device 60. A reverse proxy server 30, configured to transmit the pulled streaming media data to the network isolation device 60; and a network isolation device 60, configured to verify the streaming media data based on the network isolation configuration, and transmit the streaming media data to the first streaming media server 20 if it is determined that the streaming media data is allowed to pass through.
Optionally, the network isolation device 60 is a gatekeeper or a firewall, etc. The network isolation configuration is used to determine which devices or data are allowed to pass through the network isolation device 60; optionally, the network isolation configuration includes data of servers of which ports are allowed to pass through, data of servers of which IP addresses are allowed to pass through, streaming media data of which protocols are used are allowed to pass through, and the like, and is not particularly limited herein. In some embodiments, the network isolation device 60 opens the access link corresponding to the port allowed through the network isolation device 60 based on the gatekeeper isolation configuration to allow the reverse proxy server 30 of the port to access the first streaming media server 20 or allow the first streaming media server 20 to access the reverse proxy server 30 corresponding to the port.
In one implementation, when there is no data transfer between the local area network and the wide area network, the first streaming media server 20 in the local area network, the reverse proxy server 30 in the wide area network, and the network isolation device 60 are completely disconnected, and there is no connection between the three before. When the network isolated device 60 is connected to the first streaming media server 20, the connection between the network isolated device 60 and the reverse proxy server 30 is disconnected; when the network isolation device 60 is connected to the reverse proxy server 30, the connection between the network isolation device 60 and the first streaming media server 20 is disconnected, and the connection is repeated, so that data exchange between the local area network and the wide area network is completed.
In the embodiment of the application, the opening of the access link between the wide area network end and the local area network end is realized through network isolation configuration; the network isolation device 60 prevents the channels in the data transmission process from being directly connected at any time, so that the possibility that any data which is not allowed to penetrate through the network isolation device 60 is eliminated through the network isolation device 60, all the streaming media data transmitted to the first streaming media server 20 are safe data, namely all network connections which have potential attack possibility to the local area network are isolated and blocked through the network isolation device 60, an external attacker cannot directly invade, attack or damage the local area network, and the safety of the first streaming media server 20 and the first electronic device 10 in the local area network is ensured.
In some embodiments, a network switching configuration is further provided in the network isolation device 60, and the network switching configuration is configured to perform network switching on the limited streaming media data, so that the converted streaming media data is allowed to pass through. The network isolation device 60 is further configured to perform network conversion on the streaming media data based on the network conversion configuration and transmit the converted streaming media data to the first streaming media server 20 in the case that it is determined that the streaming media data is not allowed to pass through.
In one implementation, after receiving the streaming media data, the network isolation device 60 removes protocol information of the streaming media data based on network conversion configuration, repackages the data into fragments according to a private protocol, and performs security inspection on the reassembled data, such as network protocol detection and code scanning, to determine whether the data meets security requirements, so as to implement effective network conversion on the streaming media data. The private protocol refers to a hardware read-write protocol for transmitting data. In the embodiment of the present application, the network isolation apparatus 60 implements data conversion in an information ferrying manner, so that only information explicitly allowed to be transmitted can be passed, and thus, network attacks can be prevented from being transmitted to the first streaming media server 20 and the first electronic device 10 in a network isolation environment through streaming media data.
In the embodiment of the application, the multi-layer forwarding agent is configured for the streaming media server service link, so that the electronic device in the network isolation environment can also access the streaming media data in the internet. For example, the first electronic device 10 is an electronic device in a government affair network environment, the second electronic device 50 is a monitoring device in the aspects of traffic, an elevator, a liquefied gas station, and the like, and the streaming media data is a monitoring video stream.
The embodiment of the application provides a streaming media acquisition system, because the system establishes a first streaming media server under the same local area network for electronic equipment under a network isolation environment, and establishes a reverse proxy server between the first streaming media server and a second streaming media server generating streaming media data, the first streaming media server can pull the streaming media data from the second streaming media server through the reverse proxy server and transmit the streaming media data to first electronic equipment, so that the electronic equipment under the network isolation environment can also acquire the streaming media data, application scenes of the streaming media data are expanded, and further the applicability of the streaming media data is improved.
The present application provides a method for acquiring streaming media, and referring to fig. 4, the method includes:
step 401: the second streaming server generates streaming media data.
Step 402: and the reverse proxy server pulls the streaming media data from the second streaming media server and transmits the pulled streaming media data to the first streaming media server.
The first streaming media server and the reverse proxy server provide proxy services for the first electronic device, respectively, and the reverse proxy server is used for providing streaming media service channels for the first streaming media server and the second streaming media server.
Step 403: the first streaming media server transmits streaming media data to the first electronic device, the first electronic device is a device used for acquiring the streaming media data in a network isolation environment, and the first electronic device and the first streaming media server are located in the same local area network.
In some embodiments, the reverse proxy server pulling streaming media data from the second streaming media server, and transmitting the pulled streaming media data to the first streaming media server, includes:
the first electronic equipment sends a first acquisition request to the first streaming media server, a response port of the first acquisition request is the first streaming media server, and the first acquisition request carries a first port identifier of the first streaming media server and an equipment identifier of second electronic equipment for acquiring streaming media data. The first streaming media server maps the first port identification into a second port identification based on the first port mapping configuration, generates a second acquisition request based on the second port identification and the equipment identification, and a response port of the second acquisition request is a reverse proxy server. The reverse proxy server maps the second port identifier to a third port identifier based on the second port mapping configuration, generates a third acquisition request based on the third port identifier and the device identifier, and a response port of the third acquisition request is the second streaming media server, and the second port mapping configuration is used for representing a mapping relationship between a port of the reverse proxy server and a port of the second streaming media server. And the second streaming media server acquires streaming media data acquired by the second electronic equipment corresponding to the equipment identifier based on the third acquisition request, and transmits the acquired streaming media data to the reverse proxy server.
In some embodiments, the obtaining, by the second streaming media server, streaming media data collected by the second electronic device corresponding to the device identifier based on the third obtaining request includes:
the second streaming media server determines an address identifier of streaming media data to be acquired based on the device identifier, and acquires the streaming media data corresponding to the address identifier from the streaming media data acquired by at least one second electronic device based on the address identifier, wherein the at least one second electronic device is used for acquiring the streaming media data.
In some embodiments, the method further comprises:
the second electronic device generates an application identifier of the streaming media data based on the service identifier and the device identifier corresponding to the acquired streaming media data, generates an address identifier of the streaming media data based on the application identifier and the channel identifier of the acquired streaming media data, and sends the address identifier and the acquired streaming media data to the second streaming media server.
In some embodiments, the reverse proxy server pulling streaming media data from the second streaming media server, and transmitting the pulled streaming media data to the first streaming media server, includes:
the second streaming media server actively pushes streaming media data to the reverse proxy server;
the reverse proxy server actively pushes the streaming media data to the first streaming media server.
In some embodiments, a network isolation device is disposed between the first streaming media server and the reverse proxy server, and a network isolation configuration is disposed in the network isolation device, and is used for limiting streaming media data passing through the network isolation device;
the reverse proxy server transmits the pulled streaming media data to the first streaming media server, and the method comprises the following steps:
the reverse proxy server transmits the pulled streaming media data to the network isolation device;
the network isolation device verifies the streaming media data based on the network isolation configuration, and transmits the streaming media data to the first streaming media server under the condition that the streaming media data is determined to be allowed to pass through.
In some embodiments, a network conversion configuration is further provided in the network isolation device, and the network conversion configuration is used for performing network conversion on the limited streaming media data, so that the converted streaming media data is allowed to pass through;
the method further comprises the following steps:
and under the condition that the streaming media data are determined not to be allowed to pass through, the network isolation device performs network conversion on the streaming media data based on the network conversion configuration and transmits the converted streaming media data to the first streaming media server.
The embodiment of the application provides a method for acquiring streaming media, and the method is used for building a first streaming media server under the same local area network for electronic equipment under a network isolation environment, and the first streaming media server can pull streaming media data from a second streaming media server generating the streaming media data through a reverse proxy server, so that the first streaming media server can pull the streaming media data and transmit the streaming media data to first electronic equipment.
The application provides a method for acquiring streaming media, and referring to fig. 5, the method includes:
step 501: the second streaming server generates streaming media data.
Step 502: the first electronic equipment sends a first acquisition request to the first streaming media server.
The first electronic equipment and the first streaming media server are located in the same local area network. The response port of the first acquisition request is the first streaming media server, and the first acquisition request carries the first port identifier of the first streaming media server and the equipment identifier of the second electronic equipment for acquiring streaming media data.
Step 503: the first streaming media server receives the first acquisition request, maps the first port identifier to a second port identifier based on the first port mapping configuration, and generates a second acquisition request based on the second port identifier and the equipment identifier.
The response port of the second acquisition request is a reverse proxy server, and the first port mapping configuration is used for representing the mapping relationship between the port of the first streaming media server and the port of the reverse proxy server. The reverse proxy server is used for providing a streaming media service channel for the first streaming media server and the second streaming media server.
Step 504: the first streaming media server sends a second acquisition request to the reverse proxy server.
Step 505: and the reverse proxy server receives the second acquisition request, maps the second port identifier into a third port identifier based on the second port mapping configuration, and generates a third acquisition request based on the third port identifier and the equipment identifier.
And the second port mapping is configured to represent a mapping relationship between a port of the reverse proxy server and a port of the second streaming media server. And the response port of the third acquisition request is the second streaming media server.
Step 506: and the reverse proxy server sends a third acquisition request to the second streaming media server.
Step 507: and the second streaming media server receives the third acquisition request, and acquires streaming media data acquired by the second electronic equipment corresponding to the equipment identifier based on the third acquisition request.
In some embodiments, the second streaming media server determines an address identifier of streaming media data to be acquired based on the device identifier, and acquires streaming media data corresponding to the address identifier from the streaming media data acquired by at least one second electronic device based on the address identifier, where the at least one second electronic device is configured to acquire the streaming media data.
The second electronic device generates an application identifier of the streaming media data based on the service identifier and the device identifier corresponding to the acquired streaming media data, generates an address identifier of the streaming media data based on the application identifier and the channel identifier of the acquired streaming media data, and sends the address identifier and the acquired streaming media data to the second streaming media server.
Step 508: and the second streaming media server sends streaming media data corresponding to the third acquisition request to the reverse proxy server.
Step 509: the reverse proxy server receives the streaming media data and transmits the streaming media data to the first streaming media server.
In some embodiments, a network isolation device is disposed between the first streaming media server and the reverse proxy server, and a network isolation configuration is disposed in the network isolation device, and is configured to restrict streaming media data passing through the network isolation device. Then the steps include:
the reverse proxy server transmits the pulled streaming media data to the network isolation device; the network isolation device verifies the streaming media data based on the network isolation configuration, and transmits the streaming media data to the first streaming media server under the condition that the streaming media data is determined to be allowed to pass through.
In some embodiments, a network conversion configuration is further provided in the network isolation device, and the network conversion configuration is used for performing network conversion on the limited streaming media data, so that the converted streaming media data is allowed to pass through; and the network isolation device performs network conversion on the streaming media data based on the network conversion configuration under the condition of determining that the streaming media data is not allowed to pass through, and transmits the converted streaming media data to the first streaming media server.
Step 510: the first streaming media server receives the streaming media data and transmits the streaming media data to the first electronic equipment.
Step 511: the first electronic equipment receives the streaming media data and displays the streaming media data.
The method includes that after a first electronic device in a network isolation environment sends a request for acquiring streaming media data, a first streaming media server in the same local area network can forward and map the request to a second streaming media server which generates the streaming media data through a reverse proxy server to acquire the streaming media data, so that the electronic device in the network isolation environment can acquire the streaming media data, application scenes of the streaming media data are expanded, and applicability of the streaming media data is improved.
The application provides a method for acquiring streaming media, and referring to fig. 6, the method includes:
step 601: the second streaming server generates streaming media data.
Step 602: the second streaming media server actively pushes the streaming media data to the reverse proxy server.
Step 603: and the reverse proxy server receives the streaming media data and actively pushes the streaming media data to the first streaming media server.
In some embodiments, a network isolation device is disposed between the first streaming media server and the reverse proxy server, and a network isolation configuration is disposed in the network isolation device, and is configured to restrict streaming media data passing through the network isolation device. Then the step includes:
the reverse proxy server transmits the pulled streaming media data to the network isolation device; the network isolation device verifies the streaming media data based on the network isolation configuration, and transmits the streaming media data to the first streaming media server under the condition that the streaming media data is determined to be allowed to pass through.
In some embodiments, a network conversion configuration is further provided in the network isolation device, and the network conversion configuration is used for performing network conversion on the limited streaming media data, so that the converted streaming media data is allowed to pass through; and under the condition that the streaming media data are determined not to be allowed to pass through, the network isolation device performs network conversion on the streaming media data based on the network conversion configuration and transmits the converted streaming media data to the first streaming media server.
Step 604: the first streaming media server receives streaming media data.
Step 605: and the first electronic equipment sends a fourth acquisition request to the first streaming media server.
Step 606: and the first streaming media server receives the fourth acquisition request and determines streaming media data corresponding to the fourth acquisition request.
Step 607: and the first streaming media server transmits streaming media data corresponding to the fourth acquisition request to the first electronic equipment.
Step 608: the first electronic equipment receives the streaming media data and displays the streaming media data.
The embodiment of the application provides a method for acquiring streaming media, and the method actively pushes streaming media data to a first streaming media server through a reverse proxy server after a second streaming media server generates streaming media data, so that when a first electronic device requests to acquire the streaming media data, the first electronic device can directly acquire the streaming media data from the first streaming media data in the same local area network, thereby avoiding a process of sequentially sending requests to the reverse proxy server and the second streaming media server, and further improving the efficiency of the first electronic device for acquiring the streaming media data.
The embodiment of the present application further provides a device for acquiring streaming media, where the device for acquiring streaming media includes one or more processors and one or more memories, where at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the method for acquiring streaming media described above.
In some embodiments, the acquisition device is specifically configured as a second streaming media server, a reverse proxy server, and a first streaming media server. Fig. 7 is a block diagram of a server 700 provided by the embodiments of the present disclosure, where the server 700 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 701 and one or more memories 702, where the memories 702 are used for storing executable program codes, and the processors 701 are configured to execute the executable program codes to implement the method for acquiring streaming media provided by the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, a storage medium including a program code, for example, a memory 702 including a program code, which is executable by a processor 701 of the server 700 to perform the above-mentioned acquisition method of the streaming media, is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium may be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In some embodiments, the acquisition device is further configured as a first electronic device and a second electronic device, both provided as terminals. Fig. 8 shows a block diagram of a terminal 800 according to an exemplary embodiment of the present application. The terminal 800 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The terminal 800 may also be referred to as a user equipment, portable terminal, laptop terminal, desktop terminal, or the like, among other names.
In general, the terminal 800 includes: a processor 801 and a memory 802.
Processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 801 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit) which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 801 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 802 may include one or more computer-readable storage media, which may be non-transitory. Memory 802 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 802 is used for storing at least one program code for execution by the processor 801 to implement the streaming media acquisition method provided by the method embodiments of the present application.
In some embodiments, the terminal 800 may further include: a peripheral interface 803 and at least one peripheral. The processor 801, memory 802 and peripheral interface 803 may be connected by bus or signal lines. Various peripheral devices may be connected to peripheral interface 803 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a display screen 805, a camera assembly 806, an audio circuit 807, a positioning assembly 808, and a power supply 809.
The peripheral interface 803 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, memory 802, and peripheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral interface 803 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 804 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 804 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 804 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 804 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 805 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 805 is a touch display, the display 805 also has the ability to capture touch signals on or above the surface of the display 805. The touch signal may be input to the processor 801 as a control signal for processing. At this point, the display 805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 805 may be one, disposed on a front panel of the terminal 800; in other embodiments, the display 805 may be at least two, respectively disposed on different surfaces of the terminal 800 or in a folded design; in other embodiments, the display 805 may be a flexible display disposed on a curved surface or a folded surface of the terminal 800. Even further, the display 805 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 805 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 806 is used to capture images or video. Optionally, camera assembly 806 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 806 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 801 for processing or inputting the electric signals to the radio frequency circuit 804 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 800. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 807 may also include a headphone jack.
The positioning component 808 is used to locate the current geographic Location of the terminal 800 for navigation or LBS (Location Based Service). The Positioning component 808 may be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 809 is used to provide power to various components in terminal 800. The power supply 809 can be ac, dc, disposable or rechargeable. When the power supply 809 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 800 also includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: acceleration sensor 811, gyro sensor 812, pressure sensor 813, fingerprint sensor 814, optical sensor 815 and proximity sensor 816.
The acceleration sensor 811 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 800. For example, the acceleration sensor 811 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 801 may control the display 805 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 812 may detect a body direction and a rotation angle of the terminal 800, and the gyro sensor 812 may cooperate with the acceleration sensor 811 to acquire a 3D motion of the user with respect to the terminal 800. From the data collected by the gyro sensor 812, the processor 801 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 813 may be disposed on the side frames of terminal 800 and/or underneath display 805. When the pressure sensor 813 is disposed on the side frame of the terminal 800, the holding signal of the user to the terminal 800 can be detected, and the processor 801 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed at a lower layer of the display screen 805, the processor 801 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 805. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 814 is used for collecting a fingerprint of the user, and the processor 801 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 801 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 814 may be disposed on the front, back, or side of terminal 800. When a physical button or a vendor Logo is provided on the terminal 800, the fingerprint sensor 814 may be integrated with the physical button or the vendor Logo.
The optical sensor 815 is used to collect the ambient light intensity. In one embodiment, the processor 801 may control the display brightness of the display 805 based on the ambient light intensity collected by the optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of the display 805 is increased; when the ambient light intensity is low, the display brightness of the display 805 is reduced. In another embodiment, the processor 801 may also dynamically adjust the shooting parameters of the camera assembly 806 according to the ambient light intensity collected by the optical sensor 815.
A proximity sensor 816, also known as a distance sensor, is typically provided on the front panel of the terminal 800. The proximity sensor 816 is used to collect a distance between the user and the front surface of the terminal 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 gradually decreases, the processor 801 controls the display 805 to switch from the bright screen state to the dark screen state; when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 becomes gradually larger, the display 805 is controlled by the processor 801 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 8 is not intended to be limiting of terminal 800 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
An embodiment of the present application further provides a computer-readable storage medium, where at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor, so as to implement the method for acquiring a streaming media according to any implementation manner.
The embodiment of the present application further provides a computer program product, where the computer program product includes computer program codes, the computer program codes are stored in a computer-readable storage medium, a processor of the electronic device reads the computer program codes from the computer-readable storage medium, and the processor executes the computer program codes, so that the electronic device executes the method for acquiring streaming media according to any of the above-mentioned implementation manners.
In some embodiments, the computer program product according to the embodiments of the present application may be deployed to be executed on one electronic device, or on a plurality of electronic devices located at one site, or on a plurality of electronic devices distributed at a plurality of sites and interconnected by a communication network, and the plurality of electronic devices distributed at the plurality of sites and interconnected by the communication network may constitute a block chain system.
The present application is intended to cover various modifications, alternatives, and equivalents, which may be included within the spirit and scope of the present application. It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals referred to in this application are authorized by the user or fully authorized by various parties, and the collection, use and processing of the relevant data are subject to relevant laws and regulations and standards in relevant countries and regions. For example, the streaming media data referred to in this application is acquired with sufficient authorization.

Claims (11)

1. A system for acquiring streaming media, the system comprising: the system comprises a first electronic device, a first streaming media server, a reverse proxy server and a second streaming media server for generating streaming media data;
the first electronic device is used for acquiring streaming media data in a network isolation environment, and the first electronic device and the first streaming media server are located in the same local area network;
the first streaming media server and the reverse proxy server respectively provide proxy services for the first electronic device, and the reverse proxy server is used for providing streaming media service channels for the first streaming media server and the second streaming media server;
the reverse proxy server is configured to pull streaming media data from the second streaming media server, and transmit the pulled streaming media data to the first streaming media server;
the first streaming media server is used for transmitting the streaming media data to the first electronic equipment.
2. The system of claim 1,
the first electronic device is configured to send a first acquisition request to the first streaming media server, where a response port of the first acquisition request is the first streaming media server, and the first acquisition request carries a first port identifier of the first streaming media server and an equipment identifier of a second electronic device that collects streaming media data;
the first streaming media server is configured to map the first port identifier to a second port identifier based on a first port mapping configuration, and generate a second acquisition request based on the second port identifier and the device identifier, where a response port of the second acquisition request is the reverse proxy server, and the first port mapping configuration is used to represent a mapping relationship between a port of the first streaming media server and a port of the reverse proxy server;
the reverse proxy server is configured to map the second port identifier to a third port identifier based on a second port mapping configuration, and generate a third acquisition request based on the third port identifier and the device identifier, where a response port of the third acquisition request is the second streaming media server, and the second port mapping configuration is used to represent a mapping relationship between a port of the reverse proxy server and a port of the second streaming media server;
and the second streaming media server is configured to acquire streaming media data acquired by the second electronic device corresponding to the device identifier based on the third acquisition request, and transmit the acquired streaming media data to the reverse proxy server.
3. The system of claim 2, further comprising at least one second electronic device for acquiring streaming media data;
the second streaming media server is configured to determine an address identifier of streaming media data to be acquired based on the device identifier, and acquire streaming media data corresponding to the address identifier from the streaming media data acquired by the at least one second electronic device based on the address identifier.
4. The system of claim 3,
the second electronic device is configured to generate an application identifier of the streaming media data based on the acquired service identifier and the device identifier corresponding to the streaming media data, generate an address identifier of the streaming media data based on the application identifier and a channel identifier of the streaming media data, and send the address identifier and the streaming media data acquired by the address identifier to the second streaming media server.
5. The system of claim 1,
the second streaming media server is used for actively pushing the streaming media data to the reverse proxy server;
the reverse proxy server is used for actively pushing the streaming media data to the first streaming media server.
6. The system according to any one of claims 1-5, wherein a network isolation device is disposed between the first streaming media server and the reverse proxy server, and a network isolation configuration is disposed in the network isolation device, and the network isolation configuration is configured to restrict streaming media data passing through the network isolation device;
the reverse proxy server is used for transmitting the pulled streaming media data to the network isolation device;
the network isolation device is used for verifying the streaming media data based on the network isolation configuration and transmitting the streaming media data to the first streaming media server under the condition that the streaming media data is determined to be allowed to pass through.
7. The system according to claim 6, wherein a network switching configuration is further provided in the network isolation device, and the network switching configuration is used for performing network switching on the limited streaming media data, so that the converted streaming media data is allowed to pass through;
the network isolation device is further configured to, based on the network conversion configuration, perform network conversion on the streaming media data and transmit the converted streaming media data to the first streaming media server when it is determined that the streaming media data is not allowed to pass through.
8. A method for acquiring streaming media is characterized by comprising the following steps:
the second streaming media server generates streaming media data;
the reverse proxy server pulls streaming media data from the second streaming media server and transmits the pulled streaming media data to the first streaming media server, the first streaming media server and the reverse proxy server respectively provide proxy services for the first electronic device, and the reverse proxy server is used for providing streaming media service channels for the first streaming media server and the second streaming media server;
the first streaming media server transmits the streaming media data to first electronic equipment, the first electronic equipment is equipment used for acquiring the streaming media data in a network isolation environment, and the first electronic equipment and the first streaming media server are located in the same local area network.
9. An acquisition device of streaming media, characterized in that the acquisition device of streaming media comprises one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the acquisition method of streaming media according to claim 8.
10. A computer-readable storage medium, wherein at least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to implement the method for acquiring streaming media according to claim 8.
11. A computer program product, characterized in that the computer program product comprises computer program code, which is stored in a computer-readable storage medium, from which a processor of an electronic device reads the computer program code, the processor executing the computer program code, causing the electronic device to execute the method for acquiring streaming media according to claim 8.
CN202210267888.XA 2022-03-17 2022-03-17 Streaming media acquisition system, method, device, storage medium and product Active CN114697090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210267888.XA CN114697090B (en) 2022-03-17 2022-03-17 Streaming media acquisition system, method, device, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210267888.XA CN114697090B (en) 2022-03-17 2022-03-17 Streaming media acquisition system, method, device, storage medium and product

Publications (2)

Publication Number Publication Date
CN114697090A true CN114697090A (en) 2022-07-01
CN114697090B CN114697090B (en) 2024-01-09

Family

ID=82140025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210267888.XA Active CN114697090B (en) 2022-03-17 2022-03-17 Streaming media acquisition system, method, device, storage medium and product

Country Status (1)

Country Link
CN (1) CN114697090B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030154306A1 (en) * 2002-02-11 2003-08-14 Perry Stephen Hastings System and method to proxy inbound connections to privately addressed hosts
CN1694430A (en) * 2005-05-25 2005-11-09 复旦大学 Gateway penetration method based on UDP flow media server of NAT
CN109450911A (en) * 2018-11-26 2019-03-08 武汉虹信技术服务有限责任公司 A kind of across a network stream medium data transmission system and method
CN109587450A (en) * 2018-12-20 2019-04-05 北京明朝万达科技股份有限公司 Method of transmitting video data and system
CN110830597A (en) * 2018-08-07 2020-02-21 深圳市玖胜云智联科技有限公司 Robot and method for realizing AI multimedia interaction based on Linux system
CN110891185A (en) * 2019-11-21 2020-03-17 深圳警翼软件技术有限公司 Method for realizing distributed storage of acquisition workstations in internet scene without public network IP address
CN113132678A (en) * 2019-12-31 2021-07-16 深圳云天励飞技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN113794909A (en) * 2021-09-01 2021-12-14 北京百度网讯科技有限公司 Video streaming system, method, server, device, and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030154306A1 (en) * 2002-02-11 2003-08-14 Perry Stephen Hastings System and method to proxy inbound connections to privately addressed hosts
CN1694430A (en) * 2005-05-25 2005-11-09 复旦大学 Gateway penetration method based on UDP flow media server of NAT
CN110830597A (en) * 2018-08-07 2020-02-21 深圳市玖胜云智联科技有限公司 Robot and method for realizing AI multimedia interaction based on Linux system
CN109450911A (en) * 2018-11-26 2019-03-08 武汉虹信技术服务有限责任公司 A kind of across a network stream medium data transmission system and method
CN109587450A (en) * 2018-12-20 2019-04-05 北京明朝万达科技股份有限公司 Method of transmitting video data and system
CN110891185A (en) * 2019-11-21 2020-03-17 深圳警翼软件技术有限公司 Method for realizing distributed storage of acquisition workstations in internet scene without public network IP address
CN113132678A (en) * 2019-12-31 2021-07-16 深圳云天励飞技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN113794909A (en) * 2021-09-01 2021-12-14 北京百度网讯科技有限公司 Video streaming system, method, server, device, and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈斌;吉萌;: "媒体分发服务器NAT穿越的实现", 光通信研究, no. 04 *

Also Published As

Publication number Publication date
CN114697090B (en) 2024-01-09

Similar Documents

Publication Publication Date Title
CN111355774B (en) Service communication method, device and system based on P2P
CN111083039B (en) Message unread mark processing method and device, storage medium and terminal
CN108616835B (en) Method, device and system for acquiring network resources based on browser and storage medium
CN113726521A (en) Communication method, communication device, electronic equipment and readable storage medium
CN113225688B (en) Data transmission method and display device
CN110601921B (en) Method and device for detecting data packet transmission parameters and data packet transmission system
CN109803110A (en) A kind of image processing method, terminal device and server
CN112398685A (en) Host equipment acceleration method, device, equipment and medium based on mobile terminal
CN111131392A (en) Method, device, electronic equipment and medium for processing message
CN110912830B (en) Method and device for transmitting data
CN109995704B (en) Advertisement blocking method, device, equipment and computer readable storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN112910722B (en) Network request testing method, device, terminal and storage medium
CN107948174A (en) The method and apparatus that completeness check is carried out when transmitting data
CN108683699B (en) Method and device for forwarding service request
CN108260023B (en) Live broadcast method and device
CN110597840A (en) Partner relationship establishing method, device, equipment and storage medium based on block chain
CN107800720B (en) Hijacking reporting method, device, storage medium and equipment
CN111008083A (en) Page communication method and device, electronic equipment and storage medium
CN110650210A (en) Image data acquisition method, device and storage medium
CN111324293A (en) Storage system, data storage method, data reading method and device
CN114697090B (en) Streaming media acquisition system, method, device, storage medium and product
CN110380956B (en) Method, device and system for transmitting instant communication message
CN111447132B (en) Data transmission method, device, system and computer storage medium
CN111741040B (en) Connection establishing method, address obtaining method, device, equipment 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