WO2020248649A1 - Audio and video data synchronous playback method, apparatus and system, electronic device and medium - Google Patents

Audio and video data synchronous playback method, apparatus and system, electronic device and medium Download PDF

Info

Publication number
WO2020248649A1
WO2020248649A1 PCT/CN2020/081104 CN2020081104W WO2020248649A1 WO 2020248649 A1 WO2020248649 A1 WO 2020248649A1 CN 2020081104 W CN2020081104 W CN 2020081104W WO 2020248649 A1 WO2020248649 A1 WO 2020248649A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
video data
data packet
time stamp
signaling information
Prior art date
Application number
PCT/CN2020/081104
Other languages
French (fr)
Chinese (zh)
Inventor
许赫赫
Original Assignee
北京大米科技有限公司
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 北京大米科技有限公司 filed Critical 北京大米科技有限公司
Publication of WO2020248649A1 publication Critical patent/WO2020248649A1/en

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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems

Definitions

  • the present disclosure relates to the field of computer information processing, and in particular, to a method, device, system, electronic equipment, and computer-readable medium for synchronous playback of audio and video data.
  • live broadcast terminals usually generate two types of data: audio and video data and signaling data.
  • audio and video data will pass CDN (Content Delivery Network).
  • CDN Content Delivery Network
  • the content distribution network is transmitted to other terminals, and the signaling data is directly transmitted to other terminals, so that other users can watch live broadcast or conduct video communication.
  • the present disclosure provides a method, device, system, electronic equipment, and computer readable medium for synchronous playback of audio and video data, which can solve the problem that audio and video data is not synchronized with the signaling information sent by the user during the video live broadcast process. .
  • a method for synchronously playing audio and video data includes: acquiring a first audio and video data packet from a first user terminal; and generating a second audio and video data packet from the first audio and video data packet and time stamp data. Audio and video data packets; and transmitting the second audio and video data packets to a second user terminal through a content distribution network for playback.
  • generating the second audio and video data packet from the first audio and video data packet and the time stamp data includes: converting the first audio and video data packet to generate the target audio and video data Data packet; and generating the second audio and video data packet through the target audio and video data packet and the time stamp data.
  • generating the second audio and video data packet by using the target audio and video data packet and the time stamp data includes: generating the time stamp data by the universal standard time; The time stamp data generates supplementary enhancement information; and the second audio and video data packet is generated through the target audio and video data packet and the supplementary enhancement information.
  • generating the second audio and video data packet by using the target audio and video data packet and the time stamp data includes: generating the time stamp data by universal standard time; and The time stamp data is written into the file name of the target audio and video data packet to generate the second audio and video data packet.
  • converting the first audio and video data packet to generate the target audio and video data packet includes: converting the first audio and video data packet based on real-time communication technology to generate Target audio and video data packets based on real-time messaging protocol.
  • performing conversion processing on the first audio and video data packet to generate a target audio and video data packet includes: performing format conversion processing on the data format of the first audio and video data packet to Generating the target audio and video data packet; and/or performing protocol conversion processing on the communication protocol of the first audio and video data packet to generate the target audio and video data packet; and/or converting the first audio and video data
  • the packet transmission protocol performs protocol conversion processing to generate the target audio and video data packet.
  • performing format conversion processing on the data format of the first audio and video data packet includes: performing format conversion processing on the video format in the first audio and video data packet; and/ Or perform format conversion processing on the audio format in the first audio and video data packet.
  • a method for synchronously playing audio and video data includes: obtaining at least one second audio and video data packet and at least one signaling information; and obtaining first time stamp data by parsing the signaling information Obtain second time stamp data by parsing the second audio and video data packet; and combine the at least one signaling information with the at least one second time stamp based on the first time stamp data and the second time stamp data Audio and video data packets are sorted in time for sequential playback.
  • the at least one signaling information and the at least one second audio and video data packet are processed based on the first time stamp data and the second time stamp data.
  • the time sorting includes: generating a play queue of the at least one second audio and video data packet based on the play time axis determined by the second time stamp data; and sorting the at least one message based on the first time stamp data Let information be inserted into the play queue.
  • the inserting the at least one signaling information into the play queue based on the first time stamp data includes: generating an exhibition time through the first time stamp data; The display time is compared with the play time in the play time axis, and the at least one signaling information is inserted into the play queue according to the comparison result.
  • a method for synchronously playing audio and video data includes: acquiring audio and video data, where the audio and video data includes at least one first audio and video data packet and at least one signaling information; and web-based
  • the instant messaging protocol sends the at least one first audio and video data packet to the at least one second client through the relay server, and sends the at least one signaling information to the at least one second client based on the transmission control protocol, To play audio and video data.
  • a device for synchronously playing audio and video data includes: a data transfer module for obtaining a first audio and video data packet from a first user terminal; and an information adding module for passing the An audio and video data packet and time stamp data generate a second audio and video data packet; and a data transmission module for transmitting the second audio and video data packet to a second user terminal through a content distribution network for playback.
  • a device for synchronously playing audio and video data includes: a data receiving module for acquiring at least one second audio and video data packet and at least one signaling information; a first time module for The first time stamp data is obtained by analyzing the signaling information; the second time module is used to obtain the second time stamp data by analyzing the second audio and video data packet; and the time sorting module is used to obtain the second time stamp data based on the first The time stamp data and the second time stamp data sort the at least one signaling information and the at least one second audio and video data packet in time so as to be played in sequence.
  • a device for synchronous playback of audio and video data includes: a data acquisition module for acquiring audio and video data.
  • the audio and video data includes at least one first audio and video data packet and at least one message. Command information; and a data sending module, configured to send the at least one first audio and video data packet to at least one second client through the relay server based on the web instant messaging protocol, and to send the at least one signaling based on the transmission control protocol
  • the information is sent to the at least one second user terminal for audio and video data playback.
  • a system for synchronous playback of audio and video data includes: a first user terminal for acquiring audio and video data, the audio and video data including at least one first audio and video data packet and at least one Signaling information; and sending the at least one first audio and video data packet to at least one second client through the relay server based on the web instant messaging protocol, and sending the at least one signaling information to the at least one second user terminal based on the transmission control protocol At least one second client terminal for playing audio and video data; a relay server for acquiring a first audio and video data packet from the first client terminal; generating a second audio and video data packet from the first audio and video data packet and time stamp data A data packet; and transmitting the second audio and video data packet through a content distribution network to a second user terminal for playback; and a content distribution network server for transmitting the second video data packet to the second user And a second user terminal for obtaining at least one second audio and video data packet and at least one signaling information; obtaining first time
  • an electronic device includes: one or more processors; a storage device for storing one or more programs; when one or more programs are used by one or more processors Execution enables one or more processors to implement the above method.
  • a computer-readable medium on which a computer program is stored, and the program is executed by a processor to implement the above method.
  • a second audio and video data packet is generated from the first audio and video data packet and time stamp data; and
  • the audio and video data packets are transmitted to the second user terminal through the content distribution network for display, which can solve the problem that the audio and video data is not synchronized with the signaling information sent by the user during the live video broadcast process.
  • Fig. 1 is a block diagram showing a system for synchronously playing audio and video data according to an exemplary embodiment.
  • Fig. 2 is a schematic diagram showing an application scenario of a system for synchronously playing audio and video data according to an exemplary embodiment.
  • Fig. 3 is a flowchart showing a method for synchronously playing audio and video data according to an exemplary embodiment.
  • Fig. 4 is a flow chart showing a method for synchronously playing audio and video data according to another exemplary embodiment.
  • Fig. 5 is a flowchart showing a method for synchronously playing audio and video data according to another exemplary embodiment.
  • Fig. 6 is a flowchart showing a system for synchronously playing audio and video data according to another exemplary embodiment.
  • Fig. 7 is a block diagram showing a device for synchronously playing audio and video data according to an exemplary embodiment.
  • Fig. 8 is a block diagram showing a device for synchronously playing audio and video data according to another exemplary embodiment.
  • Fig. 9 is a block diagram showing a device for synchronously playing audio and video data according to another exemplary embodiment.
  • Fig. 10 is a block diagram showing an electronic device according to an exemplary embodiment.
  • Fig. 11 is a block diagram showing a computer-readable medium according to an exemplary embodiment.
  • the inventor of the present disclosure found that in the process of online teaching on the network, the student end and the teacher end can use their respective terminals to implement the process of remote video teaching through the Internet.
  • the image and sound of the other party it receives are audio and video data
  • the text, red envelopes and other information it receives are signaling information.
  • the host said in the live broadcast I want to send a red envelope, and immediately sent the red envelope.
  • the audio and video data is not synchronized with the signaling information, the user may first receive the red packet information sent by the teacher, and then receive the teacher's audio data.
  • the current CDN manufacturers usually only support the method of transmitting audio and video data using the RTMP (Real Time Messaging Protocol) protocol. Therefore, in the existing video live broadcast technology, the anchor terminal uses the RTMP protocol to transmit real-time audio and video data to the CDN, and then the CDN distributes the real-time audio and video data to each user terminal, and then plays the real-time video data in the user terminal For live video streaming.
  • RTMP Real Time Messaging Protocol
  • This method of using RTMP protocol to transmit audio and video data in the host terminal requires a large amount of operating resources of the host terminal, which makes the host terminal data processing pressure is huge, and the delay phenomenon often occurs. This phenomenon not only takes up the higher system operation Ability also creates the problem of asynchrony between audio and video data and signaling information.
  • the present disclosure proposes a method for synchronously playing audio and video data. The method in the present disclosure will be described in detail below through specific embodiments.
  • the application scenario of live video broadcasting will be taken as an example to describe the method and device implementation of the synchronous playback of audio and video data, but it is worth mentioning that The method and device for synchronous playback of audio and video data can be applied to other actual scenes that require audio and video data transmission, and the non-disclosure is not limited to this.
  • Fig. 1 is a block diagram showing a system for synchronously playing audio and video data according to an exemplary embodiment.
  • the application scenario may include a first client device 101, a relay server 102, a content distribution network server 103, a network 104, and a second client device 105.
  • the network 104 is used to provide the medium of the communication link between the first client device 101 and the transfer server 102; the network 104 is also used to provide the medium of the communication link between the transfer server 102 and the content distribution network server 103; the network 104 It is also used as a medium for providing a communication link between the content distribution network server 103 and the second client device 105.
  • the network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables.
  • the first client device 101 may be various electronic devices that have a display screen and a camera and support data transmission
  • the second client device 105 may be various electronic devices that have a display screen and support video playback.
  • the device 101 and the second client device 105 may include, but are not limited to, a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and so on.
  • the first client device 101 and the second client device 105 can be installed with various communication client applications, such as live video platform applications, web browser applications, search applications, instant messaging tools, email clients, Social platform software, etc.
  • various communication client applications such as live video platform applications, web browser applications, search applications, instant messaging tools, email clients, Social platform software, etc.
  • the host user can use the first client device 101 to interact with the relay server 102 via the network 104 to receive or send audio and video data, etc.
  • the host user can also use the first client device 101 to interact with the content distribution network server 103 and the second client device 105 through the network 104 to receive or send audio and video data or various other signaling information; content distribution network server 103 can interact with the second client device 105 via the network 104.
  • the host user can use the first client device 101 to interact with the content distribution network server 103 and multiple second client devices 105 through the network 104 to receive or send audio and video data or various other Data, etc.; the content distribution network server 103 can interact with multiple second client devices 105 via the network 104.
  • the first client device 101 may, for example, obtain audio and video data, the audio and video data including at least one first audio and video data packet and at least one signaling information;
  • the at least one first audio and video data packet is sent to at least one second user terminal 105 through the transit server 102, and the at least one signaling information is sent to the at least one second user terminal 105 based on the transmission control protocol to Play audio and video data.
  • the relay server 102 may be a server that provides various services, for example, a data processing server that provides support for the audio and video data sent by the anchor user using the first client device 101.
  • the relay server 102 may analyze and process the received audio and video data, and send the processing result (for example, audio and video data with time stamp data) to the content distribution network server 103.
  • the relay server 102 can, for example, obtain the first audio and video data packet from the first client device 101; the relay server 102 can, for example, generate the second audio and video data packet from the first audio and video data packet and the time stamp data; the relay server 102 For example, the second audio and video data packet may be transmitted to the second client device 105 through a content distribution network for playback.
  • the transit server 102 may be a physical server, or may be composed of multiple servers, for example.
  • the content distribution network server 103 may be a server that provides data transmission, for example, a data transmission server that provides support for audio and video data sent by the relay server 102.
  • the content distribution network server 103 may process the received audio and video data before forwarding, and send the processing result (for example, audio and video data in a predetermined format) to the second content distribution client device 105.
  • the content distribution network server 103 may be a physical server, or may be composed of multiple servers, for example.
  • the content distribution network server 103 is a part of the CDN network.
  • the basic idea of the CND network is to avoid bottlenecks and links on the Internet that may affect the data transmission speed and stability as much as possible, so as to make content transmission faster and more stable.
  • the CDN composed of multiple content distribution network servers 103 can real-time according to network traffic and transit servers 102.
  • Comprehensive information such as the connection of the second client device 105, the load status, the distance to the second client device 105 and the response time, etc.
  • the purpose is to enable ordinary users in the present disclosure to obtain audio and video data nearby, solve the congestion of the Internet, and improve the response speed of the second client device 105 receiving audio and video data.
  • the CND network is a strategically deployed overall system, including four requirements for distributed storage, load balancing, network request redirection, and content management.
  • Content management and global network traffic management are The core of CDN lies.
  • the CDN network uses the proximity of the second client device 105 and the load of each content distribution network server 103 to determine data transmission and distribution.
  • the CDN network ensures that audio and video data is transmitted to the second in an extremely efficient manner.
  • user-end equipment At 105 user-end equipment.
  • the audio and video data will be further processed so as to be applicable to different user terminals.
  • the second audio The audio and video data generated by the video data packet processed by the CDN network is still called the second audio and video data packet.
  • ordinary users can use the second client device 105 to interact with the content distribution network server 103 through the network 104 to receive or send audio and video data or other various data.
  • Ordinary users can also use the second user-end device 105 to directly interact with the first user-end device 101 through the network 104 to receive or send signaling information.
  • the second user end device 105 may obtain at least one second audio/video data packet and at least one signaling information, for example; the second user end device 105 may obtain the first time stamp data, for example, by parsing the signaling information; the second user end The device 105 may, for example, obtain the second time stamp data by parsing the second audio and video data packet; the second client device 105 may, for example, convert the at least one time stamp data based on the first time stamp data and the second time stamp data.
  • the signaling information and the at least one second audio and video data packet are time-sorted so as to be played sequentially.
  • the method for synchronous playback of audio and video data can be executed by the first client device 101, the transfer server 102, and the second client device 105. Accordingly, the device for synchronous playback of audio and video data can be set In the first client device 101, the transfer server 102, and the second client device 105. More specifically, a device provided for the host user to generate audio and video data is located in the first client device 101, and a device provided for ordinary users to accept and play the video and audio data is located in the second client device 105.
  • Fig. 2 is a schematic diagram showing an application scenario of a method and device for synchronously playing audio and video data according to an exemplary embodiment.
  • the host user in the live broadcast application scenario, the host user generates audio and video data through the first user terminal, and then sends the audio and video data to the network.
  • Ordinary users receive the audio and video data through the second user terminal, and then send the audio and video data to the network.
  • the video data is played in the second client.
  • the student uses the second client (the second client can be a computer or mobile phone or other devices that can play audio and video) and the teacher uses the first client (The first user terminal can be a computer or a mobile phone or other device with a camera), students and teachers can use their respective terminals to use the Internet to realize the process of remote video teaching.
  • the received image and sound of the other party may be the audio and video data in the disclosure
  • the red envelope received may be the signaling information in the disclosure.
  • a second audio and video data packet is generated from the first audio and video data packet and time stamp data; and the second audio and video data packet is transmitted to the second audio and video data packet through a content distribution network
  • the user terminal can solve the problem that the audio and video data is not synchronized with the signaling information sent by the user in the video live broadcast process by displaying.
  • Fig. 3 is a flowchart showing a method for synchronously playing audio and video data according to an exemplary embodiment.
  • the method 30 for synchronously playing audio and video data can be applied to the first client.
  • the method 30 for synchronously playing audio and video data at least includes steps S302 to S304.
  • audio and video data is acquired, where the audio and video data includes at least one first audio and video data packet and at least one signaling information.
  • the first video data may be real-time video data generated by the host user
  • the signaling information may be information such as red packets generated by the host user.
  • the at least one first audio and video data packet is sent to the at least one second user terminal through the relay server based on the web instant messaging protocol, and the at least one signaling information is sent to the at least one second user terminal based on the transmission control protocol.
  • This may include, for example, sending the first audio and video data packet to the second client through the relay server based on the Web Real-Time Communication (WebRTC) protocol to display live video data.
  • WebRTC Web Real-Time Communication
  • the web instant messaging technology is an API (Application Programming Interface) that supports web browsers for real-time voice or video conversations.
  • WebRTC implements web-based video conferences with the purpose of providing simple javascript through the browser You can achieve real-time communication capabilities.
  • WebRTC provides the core technology of video conferencing, including audio and video collection, encoding and decoding, network transmission, display and other functions, and also supports cross-platform, including linux, windows, mac, android, etc.
  • This may include, for example, sending the signaling information to the second user terminal based on the Transmission Control Protocol (TCP) to display live video data.
  • TCP Transmission Control Protocol
  • the TCP protocol is a connection-oriented, reliable, byte stream-based transport layer communication protocol, which is defined by IETF RFC793.
  • User Datagram Protocol UDP
  • the TCP layer is an intermediate layer above the IP layer and below the application layer.
  • the application layers of different hosts often need reliable, pipe-like connections, but the IP layer does not provide such a flow mechanism, but provides unreliable packet exchange.
  • Fig. 4 is a flowchart showing a method for synchronously playing audio and video data according to an exemplary embodiment.
  • the method 40 for synchronously playing audio and video data can be applied to the transfer server.
  • the method 40 for synchronously playing audio and video data at least includes steps S402 to S406.
  • the first audio and video data packet from the first user terminal is acquired.
  • a second audio and video data packet is generated from the first audio and video data packet and the time stamp data.
  • the method includes: converting the first audio and video data packet to generate a target audio and video data packet; and generating the second audio and video data packet through the target audio and video data packet and the time stamp data.
  • generating the second audio and video data packet from the target audio and video data packet and the time stamp data includes: generating the time stamp data according to the universal standard time; generating supplements from the time stamp data Enhancement information; and generating the second audio and video data packet through the target audio and video data packet and the supplementary enhancement information.
  • the supplementary enhancement information may be SEI enhancement information, and the SEI carries the UTC (Universal Standard Time) timestamp when the audio and video data packet is received, and transmits the audio and video data to the CDN network.
  • generating the second audio and video data packet from the target audio and video data packet and the time stamp data includes: generating the time stamp data according to Universal Standard Time; and writing the time stamp data Into the file name of the target audio and video data packet to generate the second audio and video data packet.
  • the timestamp can also be written into the file name of the audio and video data packet in digital form, and the present disclosure is not limited to this.
  • converting the first audio and video data packet to generate a target audio and video data packet includes: converting the first audio and video data packet based on real-time communication technology to generate a real-time message transmission protocol based Target audio and video data packets.
  • converting the first audio and video data packet to generate a target audio and video data packet includes: performing format conversion processing on the data format of the first audio and video data packet to generate the target audio and video data. Data packet; and/or protocol conversion processing of the communication protocol of the first audio and video data packet to generate the target audio and video data packet; and/or protocol conversion of the transmission protocol of the first audio and video data packet Conversion processing to generate the target audio and video data packet.
  • performing format conversion processing on the data format of the first audio and video data packet includes: performing format conversion processing on the video format in the first audio and video data packet; and/or performing format conversion processing on the first audio and video data packet; The audio format in the audio and video data packet undergoes format conversion processing.
  • the communication protocol of the first audio and video data packet can be converted from the web instant messaging protocol (WebRTC) to the real-time message protocol (RTMP); the transmission protocol of the first audio and video data packet can be transferred to the user Datagram protocol (UDP, User Datagram Protocol) is converted to Transmission Control Protocol (Transmission Control Protocol, TCP); the video format in the first audio and video data packet is converted from VP8 to H264; the first audio and video data is converted The audio format in the package is converted from alphabet to AAC.
  • WebRTC web instant messaging protocol
  • RTMP real-time message protocol
  • TCP Transmission Control Protocol
  • TCP Transmission Control Protocol
  • the video format in the first audio and video data packet is converted from VP8 to H264
  • the first audio and video data is converted
  • the audio format in the package is converted from alphabet to AAC.
  • the second audio and video data packet is transmitted to the second user terminal through the content distribution network for display.
  • Fig. 5 is a flowchart showing a method for synchronously playing audio and video data according to an exemplary embodiment.
  • the method 50 for synchronously playing audio and video data can be applied to a second client.
  • the method 50 for synchronously playing audio and video data at least includes steps S502 to S508.
  • At least one second audio and video data packet and at least one signaling information are acquired.
  • the first time stamp data is obtained by parsing the signaling information.
  • the second time stamp data is obtained by parsing the second audio and video data packet.
  • the at least one signaling information and the at least one second audio and video data packet are time-sorted based on the first time stamp data and the second time stamp data, so as to be played sequentially.
  • a playback time axis can be generated based on the second time stamp data; a playback queue of the second audio and video data packet can be generated based on the playback time axis; and based on the first time stamp data Insert the signaling information into the play queue for display.
  • inserting the signaling information into the play queue for display based on the first time stamp data includes: generating a display time from the first time stamp data; and comparing the display time with The playing time in the playing time axis is compared, and the signaling information is inserted into the playing queue for display according to the comparison result.
  • Fig. 6 is a flowchart showing a system for displaying live video data according to another exemplary embodiment.
  • the method 60 for synchronous playback of audio and video data corresponding to FIG. 6 describes the entire working process of the video live data display system.
  • the first user end sends signaling information to the second user end.
  • the first user terminal sends the first audio and video data packet to the transit server.
  • the transit server processes the first audio and video data packet to generate a second audio and video data packet.
  • the transit server sends the second audio and video data packet to the CDN.
  • the CDN processes the second audio data.
  • the CDN sends the second audio and video data packet to the second client.
  • the second user segment analyzes the signaling information and the second audio and video data packet, and plays according to the analysis result.
  • a second audio and video data packet is generated from the first audio and video data packet and time stamp data; and the second audio and video data packet is transmitted to the second audio and video data packet through a content distribution network.
  • the user terminal can solve the problem that the audio and video data is not synchronized with the signaling information sent by the user in the video live broadcast process by displaying.
  • a computer program executed by a CPU.
  • the computer program executes the above-mentioned functions defined by the above-mentioned method provided in the present disclosure.
  • the program can be stored in a computer-readable storage medium, which can be a read-only memory, a magnetic disk, or an optical disk.
  • Fig. 7 is a block diagram showing a device for synchronously playing audio and video data according to an exemplary embodiment.
  • the device 70 for synchronous playback of audio and video data includes: a data acquisition module 702 and a data transmission module 704.
  • the data acquisition module 702 is configured to acquire audio and video data.
  • the audio and video data includes at least one first audio and video data packet and at least one signaling information; wherein the first video data can be real-time video data generated by the host user, and the signaling
  • the information can be information such as red envelopes generated by the host user.
  • the data sending module 704 is configured to send the at least one first audio and video data packet to at least one second user terminal through the transit server based on the web instant messaging protocol, and send the at least one signaling information to the at least one signaling information based on the transmission control protocol. Said at least one second user terminal for playing audio and video data.
  • This may include, for example, sending the first audio and video data packet to the second client through the relay server based on the Web Real-Time Communication (WebRTC) protocol to display live video data.
  • WebRTC Web Real-Time Communication
  • This may include, for example, sending the signaling information to the second user terminal based on the Transmission Control Protocol (TCP) to display live video data.
  • TCP Transmission Control Protocol
  • Fig. 8 is a block diagram showing a device for synchronously playing audio and video data according to another exemplary embodiment.
  • the device 80 for synchronously playing audio and video data includes: a data transfer module 802, an information addition module 804, and a data transmission module 806.
  • the data transfer module 802 is configured to obtain the first audio and video data packet from the first user terminal;
  • the information adding module 804 is configured to generate a second audio and video data packet from the first audio and video data packet and the time stamp data;
  • the first audio and video data packet is converted to generate a target audio and video data packet; and the second audio and video data packet is generated from the target audio and video data packet and the time stamp data.
  • the time stamp data may be generated according to the universal standard time; and the time stamp data may be written into the file name of the target audio and video data packet to generate the second audio and video data packet.
  • the timestamp may also be written into the file name of the audio and video data packet in digital form, and the present disclosure is not limited to this.
  • the third transmission module 806 is configured to transmit the second audio and video data packet to the second user terminal through the content distribution network for playback.
  • Fig. 9 is a block diagram showing a device for synchronously playing audio and video data according to another exemplary embodiment.
  • the device 90 for synchronously playing audio and video data includes: a data receiving module 902, a first time module 904, a second time module 906, and a time sorting module 908.
  • the data receiving module 902 is configured to obtain at least one second audio and video data packet and at least one signaling information
  • the first time module 904 is configured to obtain first time stamp data by parsing the signaling information
  • the second time module 906 is configured to obtain second time stamp data by parsing the second audio and video data packet.
  • the time sorting module 908 is configured to sort the at least one signaling information and the at least one second audio and video data packet in time based on the first time stamp data and the second time stamp data, so as to be played sequentially.
  • a playback time axis can be generated based on the second time stamp data; a playback queue of the second audio and video data packet can be generated based on the playback time axis; and based on the first time stamp data Insert the signaling information into the play queue for display.
  • inserting the signaling information into the play queue for display based on the first time stamp data includes: generating a display time from the first time stamp data; and comparing the display time with The playing time in the playing time axis is compared, and the signaling information is inserted into the playing queue for display according to the comparison result.
  • a second audio and video data packet is generated from the first audio and video data packet and time stamp data; and the second audio and video data packet is transmitted to the second audio and video data packet through a content distribution network.
  • the user terminal can solve the problem that the audio and video data is not synchronized with the signaling information sent by the user in the video live broadcast process by displaying.
  • Fig. 10 is a block diagram showing an electronic device according to an exemplary embodiment.
  • the electronic device 200 according to this embodiment of the present disclosure will be described below with reference to FIG. 10.
  • the electronic device 200 shown in FIG. 10 is only an example, and should not bring any limitation to the function and use range of the embodiments of the present disclosure.
  • the electronic device 200 is represented in the form of a general-purpose computing device.
  • the components of the electronic device 200 may include but are not limited to: at least one processing unit 210, at least one storage unit 220, a bus 230 connecting different system components (including the storage unit 220 and the processing unit 210), a display unit 240, and the like.
  • the storage unit stores program code, and the program code can be executed by the processing unit 210, so that the processing unit 210 executes the various exemplary methods described in the above-mentioned electronic prescription circulation processing method section of this specification.
  • Implementation steps For example, the processing unit 210 may execute the steps shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6.
  • the storage unit 220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 2201 and/or a cache storage unit 2202, and may further include a read-only storage unit (ROM) 2203.
  • RAM random access storage unit
  • ROM read-only storage unit
  • the storage unit 220 may also include a program/utility tool 2204 having a set of (at least one) program module 2205.
  • program module 2205 includes but is not limited to: an operating system, one or more application programs, other program modules, and programs. Data, each of these examples or some combination may include the realization of a network environment.
  • the bus 230 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any bus structure among multiple bus structures. bus.
  • the electronic device 200 can also communicate with one or more external devices 300 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 200, and/or communicate with Any device (such as a router, modem, etc.) that enables the electronic device 200 to communicate with one or more other computing devices. This communication can be performed through an input/output (I/O) interface 250.
  • the electronic device 200 may also communicate with one or more networks (for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 260.
  • the network adapter 260 can communicate with other modules of the electronic device 200 through the bus 230.
  • the exemplary embodiments described herein can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, as shown in FIG. 11, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product.
  • the software product can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, or mobile hard disk). Etc.) or on the network, including several instructions to make a computing device (which may be a personal computer, a server, or a network device, etc.) execute the above method according to the embodiments of the present disclosure.
  • the software product can use any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the computer-readable storage medium may include a data signal propagated in baseband or as a part of a carrier wave, and readable program code is carried therein.
  • This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the readable storage medium may also be any readable medium other than the readable storage medium, and the readable medium can send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device.
  • the program code contained on the readable storage medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
  • the program code used to perform the operations of the present disclosure can be written in any combination of one or more programming languages.
  • the programming languages include object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural styles. Programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computing device, partly on the user's device, executed as an independent software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device or server Executed on.
  • the remote computing device can be connected to a user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using Internet service providers) Business to connect via the Internet).
  • LAN local area network
  • WAN wide area network
  • Internet service providers Internet service providers
  • the aforementioned computer-readable medium carries one or more programs, and when the aforementioned one or more programs are executed by a device, the computer-readable medium realizes the following functions: acquiring the first audio and video data packet from the first user terminal; Generate a second audio and video data packet through the first audio and video data packet and the time stamp data; and transmit the second audio and video data packet to a second user terminal through a content distribution network for playback.
  • modules can be distributed in the device according to the description of the embodiment, or corresponding changes can be made in one or more devices that are uniquely different from this embodiment.
  • the modules of the above-mentioned embodiments can be combined into one module or further divided into multiple sub-modules.
  • the exemplary embodiments described here can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , Including several instructions to make a computing device (which may be a personal computer, server, mobile terminal, or network device, etc.) execute the method according to the embodiments of the present disclosure.
  • a non-volatile storage medium which can be a CD-ROM, U disk, mobile hard disk, etc.
  • Including several instructions to make a computing device which may be a personal computer, server, mobile terminal, or network device, etc.

Abstract

The present disclosure relates to an audio and video data synchronous playback method, apparatus and system, an electronic device and a computer readable medium. Said method comprises: acquiring a first audio and video data packet from a first user terminal; generating a second audio and video data packet by means of the first audio and video data packet and timestamp data; and transmitting, by means of a content delivery network, the second audio and video data packet to a second user terminal for playback. The audio and video data synchronous playback method, apparatus and system, the electronic device and the computer readable medium of the present disclosure can solve the problem that audio and video data and signaling information sent by a user are not synchronous in the process of live broadcast of videos.

Description

音视频数据同步播放方法、装置、系统、电子设备及介质Method, device, system, electronic equipment and medium for synchronous playback of audio and video data 技术领域Technical field
本公开涉及计算机信息处理领域,具体而言,涉及一种音视频数据同步播放方法、装置、系统、电子设备及计算机可读介质。The present disclosure relates to the field of computer information processing, and in particular, to a method, device, system, electronic equipment, and computer-readable medium for synchronous playback of audio and video data.
背景技术Background technique
随着传输技术的发展和用户实时交流的需求的增加,实时的视频传输技术涌现出来。例如视频直播技术,目前的视频直播技术的基本处理步骤为:直播终端通常会产生两种数据:音视频数据和信令数据,其中,采集、编码后的音视频数据会通过CDN(Content Delivery Network,内容分发网络)传送到其他终端中,而信令数据则会直接发送至其他终端中,由此其他用户进行直播观看或进行视频通讯。With the development of transmission technology and the increasing demand for real-time communication among users, real-time video transmission technologies have emerged. For example, video live broadcast technology, the basic processing steps of current video live broadcast technology are: live broadcast terminals usually generate two types of data: audio and video data and signaling data. Among them, the collected and encoded audio and video data will pass CDN (Content Delivery Network). , The content distribution network) is transmitted to other terminals, and the signaling data is directly transmitted to other terminals, so that other users can watch live broadcast or conduct video communication.
由于音视频数据大多采用RTMP协议(Real-Time Messaging Protocol,实时消息传输协议)传输给CDN,再由CDN分发给其他终端,而信令信息则为通过TCP协议直接传输给其他终端。因此,两种传输方式有可能产生不同步的问题。对于用户而言,不同步的音视频和信令会带来很大的困扰,在当前的技术方案中,上述的问题均没有得到解决,这种技术困境给用户带来了极大的不便。Since most of the audio and video data is transmitted to the CDN using the RTMP protocol (Real-Time Messaging Protocol), and then distributed to other terminals by the CDN, the signaling information is directly transmitted to other terminals through the TCP protocol. Therefore, the two transmission methods may cause the problem of out of synchronization. For users, asynchronous audio, video and signaling will cause great troubles. In the current technical solutions, none of the above-mentioned problems have been solved. This technical dilemma has brought great inconvenience to users.
因此,需要一种新的音视频数据同步播放方法、装置、系统、电子设备及计算机可读介质。Therefore, there is a need for a new method, device, system, electronic equipment, and computer-readable medium for synchronous playback of audio and video data.
在所述背景技术部分公开的上述信息仅用于加强对本公开的背景的理解,因此它可以包括不构成对本领域普通技术人员已知的现有技术的信息。The above-mentioned information disclosed in the background section is only used to enhance the understanding of the background of the present disclosure, so it may include information that does not constitute the prior art known to those of ordinary skill in the art.
发明内容Summary of the invention
有鉴于此,本公开提供一种音视频数据同步播放方法、装置、系统、电子设备及计算机可读介质,能够在视频直播过程中,解决音视频数据与用户发送的信令信息不同步的问题。In view of this, the present disclosure provides a method, device, system, electronic equipment, and computer readable medium for synchronous playback of audio and video data, which can solve the problem that audio and video data is not synchronized with the signaling information sent by the user during the video live broadcast process. .
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other characteristics and advantages of the present disclosure will become apparent through the following detailed description, or partly learned through the practice of the present disclosure.
根据本公开的一方面,提出一种音视频数据同步播放方法,该方法包括:获取来自第一用户端的第一音视频数据包;通过所述第一音视频数据包和时间戳数据生成第二音视频数据包;以及将所述第二音视频数据包通过内容分发网络传输至第二用户端以进行播放。According to an aspect of the present disclosure, a method for synchronously playing audio and video data is provided. The method includes: acquiring a first audio and video data packet from a first user terminal; and generating a second audio and video data packet from the first audio and video data packet and time stamp data. Audio and video data packets; and transmitting the second audio and video data packets to a second user terminal through a content distribution network for playback.
在本公开的一种示例性实施例中,通过所述第一音视频数据包和时间戳数据生成第二音视频数据包包括:将所述第一音视频数据包进行转换处理生成目标音视频数据包;以及通过所述目标音视频数据包与所述时间戳数据生成所述第二音视频数据包。In an exemplary embodiment of the present disclosure, generating the second audio and video data packet from the first audio and video data packet and the time stamp data includes: converting the first audio and video data packet to generate the target audio and video data Data packet; and generating the second audio and video data packet through the target audio and video data packet and the time stamp data.
在本公开的一种示例性实施例中,通过所述目标音视频数据包与所述时间戳数据生成所述第二音视频数据包包括:通过世界标准时间生成所述时间戳数据;通过所述时间戳数 据生成补充增强信息;以及通过所述目标音视频数据包与所述补充增强信息生成所述第二音视频数据包。In an exemplary embodiment of the present disclosure, generating the second audio and video data packet by using the target audio and video data packet and the time stamp data includes: generating the time stamp data by the universal standard time; The time stamp data generates supplementary enhancement information; and the second audio and video data packet is generated through the target audio and video data packet and the supplementary enhancement information.
在本公开的一种示例性实施例中,通过所述目标音视频数据包与所述时间戳数据生成所述第二音视频数据包包括:通过世界标准时间生成所述时间戳数据;以及将所述时间戳数据写入所述目标音视频数据包的文件名中以生成所述第二音视频数据包。In an exemplary embodiment of the present disclosure, generating the second audio and video data packet by using the target audio and video data packet and the time stamp data includes: generating the time stamp data by universal standard time; and The time stamp data is written into the file name of the target audio and video data packet to generate the second audio and video data packet.
在本公开的一种示例性实施例中,将所述第一音视频数据包进行转换处理生成目标音视频数据包包括:将基于实时通信技术的所述第一音视频数据包进行转换处理生成基于实时消息传输协议的目标音视频数据包。In an exemplary embodiment of the present disclosure, converting the first audio and video data packet to generate the target audio and video data packet includes: converting the first audio and video data packet based on real-time communication technology to generate Target audio and video data packets based on real-time messaging protocol.
在本公开的一种示例性实施例中,将所述第一音视频数据包进行转换处理生成目标音视频数据包包括:将所述第一音视频数据包的数据格式进行格式转换处理,以生成所述目标音视频数据包;和/或将所述第一音视频数据包的通信协议进行协议转换处理,以生成所述目标音视频数据包;和/或将所述第一音视频数据包的传输协议进行协议转换处理,以生成所述目标音视频数据包。In an exemplary embodiment of the present disclosure, performing conversion processing on the first audio and video data packet to generate a target audio and video data packet includes: performing format conversion processing on the data format of the first audio and video data packet to Generating the target audio and video data packet; and/or performing protocol conversion processing on the communication protocol of the first audio and video data packet to generate the target audio and video data packet; and/or converting the first audio and video data The packet transmission protocol performs protocol conversion processing to generate the target audio and video data packet.
在本公开的一种示例性实施例中,将所述第一音视频数据包的数据格式进行格式转换处理包括:将所述第一音视频数据包中的视频格式进行格式转换处理;和/或将所述第一音视频数据包中的音频格式进行格式转换处理。In an exemplary embodiment of the present disclosure, performing format conversion processing on the data format of the first audio and video data packet includes: performing format conversion processing on the video format in the first audio and video data packet; and/ Or perform format conversion processing on the audio format in the first audio and video data packet.
根据本公开的一方面,提出一种音视频数据同步播放方法,该方法包括:获取至少一个第二音视频数据包和至少一个信令信息;通过解析所述信令信息获取第一时间戳数据;通过解析所述第二音视频数据包获取第二时间戳数据;以及基于所述第一时间戳数据和所述第二时间戳数据将所述至少一个信令信息和所述至少一个第二音视频数据包进行时间排序,以便依序播放。According to one aspect of the present disclosure, a method for synchronously playing audio and video data is provided. The method includes: obtaining at least one second audio and video data packet and at least one signaling information; and obtaining first time stamp data by parsing the signaling information Obtain second time stamp data by parsing the second audio and video data packet; and combine the at least one signaling information with the at least one second time stamp based on the first time stamp data and the second time stamp data Audio and video data packets are sorted in time for sequential playback.
在本公开的一种示例性实施例中,所述基于所述第一时间戳数据和所述第二时间戳数据将所述至少一个信令信息和所述至少一个第二音视频数据包进行时间排序,包括:通过所述第二时间戳数据所确定的播放时间轴,生成所述至少一个第二音视频数据包的播放队列;以及基于所述第一时间戳数据将所述至少一个信令信息插入到所述播放队列。In an exemplary embodiment of the present disclosure, the at least one signaling information and the at least one second audio and video data packet are processed based on the first time stamp data and the second time stamp data. The time sorting includes: generating a play queue of the at least one second audio and video data packet based on the play time axis determined by the second time stamp data; and sorting the at least one message based on the first time stamp data Let information be inserted into the play queue.
在本公开的一种示例性实施例中,所述基于所述第一时间戳数据将所述至少一个信令信息插入到所述播放队列包括:通过所述第一时间戳数据生成展示时间;将所述展示时间与所述播放时间轴中的播放时间进行比较,以及根据比较结果将所述至少一个信令信息插入到所述播放队列。In an exemplary embodiment of the present disclosure, the inserting the at least one signaling information into the play queue based on the first time stamp data includes: generating an exhibition time through the first time stamp data; The display time is compared with the play time in the play time axis, and the at least one signaling information is inserted into the play queue according to the comparison result.
根据本公开的一方面,提出一种音视频数据同步播放方法,该方法包括:获取音视频数据,所述音视频数据包括至少一个第一音视频数据包和至少一个信令信息;以及基于网页即时通信协议将所述至少一个第一音视频数据包通过中转服务器发送到至少一个第二用户端,并基于传输控制协议将所述至少一个信令信息发送至所述至少一个第二用户端,以进行音视频数据播放。According to one aspect of the present disclosure, a method for synchronously playing audio and video data is proposed. The method includes: acquiring audio and video data, where the audio and video data includes at least one first audio and video data packet and at least one signaling information; and web-based The instant messaging protocol sends the at least one first audio and video data packet to the at least one second client through the relay server, and sends the at least one signaling information to the at least one second client based on the transmission control protocol, To play audio and video data.
根据本公开的一方面,提出一种音视频数据同步播放装置,该装置包括:数据中转模块,用于获取来自第一用户端的第一音视频数据包;信息添加模块,用于通过所述第一音视频数据包和时间戳数据生成第二音视频数据包;以及数据传输模块,用于将所述第二音视频数据包通过内容分发网络传输至第二用户端以进行播放。。According to one aspect of the present disclosure, a device for synchronously playing audio and video data is provided. The device includes: a data transfer module for obtaining a first audio and video data packet from a first user terminal; and an information adding module for passing the An audio and video data packet and time stamp data generate a second audio and video data packet; and a data transmission module for transmitting the second audio and video data packet to a second user terminal through a content distribution network for playback. .
根据本公开的一方面,提出一种音视频数据同步播放装置,该装置包括:数据接收模块,用于获取至少一个第二音视频数据包和至少一个信令信息;第一时间模块,用于通过解析所述信令信息获取第一时间戳数据;第二时间模块,用于通过解析所述第二音视频数据包获取第二时间戳数据;以及时间排序模块,用于基于所述第一时间戳数据和所述第二时间戳数据将所述至少一个信令信息和所述至少一个第二音视频数据包进行时间排序,以便依序播放。According to one aspect of the present disclosure, a device for synchronously playing audio and video data is provided. The device includes: a data receiving module for acquiring at least one second audio and video data packet and at least one signaling information; a first time module for The first time stamp data is obtained by analyzing the signaling information; the second time module is used to obtain the second time stamp data by analyzing the second audio and video data packet; and the time sorting module is used to obtain the second time stamp data based on the first The time stamp data and the second time stamp data sort the at least one signaling information and the at least one second audio and video data packet in time so as to be played in sequence.
根据本公开的一方面,提出一种音视频数据同步播放装置,该装置包括:数据获取模块,用于获取音视频数据,所述音视频数据包括至少一个第一音视频数据包和至少一个信令信息;以及数据发送模块,用于基于网页即时通信协议将所述至少一个第一音视频数据包通过中转服务器发送到至少一个第二用户端,并基于传输控制协议将所述至少一个信令信息发送至所述至少一个第二用户端,以进行音视频数据播放。According to one aspect of the present disclosure, a device for synchronous playback of audio and video data is provided. The device includes: a data acquisition module for acquiring audio and video data. The audio and video data includes at least one first audio and video data packet and at least one message. Command information; and a data sending module, configured to send the at least one first audio and video data packet to at least one second client through the relay server based on the web instant messaging protocol, and to send the at least one signaling based on the transmission control protocol The information is sent to the at least one second user terminal for audio and video data playback.
根据本公开的一方面,提出一种音视频数据同步播放系统,该系统包括:第一用户端,用于获取音视频数据,所述音视频数据包括至少一个第一音视频数据包和至少一个信令信息;以及基于网页即时通信协议将所述至少一个第一音视频数据包通过中转服务器发送到至少一个第二用户端,并基于传输控制协议将所述至少一个信令信息发送至所述至少一个第二用户端,以进行音视频数据播放;中转服务器,用于获取来自第一用户端的第一音视频数据包;通过所述第一音视频数据包和时间戳数据生成第二音视频数据包;以及将所述第二音视频数据包通过内容分发网络传输至第二用户端以进行播放;以及内容分发网络服务器,用于将所述第二视频数据包传输至所述第二用户端;以及第二用户端,用于获取至少一个第二音视频数据包和至少一个信令信息;通过解析所述信令信息获取第一时间戳数据;通过解析所述第二音视频数据包获取第二时间戳数据;以及基于所述第一时间戳数据和所述第二时间戳数据将所述至少一个信令信息和所述至少一个第二音视频数据包进行时间排序,以便依序播放。According to one aspect of the present disclosure, a system for synchronous playback of audio and video data is provided. The system includes: a first user terminal for acquiring audio and video data, the audio and video data including at least one first audio and video data packet and at least one Signaling information; and sending the at least one first audio and video data packet to at least one second client through the relay server based on the web instant messaging protocol, and sending the at least one signaling information to the at least one second user terminal based on the transmission control protocol At least one second client terminal for playing audio and video data; a relay server for acquiring a first audio and video data packet from the first client terminal; generating a second audio and video data packet from the first audio and video data packet and time stamp data A data packet; and transmitting the second audio and video data packet through a content distribution network to a second user terminal for playback; and a content distribution network server for transmitting the second video data packet to the second user And a second user terminal for obtaining at least one second audio and video data packet and at least one signaling information; obtaining first time stamp data by analyzing the signaling information; and analyzing the second audio and video data packet Acquiring second time stamp data; and chronologically sorting the at least one signaling information and the at least one second audio and video data packet based on the first time stamp data and the second time stamp data, so as to be sequentially Play.
根据本公开的一方面,提出一种电子设备,该电子设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如上文的方法。According to an aspect of the present disclosure, an electronic device is provided. The electronic device includes: one or more processors; a storage device for storing one or more programs; when one or more programs are used by one or more processors Execution enables one or more processors to implement the above method.
根据本公开的一方面,提出一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如上文中的方法。According to an aspect of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and the program is executed by a processor to implement the above method.
根据本公开的音视频数据同步播放方法、装置、系统、电子设备及计算机可读介质,通过所述第一音视频数据包和时间戳数据生成第二音视频数据包;以及将所述第二音视频数据包通过内容分发网络传输至第二用户端以进行显示的方式,能够在视频直播过程中,解决音视频数据与用户发送的信令信息不同步的问题。According to the method, device, system, electronic device and computer-readable medium for synchronous playback of audio and video data of the present disclosure, a second audio and video data packet is generated from the first audio and video data packet and time stamp data; and The audio and video data packets are transmitted to the second user terminal through the content distribution network for display, which can solve the problem that the audio and video data is not synchronized with the signaling information sent by the user during the live video broadcast process.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and cannot limit the present disclosure.
附图说明Description of the drawings
通过参照附图详细描述其示例实施例,本公开的上述和其它目标、特征及优点将变得更加显而易见。下面描述的附图仅仅是本公开的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。By describing its exemplary embodiments in detail with reference to the accompanying drawings, the above and other objectives, features, and advantages of the present disclosure will become more apparent. The drawings described below are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1是根据一示例性实施例示出的一种音视频数据同步播放系统的框图。Fig. 1 is a block diagram showing a system for synchronously playing audio and video data according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种音视频数据同步播放系统的应用场景示意图。Fig. 2 is a schematic diagram showing an application scenario of a system for synchronously playing audio and video data according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种音视频数据同步播放方法的流程图。Fig. 3 is a flowchart showing a method for synchronously playing audio and video data according to an exemplary embodiment.
图4是根据另一示例性实施例示出的一种音视频数据同步播放方法的流程图。Fig. 4 is a flow chart showing a method for synchronously playing audio and video data according to another exemplary embodiment.
图5是根据另一示例性实施例示出的一种音视频数据同步播放方法的流程图。Fig. 5 is a flowchart showing a method for synchronously playing audio and video data according to another exemplary embodiment.
图6是根据另一示例性实施例示出的一种音视频数据同步播放系统的流程图。Fig. 6 is a flowchart showing a system for synchronously playing audio and video data according to another exemplary embodiment.
图7是根据一示例性实施例示出的一种音视频数据同步播放装置的框图。Fig. 7 is a block diagram showing a device for synchronously playing audio and video data according to an exemplary embodiment.
图8是根据另一示例性实施例示出的一种音视频数据同步播放装置的框图。Fig. 8 is a block diagram showing a device for synchronously playing audio and video data according to another exemplary embodiment.
图9是根据另一示例性实施例示出的一种音视频数据同步播放装置的框图。Fig. 9 is a block diagram showing a device for synchronously playing audio and video data according to another exemplary embodiment.
图10是根据一示例性实施例示出的一种电子设备的框图。Fig. 10 is a block diagram showing an electronic device according to an exemplary embodiment.
图11是根据一示例性实施例示出的一种计算机可读介质的框图。Fig. 11 is a block diagram showing a computer-readable medium according to an exemplary embodiment.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施例。然而,示例实施例能够以多种形式实施,且不应被理解为限于在此阐述的实施例;相反,提供这些实施例使得本公开将全面和完整,并将示例实施例的构思全面地传达给本领域的技术人员。在图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms, and should not be construed as being limited to the embodiments set forth herein; on the contrary, these embodiments are provided so that this disclosure will be comprehensive and complete, and fully convey the concept of the example embodiments To those skilled in the art. In the figures, the same reference numerals denote the same or similar parts, and thus their repeated description will be omitted.
此外,所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施例中。在下面的描述中,提供许多具体细节从而给出对本公开的实施例的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而没有特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知方法、装置、实现或者操作以避免模糊本公开的各方面。Furthermore, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to give a sufficient understanding of the embodiments of the present disclosure. However, those skilled in the art will realize that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be used. In other cases, well-known methods, devices, implementations or operations are not shown or described in detail to avoid obscuring aspects of the present disclosure.
附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The block diagrams shown in the drawings are merely functional entities, and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in the form of software, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and/or processor devices and/or microcontroller devices. entity.
附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowchart shown in the drawings is only an exemplary description, and does not necessarily include all contents and operations/steps, nor does it have to be performed in the described order. For example, some operations/steps can be decomposed, and some operations/steps can be combined or partially combined, so the actual execution order may be changed according to actual conditions.
应理解,虽然本文中可能使用术语第一、第二、第三等来描述各种组件,但这些组件不应受这些术语限制。这些术语乃用以区分一组件与另一组件。因此,下文论述的第一组件可称为第二组件而不偏离本公开概念的教示。如本文中所使用,术语“及/或”包括相关联的列出项目中的任一个及一或多者的所有组合。It should be understood that although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another. Therefore, the first component discussed below may be referred to as the second component without departing from the teaching of the concepts of the present disclosure. As used herein, the term "and/or" includes any one and all combinations of one or more of the associated listed items.
本领域技术人员可以理解,附图只是示例实施例的示意图,附图中的模块或流程并不一定是实施本公开所必须的,因此不能用于限制本公开的保护范围。Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of exemplary embodiments, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present disclosure, and therefore cannot be used to limit the protection scope of the present disclosure.
本公开的发明人发现,网络在线授课过程中,学生端和教师端可以通过各自的终端,利用互联网实现远程视频授课的过程。其中,对于任一用户端而言,其接收到的对方的图像和声音为音视频数据,而其接收到的文字,红包等信息为信令信息。例如,当主播在直播中说:我要发红包了,并立即发送了红包。然而由于音视频数据与信令信息的不同步, 导致用户可能会先接收到老师发送的红包信息,然后再接收到老师的音频数据。The inventor of the present disclosure found that in the process of online teaching on the network, the student end and the teacher end can use their respective terminals to implement the process of remote video teaching through the Internet. Among them, for any client, the image and sound of the other party it receives are audio and video data, and the text, red envelopes and other information it receives are signaling information. For example, when the host said in the live broadcast: I want to send a red envelope, and immediately sent the red envelope. However, because the audio and video data is not synchronized with the signaling information, the user may first receive the red packet information sent by the teacher, and then receive the teacher's audio data.
在现有技术中,由于目前的CDN厂商通常只支持利用RTMP(Real Time Messaging Protocol,实时消息传输协议)协议传输音视频数据的方式。因此现有的视频直播技术中,主播终端均利用RTMP协议将实时的音视频数据传输给CDN,再由CDN将实时的音视频数据分发到各个用户终端中,然后在用户终端中播放实时视频数据以进行视频直播。In the prior art, the current CDN manufacturers usually only support the method of transmitting audio and video data using the RTMP (Real Time Messaging Protocol) protocol. Therefore, in the existing video live broadcast technology, the anchor terminal uses the RTMP protocol to transmit real-time audio and video data to the CDN, and then the CDN distributes the real-time audio and video data to each user terminal, and then plays the real-time video data in the user terminal For live video streaming.
这种在主播终端中利用RTMP协议传输音视频数据的方式需要占用主播终端较大的运行资源,使得主播终端数据处理压力巨大,时延现象经常发生,这种现象不仅占用了较高的系统运行能力,也产生了音视频数据和信令信息不同步的问题。为了解决现有技术中存在的问题,本公开提出了音视频数据同步播放方法。下面将通过具体的实施例对本公开中的方法进行详细描述。This method of using RTMP protocol to transmit audio and video data in the host terminal requires a large amount of operating resources of the host terminal, which makes the host terminal data processing pressure is huge, and the delay phenomenon often occurs. This phenomenon not only takes up the higher system operation Ability also creates the problem of asynchrony between audio and video data and signaling information. In order to solve the problems in the prior art, the present disclosure proposes a method for synchronously playing audio and video data. The method in the present disclosure will be described in detail below through specific embodiments.
值得一提的是,在本公开的实施例中,将以视频直播的应用场景为例来进行具体的关于音视频数据同步播放方法及装置实现方式描述,但是值得一提的是本公开中的音视频数据同步播放方法及装置可应用于其他需要音视频数据传输的实际场景中,不公开不以此为限。It is worth mentioning that in the embodiments of the present disclosure, the application scenario of live video broadcasting will be taken as an example to describe the method and device implementation of the synchronous playback of audio and video data, but it is worth mentioning that The method and device for synchronous playback of audio and video data can be applied to other actual scenes that require audio and video data transmission, and the non-disclosure is not limited to this.
图1是根据一示例性实施例示出的一种音视频数据同步播放系统的框图。Fig. 1 is a block diagram showing a system for synchronously playing audio and video data according to an exemplary embodiment.
如图1所示,应用场景可以包括第一用户端设备101,中转服务器102,内容分发网络服务器103,网络104和第二用户端设备105。网络104用以在第一用户端设备101,中转服务器102之间提供通信链路的介质;网络104还用以在中转服务器102,内容分发网络服务器103之间提供通信链路的介质;网络104还用以在内容分发网络服务器103和第二用户端设备105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1, the application scenario may include a first client device 101, a relay server 102, a content distribution network server 103, a network 104, and a second client device 105. The network 104 is used to provide the medium of the communication link between the first client device 101 and the transfer server 102; the network 104 is also used to provide the medium of the communication link between the transfer server 102 and the content distribution network server 103; the network 104 It is also used as a medium for providing a communication link between the content distribution network server 103 and the second client device 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables.
其中,第一用户端设备101可以是具有显示屏、摄像头并且支持数据传输的各种电子设备,第二用户端设备105可以是具有显示屏并且支持视频播放的各种电子设备,第一用户端设备101与第二用户端设备105可以包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。Among them, the first client device 101 may be various electronic devices that have a display screen and a camera and support data transmission, and the second client device 105 may be various electronic devices that have a display screen and support video playback. The device 101 and the second client device 105 may include, but are not limited to, a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and so on.
其中,第一用户端设备101和第二用户端设备105上可以安装有各种通讯客户端应用,例如视频直播类平台应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。Among them, the first client device 101 and the second client device 105 can be installed with various communication client applications, such as live video platform applications, web browser applications, search applications, instant messaging tools, email clients, Social platform software, etc.
在直播的应用场景中,主播用户可以使用第一用户端设备101通过网络104与中转服务器102交互,以接收或发送音视频数据等。主播用户还可以使用第一用户端设备101通过网络104与内容分发网络服务器103、第二用户端设备105进行交互,以接收或发送音视频数据或其他各种信令信息等;内容分发网络服务器103可通过网络104与第二用户端设备105进行交互。In a live broadcast application scenario, the host user can use the first client device 101 to interact with the relay server 102 via the network 104 to receive or send audio and video data, etc. The host user can also use the first client device 101 to interact with the content distribution network server 103 and the second client device 105 through the network 104 to receive or send audio and video data or various other signaling information; content distribution network server 103 can interact with the second client device 105 via the network 104.
在直播的应用场景中,主播用户可以使用第一用户端设备101通过网络104与内容分发网络服务器103、和多个第二用户端设备105进行交互,以接收或发送音视频数据或其他各种数据等;内容分发网络服务器103可通过网络104与多个第二用户端设备105进行交互。In the live broadcast application scenario, the host user can use the first client device 101 to interact with the content distribution network server 103 and multiple second client devices 105 through the network 104 to receive or send audio and video data or various other Data, etc.; the content distribution network server 103 can interact with multiple second client devices 105 via the network 104.
其中,第一用户端设备101可例如获取音视频数据,所述音视频数据包括至少一个第 一音视频数据包和至少一个信令信息;第一用户端设备101可例如基于网页即时通信协议将所述至少一个第一音视频数据包通过中转服务器102发送到至少一个第二用户端105,并基于传输控制协议将所述至少一个信令信息发送至所述至少一个第二用户端105,以进行音视频数据播放。Among them, the first client device 101 may, for example, obtain audio and video data, the audio and video data including at least one first audio and video data packet and at least one signaling information; The at least one first audio and video data packet is sent to at least one second user terminal 105 through the transit server 102, and the at least one signaling information is sent to the at least one second user terminal 105 based on the transmission control protocol to Play audio and video data.
中转服务器102可以是提供各种服务的服务器,例如对主播用户利用第一用户端设备101所发送的音视频数据提供支持的数据处理服务器。中转服务器102可以对接收到的音视频数据进行分析等处理,并将处理结果(例如添加时间戳数据的音视频数据)发送给内容分发网络服务器103。The relay server 102 may be a server that provides various services, for example, a data processing server that provides support for the audio and video data sent by the anchor user using the first client device 101. The relay server 102 may analyze and process the received audio and video data, and send the processing result (for example, audio and video data with time stamp data) to the content distribution network server 103.
中转服务器102可例如获取来自第一用户端设备101的第一音视频数据包;中转服务器102可例如通过所述第一音视频数据包和时间戳数据生成第二音视频数据包;中转服务器102可例如将所述第二音视频数据包通过内容分发网络传输至第二用户端设备105以进行播放。The relay server 102 can, for example, obtain the first audio and video data packet from the first client device 101; the relay server 102 can, for example, generate the second audio and video data packet from the first audio and video data packet and the time stamp data; the relay server 102 For example, the second audio and video data packet may be transmitted to the second client device 105 through a content distribution network for playback.
更进一步的,中转服务器102可以是一个实体的服务器,还可例如为多个服务器组成。Furthermore, the transit server 102 may be a physical server, or may be composed of multiple servers, for example.
内容分发网络服务器103可以是提供数据传输的服务器,例如对由中转服务器102发送的音视频数据提供支持的数据传输服务器。内容分发网络服务器103可以对接收到的音视频数据转发前的数据处理,并将处理结果(例如预定格式的音视频数据)发送给内容分发第二用户端设备105。The content distribution network server 103 may be a server that provides data transmission, for example, a data transmission server that provides support for audio and video data sent by the relay server 102. The content distribution network server 103 may process the received audio and video data before forwarding, and send the processing result (for example, audio and video data in a predetermined format) to the second content distribution client device 105.
更进一步的,内容分发网络服务器103可以是一个实体的服务器,还可例如为多个服务器组成。内容分发网络服务器103是CDN网络的一部分,CND网络其基本思路是尽可能避开互联网上有可能影响数据传输速度和稳定性的瓶颈和环节,使内容传输得更快、更稳定。通过在CDN网络的各处放置内容分发网络服务器103所构成的在现有的互联网基础之上的一层智能虚拟网络,多个内容分发网络服务器103组成的CDN能够实时地根据网络流量和中转服务器102、第二用户端设备105的连接、负载状况以及到第二用户端设备105的距离和响应时间等综合信息将非主播用户(普通用户)的请求重新导向离普通用户最近的服务节点上。其目的是使本公开中的普通用户可就近取得音视频数据,解决互联网的网络拥挤的状况,提高第二用户端设备105接收音视频数据的响应速度。Furthermore, the content distribution network server 103 may be a physical server, or may be composed of multiple servers, for example. The content distribution network server 103 is a part of the CDN network. The basic idea of the CND network is to avoid bottlenecks and links on the Internet that may affect the data transmission speed and stability as much as possible, so as to make content transmission faster and more stable. By placing content distribution network servers 103 everywhere in the CDN network constituted by a layer of intelligent virtual network on the basis of the existing Internet, the CDN composed of multiple content distribution network servers 103 can real-time according to network traffic and transit servers 102. Comprehensive information such as the connection of the second client device 105, the load status, the distance to the second client device 105 and the response time, etc. redirect the request of the non-host user (ordinary user) to the service node closest to the ordinary user. The purpose is to enable ordinary users in the present disclosure to obtain audio and video data nearby, solve the congestion of the Internet, and improve the response speed of the second client device 105 receiving audio and video data.
更进一步的,简单地说,CND网络是一个经策略性部署的整体系统,包括分布式存储、负载均衡、网络请求的重定向和内容管理4个要求,而内容管理和全局的网络流量管理是CDN的核心所在。在本公开中CDN网络通过第二用户端设备105的就近性和各个内容分发网络服务器103负载的来进行数据传输分发的判断,CDN网络确保音视频数据以一种极为高效的方式传输至第二用户端设备105处。Furthermore, to put it simply, the CND network is a strategically deployed overall system, including four requirements for distributed storage, load balancing, network request redirection, and content management. Content management and global network traffic management are The core of CDN lies. In this disclosure, the CDN network uses the proximity of the second client device 105 and the load of each content distribution network server 103 to determine data transmission and distribution. The CDN network ensures that audio and video data is transmitted to the second in an extremely efficient manner. At 105 user-end equipment.
值得一提的是,在现有技术中,CDN网络在进行数据转发时,会将音视频数据在进行进一步的处理以便适用于不同用户终端,在本公开中,为了简单起见,将第二音视频数据包经过CDN网络处理的生成的音视频数据仍旧称之为第二音视频数据包。It is worth mentioning that in the prior art, when the CDN network performs data forwarding, the audio and video data will be further processed so as to be applicable to different user terminals. In this disclosure, for simplicity, the second audio The audio and video data generated by the video data packet processed by the CDN network is still called the second audio and video data packet.
在直播的应用场景中,普通用户可以使用第二用户端设备105通过网络104与内容分发网络服务器103交互,以接收或发送音视频数据或其他各种数据等。普通用户还可以使用第二用户端设备105通过网络104与第一用户端设备101直接进行交互,以接收或发送信令信息等。In the live broadcast application scenario, ordinary users can use the second client device 105 to interact with the content distribution network server 103 through the network 104 to receive or send audio and video data or other various data. Ordinary users can also use the second user-end device 105 to directly interact with the first user-end device 101 through the network 104 to receive or send signaling information.
第二用户端设备105可例如获取至少一个第二音视频数据包和至少一个信令信息;第二用户端设备105可例如通过解析所述信令信息获取第一时间戳数据;第二用户端设备105可例如通过解析所述第二音视频数据包获取第二时间戳数据;第二用户端设备105可例如基于所述第一时间戳数据和所述第二时间戳数据将所述至少一个信令信息和所述至少一个第二音视频数据包进行时间排序,以便依序播放。The second user end device 105 may obtain at least one second audio/video data packet and at least one signaling information, for example; the second user end device 105 may obtain the first time stamp data, for example, by parsing the signaling information; the second user end The device 105 may, for example, obtain the second time stamp data by parsing the second audio and video data packet; the second client device 105 may, for example, convert the at least one time stamp data based on the first time stamp data and the second time stamp data. The signaling information and the at least one second audio and video data packet are time-sorted so as to be played sequentially.
需要说明的是,本公开实施例所提供的音视频数据同步播放方法可以由第一用户端设备101、中转服务器102、第二用户端设备105执行,相应地,音视频数据同步播放装置可以设置于第一用户端设备101、中转服务器102、第二用户端设备105中。更具体的,提供给主播用户生成音视频数据的装置位于第一用户端设备101中,提供给普通用户接受并播放视音频数据的装置位于第二用户端设备105中。It should be noted that the method for synchronous playback of audio and video data provided by the embodiments of the present disclosure can be executed by the first client device 101, the transfer server 102, and the second client device 105. Accordingly, the device for synchronous playback of audio and video data can be set In the first client device 101, the transfer server 102, and the second client device 105. More specifically, a device provided for the host user to generate audio and video data is located in the first client device 101, and a device provided for ordinary users to accept and play the video and audio data is located in the second client device 105.
图2是根据一示例性实施例示出的一种音视频数据同步播放方法及装置的应用场景示意图。如图2所示,在直播的应用场景中,主播用户通过第一用户端生成音视频数据,然后将音视频数据发送到网络中,普通用户通过第二用户端接收音视频数据,然后将音视频数据在第二用户端中播放。Fig. 2 is a schematic diagram showing an application scenario of a method and device for synchronously playing audio and video data according to an exemplary embodiment. As shown in Figure 2, in the live broadcast application scenario, the host user generates audio and video data through the first user terminal, and then sends the audio and video data to the network. Ordinary users receive the audio and video data through the second user terminal, and then send the audio and video data to the network. The video data is played in the second client.
更具体的,在网络在线授课的直播场景中,学生端使用的是第二用户端(第二用户端可为电脑或手机或者其它可播放音视频的装置)和教师使用的是第一用户端(第一用户端可为电脑或手机或者其它带有摄像头的装置),学生和老师可以通过各自的终端,利用互联网实现远程视频授课的过程。其中,对于任一用户端而言,其接收到的对方的图像和声音可为本公开中的音视频数据,其收到的红包可为本公开中的信令信息。More specifically, in the live broadcast scene of online teaching on the Internet, the student uses the second client (the second client can be a computer or mobile phone or other devices that can play audio and video) and the teacher uses the first client (The first user terminal can be a computer or a mobile phone or other device with a camera), students and teachers can use their respective terminals to use the Internet to realize the process of remote video teaching. Among them, for any user terminal, the received image and sound of the other party may be the audio and video data in the disclosure, and the red envelope received may be the signaling information in the disclosure.
根据本公开的音视频数据同步播放系统,通过所述第一音视频数据包和时间戳数据生成第二音视频数据包;以及将所述第二音视频数据包通过内容分发网络传输至第二用户端以进行显示的方式,能够在视频直播过程中,解决音视频数据与用户发送的信令信息不同步的问题。According to the audio and video data synchronization playback system of the present disclosure, a second audio and video data packet is generated from the first audio and video data packet and time stamp data; and the second audio and video data packet is transmitted to the second audio and video data packet through a content distribution network The user terminal can solve the problem that the audio and video data is not synchronized with the signaling information sent by the user in the video live broadcast process by displaying.
图3是根据一示例性实施例示出的一种音视频数据同步播放方法的流程图。音视频数据同步播放方法30可应用在第一用户端,音视频数据同步播放方法30至少包括步骤S302至S304。Fig. 3 is a flowchart showing a method for synchronously playing audio and video data according to an exemplary embodiment. The method 30 for synchronously playing audio and video data can be applied to the first client. The method 30 for synchronously playing audio and video data at least includes steps S302 to S304.
如图3所示,在S302中,获取音视频数据,所述音视频数据包括至少一个第一音视频数据包和至少一个信令信息。其中,第一视频数据可为主播用户生成的实时视频数据,信令信息可为主播用户生成的红包等信息。As shown in FIG. 3, in S302, audio and video data is acquired, where the audio and video data includes at least one first audio and video data packet and at least one signaling information. Among them, the first video data may be real-time video data generated by the host user, and the signaling information may be information such as red packets generated by the host user.
在S304中,基于网页即时通信协议将所述至少一个第一音视频数据包通过中转服务器发送到至少一个第二用户端,并基于传输控制协议将所述至少一个信令信息发送至所述至少一个第二用户端,以进行音视频数据播放。In S304, the at least one first audio and video data packet is sent to the at least one second user terminal through the relay server based on the web instant messaging protocol, and the at least one signaling information is sent to the at least one second user terminal based on the transmission control protocol. A second user terminal for playing audio and video data.
可例如包括:基于网页即时通信协议(Web Real-Time Communication,WebRTC)将所述第一音视频数据包通过所述中转服务器发送至所述第二用户端以进行视频直播数据显示。This may include, for example, sending the first audio and video data packet to the second client through the relay server based on the Web Real-Time Communication (WebRTC) protocol to display live video data.
其中,网页即时通信技术是一个支持网页浏览器进行实时语音对话或视频对话的API(Application Programming Interface,应用程序编程接口),WebRTC实现了基于网页的视频会议,目的是通过浏览器提供简单的javascript就可以达到实时通讯能力。WebRTC提供了 视频会议的核心技术,包括音视频的采集、编解码、网络传输、展示等功能,并且还支持跨平台,包括linux、windows、mac、android等。Among them, the web instant messaging technology is an API (Application Programming Interface) that supports web browsers for real-time voice or video conversations. WebRTC implements web-based video conferences with the purpose of providing simple javascript through the browser You can achieve real-time communication capabilities. WebRTC provides the core technology of video conferencing, including audio and video collection, encoding and decoding, network transmission, display and other functions, and also supports cross-platform, including linux, windows, mac, android, etc.
可例如包括:基于传输控制协议(Transmission Control Protocol,TCP)将所述信令信息发送至所述第二用户端以进行视频直播数据显示。This may include, for example, sending the signaling information to the second user terminal based on the Transmission Control Protocol (TCP) to display live video data.
其中,TCP协议是一种面向连接的、可靠的、基于字节流的传输层通信协议,由IETF的RFC 793定义。用户数据报协议(UDP)是同一层内另一个重要的传输协议。在因特网协议族(Internet protocol suite)中,TCP层是位于IP层之上,应用层之下的中间层。不同主机的应用层之间经常需要可靠的、像管道一样的连接,但是IP层不提供这样的流机制,而是提供不可靠的包交换。Among them, the TCP protocol is a connection-oriented, reliable, byte stream-based transport layer communication protocol, which is defined by IETF RFC793. User Datagram Protocol (UDP) is another important transmission protocol in the same layer. In the Internet protocol suite (Internet protocol suite), the TCP layer is an intermediate layer above the IP layer and below the application layer. The application layers of different hosts often need reliable, pipe-like connections, but the IP layer does not provide such a flow mechanism, but provides unreliable packet exchange.
图4是根据一示例性实施例示出的一种音视频数据同步播放方法的流程图。音视频数据同步播放方法40可应用在中转服务器端,音视频数据同步播放方法40至少包括步骤S402至S406。Fig. 4 is a flowchart showing a method for synchronously playing audio and video data according to an exemplary embodiment. The method 40 for synchronously playing audio and video data can be applied to the transfer server. The method 40 for synchronously playing audio and video data at least includes steps S402 to S406.
如图4所示,在S402中,获取来自第一用户端的第一音视频数据包。As shown in FIG. 4, in S402, the first audio and video data packet from the first user terminal is acquired.
在S404中,通过所述第一音视频数据包和时间戳数据生成第二音视频数据包。包括:将所述第一音视频数据包进行转换处理生成目标音视频数据包;以及通过所述目标音视频数据包与所述时间戳数据生成所述第二音视频数据包。In S404, a second audio and video data packet is generated from the first audio and video data packet and the time stamp data. The method includes: converting the first audio and video data packet to generate a target audio and video data packet; and generating the second audio and video data packet through the target audio and video data packet and the time stamp data.
在一个实施例中,通过所述目标音视频数据包与所述时间戳数据生成所述第二音视频数据包包括:通过世界标准时间生成所述时间戳数据;通过所述时间戳数据生成补充增强信息;以及通过所述目标音视频数据包与所述补充增强信息生成所述第二音视频数据包。其中,补充增强信息可为SEI增强信息,该SEI中携带有接收音视频数据包时的UTC(世界标准时间)时间戳,并将音视频数据传输到CDN网络中。In one embodiment, generating the second audio and video data packet from the target audio and video data packet and the time stamp data includes: generating the time stamp data according to the universal standard time; generating supplements from the time stamp data Enhancement information; and generating the second audio and video data packet through the target audio and video data packet and the supplementary enhancement information. The supplementary enhancement information may be SEI enhancement information, and the SEI carries the UTC (Universal Standard Time) timestamp when the audio and video data packet is received, and transmits the audio and video data to the CDN network.
在一个实施例中,通过所述目标音视频数据包与所述时间戳数据生成所述第二音视频数据包包括:通过世界标准时间生成所述时间戳数据;以及将所述时间戳数据写入所述目标音视频数据包的文件名中以生成所述第二音视频数据包。其中,为了避免存在部分服务器不支持SEI增强信息的情况,还可以可以将该时间戳以数字的形式写入到该音视频数据包的文件名称中,本公开不以此为限。In one embodiment, generating the second audio and video data packet from the target audio and video data packet and the time stamp data includes: generating the time stamp data according to Universal Standard Time; and writing the time stamp data Into the file name of the target audio and video data packet to generate the second audio and video data packet. In order to avoid the situation that some servers do not support SEI enhanced information, the timestamp can also be written into the file name of the audio and video data packet in digital form, and the present disclosure is not limited to this.
在一个实施例中,将所述第一音视频数据包进行转换处理生成目标音视频数据包包括:将基于实时通信技术的所述第一音视频数据包进行转换处理生成基于实时消息传输协议的目标音视频数据包。In an embodiment, converting the first audio and video data packet to generate a target audio and video data packet includes: converting the first audio and video data packet based on real-time communication technology to generate a real-time message transmission protocol based Target audio and video data packets.
在一个实施例中,将所述第一音视频数据包进行转换处理生成目标音视频数据包包括:将所述第一音视频数据包的数据格式进行格式转换处理,以生成所述目标音视频数据包;和/或将所述第一音视频数据包的通信协议进行协议转换处理,以生成所述目标音视频数据包;和/或将所述第一音视频数据包的传输协议进行协议转换处理,以生成所述目标音视频数据包。In an embodiment, converting the first audio and video data packet to generate a target audio and video data packet includes: performing format conversion processing on the data format of the first audio and video data packet to generate the target audio and video data. Data packet; and/or protocol conversion processing of the communication protocol of the first audio and video data packet to generate the target audio and video data packet; and/or protocol conversion of the transmission protocol of the first audio and video data packet Conversion processing to generate the target audio and video data packet.
在一个实施例中,将所述第一音视频数据包的数据格式进行格式转换处理包括:将所述第一音视频数据包中的视频格式进行格式转换处理;和/或将所述第一音视频数据包中的音频格式进行格式转换处理。In one embodiment, performing format conversion processing on the data format of the first audio and video data packet includes: performing format conversion processing on the video format in the first audio and video data packet; and/or performing format conversion processing on the first audio and video data packet; The audio format in the audio and video data packet undergoes format conversion processing.
具体可例如,可例如,将所述第一音视频数据包的通信协议由网页即时通信协议 (WebRTC)转换为实时消息协议(RTMP);将所述第一音视频数据包的传输协议由用户数据报协议(UDP,User Datagram Protocol)转换为传输控制协议(Transmission Control Protocol,TCP);将所述第一音视频数据包中的视频格式由VP8转换为H264;将所述第一音视频数据包中的音频格式由opus转换为AAC。Specifically, for example, the communication protocol of the first audio and video data packet can be converted from the web instant messaging protocol (WebRTC) to the real-time message protocol (RTMP); the transmission protocol of the first audio and video data packet can be transferred to the user Datagram protocol (UDP, User Datagram Protocol) is converted to Transmission Control Protocol (Transmission Control Protocol, TCP); the video format in the first audio and video data packet is converted from VP8 to H264; the first audio and video data is converted The audio format in the package is converted from opus to AAC.
在S406中,将所述第二音视频数据包通过内容分发网络传输至第二用户端以进行显示。In S406, the second audio and video data packet is transmitted to the second user terminal through the content distribution network for display.
图5是根据一示例性实施例示出的一种音视频数据同步播放方法的流程图。音视频数据同步播放方法50可应用在第二用户端,音视频数据同步播放方法50至少包括步骤S502至S508。Fig. 5 is a flowchart showing a method for synchronously playing audio and video data according to an exemplary embodiment. The method 50 for synchronously playing audio and video data can be applied to a second client. The method 50 for synchronously playing audio and video data at least includes steps S502 to S508.
如图5所示,在S502中,获取获取至少一个第二音视频数据包和至少一个信令信息。As shown in FIG. 5, in S502, at least one second audio and video data packet and at least one signaling information are acquired.
在S504中,通过解析所述信令信息获取第一时间戳数据。In S504, the first time stamp data is obtained by parsing the signaling information.
在S506中,通过解析所述第二音视频数据包获取第二时间戳数据。In S506, the second time stamp data is obtained by parsing the second audio and video data packet.
在S508中,基于所述第一时间戳数据和所述第二时间戳数据将所述至少一个信令信息和所述至少一个第二音视频数据包进行时间排序,以便依序播放。In S508, the at least one signaling information and the at least one second audio and video data packet are time-sorted based on the first time stamp data and the second time stamp data, so as to be played sequentially.
在一个实施例中,可例如:通过所述第二时间戳数据生成播放时间轴;基于所述播放时间轴生成所述第二音视频数据包的播放队列;以及基于所述第一时间戳数据将所述信令信息插入到所述播放队列中以进行显示。In an embodiment, for example, a playback time axis can be generated based on the second time stamp data; a playback queue of the second audio and video data packet can be generated based on the playback time axis; and based on the first time stamp data Insert the signaling information into the play queue for display.
在一个实施例中,基于所述第一时间戳数据将所述信令信息插入到所述播放队列中以进行显示包括:通过所述第一时间戳数据生成展示时间;将所述展示时间与所述播放时间轴中的播放时间进行比较,以及根据比较结果将所述信令信息插入到所述播放队列中以进行显示。In one embodiment, inserting the signaling information into the play queue for display based on the first time stamp data includes: generating a display time from the first time stamp data; and comparing the display time with The playing time in the playing time axis is compared, and the signaling information is inserted into the playing queue for display according to the comparison result.
图6是根据另一示例性实施例示出的一种视频直播数据显示系统的流程图。图6对应的音视频数据同步播放方法60描述了视频直播数据显示系统工作的全过程。Fig. 6 is a flowchart showing a system for displaying live video data according to another exemplary embodiment. The method 60 for synchronous playback of audio and video data corresponding to FIG. 6 describes the entire working process of the video live data display system.
如图6所示,在S602中,第一用户端将信令信息发送至第二用户端。As shown in FIG. 6, in S602, the first user end sends signaling information to the second user end.
在S604中,第一用户端将第一音视频数据包发送至中转服务器。In S604, the first user terminal sends the first audio and video data packet to the transit server.
在S606中,中转服务器对第一音视频数据包进行处理生成第二音视频数据包。In S606, the transit server processes the first audio and video data packet to generate a second audio and video data packet.
在S608中,中转服务器将第二音视频数据包发送至CDN。In S608, the transit server sends the second audio and video data packet to the CDN.
在S610中,CDN对第二音频数据进行处理。In S610, the CDN processes the second audio data.
在S612中,CDN将第二音视频数据包发送至第二用户端。In S612, the CDN sends the second audio and video data packet to the second client.
在S614中,第二用户段解析信令信息与第二音视频数据包,并根据解析结果进行播放。In S614, the second user segment analyzes the signaling information and the second audio and video data packet, and plays according to the analysis result.
根据本公开的音视频数据同步播放方法,通过所述第一音视频数据包和时间戳数据生成第二音视频数据包;以及将所述第二音视频数据包通过内容分发网络传输至第二用户端以进行显示的方式,能够在视频直播过程中,解决音视频数据与用户发送的信令信息不同步的问题。According to the method for synchronous playback of audio and video data of the present disclosure, a second audio and video data packet is generated from the first audio and video data packet and time stamp data; and the second audio and video data packet is transmitted to the second audio and video data packet through a content distribution network. The user terminal can solve the problem that the audio and video data is not synchronized with the signaling information sent by the user in the video live broadcast process by displaying.
应清楚地理解,本公开描述了如何形成和使用特定示例,但本公开的原理不限于这些示例的任何细节。相反,基于本公开公开的内容的教导,这些原理能够应用于许多其它实施例。It should be clearly understood that the present disclosure describes how to form and use specific examples, but the principles of the present disclosure are not limited to any details of these examples. On the contrary, based on the teachings of the contents disclosed in the present disclosure, these principles can be applied to many other embodiments.
本领域技术人员可以理解实现上述实施例的全部或部分步骤被实现为由CPU执行的计算机程序。在该计算机程序被CPU执行时,执行本公开提供的上述方法所限定的上述功能。所述的程序可以存储于一种计算机可读存储介质中,该存储介质可以是只读存储器,磁盘或光盘等。Those skilled in the art can understand that all or part of the steps for implementing the above-mentioned embodiments are implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, it executes the above-mentioned functions defined by the above-mentioned method provided in the present disclosure. The program can be stored in a computer-readable storage medium, which can be a read-only memory, a magnetic disk, or an optical disk.
此外,需要注意的是,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, it should be noted that the above-mentioned drawings are only schematic illustrations of the processing included in the method according to the exemplary embodiments of the present disclosure, and are not intended for limitation. It is easy to understand that the processing shown in the above drawings does not indicate or limit the time sequence of these processings. In addition, it is easy to understand that these processes can be executed synchronously or asynchronously in multiple modules, for example.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details that are not disclosed in the device embodiments of the present disclosure, please refer to the method embodiments of the present disclosure.
图7是根据一示例性实施例示出的一种音视频数据同步播放装置的框图。如图7所示,音视频数据同步播放装置70包括:数据获取模块702,数据发送模块704。Fig. 7 is a block diagram showing a device for synchronously playing audio and video data according to an exemplary embodiment. As shown in FIG. 7, the device 70 for synchronous playback of audio and video data includes: a data acquisition module 702 and a data transmission module 704.
数据获取模块702用于获取音视频数据,所述音视频数据包括至少一个第一音视频数据包和至少一个信令信息;其中,第一视频数据可为主播用户生成的实时视频数据,信令信息可为主播用户生成的红包等信息。The data acquisition module 702 is configured to acquire audio and video data. The audio and video data includes at least one first audio and video data packet and at least one signaling information; wherein the first video data can be real-time video data generated by the host user, and the signaling The information can be information such as red envelopes generated by the host user.
数据发送模块704用于基于网页即时通信协议将所述至少一个第一音视频数据包通过中转服务器发送到至少一个第二用户端,并基于传输控制协议将所述至少一个信令信息发送至所述至少一个第二用户端,以进行音视频数据播放。The data sending module 704 is configured to send the at least one first audio and video data packet to at least one second user terminal through the transit server based on the web instant messaging protocol, and send the at least one signaling information to the at least one signaling information based on the transmission control protocol. Said at least one second user terminal for playing audio and video data.
可例如包括:基于网页即时通信协议(Web Real-Time Communication,WebRTC)将所述第一音视频数据包通过所述中转服务器发送至所述第二用户端以进行视频直播数据显示。This may include, for example, sending the first audio and video data packet to the second client through the relay server based on the Web Real-Time Communication (WebRTC) protocol to display live video data.
可例如包括:基于传输控制协议(Transmission Control Protocol,TCP)将所述信令信息发送至所述第二用户端以进行视频直播数据显示。This may include, for example, sending the signaling information to the second user terminal based on the Transmission Control Protocol (TCP) to display live video data.
图8是根据另一示例性实施例示出的一种音视频数据同步播放装置的框图。如图8所示,音视频数据同步播放装置80包括:数据中转模块802,信息添加模块804,数据传输模块806。Fig. 8 is a block diagram showing a device for synchronously playing audio and video data according to another exemplary embodiment. As shown in FIG. 8, the device 80 for synchronously playing audio and video data includes: a data transfer module 802, an information addition module 804, and a data transmission module 806.
数据中转模块802用于获取来自第一用户端的第一音视频数据包;The data transfer module 802 is configured to obtain the first audio and video data packet from the first user terminal;
信息添加模块804用于通过所述第一音视频数据包和时间戳数据生成第二音视频数据包;The information adding module 804 is configured to generate a second audio and video data packet from the first audio and video data packet and the time stamp data;
可例如:将所述第一音视频数据包进行转换处理生成目标音视频数据包;以及通过所述目标音视频数据包与所述时间戳数据生成所述第二音视频数据包。For example, the first audio and video data packet is converted to generate a target audio and video data packet; and the second audio and video data packet is generated from the target audio and video data packet and the time stamp data.
可例如:通过世界标准时间生成所述时间戳数据;以及将所述时间戳数据写入所述目标音视频数据包的文件名中以生成所述第二音视频数据包。其中,为了避免存在部分服务器不支持SEI增强信息的情况,还可以可以将该时间戳以数字的形式写入到该音视频数据包的文件名称中,本公开不以此为限。For example, the time stamp data may be generated according to the universal standard time; and the time stamp data may be written into the file name of the target audio and video data packet to generate the second audio and video data packet. In order to avoid the situation that some servers do not support SEI enhanced information, the timestamp may also be written into the file name of the audio and video data packet in digital form, and the present disclosure is not limited to this.
第三传输模块806用于将所述第二音视频数据包通过内容分发网络传输至第二用户端以进行播放。The third transmission module 806 is configured to transmit the second audio and video data packet to the second user terminal through the content distribution network for playback.
图9是根据另一示例性实施例示出的一种音视频数据同步播放装置的框图。如图9所 示,音视频数据同步播放装置90包括:数据接收模块902,第一时间模块904,第二时间模块906,时间排序模块908。Fig. 9 is a block diagram showing a device for synchronously playing audio and video data according to another exemplary embodiment. As shown in FIG. 9, the device 90 for synchronously playing audio and video data includes: a data receiving module 902, a first time module 904, a second time module 906, and a time sorting module 908.
数据接收模块902用于获取至少一个第二音视频数据包和至少一个信令信息;The data receiving module 902 is configured to obtain at least one second audio and video data packet and at least one signaling information;
第一时间模块904用于通过解析所述信令信息获取第一时间戳数据;The first time module 904 is configured to obtain first time stamp data by parsing the signaling information;
第二时间模块906用于通过解析所述第二音视频数据包获取第二时间戳数据;以及The second time module 906 is configured to obtain second time stamp data by parsing the second audio and video data packet; and
时间排序模块908用于基于所述第一时间戳数据和所述第二时间戳数据将所述至少一个信令信息和所述至少一个第二音视频数据包进行时间排序,以便依序播放。The time sorting module 908 is configured to sort the at least one signaling information and the at least one second audio and video data packet in time based on the first time stamp data and the second time stamp data, so as to be played sequentially.
在一个实施例中,可例如:通过所述第二时间戳数据生成播放时间轴;基于所述播放时间轴生成所述第二音视频数据包的播放队列;以及基于所述第一时间戳数据将所述信令信息插入到所述播放队列中以进行显示。In one embodiment, for example, a playback time axis can be generated based on the second time stamp data; a playback queue of the second audio and video data packet can be generated based on the playback time axis; and based on the first time stamp data Insert the signaling information into the play queue for display.
在一个实施例中,基于所述第一时间戳数据将所述信令信息插入到所述播放队列中以进行显示包括:通过所述第一时间戳数据生成展示时间;将所述展示时间与所述播放时间轴中的播放时间进行比较,以及根据比较结果将所述信令信息插入到所述播放队列中以进行显示。In one embodiment, inserting the signaling information into the play queue for display based on the first time stamp data includes: generating a display time from the first time stamp data; and comparing the display time with The playing time in the playing time axis is compared, and the signaling information is inserted into the playing queue for display according to the comparison result.
根据本公开的音视频数据同步播放装置,通过所述第一音视频数据包和时间戳数据生成第二音视频数据包;以及将所述第二音视频数据包通过内容分发网络传输至第二用户端以进行显示的方式,能够在视频直播过程中,解决音视频数据与用户发送的信令信息不同步的问题。According to the audio and video data synchronization playback device of the present disclosure, a second audio and video data packet is generated from the first audio and video data packet and time stamp data; and the second audio and video data packet is transmitted to the second audio and video data packet through a content distribution network. The user terminal can solve the problem that the audio and video data is not synchronized with the signaling information sent by the user in the video live broadcast process by displaying.
图10是根据一示例性实施例示出的一种电子设备的框图。Fig. 10 is a block diagram showing an electronic device according to an exemplary embodiment.
下面参照图10来描述根据本公开的这种实施方式的电子设备200。图10显示的电子设备200仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。The electronic device 200 according to this embodiment of the present disclosure will be described below with reference to FIG. 10. The electronic device 200 shown in FIG. 10 is only an example, and should not bring any limitation to the function and use range of the embodiments of the present disclosure.
如图10所示,电子设备200以通用计算设备的形式表现。电子设备200的组件可以包括但不限于:至少一个处理单元210、至少一个存储单元220、连接不同系统组件(包括存储单元220和处理单元210)的总线230、显示单元240等。As shown in FIG. 10, the electronic device 200 is represented in the form of a general-purpose computing device. The components of the electronic device 200 may include but are not limited to: at least one processing unit 210, at least one storage unit 220, a bus 230 connecting different system components (including the storage unit 220 and the processing unit 210), a display unit 240, and the like.
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元210执行,使得所述处理单元210执行本说明书上述电子处方流转处理方法部分中描述的根据本公开各种示例性实施方式的步骤。例如,所述处理单元210可以执行如图3,图4,图5,图6中所示的步骤。Wherein, the storage unit stores program code, and the program code can be executed by the processing unit 210, so that the processing unit 210 executes the various exemplary methods described in the above-mentioned electronic prescription circulation processing method section of this specification. Implementation steps. For example, the processing unit 210 may execute the steps shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6.
所述存储单元220可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)2201和/或高速缓存存储单元2202,还可以进一步包括只读存储单元(ROM)2203。The storage unit 220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 2201 and/or a cache storage unit 2202, and may further include a read-only storage unit (ROM) 2203.
所述存储单元220还可以包括具有一组(至少一个)程序模块2205的程序/实用工具2204,这样的程序模块2205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 220 may also include a program/utility tool 2204 having a set of (at least one) program module 2205. Such program module 2205 includes but is not limited to: an operating system, one or more application programs, other program modules, and programs. Data, each of these examples or some combination may include the realization of a network environment.
总线230可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。The bus 230 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any bus structure among multiple bus structures. bus.
电子设备200也可以与一个或多个外部设备300(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备200交互的设备通信,和/或与使得该 电子设备200能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口250进行。并且,电子设备200还可以通过网络适配器260与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。网络适配器260可以通过总线230与电子设备200的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备200使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 200 can also communicate with one or more external devices 300 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 200, and/or communicate with Any device (such as a router, modem, etc.) that enables the electronic device 200 to communicate with one or more other computing devices. This communication can be performed through an input/output (I/O) interface 250. In addition, the electronic device 200 may also communicate with one or more networks (for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 260. The network adapter 260 can communicate with other modules of the electronic device 200 through the bus 230. It should be understood that although not shown in the figure, other hardware and/or software modules can be used in conjunction with the electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,如图11所示,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、或者网络设备等)执行根据本公开实施方式的上述方法。Through the description of the foregoing embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, as shown in FIG. 11, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product. The software product can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, or mobile hard disk). Etc.) or on the network, including several instructions to make a computing device (which may be a personal computer, a server, or a network device, etc.) execute the above method according to the embodiments of the present disclosure.
所述软件产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The software product can use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
所述计算机可读存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读存储介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。The computer-readable storage medium may include a data signal propagated in baseband or as a part of a carrier wave, and readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable storage medium may also be any readable medium other than the readable storage medium, and the readable medium can send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device. The program code contained on the readable storage medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。The program code used to perform the operations of the present disclosure can be written in any combination of one or more programming languages. The programming languages include object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural styles. Programming language-such as "C" language or similar programming language. The program code can be executed entirely on the user's computing device, partly on the user's device, executed as an independent software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device or server Executed on. In the case of a remote computing device, the remote computing device can be connected to a user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using Internet service providers) Business to connect via the Internet).
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,使得该计算机可读介质实现如下功能:获取来自第一用户端的第一音视频数据包;通过所述第一音视频数据包和时间戳数据生成第二音视频数据包;以及将所述第二音视频数据包通过内容分发网络传输至第二用户端以进行播放。The aforementioned computer-readable medium carries one or more programs, and when the aforementioned one or more programs are executed by a device, the computer-readable medium realizes the following functions: acquiring the first audio and video data packet from the first user terminal; Generate a second audio and video data packet through the first audio and video data packet and the time stamp data; and transmit the second audio and video data packet to a second user terminal through a content distribution network for playback.
本领域技术人员可以理解上述各模块可以按照实施例的描述分布于装置中,也可以进行相应变化唯一不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the foregoing modules can be distributed in the device according to the description of the embodiment, or corresponding changes can be made in one or more devices that are uniquely different from this embodiment. The modules of the above-mentioned embodiments can be combined into one module or further divided into multiple sub-modules.
通过以上的实施例的描述,本领域的技术人员易于理解,这里描述的示例实施例可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施例的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施例的方法。Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described here can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , Including several instructions to make a computing device (which may be a personal computer, server, mobile terminal, or network device, etc.) execute the method according to the embodiments of the present disclosure.
以上具体地示出和描述了本公开的示例性实施例。应可理解的是,本公开不限于这里描述的详细结构、设置方式或实现方法;相反,本公开意图涵盖包含在所附权利要求的精神和范围内的各种修改和等效设置。The exemplary embodiments of the present disclosure have been specifically shown and described above. It should be understood that the present disclosure is not limited to the detailed structure, arrangement or implementation method described herein; on the contrary, the present disclosure intends to cover various modifications and equivalent arrangements included in the spirit and scope of the appended claims.

Claims (17)

  1. 一种音视频数据同步播放方法,其特征在于,包括:A method for synchronously playing audio and video data, characterized in that it comprises:
    获取来自第一用户端的第一音视频数据包;Acquiring the first audio and video data packet from the first user terminal;
    通过所述第一音视频数据包和时间戳数据生成第二音视频数据包;以及Generating a second audio and video data packet from the first audio and video data packet and time stamp data; and
    将所述第二音视频数据包通过内容分发网络传输至第二用户端以进行播放。The second audio and video data packet is transmitted to the second user terminal through the content distribution network for playback.
  2. 如权利要求1所述的方法,其特征在于,通过所述第一音视频数据包和时间戳数据生成第二音视频数据包包括:The method according to claim 1, wherein generating a second audio and video data packet from the first audio and video data packet and time stamp data comprises:
    将所述第一音视频数据包进行转换处理生成目标音视频数据包;以及Performing conversion processing on the first audio and video data packet to generate a target audio and video data packet; and
    通过所述目标音视频数据包与所述时间戳数据生成所述第二音视频数据包。The second audio and video data packet is generated through the target audio and video data packet and the time stamp data.
  3. 如权利要求2所述的方法,其特征在于,通过所述目标音视频数据包与所述时间戳数据生成所述第二音视频数据包包括:3. The method of claim 2, wherein generating the second audio and video data packet by using the target audio and video data packet and the time stamp data comprises:
    通过世界标准时间生成所述时间戳数据;Generating the timestamp data through universal standard time;
    通过所述时间戳数据生成补充增强信息;以及Generating supplementary enhanced information from the timestamp data; and
    通过所述目标音视频数据包与所述补充增强信息生成所述第二音视频数据包。The second audio and video data packet is generated by using the target audio and video data packet and the supplementary enhancement information.
  4. 如权利要求2所述的方法,其特征在于,通过所述目标音视频数据包与所述时间戳数据生成所述第二音视频数据包包括:3. The method of claim 2, wherein generating the second audio and video data packet by using the target audio and video data packet and the time stamp data comprises:
    通过世界标准时间生成所述时间戳数据;以及The time stamp data is generated by UTC; and
    将所述时间戳数据写入所述目标音视频数据包的文件名中以生成所述第二音视频数据包。The time stamp data is written into the file name of the target audio and video data packet to generate the second audio and video data packet.
  5. 如权利要求2所述的方法,其特征在于,将所述第一音视频数据包进行转换处理生成目标音视频数据包包括:The method according to claim 2, wherein converting the first audio and video data packet to generate a target audio and video data packet comprises:
    将基于实时通信技术的所述第一音视频数据包进行转换处理生成基于实时消息传输协议的目标音视频数据包。Converting the first audio and video data packet based on the real-time communication technology to generate a target audio and video data packet based on the real-time message transmission protocol.
  6. 如权利要求2所述的方法,其特征在于,将所述第一音视频数据包进行转换处理生成目标音视频数据包包括:The method according to claim 2, wherein converting the first audio and video data packet to generate a target audio and video data packet comprises:
    将所述第一音视频数据包的数据格式进行格式转换处理,以生成所述目标音视频数据包;和/或Performing format conversion processing on the data format of the first audio and video data packet to generate the target audio and video data packet; and/or
    将所述第一音视频数据包的通信协议进行协议转换处理,以生成所述目标音视频数据包;和/或Perform protocol conversion processing on the communication protocol of the first audio and video data packet to generate the target audio and video data packet; and/or
    将所述第一音视频数据包的传输协议进行协议转换处理,以生成所述目标音视频数据包。Performing protocol conversion processing on the transmission protocol of the first audio and video data packet to generate the target audio and video data packet.
  7. 如权利要求6所述的方法,其特征在于,将所述第一音视频数据包的数据格式进行格式转换处理包括:7. The method according to claim 6, wherein performing format conversion processing on the data format of the first audio and video data packet comprises:
    将所述第一音视频数据包中的视频格式进行格式转换处理;和/或Perform format conversion processing on the video format in the first audio and video data packet; and/or
    将所述第一音视频数据包中的音频格式进行格式转换处理。Perform format conversion processing on the audio format in the first audio and video data packet.
  8. 一种音视频数据同步播放方法,其特征在于,包括:A method for synchronously playing audio and video data, characterized in that it comprises:
    获取至少一个第二音视频数据包和至少一个信令信息;Acquiring at least one second audio and video data packet and at least one signaling information;
    通过解析所述信令信息获取第一时间戳数据;Obtain the first time stamp data by analyzing the signaling information;
    通过解析所述第二音视频数据包获取第二时间戳数据;以及Obtaining second time stamp data by parsing the second audio and video data packet; and
    基于所述第一时间戳数据和所述第二时间戳数据将所述至少一个信令信息和所述至少一个第二音视频数据包进行时间排序,以便依序播放。Based on the first time stamp data and the second time stamp data, the at least one signaling information and the at least one second audio and video data packet are time-sorted for sequential playback.
  9. 如权利要求8所述的方法,其特征在于,所述基于所述第一时间戳数据和所述第二时间戳数据将所述至少一个信令信息和所述至少一个第二音视频数据包进行时间排序,包括:The method according to claim 8, wherein the at least one signaling information and the at least one second audio/video data packet are combined based on the first time stamp data and the second time stamp data Time sequence, including:
    通过所述第二时间戳数据所确定的播放时间轴,生成所述至少一个第二音视频数据包的播放队列;以及Generating a play queue of the at least one second audio and video data packet through the play time axis determined by the second time stamp data; and
    基于所述第一时间戳数据将所述至少一个信令信息插入到所述播放队列。Inserting the at least one signaling information into the play queue based on the first time stamp data.
  10. 如权利要求9所述的方法,其特征在于,所述基于所述第一时间戳数据将所述至少一个信令信息插入到所述播放队列包括:The method of claim 9, wherein the inserting the at least one signaling information into the play queue based on the first time stamp data comprises:
    通过所述第一时间戳数据生成展示时间;Generating display time from the first time stamp data;
    将所述展示时间与所述播放时间轴中的播放时间进行比较,以及Compare the display time with the play time in the play timeline, and
    根据比较结果将所述至少一个信令信息插入到所述播放队列。Insert the at least one signaling information into the play queue according to the comparison result.
  11. 一种音视频数据同步播放方法,其特征在于,包括:A method for synchronously playing audio and video data, characterized in that it comprises:
    获取音视频数据,所述音视频数据包括至少一个第一音视频数据包和至少一个信令信息;以及Acquiring audio and video data, where the audio and video data includes at least one first audio and video data packet and at least one signaling information; and
    基于网页即时通信协议将所述至少一个第一音视频数据包通过中转服务器发送到至少一个第二用户端,并基于传输控制协议将所述至少一个信令信息发送至所述至少一个第二用户端,以进行音视频数据播放。The at least one first audio and video data packet is sent to at least one second user terminal through the relay server based on the webpage instant messaging protocol, and the at least one signaling information is sent to the at least one second user based on the transmission control protocol Terminal for audio and video data playback.
  12. 一种音视频数据同步播放装置,其特征在于,包括:A synchronous playback device for audio and video data, characterized in that it comprises:
    数据中转模块,用于获取来自第一用户端的第一音视频数据包;The data transfer module is used to obtain the first audio and video data packet from the first user terminal;
    信息添加模块,用于通过所述第一音视频数据包和时间戳数据生成第二音视频数据包;以及An information adding module, configured to generate a second audio and video data packet from the first audio and video data packet and time stamp data; and
    数据传输模块,用于将所述第二音视频数据包通过内容分发网络传输至第二用户端以进行播放。The data transmission module is configured to transmit the second audio and video data packet to the second user terminal through the content distribution network for playback.
  13. 一种音视频数据同步播放装置,其特征在于,包括:A synchronous playback device for audio and video data, characterized in that it comprises:
    数据接收模块,用于获取至少一个第二音视频数据包和至少一个信令信息;A data receiving module, configured to obtain at least one second audio and video data packet and at least one signaling information;
    第一时间模块,用于通过解析所述信令信息获取第一时间戳数据;The first time module is configured to obtain the first time stamp data by parsing the signaling information;
    第二时间模块,用于通过解析所述第二音视频数据包获取第二时间戳数据;以及The second time module is configured to obtain second time stamp data by parsing the second audio and video data packet; and
    时间排序模块,用于基于所述第一时间戳数据和所述第二时间戳数据将所述至少一个信令信息和所述至少一个第二音视频数据包进行时间排序,以便依序播放。The time ordering module is configured to time order the at least one signaling information and the at least one second audio and video data packet based on the first time stamp data and the second time stamp data, so as to be played sequentially.
  14. 一种音视频数据同步播放装置,其特征在于,包括:A synchronous playback device for audio and video data, characterized in that it comprises:
    数据获取模块,用于获取音视频数据,所述音视频数据包括至少一个第一音视频数据包和至少一个信令信息;以及A data acquisition module for acquiring audio and video data, the audio and video data including at least one first audio and video data packet and at least one signaling information; and
    数据发送模块,用于基于网页即时通信协议将所述至少一个第一音视频数据包通过中转服务器发送到至少一个第二用户端,并基于传输控制协议将所述至少一个信令信息发送 至所述至少一个第二用户端,以进行音视频数据播放。The data sending module is configured to send the at least one first audio and video data packet to the at least one second user terminal through the relay server based on the web instant messaging protocol, and send the at least one signaling information to the at least one signaling information based on the transmission control protocol Said at least one second user terminal for playing audio and video data.
  15. 一种音视频数据同步播放系统,其特征在于,包括:A synchronous playback system for audio and video data, characterized in that it comprises:
    第一用户端,用于获取音视频数据,所述音视频数据包括至少一个第一音视频数据包和至少一个信令信息;以及基于网页即时通信协议将所述至少一个第一音视频数据包通过中转服务器发送到至少一个第二用户端,并基于传输控制协议将所述至少一个信令信息发送至所述至少一个第二用户端,以进行音视频数据播放;The first user terminal is configured to acquire audio and video data, where the audio and video data includes at least one first audio and video data packet and at least one signaling information; and the at least one first audio and video data packet is transmitted based on the web instant messaging protocol Sending to at least one second user terminal through a transit server, and sending the at least one signaling information to the at least one second user terminal based on a transmission control protocol, so as to play audio and video data;
    中转服务器,用于获取来自第一用户端的第一音视频数据包;通过所述第一音视频数据包和时间戳数据生成第二音视频数据包;以及将所述第二音视频数据包通过内容分发网络传输至第二用户端以进行播放;以及The relay server is configured to obtain the first audio and video data packet from the first user terminal; generate a second audio and video data packet from the first audio and video data packet and the time stamp data; and pass the second audio and video data packet through The content distribution network is transmitted to the second client for playback; and
    内容分发网络服务器,用于将所述第二视频数据包传输至所述第二用户端;以及A content distribution network server, configured to transmit the second video data packet to the second client; and
    第二用户端,用于获取至少一个第二音视频数据包和至少一个信令信息;通过解析所述信令信息获取第一时间戳数据;通过解析所述第二音视频数据包获取第二时间戳数据;以及基于所述第一时间戳数据和所述第二时间戳数据将所述至少一个信令信息和所述至少一个第二音视频数据包进行时间排序,以便依序播放。The second user terminal is configured to obtain at least one second audio and video data packet and at least one signaling information; obtain the first time stamp data by analyzing the signaling information; obtain the second time stamp data by analyzing the second audio and video data packet. Time stamp data; and based on the first time stamp data and the second time stamp data, the at least one signaling information and the at least one second audio and video data packet are time-sorted, so as to be played sequentially.
  16. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    一个或多个处理器;One or more processors;
    存储装置,用于存储一个或多个程序;Storage device for storing one or more programs;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-3或4-10或11-13中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-3 or 4-10 or 11-13 .
  17. 一种计算机可读介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现如权利要求1-3或4-10或11-13中任一所述的方法。A computer-readable medium having a computer program stored thereon, wherein the program is executed by a processor to implement the method according to any one of claims 1-3 or 4-10 or 11-13.
PCT/CN2020/081104 2019-06-13 2020-03-25 Audio and video data synchronous playback method, apparatus and system, electronic device and medium WO2020248649A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910509128.3 2019-06-13
CN201910509128.3A CN110234028A (en) 2019-06-13 2019-06-13 Audio, video data synchronous broadcast method, device, system, electronic equipment and medium

Publications (1)

Publication Number Publication Date
WO2020248649A1 true WO2020248649A1 (en) 2020-12-17

Family

ID=67859884

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/081104 WO2020248649A1 (en) 2019-06-13 2020-03-25 Audio and video data synchronous playback method, apparatus and system, electronic device and medium

Country Status (2)

Country Link
CN (1) CN110234028A (en)
WO (1) WO2020248649A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110234028A (en) * 2019-06-13 2019-09-13 北京大米科技有限公司 Audio, video data synchronous broadcast method, device, system, electronic equipment and medium
CN110958466A (en) * 2019-12-17 2020-04-03 杭州当虹科技股份有限公司 SDI signal synchronous return method based on RTMP transmission
CN111508294A (en) * 2020-05-25 2020-08-07 上海卓越睿新数码科技有限公司 Low-delay low-bandwidth high-stability online live broadcast teaching method and system
CN112423028A (en) * 2020-10-26 2021-02-26 深圳Tcl新技术有限公司 Multimedia file transmission method, device, multimedia terminal and storage medium
CN112291498B (en) * 2020-10-30 2022-11-04 新东方教育科技集团有限公司 Audio and video data transmission method and device and storage medium
CN113891132A (en) * 2021-10-25 2022-01-04 北京字节跳动网络技术有限公司 Audio and video synchronization monitoring method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905922A (en) * 2014-03-18 2014-07-02 深圳市云宙多媒体技术有限公司 Streaming media protocol encapsulation method and device based on http protocol
CN105323655A (en) * 2015-10-10 2016-02-10 上海慧体网络科技有限公司 Method for synchronizing videos/score according to time stamps on mobile terminal
CN105407361A (en) * 2015-11-09 2016-03-16 广州华多网络科技有限公司 Audio and video live broadcast data processing method and device
CN105959772A (en) * 2015-12-22 2016-09-21 合网络技术(北京)有限公司 Streaming media and caption instant synchronization display and matching processing method, device and system
US20160323611A1 (en) * 2013-12-19 2016-11-03 Enensys Technologies Method for generating a time marking for synchronous terrestrial broadcasting
CN109547831A (en) * 2018-11-19 2019-03-29 网宿科技股份有限公司 A kind of method, apparatus, calculating equipment and the storage medium of blank and audio video synchronization
CN110234028A (en) * 2019-06-13 2019-09-13 北京大米科技有限公司 Audio, video data synchronous broadcast method, device, system, electronic equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160323611A1 (en) * 2013-12-19 2016-11-03 Enensys Technologies Method for generating a time marking for synchronous terrestrial broadcasting
CN103905922A (en) * 2014-03-18 2014-07-02 深圳市云宙多媒体技术有限公司 Streaming media protocol encapsulation method and device based on http protocol
CN105323655A (en) * 2015-10-10 2016-02-10 上海慧体网络科技有限公司 Method for synchronizing videos/score according to time stamps on mobile terminal
CN105407361A (en) * 2015-11-09 2016-03-16 广州华多网络科技有限公司 Audio and video live broadcast data processing method and device
CN105959772A (en) * 2015-12-22 2016-09-21 合网络技术(北京)有限公司 Streaming media and caption instant synchronization display and matching processing method, device and system
CN109547831A (en) * 2018-11-19 2019-03-29 网宿科技股份有限公司 A kind of method, apparatus, calculating equipment and the storage medium of blank and audio video synchronization
CN110234028A (en) * 2019-06-13 2019-09-13 北京大米科技有限公司 Audio, video data synchronous broadcast method, device, system, electronic equipment and medium

Also Published As

Publication number Publication date
CN110234028A (en) 2019-09-13

Similar Documents

Publication Publication Date Title
WO2020248649A1 (en) Audio and video data synchronous playback method, apparatus and system, electronic device and medium
CN110708393B (en) Method, device and system for transmitting data
US20200021545A1 (en) Method, device and storage medium for interactive message in video page
CN109981711B (en) Document dynamic playing method, device and system and computer readable storage medium
US10623454B2 (en) System and method for multimedia redirection for cloud desktop conferencing
EP3055761B1 (en) Framework for screen content sharing system with generalized screen descriptions
CN109714527B (en) Method and device for controlling video network camera in internet
US20180375907A1 (en) Parallel peer to peer connection establishment in webrtc conferencing
CN112953850B (en) Data transmission method and device, computer readable medium and electronic equipment
US11792130B2 (en) Audio/video communication method, terminal, server, computer device, and storage medium
CN109547817B (en) Method and device for double-playing video networking video recording in Internet
CN103348657B (en) Flow media playing method, equipment and system
CN111787026B (en) Method, device and equipment for transmitting media data and storage medium
CN109698818B (en) Method and device for acquiring online user and cross-streaming media communication
CN109617961B (en) Method and device for downloading video recording of video network in Internet
CN110177288A (en) Audio/video data transmission method, device, electronic equipment and computer-readable medium
CN114040220A (en) Live broadcasting method and device
CN109769126B (en) Method and device for playing back video recording in real time in Internet
CN110381285B (en) Conference initiating method and device
CN110704520A (en) Service processing method and device
EP2652913B1 (en) Real-time media optimization over remoted sessions
CN110795008B (en) Picture transmission method and device and computer readable storage medium
CN110087020B (en) Method and system for realizing video networking conference by iOS equipment
CN110636132A (en) Data synchronization method, client, electronic device and computer-readable storage medium
CN110602431A (en) Configuration parameter modification method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20822956

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20822956

Country of ref document: EP

Kind code of ref document: A1