CN111193941B - Method, device and equipment for transmitting media data and storage medium - Google Patents

Method, device and equipment for transmitting media data and storage medium Download PDF

Info

Publication number
CN111193941B
CN111193941B CN202010014768.XA CN202010014768A CN111193941B CN 111193941 B CN111193941 B CN 111193941B CN 202010014768 A CN202010014768 A CN 202010014768A CN 111193941 B CN111193941 B CN 111193941B
Authority
CN
China
Prior art keywords
jukebox
attribute
media
information
media data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010014768.XA
Other languages
Chinese (zh)
Other versions
CN111193941A (en
Inventor
王银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Feixun Digital Technology Co ltd
Kyland Technology Co Ltd
Original Assignee
Beijing Feixun Digital Technology Co ltd
Kyland Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Feixun Digital Technology Co ltd, Kyland Technology Co Ltd filed Critical Beijing Feixun Digital Technology Co ltd
Priority to CN202010014768.XA priority Critical patent/CN111193941B/en
Publication of CN111193941A publication Critical patent/CN111193941A/en
Application granted granted Critical
Publication of CN111193941B publication Critical patent/CN111193941B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for transmitting media data, wherein the method comprises the following steps: when an on-demand request is acquired, analyzing the on-demand request; if the type of the jukebox is different from the type of the jukebox, judging whether the jukebox is a jukebox-requested device; if the jukebox is the jukebox-requested device, acquiring historical session information matched with the jukebox from a session list, acquiring a first attribute of the historical session information, and modifying a second attribute of the historical session information; and sending the first media data provided by the jukebox to the jukebox according to the first attribute and the second attribute. The technical scheme provided by the embodiment of the invention realizes the intercommunication of media data among different standard protocols and the multiplexing of historical session information, avoids the waste of media resources and improves the utilization efficiency of the media resources.

Description

Method, device and equipment for transmitting media data and storage medium
Technical Field
The embodiments of the present invention relate to the field of network technologies and communication technologies, and in particular, to a method, an apparatus, a device, and a storage medium for transmitting media data.
Background
With the continuous development of network technology and computer technology, the streaming media technology is widely applied to network data transmission and becomes an essential information acquisition way in work and life.
In the existing Streaming media technology, for example, in services such as online live broadcast and video conference, standard protocols are used for negotiating media data, for example, SIP (Session Initiation Protocol) and RTSP (Real Time Streaming Protocol), but the different standard protocols cannot communicate with each other, which results in that multiplexing of media data cannot be realized between terminal devices of different protocols, and media resources are wasted.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for transmitting media data, which are used for realizing media data multiplexing among different standard protocols.
In a first aspect, an embodiment of the present invention provides a method for transmitting media data, including:
when an on-demand request is acquired, analyzing the on-demand request; wherein the on-demand request includes an on-demand provider, an on-demand receiver, and a media stream type; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the media stream type comprises a unidirectional media stream or a bidirectional media stream;
if the type of the jukebox is different from the type of the jukebox, judging whether the jukebox is a jukebox-requested device;
if the jukebox is the jukebox-requested device, acquiring historical session information matched with the jukebox from a session list, acquiring a first attribute of the historical session information, and modifying a second attribute of the historical session information; wherein the first attribute comprises a first codec of the jukebox and a first media port of the jukebox, and the second attribute comprises a second codec of the jukebox and a second media port of the jukebox;
and sending the first media data provided by the jukebox to the jukebox according to the first attribute and the second attribute.
In a second aspect, an embodiment of the present invention provides a device for transmitting media data, including:
the on-demand request acquisition module is used for analyzing the on-demand request when the on-demand request is acquired; wherein the on-demand request includes an on-demand provider, an on-demand receiver, and a media stream type; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the media stream type comprises a unidirectional media stream or a bidirectional media stream;
the judgment execution module is used for judging whether the jukebox is the jukebox requested equipment or not if the jukebox type is different from the jukebox type;
the history session information determining module is used for acquiring history session information matched with the jukebox from a session list if the jukebox is the jukebox-requested equipment, acquiring a first attribute of the history session information and modifying a second attribute of the history session information; wherein the first attribute comprises a first codec of the jukebox and a first media port of the jukebox, and the second attribute comprises a second codec of the jukebox and a second media port of the jukebox;
and the first media data sending module is used for sending the first media data provided by the jukebox to the jukebox according to the first attribute and the second attribute.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for transmitting media data according to any embodiment of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for transmitting media data according to any embodiment of the present invention.
According to the technical scheme provided by the embodiment of the invention, the obtained on-demand request is analyzed, the historical session information matched with the on-demand receiver is obtained from the session list, the encoding and decoding and the media ports of the on-demand receiver and the on-demand receiver are determined, and the media data provided by the on-demand receiver is sent to the on-demand receiver, so that the media data intercommunication among different standard protocols and the multiplexing of the historical session information are realized, the waste of media resources is avoided, and the utilization efficiency of the media resources is improved.
Drawings
Fig. 1A is a flowchart of a method for transmitting media data according to an embodiment of the present invention;
fig. 1B is a flowchart of a media data transmission method provided in a first embodiment of the present invention;
fig. 2 is a block diagram of a media data transmission apparatus according to a second embodiment of the present invention;
fig. 3 is a block diagram of a device according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1A is a flowchart of a media data transmission method according to an embodiment of the present invention, where this embodiment is applicable to media data transmission between a SIP-based terminal device and an RTSP-based terminal device, and the method may be executed by a media data transmission apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware and is integrated on a signaling gateway device, and the method specifically includes the following steps:
s110, when an on-demand request is obtained, analyzing the on-demand request; wherein the on-demand request includes an on-demand provider, an on-demand receiver, and a media stream type; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the media stream type includes a unidirectional media stream or a bidirectional media stream.
A Signaling Gateway (SG) for relaying Signaling messages between the No.7 Signaling network and the IP network, in the embodiment of the present invention, the Signaling Gateway is connected to a plurality of media devices for transmitting media stream information between the plurality of media devices, and the types of the media devices include SIP-based terminal devices and/or RTSP-based terminal devices; the SIP is a text-based application layer control protocol and is used for creating, modifying and releasing sessions of one or more participants, the SIP equipment is integrated with an SIP client, multimedia data transmission is carried out based on the SIP, and on-demand requests of the SIP equipment are sent out in an Invite request mode; RTSP is an application layer protocol in the TCP/IP protocol system, defining how one-to-one or one-to-many applications can efficiently transmit multimedia data over an IP network, and an RTSP device is integrated with an RTSP client to perform transmission of multimedia data based on the RTSP, and an on-demand request from the RTSP device is issued in the form of a message in xml format.
The media stream is multimedia files such as audio, video and/or audio and video transmitted in a network in a streaming way; unidirectional media stream, that is, the jukebox only obtains the media data of the jukebox, for example, when watching the video online, the streaming process of the video is performed; the bidirectional media stream is that the jukebox not only obtains the media data of the jukebox, but also the jukebox needs to obtain the media data of the jukebox, that is, there is an interaction of the media data between the jukebox and the jukebox, for example, when a video conference is performed, a push stream and a pull stream process for video information are performed.
S120, if the type of the jukebox is different from the type of the jukebox, whether the jukebox is the jukebox requested equipment is judged.
If the type of the jukebox is different from the type of the jukebox, that is, when the SIP device wants to acquire the media data in the RTSP device or the RTSP device wants to acquire the media data in the SIP device, the formats of the media data are often different between different protocol types, and therefore, the media data cannot be directly transmitted, and the media formats supported by the jukebox and the jukebox need to be confirmed.
If the type of the jukebox is the same as the type of the jukebox, that is, when the SIP device accesses another SIP device or the RTSP device accesses another RTSP device, the address information of the jukebox may be directly acquired, and the request for the jukebox is sent to the jukebox, and the acquired first media data provided by the jukebox is sent to the jukebox.
S130, if the requested person is the requested device, acquiring historical session information matched with the requested person from a session list, acquiring a first attribute of the historical session information, and modifying a second attribute of the historical session information; wherein the first attribute comprises a first codec of the jukebox and a first media port of the jukebox, and the second attribute comprises a second codec of the jukebox and a second media port of the jukebox.
If the jukebox has been requested by other terminal equipment, the historical session information of the jukebox already exists in the session list, the first attribute, namely the coding and decoding information and the port information supported by the jukebox can be acquired through the historical session information, and meanwhile, the second attribute in the historical session information is modified according to the coding and decoding information and the port information supported by the jukebox which are acquired by analyzing in the request for the jukebox; the modified historical session information already comprises the coding and decoding supported by the jukebox, the port information of the jukebox and the port information of the jukebox in the current request. Therefore, when a plurality of RTSP devices access the same SIP device, the session established by the first RTSP device and the SIP device may be multiplexed. When multiple sip devices access the same RTSP device, the first sip device and the RTSP device may be multiplexed with the established session.
Optionally, in this embodiment of the present invention, after determining whether the requested device is a requested device, the method further includes: if the jukebox is not the jukebox equipment, current session information matched with the jukebox is established in a session list, and a second attribute of the current session information is set; acquiring address information of the jukebox, and sending first session description protocol information to the jukebox according to the second attribute of the current session information; when second session description protocol information which is fed back by the jukebox and matched with the first session description protocol information is acquired, the second session description protocol information is analyzed to acquire a first media port of the jukebox and a first codec of the jukebox, and the first media port and the first codec are used as first attributes of the current session information. A Session Description Protocol (SDP) used for media negotiation between Session entities and determining media transmission parameters, and when a requested device is an unscheduled device, the SDP information and the port information supported by the requesting device can be obtained by parsing an on-demand request, but the SDP information is needed to negotiate for the codec format and the port information of the requested device, and the SDP information returned by the requested device is parsed to further obtain the codec format and the port information of the requested device. The coding and decoding information and the port information which are supported by the jukebox and are obtained by analysis in the request for the jukebox are used as a second attribute of the current session information; if the jukebox is an unsoaked device, the first attribute of the current session information, i.e., the codec information and port information supported by the jukebox, may be obtained via a session description protocol between the jukebox and the jukebox. Optionally, in this embodiment of the present invention, acquiring the address information of the jukebox includes: and acquiring the address information of the jukebox through an application server, or acquiring the address information of the jukebox through a mapping relation table stored locally. An application server connected to the signaling gateway device for exposing the business logic to the media devices via various protocols (e.g., SDP) to provide access to the business logic, in embodiments of the present invention, the application server is used to manage the address information of the jukeboxes and the jukeboxes; the mapping relation table includes a mapping relation between the jukebox and the jukebox, for example, the mapping relation between the address of the RTSP device and the address of the SIP device is stored in advance, and the address information of the matched jukebox is acquired according to the acquired address information of the jukebox; the method comprises the steps of storing mapping relation between keywords in a request requesting of RTSP equipment and the address of SIP equipment in advance, and determining the address of the requested SIP equipment according to the acquired keywords of the request requesting in the RTSP equipment.
S140, sending the first media data provided by the jukebox to the jukebox according to the first attribute and the second attribute.
Optionally, the signaling gateway may enable both the jukebox and the jukebox to negotiate the audio/video codec format. In this embodiment of the present invention, the sending, to the jukebox, the first media data provided by the jukebox according to the first attribute and the second attribute includes: if the same target coding and decoding format exists in the first coding and decoding and the second coding and decoding, sending the target coding and decoding format to the on-demand player so that the first media data sent by the on-demand player is in the target coding and decoding format; and when the first media data provided by the jukebox is acquired through the first media port, the first media data is sent to the jukebox through the second media port. And through the negotiation of the target coding and decoding formats, the media format of the media data provided by the jukebox is matched with the coding and decoding formats supported by the jukebox.
Optionally, in this embodiment of the present invention, the sending, to the jukebox, the first media data provided by the jukebox according to the first attribute and the second attribute further includes: if the same target coding and decoding format does not exist in the first coding and decoding and the second coding and decoding, determining a specified coding and decoding format in the first coding and decoding, and sending the specified coding and decoding format to the on-demand player so as to enable first media data sent by the on-demand player to be in the specified coding and decoding format; when the first media data provided by the jukebox is acquired through the first media port, the first media data is converted into second media data matched with the second codec, and the second media data is sent to the jukebox through the second media port. And according to the self conversion capability of the signaling gateway, a coding and decoding format is specified in the first media data, and when the first media data of the specified coding and decoding format provided by the order-requesting person is obtained, the first media data is subjected to media format conversion so as to meet the coding and decoding format of the order-requesting person.
Optionally, in this embodiment of the present invention, after obtaining the history session information matched with the jukebox from the session list, obtaining the first attribute of the history session information, and modifying the second attribute of the history session information, the method further includes: creating a received object of the jukebox data and a transmitting object of the jukebox data in the historical session information; correspondingly, the sending the first media data provided by the jukebox to the jukebox includes: and receiving first media data provided by the jukebox through the jukebox data receiving object, and sending the first media data to the jukebox through the jukebox data sending object. Specifically, the RTSP device transmits media data based on RTCP, and the SIP device transmits media data through RTP (Real-time Transport Protocol), so that when the jukebox is an SIP device and the jukebox is an RTSP device, the data transmission object of the jukebox is a data transmission object based on RTP, and the data reception object of the jukebox is a data reception object based on RTSP; when the jukebox is an RTSP device and the jukebox is an SIP device, the jukebox data transmission object is an RTSP-based data transmission object, and the jukebox data reception object is an SIP-based data reception object.
Optionally, in this embodiment of the present invention, if the media stream type includes a bidirectional media stream; obtaining the history session information matched with the jukebox from the session list, obtaining the first attribute of the history session information, and modifying the second attribute of the history session information, and further comprising: creating a jukebox data receiving object and a jukebox data transmitting object in the historical session information; and receiving third media data provided by the jukebox through the jukebox data receiving object according to the first attribute and the second attribute, and sending the third media data to the jukebox through the jukebox data sending object. Specifically, when the jukebox is an SIP device and the jukebox is an RTSP device, the data receiving object of the jukebox is a data receiving object based on an RTP, and the data sending object of the jukebox is a data sending object based on the RTSP; when the jukebox is an RTSP device and the jukebox is an SIP device, the jukebox data receiving object is an RTSP-based data receiving object, and the jukebox data transmitting object is an SIP-based data transmitting object.
According to the technical scheme provided by the embodiment of the invention, the obtained on-demand request is analyzed, the historical session information matched with the on-demand receiver is obtained from the session list, the encoding and decoding and the media ports of the on-demand receiver and the on-demand receiver are determined, and the media data provided by the on-demand receiver is sent to the on-demand receiver, so that the media data intercommunication among different standard protocols and the multiplexing of the historical session information are realized, the waste of media resources is avoided, and the utilization efficiency of the media resources is improved.
Specific application scenario one
Fig. 1B is a flowchart of a media data transmission method provided in a first specific application scenario of the present invention, where the method specifically includes the following operations:
s201, analyzing the received request, and executing S202.
S202, judging whether the requested person is requested equipment or not; if not, executing S203; if yes, go to step S207.
S203, creating current session information in a session list; s204 is performed.
S204, acquiring the address of the jukebox, and sending first SDP information to the jukebox; s205 is performed.
S205, analyzing the second SDP information replied by the jukebox; s206 is performed.
S206, obtaining the first attribute and the second attribute of the current session information, and executing S209.
S207, acquiring historical session information from the session list; s208 is performed.
S208, acquiring a first attribute of the historical session information, and modifying a second attribute of the historical session information; s209 is performed.
S209, judging whether the media stream type is a bidirectional media stream; if yes, go to S210; if not, go to step S214.
S210, creating a data receiving object and a data sending object of a requested jukebox, and creating a data sending object and a data receiving object of the requested jukebox; s211 is executed.
S211, judging whether the same target coding and decoding formats exist or not; if yes, go to step S212; if not, go to S215.
S212, sending a target coding and decoding format to the jukebox and the jukebox; s213 is performed.
Since the media stream type is a bidirectional media stream, both the jukebox and the jukebox need to transmit and receive the media data, and therefore, the target codec format needs to be transmitted to both the jukebox and the jukebox.
S213, sending the first media data to the on-demand equipment, and sending the third media data to the on-demand equipment; an end operation is performed.
S214, creating a data receiving object of the jukebox and a data sending object of the jukebox; s217 is performed.
S215, sending a specified coding and decoding format to the jukebox and the jukebox; s216 is executed.
Since both the jukebox and the jukebox need to transmit and receive the media data, the codec formats need to be specified in the first codec and the second codec, and the first codec and the second codec are transmitted to the jukebox and the jukebox respectively.
S216, sending the second media data to the on-demand equipment, and sending the fourth media data to the on-demand equipment; an end operation is performed.
And when third media data in a specified coding format sent by the jukebox is received, converting the third media data into fourth media data matched with the first coding and decoding, and sending the fourth media data to the jukebox through the second media port.
S217, judging whether the same target coding and decoding format exists or not; if not, go to S218; if yes, go to step S220.
S218, sending a specified coding and decoding format to the jukebox; s219 is executed.
S219, sending the second media data to the jukebox; an end operation is performed.
S220, sending a target coding and decoding format to a requested person; s221 is performed.
S221, sending the first media data to a jukebox; an end operation is performed.
According to the technical scheme provided by the embodiment of the invention, the obtained on-demand request is analyzed, the historical session information matched with the on-demand receiver is obtained from the session list, the encoding and decoding and the media ports of the on-demand receiver and the on-demand receiver are determined, and the media data provided by the on-demand receiver is sent to the on-demand receiver, so that the media data intercommunication among different standard protocols and the multiplexing of the historical session information are realized, the waste of media resources is avoided, and the utilization efficiency of the media resources is improved.
Example two
Fig. 2 is a block diagram of a media data transmission apparatus according to a second embodiment of the present invention, where the apparatus specifically includes: an on-demand request obtaining module 210, a judgment executing module 220, a historical session information determining module 230, and a first media data transmitting module 240.
An on-demand request obtaining module 210, configured to, when an on-demand request is obtained, parse the on-demand request; wherein the on-demand request includes an on-demand provider, an on-demand receiver, and a media stream type; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the media stream type comprises a unidirectional media stream or a bidirectional media stream;
a determining executing module 220, configured to determine whether the jukebox is a requested device if the jukebox type is different from the jukebox type;
a history session information determining module 230, configured to, if the jukebox is a jukebox that has already been requested, obtain history session information that matches the jukebox in a session list, obtain a first attribute of the history session information, and modify a second attribute of the history session information; wherein the first attribute comprises a first codec of the jukebox and a first media port of the jukebox, and the second attribute comprises a second codec of the jukebox and a second media port of the jukebox;
a first media data sending module 240, configured to send the first media data provided by the jukebox to the jukebox according to the first attribute and the second attribute.
According to the technical scheme provided by the embodiment of the invention, the obtained on-demand request is analyzed, the historical session information matched with the on-demand receiver is obtained from the session list, the encoding and decoding and the media ports of the on-demand receiver and the on-demand receiver are determined, and the media data provided by the on-demand receiver is sent to the on-demand receiver, so that the media data intercommunication among different standard protocols and the multiplexing of the historical session information are realized, the waste of media resources is avoided, and the utilization efficiency of the media resources is improved.
Optionally, on the basis of the foregoing technical solution, the first media data sending module 240 specifically includes:
a target codec format determining unit, configured to send the target codec format to the on-demand receiver if the same target codec format exists in the first codec and the second codec, so that the first media data sent by the on-demand receiver is in the target codec format;
and the media data execution unit is used for sending the first media data to the jukebox through the second media port when the first media data provided by the jukebox is acquired through the first media port.
Optionally, on the basis of the foregoing technical solution, the first media data sending module 240 specifically includes:
a specified codec format determining unit, configured to determine a specified codec format in the first codec if the same target codec format does not exist in the first codec and the second codec, and send the specified codec format to the on-demand player, so that the first media data sent by the on-demand player is in the specified codec format;
and the media data conversion unit is used for converting the first media data into second media data matched with the second codec when the first media data provided by the on-demand person is acquired through the first media port, and sending the second media data to the on-demand person through the second media port.
Optionally, on the basis of the foregoing technical solution, the apparatus for transmitting media data further includes:
a second attribute setting module, configured to create, if the jukebox is a device that has not been requested, current session information that matches the jukebox in a session list, and set a second attribute of the current session information;
the session description protocol sending module is used for acquiring the address information of the on-demand receiver and sending first session description protocol information to the on-demand receiver according to the second attribute of the current session information;
and the session description protocol analysis module is used for analyzing the second session description protocol information to obtain a first media port of the on-demand player and a first codec of the on-demand player when the second session description protocol information which is fed back by the on-demand player and is matched with the first session description protocol information is obtained, and taking the first media port and the first codec as a first attribute of the current session information.
Optionally, on the basis of the above technical solution, the session description protocol sending module is specifically configured to:
and acquiring the address information of the jukebox through an application server, or acquiring the address information of the jukebox through a mapping relation table stored locally.
Optionally, on the basis of the foregoing technical solution, the apparatus for transmitting media data further includes:
a first data object creating module for creating a data receiving object of the jukebox and a data sending object of the jukebox in the historical session information;
optionally, on the basis of the foregoing technical solution, the first media data sending module 240 is specifically configured to:
and receiving first media data provided by the jukebox through the jukebox data receiving object, and sending the first media data to the jukebox through the jukebox data sending object.
Optionally, on the basis of the above technical solution, if the media stream type includes a bidirectional media stream, the apparatus for transmitting media data further includes:
a second data object creating module for creating a jukebox data receiving object and a jukebox data transmitting object in the historical session information;
and the third media data sending module is used for receiving third media data provided by the jukebox through the jukebox data receiving object according to the first attribute and the second attribute, and sending the third media data to the jukebox through the jukebox data sending object.
The device can execute the transmission method of the media data provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an apparatus according to a third embodiment of the present invention, as shown in fig. 3, the apparatus includes a processor 30, a memory 31, an input device 32, and an output device 33; the number of processors 30 in the device may be one or more, and one processor 30 is taken as an example in fig. 3; the device processor 30, the memory 31, the input means 32 and the output means 33 may be connected by a bus or other means, as exemplified by the bus connection in fig. 3.
The memory 31 is used as a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as the modules (the on-demand request obtaining module 210, the judgment executing module 220, the historical session information determining module 230, and the first media data sending module 240) corresponding to the media data transmission device in the second embodiment of the present invention. The processor 30 executes various functional applications of the device and data processing, i.e., implements the above-described transmission method of media data, by executing software programs, instructions, and modules stored in the memory 31.
The memory 31 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 31 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 31 may further include memory located remotely from the processor 30, which may be connected to the device 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 input device 32 may be used to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 33 may include a display device such as a display screen.
Example four
An embodiment of the present invention further provides a computer-readable storage medium, which when executed by a computer processor is configured to perform a method for transmitting media data, the method including:
when an on-demand request is acquired, analyzing the on-demand request; wherein the on-demand request includes an on-demand provider, an on-demand receiver, and a media stream type; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the media stream type comprises a unidirectional media stream or a bidirectional media stream;
if the type of the jukebox is different from the type of the jukebox, judging whether the jukebox is a jukebox-requested device;
if the jukebox is the jukebox-requested device, acquiring historical session information matched with the jukebox from a session list, acquiring a first attribute of the historical session information, and modifying a second attribute of the historical session information; wherein the first attribute comprises a first codec of the jukebox and a first media port of the jukebox, and the second attribute comprises a second codec of the jukebox and a second media port of the jukebox;
and sending the first media data provided by the jukebox to the jukebox according to the first attribute and the second attribute.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the media data transmission method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment 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 may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the method for transmitting media data according to the embodiments of the present invention.
It should be noted that, in the embodiment of the transmission device for media data, the units and modules included in the embodiment are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for transmitting media data, comprising:
when an on-demand request is acquired, analyzing the on-demand request; wherein the on-demand request includes an on-demand provider, an on-demand receiver, and a media stream type; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the media stream type comprises a unidirectional media stream or a bidirectional media stream;
if the type of the jukebox is different from the type of the jukebox, judging whether the jukebox is a jukebox-requested device;
if the jukebox is the jukebox-requested device, acquiring historical session information matched with the jukebox from a session list, acquiring a first attribute of the historical session information, and modifying a second attribute of the historical session information; wherein the first attribute comprises first codec information of the jukebox and a first media port of the jukebox, and the second attribute comprises second codec information of the jukebox and a second media port of the jukebox;
and sending the first media data provided by the jukebox to the jukebox according to the first attribute and the second attribute.
2. The method of claim 1, wherein sending the first media data provided by the jukebox to the jukebox based on the first attribute and the second attribute comprises:
if the first coding and decoding information and the second coding and decoding information have the same target coding and decoding format, sending the target coding and decoding format to the on-demand player so as to enable the first media data sent by the on-demand player to be in the target coding and decoding format;
and when the first media data provided by the jukebox is acquired through the first media port, the first media data is sent to the jukebox through the second media port.
3. The method of claim 1, wherein sending the first media data provided by the jukebox to the jukebox based on the first attribute and the second attribute comprises:
if the same target coding and decoding format does not exist in the first coding and decoding information and the second coding and decoding information, determining a specified coding and decoding format in the first coding and decoding information, and sending the specified coding and decoding format to the requested person, so that the first media data sent by the requested person is in the specified coding and decoding format;
when the first media data provided by the jukebox is acquired through the first media port, the first media data is converted into second media data matched with the second coding and decoding information, and the second media data is sent to the jukebox through the second media port.
4. The method of claim 1, wherein after determining whether the jukebox is a jukebox device, further comprising:
if the jukebox is not the jukebox equipment, current session information matched with the jukebox is established in a session list, and a second attribute of the current session information is set;
acquiring address information of the jukebox, and sending first session description protocol information to the jukebox according to the second attribute of the current session information;
when second session description protocol information which is fed back by the jukebox and matched with the first session description protocol information is acquired, the second session description protocol information is analyzed to acquire a first media port of the jukebox and first coding and decoding information of the jukebox, and the first media port and the first coding and decoding information are used as first attributes of the current session information.
5. The method of claim 4, wherein the obtaining the address information of the jukebox comprises:
and acquiring the address information of the jukebox through an application server, or acquiring the address information of the jukebox through a mapping relation table stored locally.
6. The method of claim 1, wherein after obtaining the historical session information matching the jukebox in the session list, obtaining a first attribute of the historical session information, and modifying a second attribute of the historical session information, further comprising:
creating a received object of the jukebox data and a transmitting object of the jukebox data in the historical session information;
correspondingly, the sending the first media data provided by the jukebox to the jukebox includes:
and receiving first media data provided by the jukebox through the jukebox data receiving object, and sending the first media data to the jukebox through the jukebox data sending object.
7. The method of claim 1, wherein if the media stream type comprises a bi-directional media stream;
obtaining the history session information matched with the jukebox from the session list, obtaining the first attribute of the history session information, and modifying the second attribute of the history session information, and further comprising:
creating a jukebox data receiving object and a jukebox data transmitting object in the historical session information;
and receiving third media data provided by the jukebox through the jukebox data receiving object according to the first attribute and the second attribute, and sending the third media data to the jukebox through the jukebox data sending object.
8. An apparatus for transmitting media data, comprising:
the on-demand request acquisition module is used for analyzing the on-demand request when the on-demand request is acquired; wherein the on-demand request includes an on-demand provider, an on-demand receiver, and a media stream type; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the jukebox comprises session initiation protocol equipment or real-time streaming protocol equipment; the media stream type comprises a unidirectional media stream or a bidirectional media stream;
the judgment execution module is used for judging whether the jukebox is the jukebox requested equipment or not if the jukebox type is different from the jukebox type;
the history session information determining module is used for acquiring history session information matched with the jukebox from a session list if the jukebox is the jukebox-requested equipment, acquiring a first attribute of the history session information and modifying a second attribute of the history session information; wherein the first attribute comprises first codec information of the jukebox and a first media port of the jukebox, and the second attribute comprises second codec information of the jukebox and a second media port of the jukebox;
and the first media data sending module is used for sending the first media data provided by the jukebox to the jukebox according to the first attribute and the second attribute.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of transmission of media data as claimed in any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method for transmitting media data according to any one of claims 1 to 7.
CN202010014768.XA 2020-01-07 2020-01-07 Method, device and equipment for transmitting media data and storage medium Active CN111193941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010014768.XA CN111193941B (en) 2020-01-07 2020-01-07 Method, device and equipment for transmitting media data and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010014768.XA CN111193941B (en) 2020-01-07 2020-01-07 Method, device and equipment for transmitting media data and storage medium

Publications (2)

Publication Number Publication Date
CN111193941A CN111193941A (en) 2020-05-22
CN111193941B true CN111193941B (en) 2021-09-17

Family

ID=70709911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010014768.XA Active CN111193941B (en) 2020-01-07 2020-01-07 Method, device and equipment for transmitting media data and storage medium

Country Status (1)

Country Link
CN (1) CN111193941B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787026B (en) * 2020-07-27 2022-09-27 北京飞讯数码科技有限公司 Method, device and equipment for transmitting media data and storage medium

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI245192B (en) * 2003-12-11 2005-12-11 Inst Information Industry Method, system and storage medium for passing through network address translation device
EP1758334A1 (en) * 2005-08-26 2007-02-28 Matsushita Electric Industrial Co., Ltd. Establishment of media sessions with media adaptation
US9021134B1 (en) * 2006-03-03 2015-04-28 Juniper Networks, Inc. Media stream transport conversion within an intermediate network device
CN100583828C (en) * 2007-02-14 2010-01-20 华为技术有限公司 Packet message processing method and device
CN101370004A (en) * 2007-08-16 2009-02-18 华为技术有限公司 Distribution method and multicast apparatus for multicast conversation security policy
CN101686192B (en) * 2008-09-27 2012-12-19 华为技术有限公司 Method and device for session processing in multi-equipment environment
CN102036058B (en) * 2010-12-20 2014-07-02 南京中兴新软件有限责任公司 Method, server, terminal and system for switching videos in video monitoring system
CN102647402B (en) * 2011-02-22 2015-07-29 华为技术有限公司 A kind of machinery of consultation of Multimedia session, relevant device and system
US20130067109A1 (en) * 2011-09-12 2013-03-14 Tektronix, Inc. Monitoring Over-the-Top Adaptive Video Streaming
US20130151623A1 (en) * 2011-12-07 2013-06-13 Reginald Weiser Systems and methods for translating multiple client protocols via a conference bridge
CN103905380B (en) * 2012-12-25 2017-03-22 中国移动通信集团公司 Service call method, device and system
CN106549875B (en) * 2015-09-18 2019-09-13 中国移动通信集团浙江有限公司 A kind of conversation managing method, device and load balancer
CN107734284A (en) * 2017-09-18 2018-02-23 深圳市麦斯杰网络有限公司 Media session method for building up, device and computer-readable recording medium
CN107659575B (en) * 2017-10-12 2020-04-17 京信通信系统(中国)有限公司 Broadband cluster multimedia function body and session method thereof
CN110035039B (en) * 2018-01-12 2020-09-18 华为技术有限公司 Method and equipment for maintaining session

Also Published As

Publication number Publication date
CN111193941A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
EP2658232A1 (en) Method and system for an optimized multimedia communications system
US10397183B2 (en) Method and system for enabling media optimization in a cloud conference
CN111787026B (en) Method, device and equipment for transmitting media data and storage medium
US7953867B1 (en) Session description protocol (SDP) capability negotiation
US20090290012A1 (en) Methods for providing video content and associated service devices, systems thereof
US8601115B2 (en) Providing state information and remote command execution in a managed media device
US10523730B2 (en) Real-time transport protocol (RTP) media conference server routing engine
CN101834730A (en) Multimedia conferencing control method and system
CN115334273A (en) Protocol conversion audio and video communication method and system
CN111193941B (en) Method, device and equipment for transmitting media data and storage medium
CN111107445B (en) Media protocol stream optimization method and system
CN110798651A (en) Video conference method, device, equipment and storage medium
US20070220161A1 (en) Broadcasting a presentation over a messaging network
Cui et al. Research and Implementation of WEBRTC Signaling via websocket-based for real-time multimedia communications
CN115334059A (en) Audio and video intercommunication method, device, equipment and storage medium
Kasetwar et al. A WebRTC based video conferencing system with screen sharing
CN103828322A (en) Media data transmission method and device
CN107222706B (en) Video preview method and system
CN106341737B (en) IP multicast stream processing method, switch set, server and system
KR100280825B1 (en) How to Manage Session Membership in Internet Multicast Applications
CN112019791A (en) Multi-party audio and video call method and system based on education examination
WO2017186053A1 (en) Method and device for establishing channel between heterogeneous end-points
CN113098864B (en) Data transmission system
CN117640971A (en) Communication method and device, terminal equipment, server and storage medium
US9143722B2 (en) Method and apparatus for providing session description for a media session

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