CN113691520A - Method, device, storage medium and electronic device for acquiring streaming media information - Google Patents

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

Info

Publication number
CN113691520A
CN113691520A CN202110950391.3A CN202110950391A CN113691520A CN 113691520 A CN113691520 A CN 113691520A CN 202110950391 A CN202110950391 A CN 202110950391A CN 113691520 A CN113691520 A CN 113691520A
Authority
CN
China
Prior art keywords
request
streaming media
information
media information
standby machine
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
CN202110950391.3A
Other languages
Chinese (zh)
Other versions
CN113691520B (en
Inventor
兰鹏
周胜斯
周方琦
杨世增
兰海
吴伟平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110950391.3A priority Critical patent/CN113691520B/en
Publication of CN113691520A publication Critical patent/CN113691520A/en
Application granted granted Critical
Publication of CN113691520B publication Critical patent/CN113691520B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand

Abstract

The embodiment of the invention provides a method, a device, a storage medium and an electronic device for acquiring streaming media information, wherein the method comprises the following steps: receiving a media stream marking request sent by a request device, wherein the media stream marking request is used for requesting to acquire target streaming media information; sending the media stream marking request to the standby machine to indicate the standby machine to check the media stream marking request so as to obtain a check result, and determining and sending feedback information based on the check result; receiving feedback information sent by the standby machine; and under the condition that the feedback information comprises the access address of the target streaming media information in the standby machine, sending the access address to the request equipment so as to instruct the request equipment to acquire the target streaming media information based on the access address. The invention solves the problem of low actual utilization rate of the standby machine in the related technology and achieves the effect of improving the utilization rate of the standby machine.

Description

Method, device, storage medium and electronic device for acquiring streaming media information
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a method, a device, a storage medium and an electronic device for acquiring streaming media information.
Background
The two controllers work in a mutually master-standby state, a fault occurs, and the working states of the host and the standby machine can be mutually switched, so that the video service provided externally is not interrupted. Hereinafter referred to as a dual-control device. And providing a virtual IP address for external access, wherein the virtual IP migrates along with the working state of the controller, the virtual IP is always registered on the host, and a user does not sense the migration of the virtual IP. The double-control equipment is suitable for occasions with higher requirements on video services, a working board is down, and the video services provided to the outside are consistent and uninterrupted. All client requests are received and processed by the host, the host provides external services, and the standby machine is in a standby state. The schematic diagram of the dual-server hot-standby video storage server can be seen in fig. 1.
In the related art, the dual-control device provides video streaming services to the outside, and the standby device processes a waiting state. All client signaling requests, media streaming services are hosted. The host load is too high, the actual effective utilization rate of the standby machine is low, and the concurrent access service provided by the equipment is low. For example, all media stream access services, forwarding services, intelligent related services, and the like are provided by the host, and the standby is always in a state waiting to be scheduled.
Therefore, the problem of low actual utilization rate of the standby machine exists in the related art.
In view of the above problems in the related art, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a storage medium and an electronic device for acquiring streaming media information, which are used for at least solving the problem of low actual utilization rate of a standby machine in the related technology.
According to an embodiment of the present invention, there is provided a method for acquiring streaming media information, including: receiving a media stream marking request sent by a request device, wherein the media stream marking request is used for requesting to acquire target streaming media information; sending the media stream marking request to a standby machine to indicate the standby machine to verify the media stream marking request so as to obtain a verification result, and determining and sending feedback information based on the verification result; receiving the feedback information sent by the standby machine; and under the condition that the feedback information comprises the access address of the target streaming media information in the standby machine, sending the access address to the request equipment so as to instruct the request equipment to acquire the target streaming media information based on the access address.
According to an embodiment of the present invention, there is also provided a method for acquiring streaming media information, including: receiving a media stream marking request sent by a host, wherein the media stream marking request is a request sent to the host by a request device, and the media stream marking request is used for requesting to acquire target stream media information; verifying the media stream marking request to obtain a verification result; and determining and sending feedback information to the host based on the verification result to indicate the host to send the access address to the request device under the condition that the feedback information comprises the access address of the target streaming media information, so as to indicate the request device to acquire the target streaming media information based on the access address.
According to another embodiment of the present invention, there is provided an apparatus for acquiring streaming media information, including: a first receiving module, configured to receive a media stream marking request sent by a requesting device, where the media stream marking request is used to request to acquire target streaming media information; a sending module, configured to send the media stream marking request to a standby device, so as to instruct the standby device to check the media stream marking request, so as to obtain a check result, and determine and send feedback information based on the check result; the second receiving module is used for receiving the feedback information sent by the standby machine; a first obtaining module, configured to send, when the feedback information includes an access address of the target streaming media information in the standby device, the access address to the requesting device, so as to instruct the requesting device to obtain the target streaming media information based on the access address.
According to another embodiment of the present invention, there is also provided an apparatus for acquiring streaming media information, including: a third receiving module, configured to receive a media stream marking request sent by a host, where the media stream marking request is a request sent to the host by a requesting device, and the media stream marking request is used to request to acquire target streaming media information; the verification module is used for verifying the media stream marking request to obtain a verification result; and a second obtaining module, configured to determine and send feedback information to the host based on the check result, so as to instruct the host to send an access address of the target streaming media information to the request device under the condition that the feedback information includes the access address, so as to instruct the request device to obtain the target streaming media information based on the access address.
According to yet another embodiment of the invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program, when executed by a processor, implements the steps of the method as set forth in any of the above.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the host receives the media stream marking request sent by the request equipment, sends the media stream marking request to the standby machine, and after the standby machine receives the media stream marking request, the media stream marking request is verified to obtain a verification result, and the feedback information is determined and sent according to the verification result. Receiving feedback information sent by the standby machine, sending the access address to the request device under the condition that the feedback information comprises the access address of the target streaming media information in the standby machine, and acquiring the target streaming media information from the standby machine according to the access address after the request device receives the access address. The host can send the media stream marking request sent by the request device to the standby machine, the standby machine can check the media stream marking request and send feedback information carrying the access address to the host, and the host sends the access address to the request device. The request equipment can acquire the target streaming media information from the standby machine according to the access address, and the problem that the standby machine is in a scheduled state for a long time when the request equipment acquires the target streaming media information from the host machine all the time is avoided, so that the problem of low actual utilization rate of the standby machine in the related technology can be solved, and the effect of improving the utilization rate of the standby machine is achieved.
Drawings
Fig. 1 is a schematic diagram of a dual-server hot-standby video storage server in the related art;
fig. 2 is a block diagram of a hardware structure of a mobile terminal of a method for acquiring streaming media information according to an embodiment of the present invention;
fig. 3 is a first flowchart of a method for acquiring streaming media information according to an embodiment of the present invention;
FIG. 4 is a flowchart II of a method for acquiring streaming media information according to an embodiment of the present invention;
FIG. 5 is a timing diagram illustrating a method for acquiring streaming media information according to an embodiment of the present invention;
FIG. 6 is a flowchart of a method for obtaining streaming media information according to an embodiment of the present invention;
FIG. 7 is a block diagram of an apparatus for acquiring streaming media information according to an embodiment of the present invention;
fig. 8 is a block diagram of a second apparatus for acquiring streaming media information according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the example of running on a mobile terminal, fig. 2 is a block diagram of a hardware structure of the mobile terminal of a method for acquiring streaming media information according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal may include one or more (only one shown in fig. 2) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 2 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 2, or have a different configuration than shown in FIG. 2.
The memory 104 may be used to store a computer program, for example, a software program of an application software and a module, such as a computer program corresponding to the method for acquiring streaming media information in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In this embodiment, a method for acquiring streaming media information is provided, and fig. 3 is a first flowchart of the method for acquiring streaming media information according to the embodiment of the present invention, as shown in fig. 3, the flowchart includes the following steps:
step S302, receiving a media stream marking request sent by a request device, wherein the media stream marking request is used for requesting to acquire target stream media information;
step S304, sending the media stream marking request to a standby machine to indicate the standby machine to verify the media stream marking request so as to obtain a verification result, and determining and sending feedback information based on the verification result;
step S306, receiving the feedback information sent by the standby machine;
step S308, in a case that the feedback information includes an access address of the target streaming media information in the standby device, sending the access address to the request device, so as to instruct the request device to obtain the target streaming media information based on the access address.
In the above embodiments, the requesting device may be a client, such as a web, platform, or the like. The request device can request target streaming media information from the host, the host can send the media streaming marking request to the standby machine after receiving the media streaming marking request, and the standby machine can check the media streaming marking request after receiving the media streaming marking request to obtain a check result. And determining feedback information according to the verification result, and sending the feedback information to the host. The host receives the feedback information, and sends the access address to the request device under the condition that the feedback information includes the access address of the target streaming media information in the standby machine, and the request device can acquire the target streaming media information in the standby machine according to the access address. The target streaming media information may include video stream information, image stream information, audio stream information, and the like.
In the above embodiment, when the standby machine checks the media stream marking request, it may check whether the target streaming media information to be requested by the requesting device exists in the local machine, and whether the load of the standby machine exceeds the performance of the standby machine. When the target streaming media information exists in the standby machine and/or the load of the standby machine does not exceed the performance of the standby machine, the verification result is determined to be successful, and the feedback information can carry the access address for acquiring the target streaming media information in the standby machine. When the target streaming media information does not exist in the standby machine or the load of the standby machine exceeds the performance of the standby machine, the verification result is determined to be verification equipment, and an error code can be carried in the feedback information to indicate that the verification fails. The access address may include a URL path, an IP address of the standby device, corresponding media service port information, and the like, where the target streaming media information is stored in the standby device.
Optionally, the main body of the above steps may be a host, but is not limited thereto.
According to the invention, the host receives the media stream marking request sent by the request equipment, sends the media stream marking request to the standby machine, and after the standby machine receives the media stream marking request, the media stream marking request is verified to obtain a verification result, and the feedback information is determined and sent according to the verification result. Receiving feedback information sent by the standby machine, sending the access address to the request device under the condition that the feedback information comprises the access address of the target streaming media information in the standby machine, and acquiring the target streaming media information from the standby machine according to the access address after the request device receives the access address. The host can send the media stream marking request sent by the request device to the standby machine, the standby machine can check the media stream marking request and send feedback information carrying the access address to the host, and the host sends the access address to the request device. The request equipment can acquire the target streaming media information from the standby machine according to the access address, and the problem that the standby machine is in a scheduled state for a long time when the request equipment acquires the target streaming media information from the host machine all the time is avoided, so that the problem of low actual utilization rate of the standby machine in the related technology can be solved, and the effect of improving the utilization rate of the standby machine is achieved.
In an exemplary embodiment, sending the media stream marking request to the standby machine includes: verifying the identity information and the authority state of the request equipment; and sending the media stream marking request to a standby machine under the conditions that the identity information is determined to be legal and the authority state is allowed to acquire the target streaming media information. In this embodiment, when receiving the media stream marking request, the host may first verify the media stream marking request, that is, verify the identity information and the permission state of the requesting device, and send the media stream marking request to the standby device when the identity of the requesting device is legal and the permission state is that the target streaming media information is allowed to be acquired.
In an exemplary embodiment, after receiving the feedback information sent by the standby machine, the method further includes: under the condition that the feedback information comprises a check error code, locally searching the target streaming media information; and sending the target streaming media information to the request equipment under the condition of successful searching. In this embodiment, when the backup device fails to verify, the backup device may carry a verification error code in the feedback information, and send the feedback information to the host. Under the condition that the feedback information is determined to carry the check error code, the host can search the target streaming media information in the local machine and send the target streaming media information to the request equipment.
In this embodiment, a method for acquiring streaming media information is provided, and fig. 4 is a second flowchart of the method for acquiring streaming media information according to the embodiment of the present invention, as shown in fig. 4, the process includes the following steps:
step S402, receiving a media stream marking request sent by a host, wherein the media stream marking request is a request sent to the host by a request device, and the media stream marking request is used for requesting to acquire target stream media information;
step S404, verifying the media stream marking request to obtain a verification result;
step S406, determining and sending feedback information to the host based on the verification result, so as to instruct the host to send the access address to the request device under the condition that the feedback information includes the access address of the target streaming media information, so as to instruct the request device to obtain the target streaming media information based on the access address.
In the above embodiments, the requesting device may be a client, such as a web, platform, or the like. The request device can request target streaming media information from the host, the host can send the media streaming marking request to the standby machine after receiving the media streaming marking request, and the standby machine can check the media streaming marking request after receiving the media streaming marking request to obtain a check result. And determining feedback information according to the verification result, and sending the feedback information to the host. The host receives the feedback information, and sends the access address to the request device under the condition that the feedback information includes the access address of the target streaming media information in the standby machine, and the request device can acquire the target streaming media information in the standby machine according to the access address. The target streaming media information may include video stream information, image stream information, audio stream information, and the like.
Optionally, the main body of the above steps may be a standby machine, but is not limited thereto.
According to the invention, the host receives the media stream marking request sent by the request equipment, sends the media stream marking request to the standby machine, and after the standby machine receives the media stream marking request, the media stream marking request is verified to obtain a verification result, and the feedback information is determined and sent according to the verification result. Receiving feedback information sent by the standby machine, sending the access address to the request device under the condition that the feedback information comprises the access address of the target streaming media information in the standby machine, and acquiring the target streaming media information from the standby machine according to the access address after the request device receives the access address. The host can send the media stream marking request sent by the request device to the standby machine, the standby machine can check the media stream marking request and send feedback information carrying the access address to the host, and the host sends the access address to the request device. The request equipment can acquire the target streaming media information from the standby machine according to the access address, and the problem that the standby machine is in a scheduled state for a long time when the request equipment acquires the target streaming media information from the host machine all the time is avoided, so that the problem of low actual utilization rate of the standby machine in the related technology can be solved, and the effect of improving the utilization rate of the standby machine is achieved.
In an exemplary embodiment, verifying the media stream marking request comprises at least one of: checking whether the target streaming media information required to be acquired by the media stream marking request exists in the standby machine or not; and checking whether the load of the standby machine is greater than a preset threshold value. In this embodiment, when the standby machine checks the media stream marking request, it may check whether the target streaming media information requested by the requesting device exists in the local machine, and whether the load of the standby machine exceeds the performance of the standby machine. And when the target streaming media information does not exist in the standby machine or the load of the standby machine does not exceed the performance of the standby machine, determining that the verification result is successful, and when the target streaming media information does not exist in the standby machine or the load of the standby machine exceeds the performance of the standby machine, determining that the verification result is failed.
In one exemplary embodiment, determining feedback information based on the verification result comprises: determining the access address of the target streaming media information as the feedback information under the condition that the verification result indicates that the verification is successful; and determining the error code of the error check as the feedback information under the condition that the check result indicates that the check fails. In this embodiment, when the verification result indicates that the verification is successful, the feedback information may carry an access address for obtaining the target streaming media information in the standby device. In the case that the verification result indicates a verification failure, an error code may be carried in the feedback information to indicate the verification failure.
In an exemplary embodiment, before determining the access address of the target streaming media information as the feedback information, the method further includes: determining a network address and an access port of a standby machine and a uniform resource locator of the target streaming media information in the standby machine; determining the network address, the access port, and the uniform resource locator to be the access address. In this embodiment, when the standby machine feeds back the access address, the URL path, the IP address of the standby machine, the corresponding media service port information, and the like stored in the target streaming media information in the standby machine may be determined as the access address.
In one exemplary embodiment, after determining and sending feedback information to the host based on the verification result, the method further comprises: receiving a streaming media information request message sent by the request equipment; and sending the target streaming media information based on the streaming media information request message. In this embodiment, after receiving the access address, the requesting device sends a streaming media information request message to the standby device. This completes the media data request redirection. The standby machine sends the streaming media data to the request device. The streaming media data are directly transmitted from the standby machine to the request device without passing through the host machine.
The following describes a method for acquiring streaming media information with reference to a specific embodiment:
fig. 5 is a timing diagram of a method for acquiring streaming media information according to an embodiment of the present invention, and as shown in fig. 5, a core of the method for improving the utilization rate of a standby device of the entire dual-control device is to redirect a streaming media data request to a standby device waiting for being scheduled for processing, so as to improve the actual utilization rate of the standby device and improve the concurrency of the entire dual-control device. The streaming media data includes: video data or picture data for preview, playback, download, etc. Fig. 6 is a flowchart of a method for acquiring streaming media information according to an embodiment of the present invention, where as shown in fig. 6, the flowchart includes:
1) and issuing a marking request (corresponding to the media stream marking request), wherein a client (corresponding to the request equipment, such as a web or a platform and the like) accesses the dual-control virtual IP (registered in a host) and issues the media marking request.
2) And requesting host identity authentication. Including authentication (requester identity) and authentication (requester right).
3) And forwarding the media marking request. The media marking request received by the host computer is forwarded to the standby computer.
4) And the standby machine checks the host machine to forward the request. Including whether the requested media data is present, whether the standby load exceeds the performance of itself, etc.
a) If the verification fails, the corresponding error code is returned to the host.
b) The host computer re-searches the media resource itself.
5) And if the verification is successful, the standby machine returns the URL path of the media data. Corresponding media data is accessible through this URL path.
6) The host responds to the client request. The host machine returns the URL path, the IP address and the corresponding media service port information from the standby machine to the client.
7) And requesting the media data of the client to the standby machine. This completes the media data request redirection.
8) The standby machine sends the streaming media data. The media data is directly transmitted from the standby machine to the client without passing through the host machine.
In the foregoing embodiment, for a streaming media request (including a video stream and a picture stream) from a client, a host responds to a signaling request, and provides an address, a port, and a path for a standby to access the media stream, and according to the reply, the client requests streaming media data to be sent to a standby board, and returns the streaming media data from the standby board, thereby improving the utilization rate and concurrency of the standby board. After the stream media request is received by the main board, the stream media request is preferentially returned to the standby machine to access the media stream service (including an IP address, a port and a path). The client can access the streaming media data of the standby machine according to the information. The utilization rate of the actual standby machine of the double-control equipment is improved, and the concurrency and the overall performance of the double-control complete machine are improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for acquiring streaming media information is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram of a first structure of an apparatus for acquiring streaming media information according to an embodiment of the present invention, as shown in fig. 7, the apparatus includes:
a first receiving module 72, configured to receive a media stream marking request sent by a requesting device, where the media stream marking request is used to request to acquire target streaming media information;
a sending module 74, configured to send the media stream marking request to a standby device, so as to instruct the standby device to check the media stream marking request, so as to obtain a check result, and determine and send feedback information based on the check result;
a second receiving module 76, configured to receive the feedback information sent by the standby machine;
a first obtaining module 78, configured to, if the feedback information includes an access address of the target streaming media information in the standby device, send the access address to the requesting device, so as to instruct the requesting device to obtain the target streaming media information based on the access address.
In an exemplary embodiment, the sending module 74 may send the media stream marking request to the standby machine by: verifying the identity information and the authority state of the request equipment; and sending the media stream marking request to a standby machine under the conditions that the identity information is determined to be legal and the authority state is allowed to acquire the target streaming media information.
In an exemplary embodiment, the apparatus may be configured to, after receiving the feedback information sent by the standby device, locally search the target streaming media information if a check error code is included in the feedback information; and sending the target streaming media information to the request equipment under the condition of successful searching.
Fig. 8 is a block diagram of a second structure of an apparatus for acquiring streaming media information according to an embodiment of the present invention, and as shown in fig. 8, the apparatus includes:
a third receiving module 82, configured to receive a media stream marking request sent by a host, where the media stream marking request is a request sent to the host by a requesting device, and the media stream marking request is used to request to acquire target streaming media information;
a checking module 84, configured to check the media stream marking request to obtain a checking result;
a second obtaining module 86, configured to determine and send feedback information to the host based on the check result, so as to instruct the host to send an access address of the target streaming media information to the requesting device when the feedback information includes the access address, so as to instruct the requesting device to obtain the target streaming media information based on the access address.
In an exemplary embodiment, the verification module 84 may verify the media stream marking request by at least one of: checking whether the target streaming media information required to be acquired by the media stream marking request exists in the standby machine or not; and checking whether the load of the standby machine is greater than a preset threshold value.
In an exemplary embodiment, the second obtaining module 86 may determine the feedback information based on the verification result by: determining the access address of the target streaming media information as the feedback information under the condition that the verification result indicates that the verification is successful; and determining the error code of the error check as the feedback information under the condition that the check result indicates that the check fails.
In an exemplary embodiment, the apparatus may be configured to determine a network address, an access port, and a uniform resource locator of the target streaming media information in the standby machine before determining an access address of the target streaming media information as the feedback information; determining the network address, the access port, and the uniform resource locator to be the access address.
In an exemplary embodiment, the apparatus may be further configured to receive a streaming media information request message sent by the requesting device after determining and sending feedback information to the host based on the check result; and sending the target streaming media information based on the streaming media information request message.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method as set forth in any of the above.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for obtaining streaming media information, comprising:
receiving a media stream marking request sent by a request device, wherein the media stream marking request is used for requesting to acquire target streaming media information;
sending the media stream marking request to a standby machine to indicate the standby machine to verify the media stream marking request so as to obtain a verification result, and determining and sending feedback information based on the verification result;
receiving the feedback information sent by the standby machine;
and under the condition that the feedback information comprises the access address of the target streaming media information in the standby machine, sending the access address to the request equipment so as to instruct the request equipment to acquire the target streaming media information based on the access address.
2. The method of claim 1, wherein sending the media stream marking request to a standby machine comprises:
verifying the identity information and the authority state of the request equipment;
and sending the media stream marking request to a standby machine under the conditions that the identity information is determined to be legal and the authority state is allowed to acquire the target streaming media information.
3. The method of claim 1, wherein after receiving the feedback information sent by the standby machine, the method further comprises:
under the condition that the feedback information comprises a check error code, locally searching the target streaming media information;
and sending the target streaming media information to the request equipment under the condition of successful searching.
4. A method for obtaining streaming media information, comprising:
receiving a media stream marking request sent by a host, wherein the media stream marking request is a request sent to the host by a request device, and the media stream marking request is used for requesting to acquire target stream media information;
verifying the media stream marking request to obtain a verification result;
and determining and sending feedback information to the host based on the verification result to indicate the host to send the access address to the request device under the condition that the feedback information comprises the access address of the target streaming media information, so as to indicate the request device to acquire the target streaming media information based on the access address.
5. The method of claim 4, wherein verifying the media stream marking request comprises at least one of:
checking whether the target streaming media information required to be acquired by the media stream marking request exists in the standby machine or not;
and checking whether the load of the standby machine is greater than a preset threshold value.
6. The method of claim 4, wherein determining feedback information based on the verification result comprises:
determining the access address of the target streaming media information as the feedback information under the condition that the verification result indicates that the verification is successful;
and determining the error code of the error check as the feedback information under the condition that the check result indicates that the check fails.
7. The method of claim 6, wherein prior to determining the access address of the target streaming media information as the feedback information, the method further comprises:
determining a network address and an access port of a standby machine and a uniform resource locator of the target streaming media information in the standby machine;
determining the network address, the access port, and the uniform resource locator to be the access address.
8. The method of claim 4, wherein after determining and sending feedback information to the host based on the verification result, the method further comprises:
receiving a streaming media information request message sent by the request equipment;
and sending the target streaming media information based on the streaming media information request message.
9. An apparatus for acquiring streaming media information, comprising:
a first receiving module, configured to receive a media stream marking request sent by a requesting device, where the media stream marking request is used to request to acquire target streaming media information;
a sending module, configured to send the media stream marking request to a standby device, so as to instruct the standby device to check the media stream marking request, so as to obtain a check result, and determine and send feedback information based on the check result;
the second receiving module is used for receiving the feedback information sent by the standby machine;
a first obtaining module, configured to send, when the feedback information includes an access address of the target streaming media information in the standby device, the access address to the requesting device, so as to instruct the requesting device to obtain the target streaming media information based on the access address.
10. An apparatus for acquiring streaming media information, comprising:
a third receiving module, configured to receive a media stream marking request sent by a host, where the media stream marking request is a request sent to the host by a requesting device, and the media stream marking request is used to request to acquire target streaming media information;
the verification module is used for verifying the media stream marking request to obtain a verification result;
and a second obtaining module, configured to determine and send feedback information to the host based on the check result, so as to instruct the host to send an access address of the target streaming media information to the request device under the condition that the feedback information includes the access address, so as to instruct the request device to obtain the target streaming media information based on the access address.
11. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 3 or carries out the steps of the method of any one of claims 4 to 8.
12. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 3, or to perform the method of any of claims 4 to 8.
CN202110950391.3A 2021-08-18 2021-08-18 Method and device for acquiring streaming media information, storage medium and electronic device Active CN113691520B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110950391.3A CN113691520B (en) 2021-08-18 2021-08-18 Method and device for acquiring streaming media information, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110950391.3A CN113691520B (en) 2021-08-18 2021-08-18 Method and device for acquiring streaming media information, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113691520A true CN113691520A (en) 2021-11-23
CN113691520B CN113691520B (en) 2023-07-14

Family

ID=78580472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110950391.3A Active CN113691520B (en) 2021-08-18 2021-08-18 Method and device for acquiring streaming media information, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113691520B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114465767A (en) * 2021-12-27 2022-05-10 天翼云科技有限公司 Data scheduling method and equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6269431B1 (en) * 1998-08-13 2001-07-31 Emc Corporation Virtual storage and block level direct access of secondary storage for recovery of backup data
US20060164974A1 (en) * 2005-01-06 2006-07-27 Michael Ramalho Method of moving a transport connection among network hosts
US20070243934A1 (en) * 2006-04-13 2007-10-18 Igt Remote content management and resource sharing on a gaming machine and method of implementing same
US20080089268A1 (en) * 2006-10-17 2008-04-17 Kinder Richard D Media distribution in a wireless network
WO2008080320A1 (en) * 2006-12-31 2008-07-10 Huawei Technologies Co., Ltd. Media stream transmission method, system and related device
US20090233705A1 (en) * 2006-04-13 2009-09-17 Igt Presentation of remotely-hosted and locally rendered content for gaming systems
US20100293598A1 (en) * 2007-12-10 2010-11-18 Deluxe Digital Studios, Inc. Method and system for use in coordinating multimedia devices
US9275218B1 (en) * 2012-09-12 2016-03-01 Emc Corporation Methods and apparatus for verification of a user at a first device based on input received from a second device
WO2019075773A1 (en) * 2017-10-16 2019-04-25 平安科技(深圳)有限公司 Data processing method and apparatus, computer device and storage medium
CN111294355A (en) * 2020-02-10 2020-06-16 浙江大华技术股份有限公司 Sub-connection creating method, client device and server device
WO2020253662A1 (en) * 2019-06-19 2020-12-24 贵州白山云科技股份有限公司 Decryption method, apparatus, and system, medium, and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6269431B1 (en) * 1998-08-13 2001-07-31 Emc Corporation Virtual storage and block level direct access of secondary storage for recovery of backup data
US20060164974A1 (en) * 2005-01-06 2006-07-27 Michael Ramalho Method of moving a transport connection among network hosts
US20070243934A1 (en) * 2006-04-13 2007-10-18 Igt Remote content management and resource sharing on a gaming machine and method of implementing same
US20090233705A1 (en) * 2006-04-13 2009-09-17 Igt Presentation of remotely-hosted and locally rendered content for gaming systems
US20080089268A1 (en) * 2006-10-17 2008-04-17 Kinder Richard D Media distribution in a wireless network
WO2008080320A1 (en) * 2006-12-31 2008-07-10 Huawei Technologies Co., Ltd. Media stream transmission method, system and related device
US20100293598A1 (en) * 2007-12-10 2010-11-18 Deluxe Digital Studios, Inc. Method and system for use in coordinating multimedia devices
US9275218B1 (en) * 2012-09-12 2016-03-01 Emc Corporation Methods and apparatus for verification of a user at a first device based on input received from a second device
WO2019075773A1 (en) * 2017-10-16 2019-04-25 平安科技(深圳)有限公司 Data processing method and apparatus, computer device and storage medium
WO2020253662A1 (en) * 2019-06-19 2020-12-24 贵州白山云科技股份有限公司 Decryption method, apparatus, and system, medium, and device
CN111294355A (en) * 2020-02-10 2020-06-16 浙江大华技术股份有限公司 Sub-connection creating method, client device and server device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谭虹: "基于信誉机制的分布式流媒体点播系统的研究与实现", 《 《中国优秀硕士学位论文全文数据库 信息科技辑》》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114465767A (en) * 2021-12-27 2022-05-10 天翼云科技有限公司 Data scheduling method and equipment

Also Published As

Publication number Publication date
CN113691520B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
CN114787781B (en) System and method for enabling high availability managed failover services
CN110493184B (en) Method and device for processing login page in client and electronic device
CN103475682B (en) File transfer method and file transfer equipment
CN111190747A (en) Message loss detection method and device for message queue
US9621412B2 (en) Method for guaranteeing service continuity in a telecommunication network and system thereof
CN113296859B (en) Page loading method and device, storage medium and electronic device
CN104615598A (en) Migration processing method and device of metadata server
CN110365508B (en) Method for instantiating virtual network function and network function virtualization orchestrator
CN112468540A (en) Data distribution method, device and medium based on cloud platform
CN112187903B (en) Message pushing method and device and message service system
CN104618388A (en) Quick registration and login method and corresponding reset server and information server
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
CN113691520B (en) Method and device for acquiring streaming media information, storage medium and electronic device
WO2020252724A1 (en) Log processing method and device, and computer-readable storage medium
CN112491951B (en) Request processing method, server and storage medium in peer-to-peer network
CN111698281B (en) Resource downloading method and device, electronic equipment and storage medium
CN107370805B (en) Service processing method and device and service processing system
CN113746851A (en) Agent system and method for supporting real-time analysis of GRPC request
US9003241B2 (en) Reporting errors on serial interfaces to application layers for flexible error handling approach selection
CN108021459B (en) Method and device for sending dotting logs across processes
CN112597406A (en) File transmission method and device, terminal equipment and storage medium
CN113391759A (en) Communication method and device
CN111107663B (en) Data transmission method and device, storage medium and electronic device
CN113852919B (en) Method and device for generating early warning message, storage medium and electronic device
CN113422772B (en) Private network terminal access processing method and device and electronic equipment

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