CN113364672A - Method, device, equipment and computer readable medium for determining media gateway information - Google Patents

Method, device, equipment and computer readable medium for determining media gateway information Download PDF

Info

Publication number
CN113364672A
CN113364672A CN202110729772.9A CN202110729772A CN113364672A CN 113364672 A CN113364672 A CN 113364672A CN 202110729772 A CN202110729772 A CN 202110729772A CN 113364672 A CN113364672 A CN 113364672A
Authority
CN
China
Prior art keywords
video playing
playing request
identification information
conversion identification
media conversion
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
CN202110729772.9A
Other languages
Chinese (zh)
Other versions
CN113364672B (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.)
Vimicro Corp
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CN202110729772.9A priority Critical patent/CN113364672B/en
Publication of CN113364672A publication Critical patent/CN113364672A/en
Application granted granted Critical
Publication of CN113364672B publication Critical patent/CN113364672B/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
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding

Abstract

The embodiment of the disclosure discloses a method, a device, equipment and a computer readable medium for determining media gateway information. One embodiment of the method comprises: acquiring a media conversion identification information set and a video playing request; storing the media conversion identification information set into a local memory; determining the type of a video playing request based on the video playing request; responding to the video playing request type meeting a first preset condition, and determining media conversion identification information corresponding to the video playing request based on the video playing request and a media conversion identification information set in a local memory; and determining target media gateway information based on the media conversion identification information corresponding to the video playing request. The implementation method can determine the media conversion identification information in different modes according to different video playing request types, and determine the target media gateway information according to the media conversion identification information. Therefore, the probability of channel congestion can be reduced, and the reduction of network delay is realized.

Description

Method, device, equipment and computer readable medium for determining media gateway information
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method and a device for determining media gateway information, an electronic device and a computer readable medium.
Background
The media relay gateway is a new generation intelligent voice gateway designed aiming at business requirements of enterprises, industries and operators, and can provide a communication network with flexible and efficient construction for users. At present, when the media relay gateway is determined, the media relay gateway is often determined randomly.
However, there are often technical problems when the above-described method is adopted:
when the required media relay gateway is determined, the randomness of code stream transmission in a channel is high and the probability of channel congestion is high due to the fact that the media relay gateway is randomly determined, and therefore network delay is high.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a media gateway information determination method, apparatus, electronic device and computer readable medium to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method for determining media gateway information, where the method includes: acquiring a media conversion identification information set and a video playing request; storing the media conversion identification information set into a local memory; determining the type of the video playing request based on the video playing request; responding to the video playing request type to meet a first preset condition, and determining media conversion identification information corresponding to the video playing request based on the video playing request and a media conversion identification information set in a local memory; and determining target media gateway information based on the media conversion identification information corresponding to the video playing request.
In a second aspect, some embodiments of the present disclosure provide a media gateway information determining apparatus, including: an acquisition unit configured to acquire a set of media conversion identification information and a video play request; a storage unit configured to store the media conversion identifier information set into a local memory; a first determining unit configured to determine a video playing request type based on the video playing request; a second determining unit, configured to determine, in response to that the video playing request type satisfies a first preset condition, media conversion identification information corresponding to the video playing request based on the video playing request and a media conversion identification information set in a local memory; and the third determining unit is configured to determine the target media gateway information based on the media conversion identification information corresponding to the video playing request.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: when the required media gateway information is determined by the media gateway information determination method of some embodiments of the present disclosure, the time delay of the network is reduced. Specifically, the reason for the high network latency is that: when the required media relay gateway is determined, the randomness of code stream transmission in the channel is high and the probability of channel congestion is high due to the fact that the media relay gateway is randomly determined. Based on this, in the method for determining media gateway information according to some embodiments of the present disclosure, first, a media conversion identifier information set and a video playing request may be obtained, and the media conversion identifier information set is stored in a local memory. Therefore, a data base can be provided for the subsequent determination of the video playing request type. Then, based on the video playing request, the video playing request type can be determined. Therefore, the media conversion identification information can be determined in different modes according to different video playing request types. Then, in response to that the video playing request type satisfies a first preset condition, media conversion identification information corresponding to the video playing request may be determined based on the video playing request and a media conversion identification information set in a local memory. Therefore, the target media gateway information can be determined according to the media conversion identification information corresponding to different video playing request types. Finally, the target media gateway information may be determined based on the media conversion identification information corresponding to the video playing request. And determining media conversion identification information according to different video playing request types in different modes, and determining target media gateway information according to the media conversion identification information. Therefore, the probability of channel congestion can be reduced, and the reduction of network delay is realized.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a schematic diagram of one application scenario of a media gateway information determination method according to some embodiments of the present disclosure;
fig. 2 is a flow diagram of some embodiments of a media gateway information determination method according to the present disclosure;
fig. 3 is a schematic block diagram of some embodiments of a media gateway information determination apparatus according to the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to the media gateway information determination method of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram 100 of one application scenario of a media gateway information determination method according to some embodiments of the present disclosure.
In the application scenario of fig. 1, first, the computing device 101 may obtain a set of media conversion identification information 102 and a video play request 103. The computing device 101 may then save the set of media conversion identifier information 102 to local memory. Thereafter, the computing device 101 may determine the video playback request type 104 based on the video playback request 103 described above. Then, in response to that the video playing request type 104 satisfies a first preset condition, the computing device 101 may determine, based on the video playing request 103 and the media conversion identifier information set 102 in the local memory, media conversion identifier information 105 corresponding to the video playing request 103; and determining target media gateway information 106 based on the media conversion identification information 105 corresponding to the video playing request 103.
The computing device 101 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster composed of multiple servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices enumerated above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
It should be understood that the number of computing devices in FIG. 1 is merely illustrative. There may be any number of computing devices, as implementation needs dictate.
With continued reference to fig. 2, a flow 200 of some embodiments of a media gateway information determination method in accordance with the present disclosure is shown. The method for determining the media gateway information comprises the following steps:
step 201, a media conversion identification information set and a video playing request are obtained.
In some embodiments, an executing subject of the media gateway information determination method (such as the computing device 101 shown in fig. 1) may obtain the media conversion identification information set and the video playing request through a wired connection manner or a wireless connection manner. The media conversion identification information may be character string information generated according to a certain rule, and may refer to a media stream to be transcoded. The video playing request may be a request sent by a client to play a certain video.
As an example, the media conversion identification information may be media ═ shared > - < video-profile > according to a certain rule. Wherein, the format of < shareid > when the video requested to be played is a real-time video is as follows: "liv" camera Id, i.e., the string liv plus the camera internal number. Where liv may represent real-time video. The camera id may represent a camera internal number, and the number of the camera internal numbers may be 15 bits. The format of the media conversion identification information may be: video-profile ═ codec ] _[ resolution ] "_" [ bandwidthtd ] "_" [ frame rate ]. For example, liv009000000070101- _1920x1080 — 6m — 25.
Step 202, storing the media conversion identifier information set to a local memory.
In some embodiments, the execution subject may store the set of media conversion identifier information in a local memory.
As an example, the set of media conversion identification information in the local memory may be: { [ media ═ liv123456_ h264. ], [ media ═ liv223454_ h264. ], [ media ═ liv323458_ h264. ] }.
Step 203, based on the video playing request, determining the type of the video playing request.
In some embodiments, the execution subject may determine a video playing request type according to the received video playing request. Wherein the video playing request comprises at least one of the following items: a real-time video play request and a playback video play request. The video playing request type comprises at least one of the following items: a real-time video request type and a playback video request type.
In some optional implementations of some embodiments, the determining a video playing request type based on the video playing request may include the following steps:
the method comprises the following steps of responding to the fact that the video playing request is a real-time video playing request, and determining the type of the video playing request as the type of the real-time video request. The real-time video playing request may be a request for playing a real-time video.
And secondly, responding to the video playing request as a playback video playing request, and determining the video playing request type as a playback video request type. Wherein the playback video play request may be a request to play playback video.
Step 204, in response to that the video playing request type satisfies the first preset condition, determining media conversion identification information corresponding to the video playing request based on the video playing request and the media conversion identification information set in the local memory.
In some embodiments, the execution main body may determine, in response to that the video playing request type satisfies a first preset condition, media conversion identification information corresponding to the video playing request based on the video playing request and a media conversion identification information set in a local memory. The first preset condition may be that the video playing request type is a real-time video playing request.
In some optional implementation manners of some embodiments, the determining, based on the video playing request and a media conversion identification information set in a local memory, media conversion identification information corresponding to the video playing request may include the following steps:
firstly, comparing the video playing request with a media conversion identification information set in a local memory to obtain a comparison result. The video playing request comprises media conversion identification information. The above alignment results can be alignment consistent and alignment inconsistent.
As an example, the media conversion identification information included in the video playing request may be [ liv223454_ h264 ]. The set of [ liv223454_ h264. ] and media conversion identification information in local memory may be: the comparison results are obtained by comparing { [ mean ═ liv123456_ h264. ], [ mean ═ liv223454_ h264. ], [ mean ═ liv323458_ h264. ] }.
And secondly, responding to the comparison result meeting a second preset condition, and determining media conversion identification information corresponding to the video playing request. The second preset condition may be that the comparison result is consistent.
As an example, the media conversion identification information set in the local memory: the term "diameter" includes "diameter" that is aligned with "liv 223454_ h 264", "diameter" that is liv223454_ h264 "", and "diameter" that is liv323458_ h264 "". Therefore, the above alignment results can be considered as being aligned.
In some optional implementation manners of some embodiments, after determining the media conversion identification information corresponding to the video playing request based on the video playing request and the media conversion identification information set in the local memory, the method may further include the following steps:
and thirdly, in response to the comparison result not meeting a second preset condition, creating target media conversion identification information. The second preset condition may be that the comparison result is consistent.
As an example, the media conversion identification information set in the local memory: the term "diameter" includes "liv 123456_ h 264.", "diameter" liv223454_ h264. ", and" diameter "liv 323458_ h 264.", which excludes a diameter that matches [ liv213454_ h264. ". Therefore, the above alignment results can be considered as inconsistent alignment.
And fourthly, determining media gateway information corresponding to the video playing request according to the target media conversion identification information and preset conditions. Wherein, the preset conditions may be:
the method comprises the steps that a preset condition one is adopted, if media gateway information is distributed in a media module group where a corresponding camera is located, media gateway information corresponding to a video playing request is determined in the distributed media gateway information, and if the media gateway information is not distributed in any media module group, media gateway information corresponding to the video playing request is determined in a media gateway information set;
and presetting a second condition, wherein the execution main body already records the current load of each piece of media gateway information, and the load of each piece of media gateway information is 1 to represent the full load. The media gateway information may be arranged in order of the loads from small to large, then the execution main body may select the first 3 media gateway information with a lighter load and less than 1, if the number of the first 3 media gateway information is less than 3, the selection may be performed according to the actual situation, and finally, one media gateway information corresponding to the video playing request is randomly selected from the selected media gateway information.
Optionally, after determining the media gateway information corresponding to the video playing request, the execution main body records target media conversion identification information, the media gateway information corresponding to the video playing request, the session start time is 0, and the number of paths is 0, and determines whether the valid time recorded by the above information is +3 seconds, which is the valid time for returning the above information to the third party application HLS link, and if the media gateway information request is not received within the valid time, invalidates the < media > that the path is not initialized. And if the media gateway is offline, the executing main body does not select the media gateway information request corresponding to the media gateway any more.
Step 205, determining the target media gateway information based on the media conversion identification information corresponding to the video playing request.
In some embodiments, the execution subject may determine the target media gateway information based on media conversion identification information corresponding to the video playing request. The target media gateway information may be media gateway information corresponding to the video playing request.
As an example, if there is only one piece of media gateway information corresponding to the media conversion identification information, the media gateway information may be used as the target media gateway information when selecting the m3u8 address of the HLS. If there are a plurality of pieces of media gateway information corresponding to the media conversion identification information, the media gateway information with the largest number of clients for the media conversion identification information may be preferentially selected. If there are a plurality of pieces of media gateway information with the relatively largest number of clients, the media gateway information with earlier time can be preferentially selected as the target media gateway information.
Optionally, determining the target media gateway information as a video playing address; and sending the video playing address to a client side for the client side to browse the video according to the video playing address.
Optionally, acquiring a media gateway information set; storing the media gateway information set into a local memory; and determining target media gateway information based on a media gateway information set in a local memory in response to the fact that the video playing request type does not meet a first preset condition. The first preset condition may be that the video playing request type is a real-time video playing request.
As an example, the video playing request type does not satisfy the first preset condition, that is, the video playing request type is not a real-time video playing request, and then the video playing request type may be a playback video playing request. The execution main body may determine media gateway information corresponding to the video play request according to the target media conversion identification information and a preset condition, and may not record the media conversion identification information.
The above embodiments of the present disclosure have the following advantages: when the required media gateway information is determined by the media gateway information determination method of some embodiments of the present disclosure, the time delay of the network is reduced. Specifically, the reason for the high network latency is that: when the required media relay gateway is determined, the randomness of code stream transmission in the channel is high and the probability of channel congestion is high due to the fact that the media relay gateway is randomly determined. Based on this, in the method for determining media gateway information according to some embodiments of the present disclosure, first, a media conversion identifier information set and a video playing request may be obtained, and the media conversion identifier information set is stored in a local memory. Therefore, a data base can be provided for the subsequent determination of the video playing request type. Then, based on the video playing request, the video playing request type can be determined. Therefore, the media conversion identification information can be determined in different modes according to different video playing request types. Then, in response to that the video playing request type satisfies a first preset condition, media conversion identification information corresponding to the video playing request may be determined based on the video playing request and a media conversion identification information set in a local memory. Therefore, the target media gateway information can be determined according to the media conversion identification information corresponding to different video playing request types. Finally, the target media gateway information may be determined based on the media conversion identification information corresponding to the video playing request. And determining media conversion identification information according to different video playing request types in different modes, and determining target media gateway information according to the media conversion identification information. Therefore, the probability of channel congestion can be reduced, and the reduction of network delay is realized.
With further reference to fig. 3, as an implementation of the above method for the above figures, the present disclosure provides some embodiments of a media gateway information determination apparatus, which correspond to those of the method embodiments described above in fig. 2, and which may be applied in various electronic devices.
As shown in fig. 3, the media gateway information determining apparatus 300 of some embodiments includes: an acquisition unit 301, a holding unit 302, a first determination unit 303, a second determination unit 304, and a third determination unit 305. The acquiring unit 301 is configured to acquire a media conversion identification information set and a video playing request; a saving unit 302 configured to save the media conversion identifier information set to a local memory; a first determining unit 303 configured to determine a video playing request type based on the video playing request; a second determining unit 304, configured to determine, in response to that the video playing request type satisfies a first preset condition, media conversion identification information corresponding to the video playing request based on the video playing request and a media conversion identification information set in a local memory; the third determining unit 305 is configured to determine the target media gateway information based on the media conversion identification information corresponding to the video playing request.
It will be understood that the units described in the apparatus 300 correspond to the various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 300 and the units included therein, and are not described herein again.
Referring now to FIG. 4, a block diagram of an electronic device (e.g., computing device 101 of FIG. 1)400 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM403 are connected to each other via a bus 404. An input/output (I/O) interface 404 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 404: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 4 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 409, or from the storage device 408, or from the ROM 402. The computer program, when executed by the processing apparatus 401, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the apparatus; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a media conversion identification information set and a video playing request; storing the media conversion identification information set into a local memory; determining the type of the video playing request based on the video playing request; responding to the video playing request type to meet a first preset condition, and determining media conversion identification information corresponding to the video playing request based on the video playing request and a media conversion identification information set in a local memory; and determining target media gateway information based on the media conversion identification information corresponding to the video playing request.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, an information extraction unit, a first determination unit, a second determination unit, and a third determination unit. The names of these units do not in some cases constitute a limitation to the unit itself, and for example, the acquiring unit may also be described as a "unit that acquires a media conversion identification information set and a video playback request".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A method for determining media gateway information comprises the following steps:
acquiring a media conversion identification information set and a video playing request;
storing the media conversion identification information set into a local memory;
determining the type of a video playing request based on the video playing request;
responding to the video playing request type meeting a first preset condition, and determining media conversion identification information corresponding to the video playing request based on the video playing request and a media conversion identification information set in a local memory;
and determining target media gateway information based on the media conversion identification information corresponding to the video playing request.
2. The method of claim 1, wherein the method further comprises:
determining the target media gateway information as a video playing address;
and sending the video playing address to a client side so that the client side can browse videos according to the video playing address.
3. The method of claim 2, wherein the video playback request comprises at least one of: real-time video playing request and playback video playing request, wherein the video playing request type comprises at least one of the following types: a real-time video request type and a playback video request type.
4. The method of claim 3, wherein said determining a video playback request type based on said video playback request comprises:
responding to the video playing request as a real-time video playing request, and determining the type of the video playing request as the type of the real-time video request;
and in response to the video playing request being a playback video playing request, determining the video playing request type as a playback video request type.
5. The method of claim 4, wherein the determining media conversion identification information corresponding to the video playing request based on the video playing request and a set of media conversion identification information in a local memory comprises:
comparing the video playing request with a media conversion identification information set in a local memory to obtain a comparison result;
and determining media conversion identification information corresponding to the video playing request in response to the comparison result meeting a second preset condition.
6. The method of claim 5, wherein after determining the media conversion identification information corresponding to the video playing request based on the video playing request and the media conversion identification information set in the local memory, further comprising:
in response to the comparison result not meeting a second preset condition, creating target media conversion identification information;
and determining media gateway information corresponding to the video playing request according to the target media conversion identification information and preset conditions.
7. The method of claim 6, wherein the method further comprises:
acquiring a media gateway information set;
storing the media gateway information set into a local memory;
and determining target media gateway information based on a media gateway information set in a local memory in response to the video playing request type not meeting a first preset condition.
8. A media gateway information determination apparatus, comprising:
an acquisition unit configured to acquire a set of media conversion identification information and a video play request;
a storage unit configured to store the media conversion identification information set into a local memory;
a first determination unit configured to determine a video play request type based on the video play request;
a second determining unit, configured to determine, in response to that the video playing request type satisfies a first preset condition, media conversion identification information corresponding to the video playing request based on the video playing request and a media conversion identification information set in a local memory;
and the third determining unit is configured to determine target media gateway information based on the media conversion identification information corresponding to the video playing request.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
CN202110729772.9A 2021-06-29 2021-06-29 Method, device, equipment and computer readable medium for determining media gateway information Active CN113364672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110729772.9A CN113364672B (en) 2021-06-29 2021-06-29 Method, device, equipment and computer readable medium for determining media gateway information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110729772.9A CN113364672B (en) 2021-06-29 2021-06-29 Method, device, equipment and computer readable medium for determining media gateway information

Publications (2)

Publication Number Publication Date
CN113364672A true CN113364672A (en) 2021-09-07
CN113364672B CN113364672B (en) 2022-12-30

Family

ID=77537194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110729772.9A Active CN113364672B (en) 2021-06-29 2021-06-29 Method, device, equipment and computer readable medium for determining media gateway information

Country Status (1)

Country Link
CN (1) CN113364672B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101379799A (en) * 2006-02-10 2009-03-04 卢森特技术有限公司 Intelligent media gateway selection for multimedia communication sessions
CN101471850A (en) * 2007-12-29 2009-07-01 华为技术有限公司 Method for identifying medium resource, medium gateway and medium gateway controller
CN101668019A (en) * 2009-09-30 2010-03-10 中兴通讯股份有限公司 Gateway ensuring method, device and message transmitting method and system thereof
US20120284736A1 (en) * 2011-05-02 2012-11-08 At&T Intellectual Property I, L.P. System and Method of Selecting a Multimedia Stream
CN105187847A (en) * 2015-09-09 2015-12-23 深圳创维数字技术有限公司 Distributed network television live broadcast method, device, video gateway and system
CN109802985A (en) * 2017-11-17 2019-05-24 北京金山云网络技术有限公司 Data transmission method, device, equipment and read/write memory medium
CN110809189A (en) * 2019-12-03 2020-02-18 北京字节跳动网络技术有限公司 Video playing method and device, electronic equipment and computer readable medium
CN111314794A (en) * 2020-03-18 2020-06-19 浩云科技股份有限公司 Method for generating streaming media playing address
CN111935499A (en) * 2020-08-17 2020-11-13 深圳市前海多晟科技股份有限公司 Ultrahigh-definition video gateway system based on distributed storage technology
CN112788060A (en) * 2021-01-29 2021-05-11 北京字跳网络技术有限公司 Data packet transmission method and device, storage medium and electronic equipment
CN112866729A (en) * 2020-12-24 2021-05-28 华为技术有限公司 Method for reducing live network broadcast time delay and live network broadcast system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101379799A (en) * 2006-02-10 2009-03-04 卢森特技术有限公司 Intelligent media gateway selection for multimedia communication sessions
CN101471850A (en) * 2007-12-29 2009-07-01 华为技术有限公司 Method for identifying medium resource, medium gateway and medium gateway controller
CN101668019A (en) * 2009-09-30 2010-03-10 中兴通讯股份有限公司 Gateway ensuring method, device and message transmitting method and system thereof
US20120284736A1 (en) * 2011-05-02 2012-11-08 At&T Intellectual Property I, L.P. System and Method of Selecting a Multimedia Stream
CN105187847A (en) * 2015-09-09 2015-12-23 深圳创维数字技术有限公司 Distributed network television live broadcast method, device, video gateway and system
CN109802985A (en) * 2017-11-17 2019-05-24 北京金山云网络技术有限公司 Data transmission method, device, equipment and read/write memory medium
CN110809189A (en) * 2019-12-03 2020-02-18 北京字节跳动网络技术有限公司 Video playing method and device, electronic equipment and computer readable medium
CN111314794A (en) * 2020-03-18 2020-06-19 浩云科技股份有限公司 Method for generating streaming media playing address
CN111935499A (en) * 2020-08-17 2020-11-13 深圳市前海多晟科技股份有限公司 Ultrahigh-definition video gateway system based on distributed storage technology
CN112866729A (en) * 2020-12-24 2021-05-28 华为技术有限公司 Method for reducing live network broadcast time delay and live network broadcast system
CN112788060A (en) * 2021-01-29 2021-05-11 北京字跳网络技术有限公司 Data packet transmission method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN113364672B (en) 2022-12-30

Similar Documents

Publication Publication Date Title
US8824676B2 (en) Streaming video to cellular phones
CN110545472B (en) Video data processing method and device, electronic equipment and computer readable medium
WO2020248649A1 (en) Audio and video data synchronous playback method, apparatus and system, electronic device and medium
CN112311656B (en) Message aggregation and display method and device, electronic equipment and computer readable medium
CN114401447A (en) Video stuck prediction method, device, equipment and medium
CN112256733A (en) Data caching method and device, electronic equipment and computer readable storage medium
CN112202803A (en) Audio processing method, device, terminal and storage medium
CN113542337B (en) Information sharing method and device, electronic equipment and storage medium
CN111930709A (en) Data storage method and device, electronic equipment and computer readable medium
CN112199174A (en) Message sending control method and device, electronic equipment and computer readable storage medium
CN111818383B (en) Video data generation method, system, device, electronic equipment and storage medium
CN113760536A (en) Data caching method and device, electronic equipment and computer readable medium
CN109889922B (en) Method, device, equipment and storage medium for forwarding streaming media data
CN112713969B (en) Data transmission method and device and system using same
CN113542856A (en) Reverse playing method, device, equipment and computer readable medium for online video
CN111478916B (en) Data transmission method, device and storage medium based on video stream
CN112612919A (en) Video resource association method, device, equipment and medium
CN113364672B (en) Method, device, equipment and computer readable medium for determining media gateway information
CN112153322B (en) Data distribution method, device, equipment and storage medium
CN113242446B (en) Video frame caching method, video frame forwarding method, communication server and program product
CN114827682A (en) Screen projection method, system, equipment and storage medium
CN111755008B (en) Information processing method, information processing apparatus, electronic device, and medium
CN112040328A (en) Data interaction method and device and electronic equipment
CN113076195B (en) Object shunting method and device, readable medium and electronic equipment
WO2022237428A1 (en) Method and apparatus for processing network request information, and device 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