Audio and video transmission method and system

文档序号:956383 发布日期:2020-10-30 浏览:10次 中文

阅读说明:本技术 一种音视频传输方法及系统 (Audio and video transmission method and system ) 是由 吕天久 夏洪强 刘大强 缪科 于 2020-07-24 设计创作,主要内容包括:本申请实施例提供了一种音视频传输方法及系统,方法基于终端接收管理平台通过服务器端发送的指令,执行音视频流传输,根据实时传输协议(Real-time Transport Protocol,RTP)执行音视频流传输,方法包括:管理平台根据预设需求设置下载参数,并将下载参数写入RTP中生成下载指令;判断下载指令是否有效,若是,终端接收下载指令对应的RTP下载包,并根据下载指令进行音视频的下载;根据下载指令判断下载进度;若下载未完成,从下载进度中断时的位置重新进行下载;若下载完成,完成音视频从终端传输下载至管理平台对应的本地存储空间,通过本申请文件中的技术方案,可以节约传输消耗的流量。(The embodiment of the application provides an audio and video transmission method and system, the method is based on a terminal receiving management platform and an instruction sent by a server, executes audio and video stream transmission, and executes the audio and video stream transmission according to a Real-time Transport Protocol (RTP), and the method comprises the following steps: the management platform sets a downloading parameter according to a preset requirement, and writes the downloading parameter into an RTP to generate a downloading instruction; judging whether the downloading instruction is effective, if so, receiving an RTP downloading packet corresponding to the downloading instruction by the terminal, and downloading the audio and video according to the downloading instruction; judging the downloading progress according to the downloading instruction; if the downloading is not finished, the downloading is carried out again from the position when the downloading progress is interrupted; if the audio and video are downloaded, the audio and video are transmitted and downloaded from the terminal to the local storage space corresponding to the management platform, and the traffic consumed by transmission can be saved through the technical scheme in the application file.)

1. An audio and video transmission method is based on a terminal receiving management platform and an instruction sent by a server, executes audio and video stream transmission, and executes the audio and video stream transmission according to a Real-time Transport Protocol (RTP), and is characterized by comprising the following steps:

the management platform sets a downloading parameter according to a preset requirement, and writes the downloading parameter into an RTP to generate a downloading instruction;

judging whether the downloading instruction is effective or not, if so, receiving an RTP downloading packet corresponding to the downloading instruction by the terminal, and downloading audio and video according to the downloading instruction;

judging the downloading progress according to the downloading instruction;

if the downloading is not finished, the downloading is carried out again from the position when the downloading progress is interrupted;

and if the audio and video are downloaded, the audio and video are transmitted and downloaded from the terminal to the local storage space corresponding to the management platform.

2. The audio and video transmission method according to claim 1, wherein the management platform sets a download parameter according to a preset requirement, and writes the download parameter into an RTP to generate a download instruction, including:

storing the downloading parameters set according to preset requirements by using a first storage space, and generating a downloading parameter data packet, wherein the downloading parameters comprise: the terminal comprises identification data of the terminal, the size of an audio and video file to be downloaded, the current downloading state of the audio and video file, the current downloading speed, the current downloading accumulated time, the starting time and the ending time for downloading the audio and video file and the total time of the audio and video to be downloaded;

the RTP packet includes: and fixing a data header and load data, adding the download parameter packet in front of the fixed data header, and generating the RTP download packet corresponding to the download instruction.

3. The audio and video transmission method according to claim 2, wherein the determining whether the download instruction is valid or not, and if so, the terminal receiving an RTP download packet corresponding to the download instruction and downloading the audio and video according to the download instruction comprises:

judging whether the terminal establishes a first connecting channel with the server side or not, wherein if the first connecting channel is successfully established, the downloading instruction is effective;

the server side sends the RTP download packet to the terminal according to the first connecting channel;

the terminal receives the RTP download packet, analyzes the download parameters and the load data in the RTP download packet, and inquires audio and video meeting preset requirements in all audio and video stored in the terminal according to the download parameters;

and transmitting and downloading the audio and video meeting the preset requirement to a local storage space of the management platform through the first connecting channel and a second connecting channel between the server side and the management platform.

4. The audio-video transmission method according to claim 3, wherein if the downloading is not completed, the downloading is resumed from a position where the downloading progress was interrupted, including:

and after the downloading is determined to be not finished according to the downloading progress, judging whether the transmission and the downloading of the load data in the current RTP downloading packet are finished or not, if not, acquiring a new RTP downloading packet again, and carrying out the transmission and the downloading of the audio and the video again from the position of the interruption of the downloading progress according to the new RTP downloading packet.

5. The audio-video transmission method according to claim 3, wherein after the terminal receives the RTP download packet, the method further comprises:

and after receiving the RTP download packet, the terminal updates the current audio and video download state, the current speed and the current download duration which are included in the download parameters.

6. An audio-video transmission system, the system comprising:

the management platform is used for setting downloading parameters according to preset requirements and writing the downloading parameters into an RTP to generate a downloading instruction;

the terminal is used for judging whether the downloading instruction is effective or not, if so, the terminal receives an RTP downloading packet corresponding to the downloading instruction and downloads audio and video according to the downloading instruction; and also for the purpose of,

judging the downloading progress according to the downloading instruction;

if the downloading is not finished, the downloading is carried out again from the position when the downloading progress is interrupted;

and if the audio and video are downloaded, the audio and video are transmitted and downloaded from the terminal to the local storage space corresponding to the management platform.

7. The audio-video transmission system of claim 6, wherein the management platform is further configured to,

storing the downloading parameters set according to preset requirements by using a first storage space, and generating a downloading parameter data packet, wherein the downloading parameters comprise: the terminal comprises identification data of the terminal, the size of an audio and video file to be downloaded, the current downloading state of the audio and video file, the current downloading speed, the current downloading accumulated time, the starting time and the ending time for downloading the audio and video file and the total time of the audio and video to be downloaded;

the RTP packet includes: and fixing a data header and load data, adding the download parameter packet in front of the fixed data header, and generating the RTP download packet corresponding to the download instruction.

8. Audio-video transmission system according to claim 7, characterized in that it further comprises:

the server is used for establishing a first connecting channel with the terminal and sending the RTP download packet to the terminal according to the first connecting channel; and also for the purpose of,

and a second connecting channel is established between the server side and the management platform, and the audio and video meeting the preset requirements are transmitted and downloaded to the local storage space of the management platform through the first connecting channel and the second connecting channel between the server side and the management platform.

9. The audio-video transmission system of claim 8, wherein the terminal is further configured to,

and after the downloading is determined to be not finished according to the downloading progress, judging whether the transmission and the downloading of the load data in the current RTP downloading packet are finished or not, if not, acquiring a new RTP downloading packet again, and carrying out the transmission and the downloading of the audio and the video again from the position of the interruption of the downloading progress according to the new RTP downloading packet.

10. The audio-video transmission system of claim 8, wherein the terminal is further configured to,

and after receiving the RTP download packet, the terminal updates the current audio and video download state, the current speed and the current download duration which are included in the download parameters.

Technical Field

The application relates to the technical field of information transmission, in particular to an audio and video transmission method and system.

Background

The current internet technology is developed rapidly, the sharing and real-time viewing of audio and video file transmission resources are greatly facilitated by relying on audio and video file transmission and downloading of a client server side, and traffic is consumed in the transmission process. However, in the transmission process of the audio and video file, situations such as network interruption and abnormal response of a terminal serving as a transmission end are inevitable, and the file needs to be retransmitted, and the traffic is consumed again in the retransmission process, the consumed traffic is increased, and the corresponding traffic cost is also increased.

Disclosure of Invention

The application aims to provide an audio and video transmission method and system, which are used for effectively overcoming the technical defect of high consumption flow.

In a first aspect, an embodiment of the present application provides an audio and video transmission method, where the method executes audio and video stream transmission based on a command sent by a terminal receiving management platform through a server, and executes the audio and video stream transmission according to a Real-time transport Protocol (RTP), and the method includes: the management platform sets a downloading parameter according to a preset requirement, and writes the downloading parameter into an RTP to generate a downloading instruction; judging whether the downloading instruction is effective, if so, receiving an RTP downloading packet corresponding to the downloading instruction by the terminal, and downloading the audio and video according to the downloading instruction; judging the downloading progress according to the downloading instruction; if the downloading is not finished, the downloading is carried out again from the position when the downloading progress is interrupted; and if the downloading is finished, the audio and video is transmitted and downloaded from the terminal to the local storage space corresponding to the management platform.

With reference to the first aspect, in a first possible implementation manner, the method for setting, by a management platform, a download parameter according to a preset requirement, and writing the download parameter into an RTP to generate a download instruction includes: the method comprises the steps of using a first storage space to store downloading parameters set according to preset requirements, and generating a downloading parameter data packet, wherein the downloading parameters comprise: the method comprises the steps that identification data of a terminal, the size of an audio and video file to be downloaded, the current downloading state of the audio and video file, the current downloading speed, the current downloading accumulated time length, the starting time and the ending time of downloading the audio and video file and the total time length of the audio and video to be downloaded are obtained; the RTP packet includes: and fixing a data head and load data, adding a downloading parameter packet in front of the fixed data head, and generating the RTP downloading packet corresponding to the downloading instruction.

With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, determining whether the download instruction is valid, and if so, receiving, by the terminal, an RTP download packet corresponding to the download instruction, and downloading an audio and video according to the download instruction, where the method includes: judging whether the terminal establishes a first connecting channel with the server, if the first connecting channel is successfully established, the downloading instruction is effective; the server side sends an RTP download packet to the terminal according to the first connecting channel, the terminal receives the RTP download packet, analyzes download parameters and load data in the RTP download packet, and inquires audio and video meeting preset requirements in all audio and video stored in the terminal according to the download parameters; and transmitting and downloading the audio and video meeting the preset requirement to the local storage space of the management platform through the first connecting channel and the second connecting channel between the server side and the management platform.

With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, if the downloading is not completed, the downloading from the location where the downloading progress is interrupted again includes: and after the downloading is determined to be not finished according to the downloading progress, judging whether the transmission and the downloading of the load data in the RTP downloading packet are finished or not, if not, re-acquiring a new RTP downloading packet, and re-transmitting and downloading the audio and video from the position of interruption of the downloading progress according to the new RTP downloading packet.

With reference to the second possible implementation manner of the first aspect, in a fourth possible implementation manner, after the terminal receives the RTP download packet, the method further includes: after receiving the RTP download packet, the terminal updates the current download state, current speed and current download duration of the audio and video included in the download parameters.

In a second aspect, an embodiment of the present application provides an audio and video transmission system, where the system includes: the management platform is used for setting downloading parameters according to preset requirements and writing the downloading parameters into an RTP to generate a downloading instruction; the terminal is used for judging whether the downloading instruction is effective or not, if so, the terminal receives an RTP downloading packet corresponding to the downloading instruction and downloads audio and video according to the downloading instruction; and also used for judging the downloading progress according to the downloading instruction; if the downloading is not finished, the downloading is carried out again from the position when the downloading progress is interrupted; and if the downloading is finished, the audio and video is transmitted and downloaded from the terminal to the local storage space corresponding to the management platform.

With reference to the second aspect, in a first possible implementation manner, the management platform is further configured to use the first storage space to store the download parameters set according to preset requirements, and generate a download parameter data packet, where the download parameters include: the method comprises the steps that identification data of a terminal, the size of an audio and video file to be downloaded, the current downloading state of the audio and video file, the current downloading speed, the current downloading accumulated time length, the starting time and the ending time of downloading the audio and video file and the total time length of the audio and video to be downloaded are obtained; the RTP packet includes: and fixing a data head and load data, adding a downloading parameter packet in front of the fixed data head, and generating an RTP downloading packet corresponding to the downloading instruction.

With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the system further includes: the server end is used for establishing a first connecting channel with the terminal and sending the RTP download packet to the terminal according to the first connecting channel; and the server side is also used for establishing a second connecting channel with the management platform and transmitting and downloading the audio and video meeting the preset requirement to the local storage space of the management platform through the first connecting channel and the second connecting channel between the server side and the management platform.

With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner, the terminal is further configured to determine whether the transmission and the downloading of the load data in the current RTP download packet are completed according to the downloading progress, if not, re-acquire a new RTP download packet, and re-perform the transmission and the downloading of the audio and video from the position where the downloading progress is interrupted according to the new RTP download packet.

With reference to the second possible implementation manner of the second aspect, in a fourth possible implementation manner, the terminal is further configured to update a current downloading state, a current speed, and a current downloading duration of the audio and video included in the downloading parameters after the terminal receives the RTP downloading packet.

The invention has the beneficial effects that: according to the technical scheme provided by the embodiment of the invention, the download parameters are placed in the RTP, so that in the process of real-time transmission and download, if the condition of transmission and download interruption caused by poor network or log-out of a management platform occurs, the real-time transmission and download can be carried out again from the position of the download interruption according to the set download parameters, and the transmission and download do not need to be started from the beginning. The process of transmitting the download needs to consume flow, and the flow consumed in the process of transmitting the download can be saved by transmitting the download from an interrupted position instead of transmitting the download from the beginning, so that the cost generated by using the flow is reduced.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.

Fig. 1 is a schematic flowchart of an audio and video transmission method provided in an embodiment of the present application;

fig. 2 is a block diagram of an audio/video transmission system according to an embodiment of the present application.

Icon: 10-audio and video transmission system, 100-management platform, 110-server end and 120-terminal.

Detailed Description

The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.

For convenience of understanding, the terminal described in this embodiment may include: the system comprises an unmanned aerial vehicle capable of communicating with a server side and a vehicle capable of communicating with the server side. Optionally, in this embodiment, the object is a vehicle in communication with the server side. Correspondingly, the management platform for managing the terminal is a vehicle management platform. The management platform needs to provide an account for logging in by an operator of the server terminal, and then can communicate with the terminal through the server terminal. One server end can correspond to a plurality of management platforms, one management platform can correspond to a plurality of terminals, and one management platform establishes a connection channel with one terminal through the server end. The communication mode between the terminal and the server can be a control device with a communication function on the vehicle, and the control device can receive a download instruction transmitted by the management platform through the server and carry out transmission downloading according to the download instruction.

The audio transmission method in the embodiment of the present application is completed based on the audio/video transmission system 10. The audio-video transmission system 10 includes: management platform 100, server side 110, and terminal 120.

Referring to fig. 1, fig. 1 is a schematic flow chart of an audio and video transmission method according to an embodiment of the present application. The embodiment of the application provides an audio and video transmission method, which is based on a terminal 120 receiving an instruction sent by a management platform 100 through a server 110, executes audio and video stream transmission, and executes the audio and video stream transmission according to a Real-time Transport Protocol (RTP), and the method comprises the following steps: step S11, step S12, step S13, and step S14.

Step S11: the management platform 100 sets a downloading parameter according to a preset requirement, and writes the downloading parameter into an RTP to generate a downloading instruction;

step S12: judging whether the downloading instruction is effective, if so, receiving an RTP downloading packet corresponding to the downloading instruction by the terminal 120, and downloading the audio and video according to the downloading instruction;

step S13: judging the downloading progress according to the downloading instruction; if the downloading is not finished, the downloading is carried out again from the position when the downloading progress is interrupted;

step S14: if the downloading is completed, the audio and video is transmitted and downloaded from the terminal 120 to the local storage space corresponding to the management platform 100.

The flow of the method will be described in detail below.

Step S11: the management platform 100 sets a downloading parameter according to a preset requirement, and writes the downloading parameter into the RTP to generate a downloading instruction.

The method comprises the steps of using a first storage space to store downloading parameters set according to preset requirements, and generating a downloading parameter data packet, wherein the downloading parameters comprise: identification data of the terminal 120, the size of the audio/video file to be downloaded, the current downloading state of the audio/video file, the current downloading speed, the current downloading accumulated time, the starting time and the ending time for downloading the audio/video file, and the total time of the audio/video to be downloaded; the RTP packet includes: and fixing a data head and load data, adding a downloading parameter packet in front of the fixed data head, and generating the RTP downloading packet corresponding to the downloading instruction.

The management platform 100 develops the download parameters stored and set in the first storage space, and generates a download parameter data packet. In detail, the set download parameters include: identification data of the terminal 120, the size of the audio/video file to be downloaded, the current downloading state of the audio/video file, the current downloading speed, the current downloading accumulated time length, the starting time and the ending time of downloading the audio/video file, the total time length of the audio/video to be downloaded, the time point when the audio/video is downloaded, the file name, the downloaded network address, the corresponding channel and the telephone number corresponding to the terminal 120. In the embodiment of the present application, since the terminal 120 is a vehicle that can communicate with the server 110, and each vehicle has a unique license plate number, the license plate number of the vehicle can be used as the identification data of the terminal 120.

It should be noted that, in the transmission process of the audio and video, the transmission and downloading may be interrupted due to network differences and the like, so that the audio and video meeting the preset condition is cut into at least two sections of cut audio and video, that is, the combination of the at least two sections of cut audio and video is the audio and video file meeting the preset condition. Therefore, the set download parameters further include: downloading links, the starting time and the ending time of each cut audio and video and the time length of each cut audio and video. The process of transmitting the download to the management platform 100 through the server at the terminal 120 can be successfully performed by a plurality of download factors in the set download parameters.

The first storage space may be a fixed-size storage space or a variable-size storage space. Optionally, in this embodiment, the first storage space is a fixed-size storage space, and the storage size is 1024 bytes. The reason is that the storage space occupied by the download parameters is not large, the storage space of 1024 bytes is enough to store the set download parameters, and the storage addresses corresponding to the 1024 bytes are fixed and continuous, so that the searching and the modifying are convenient.

The audio and video transmission method in the embodiment of the application is based on an RTP protocol, and the format of an RTP packet corresponding to the RTP protocol comprises the following steps: a fixed data header and payload data, wherein if the extension in the fixed data header is 1, the format of the RTP packet is: a fixed data header, an extended header, and payload data.

The management platform 100 adds a download parameter data packet generated by setting the download parameters to the front of the fixed data header of the RTP packet, and generates a download instruction. At this time, the format of the RTP download packet of the RTP packet added with the download parameter data packet corresponding to the download instruction is as follows: the data processing method comprises the steps of downloading a parameter data packet, a fixed data head and load data or downloading the parameter data packet, the fixed data head, an expansion head and the load data.

Step S12: and judging whether the downloading instruction is effective, if so, receiving an RTP downloading packet corresponding to the downloading instruction by the terminal 120, and downloading the audio and video according to the downloading instruction.

Judging whether the terminal 120 establishes a first connection channel with the server 110, if the first connection channel is successfully established, the downloading instruction is valid; the server 110 sends an RTP download packet to the terminal 120 according to the first connection channel, and the terminal 120 receives the RTP download packet, analyzes download parameters and load data in the RTP download packet, and queries audio and video meeting preset requirements from all audio and video stored in the terminal 120 according to the download parameters; and transmitting and downloading the audio and video meeting the preset requirement to the local storage space of the management platform 100 through the first connecting channel and the second connecting channel between the server 110 and the management platform 100.

The audio and video of the terminal 120 are stored in the storage space of the terminal 120, not in the server terminal 110, because the server terminal 110 corresponds to a plurality of terminals 120, if the audio and video of all the terminals 120 are stored in the server terminal 110, the storage space of the server terminal 110 needs to be very large, which causes the operation pressure of the server terminal 110 to be large and the operation speed to be slow.

In detail, the management platform 100 sends the download instruction to the terminal 120 through the server 110, and the terminal 120 can successfully receive the download instruction and respond only if a connection channel is established between the server 110 and the terminal 120. Therefore, it is necessary to determine whether the terminal 120 establishes the first connection channel with the server 110, and if the first connection channel is successfully established, the terminal 120 may receive the download instruction, and the download instruction is only valid. If the terminal 120 and the server 110 successfully establish the first connection channel, the server terminal 120 sends an RTP download packet corresponding to the download instruction to the terminal 120, and the terminal 120 waits for receiving the RTP download packet.

After the terminal 120 receives the RTP download packet, the current download state, the current speed and the current download duration of the audio and video included in the download parameters are updated. The updating is based on comparing whether the starting time and the ending time of downloading the audio and video files in the downloading parameters, the total time length of the audio and video to be downloaded and the current downloading accumulated time length are consistent, if not, the audio and video meeting the preset requirements are not downloaded completely, and the current downloading state, the current downloading speed and the current downloading accumulated time length of the audio and video files in the downloading parameters need to be updated so as to judge whether the audio and video meeting the preset requirements are completely transmitted and downloaded.

Step S13: judging the downloading progress according to the downloading instruction; and if the downloading is not finished, the downloading is carried out again from the position when the downloading progress is interrupted.

And after the downloading is determined to be not finished according to the downloading progress, judging whether the transmission and the downloading of the load data in the RTP downloading packet are finished or not, if not, re-acquiring a new RTP downloading packet, and re-transmitting and downloading the audio and video from the position of interruption of the downloading progress according to the new RTP downloading packet.

The method comprises the steps that an audio and video meeting preset requirements can be a relatively-stored audio and video, in the process of transmission and downloading, due to network difference and other reasons, a complete audio and video is cut into a plurality of cut audio and video, in order to save flow, a time point when downloading is interrupted and a downloading position corresponding to the time point can be determined according to the accumulated time of current downloading, the total time of the audio and video needing to be downloaded, the time point when downloading and the starting time and the ending time of downloading an audio and video file, and when transmission and downloading are carried out again, transmission and downloading are continuously carried out from the downloading position when the downloading is interrupted.

Step S14: if the downloading is completed, the audio and video is transmitted and downloaded from the terminal 120 to the local storage space corresponding to the management platform 100.

If the downloading is completed, the process of transmitting and downloading the audio and video from the terminal 120 to the local storage space corresponding to the management platform 100 is completed.

Referring to fig. 2, fig. 2 is a block diagram of an audio/video transmission system 10 according to an embodiment of the present disclosure. The audio/video transmission system 10 in the embodiment of the present application will be described in detail below, where the audio/video transmission system 10 includes:

the management platform 100 is configured to set a downloading parameter according to a preset requirement, and write the downloading parameter into an RTP to generate a downloading instruction;

the terminal 120 is configured to determine whether the download instruction is valid, and if so, the terminal 120 receives an RTP download packet corresponding to the download instruction and downloads audio and video according to the download instruction; and also used for judging the downloading progress according to the downloading instruction; if the downloading is not finished, the downloading is carried out again from the position when the downloading progress is interrupted; if the downloading is completed, the audio and video is transmitted and downloaded from the terminal 120 to the local storage space corresponding to the management platform 100.

The server 110 is configured to establish a first connection channel with the terminal 120, and send the RTP download packet to the terminal 120 according to the first connection channel; and is further configured to establish a second connection channel with the management platform 100, and transmit and download the audio and video meeting the preset requirement to the local storage space of the management platform 100 through the first connection channel and the second connection channel between the server 110 and the management platform 100.

The management platform 100 is further configured to use the first storage space to store the download parameters set according to preset requirements, and generate a download parameter data package, where the download parameters include: identification data of the terminal 120, the size of the audio/video file to be downloaded, the current downloading state of the audio/video file, the current downloading speed, the current downloading accumulated time, the starting time and the ending time for downloading the audio/video file, and the total time of the audio/video to be downloaded; the RTP packet includes: and fixing a data head and load data, adding a downloading parameter packet in front of the fixed data head, and generating an RTP downloading packet corresponding to the downloading instruction.

The terminal 120 is further configured to determine whether the transmission and the downloading of the load data in the current RTP download packet are completed after the downloading is not completed according to the downloading progress, if not, re-acquire a new RTP download packet, and re-perform the transmission and the downloading of the audio and video from the position where the downloading progress is interrupted according to the new RTP download packet.

The terminal 120 is further configured to update the current downloading state, the current speed, and the current downloading duration of the audio and video included in the downloading parameters after the terminal 120 receives the RTP downloading packet. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the user equipment and the module described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.

To sum up, the embodiment of the present application provides an audio and video transmission method, which executes audio and video stream transmission based on an instruction sent by a terminal receiving management platform through a server, and executes audio and video stream transmission according to a Real-time transport Protocol (RTP), and the method includes: the management platform sets a downloading parameter according to a preset requirement, and writes the downloading parameter into an RTP to generate a downloading instruction; judging whether the downloading instruction is effective, if so, receiving an RTP downloading packet corresponding to the downloading instruction by the terminal, and downloading the audio and video according to the downloading instruction; judging the downloading progress according to the downloading instruction; if the downloading is not finished, the downloading is carried out again from the position when the downloading progress is interrupted; and if the downloading is finished, the audio and video is transmitted and downloaded from the terminal to the local storage space corresponding to the management platform. The download parameters are put in RTP, so that in the process of real-time transmission and download, if the transmission and download are interrupted due to poor network or log-off of the management platform, the real-time transmission and download can be carried out again from the position of the interruption of the download according to the set download parameters without starting the transmission and download from the beginning. The process of transmitting the download needs to consume flow, and the flow consumed in the process of transmitting the download can be saved by transmitting the download from an interrupted position instead of transmitting the download from the beginning, so that the cost generated by using the flow is reduced.

The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种视频审核方法和服务器

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类